Clean up IRIX code.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
600
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIB_MATH
706 CRT_DIR
707 LIBSOUND
708 PKG_CONFIG
709 ALSA_CFLAGS
710 ALSA_LIBS
711 CFLAGS_SOUND
712 SET_MAKE
713 XMKMF
714 NS_OBJ
715 NS_SUPPORT
716 HAVE_XSERVER
717 RSVG_CFLAGS
718 RSVG_LIBS
719 GTK_CFLAGS
720 GTK_LIBS
721 GTK_OBJ
722 DBUS_CFLAGS
723 DBUS_LIBS
724 DBUS_OBJ
725 GCONF_CFLAGS
726 GCONF_LIBS
727 LIBSELINUX_LIBS
728 LIBXTR6
729 LIBXMU
730 FONTCONFIG_CFLAGS
731 FONTCONFIG_LIBS
732 XFT_CFLAGS
733 XFT_LIBS
734 LIBOTF_CFLAGS
735 LIBOTF_LIBS
736 M17N_FLT_CFLAGS
737 M17N_FLT_LIBS
738 FONT_OBJ
739 FREETYPE_CFLAGS
740 FREETYPE_LIBS
741 LIBXPM
742 LIBJPEG
743 LIBPNG
744 LIBTIFF
745 LIBGIF
746 LIBGPM
747 GPM_MOUSE_SUPPORT
748 LIBXSM
749 ALLOCA
750 liblockfile
751 LIBS_MAIL
752 LIBOBJS
753 NEED_SETGID
754 KMEM_GROUP
755 GETLOADAVG_LIBS
756 GETOPT_H
757 GETOPTOBJS
758 LIBHESIOD
759 LIBRESOLV
760 COM_ERRLIB
761 CRYPTOLIB
762 KRB5LIB
763 DESLIB
764 KRB4LIB
765 version
766 configuration
767 canonical
768 srcdir
769 lispdir
770 locallisppath
771 lisppath
772 x_default_search_path
773 etcdir
774 archlibdir
775 bitmapdir
776 gamedir
777 gameuser
778 c_switch_system
779 c_switch_machine
780 unexec
781 LD_SWITCH_X_SITE
782 LD_SWITCH_X_SITE_AUX
783 C_SWITCH_X_SITE
784 C_SWITCH_X_SYSTEM
785 X_TOOLKIT_TYPE
786 machfile
787 opsysfile
788 ns_appdir
789 ns_appbindir
790 ns_appresdir
791 ns_appsrc
792 GNUSTEP_MAKEFILES
793 GNUSTEP_SYSTEM_HEADERS
794 GNUSTEP_SYSTEM_LIBRARIES
795 GNU_OBJC_CFLAGS
796 LIB_SRC_EXTRA_INSTALLABLES
797 OTHER_FILES
798 XMENU_OBJ
799 XOBJ
800 WIDGET_OBJ
801 TOOLKIT_LIBW
802 OLDXMENU
803 LIBXMENU
804 CYGWIN_OBJ
805 PRE_ALLOC_OBJ
806 POST_ALLOC_OBJ
807 LTLIBOBJS'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 with_pop
812 with_kerberos
813 with_kerberos5
814 with_hesiod
815 with_mmdf
816 with_mail_unlink
817 with_mailhost
818 with_sound
819 with_sync_input
820 with_x_toolkit
821 with_xpm
822 with_jpeg
823 with_tiff
824 with_gif
825 with_png
826 with_rsvg
827 with_xft
828 with_libotf
829 with_m17n_flt
830 with_toolkit_scroll_bars
831 with_xaw3d
832 with_xim
833 with_ns
834 with_gpm
835 with_dbus
836 with_gconf
837 with_selinux
838 with_makeinfo
839 with_gtk
840 with_gcc
841 with_pkg_config_prog
842 with_crt_dir
843 with_gnustep_conf
844 enable_ns_self_contained
845 enable_asserts
846 enable_maintainer_mode
847 enable_locallisppath
848 enable_checking
849 enable_profiling
850 enable_autodepend
851 enable_largefile
852 with_x
853 '
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 XMKMF'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *) ac_optarg=yes ;;
928 esac
929
930 # Accept the important Cygnus configure options, so we can diagnose typos.
931
932 case $ac_dashdash$ac_option in
933 --)
934 ac_dashdash=yes ;;
935
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
940
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
945
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
952
953 --config-cache | -C)
954 cache_file=config.cache ;;
955
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
960
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
967
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
994
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=\$ac_optarg ;;
1216
1217 -without-* | --without-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1287 { (exit 1); exit 1; }; } ;;
1288 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 esac
1290 fi
1291
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1297 do
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1300 case $ac_val in
1301 */ )
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1304 esac
1305 # Be sure to have absolute directory names.
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1469 _ACEOF
1470
1471 cat <<\_ACEOF
1472
1473 Program names:
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477
1478 X features:
1479 --x-includes=DIR X include files are in DIR
1480 --x-libraries=DIR X library files are in DIR
1481
1482 System types:
1483 --build=BUILD configure for building on BUILD [guessed]
1484 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 _ACEOF
1486 fi
1487
1488 if test -n "$ac_init_help"; then
1489 case $ac_init_help in
1490 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1491 esac
1492 cat <<\_ACEOF
1493
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --disable-ns-self-contained
1499 disable self contained build under NeXTstep
1500 --enable-asserts compile code with asserts enabled
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-locallisppath=PATH
1505 directories Emacs should search for lisp files
1506 specific to this site
1507 --enable-checking[=LIST]
1508 enable expensive run-time checks. With LIST, enable
1509 only specific categories of checks. Categories are:
1510 all,yes,no. Flags are: stringbytes, stringoverrun,
1511 stringfreelist, xmallocoverrun, conslist
1512 --enable-profiling build emacs with profiling support. This might not
1513 work on all platforms
1514 --enable-autodepend automatically generate dependencies to .h-files.
1515 Requires GNU Make and Gcc. Enabled if GNU Make and
1516 Gcc is found
1517 --disable-largefile omit support for large files
1518
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --without-pop don't support POP mail retrieval with movemail
1523 --with-kerberos support Kerberos-authenticated POP
1524 --with-kerberos5 support Kerberos version 5 authenticated POP
1525 --with-hesiod support Hesiod to get the POP server host
1526 --with-mmdf support MMDF mailboxes
1527 --with-mail-unlink unlink, rather than empty, mail spool after reading
1528 --with-mailhost=HOSTNAME
1529 string giving default POP mail host
1530 --without-sound don't compile with sound support
1531 --without-sync-input process async input synchronously
1532 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1533 athena, motif, no)
1534 --without-xpm don't compile with XPM image support
1535 --without-jpeg don't compile with JPEG image support
1536 --without-tiff don't compile with TIFF image support
1537 --without-gif don't compile with GIF image support
1538 --without-png don't compile with PNG image support
1539 --without-rsvg don't compile with SVG image support
1540 --without-xft don't use XFT for anti aliased fonts
1541 --without-libotf don't use libotf for OpenType font support
1542 --without-m17n-flt don't use m17n-flt for text shaping
1543 --without-toolkit-scroll-bars
1544 don't use Motif or Xaw3d scroll bars
1545 --without-xaw3d don't use Xaw3d
1546 --without-xim don't use X11 XIM
1547 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1548 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1549 console
1550 --without-dbus don't compile with D-Bus support
1551 --without-gconf don't compile with GConf support
1552 --without-selinux don't compile with SELinux support
1553 --without-makeinfo don't require makeinfo for building manuals
1554
1555 --with-pkg-config-prog=PATH
1556 path to pkg-config for finding GTK and librsvg
1557 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1558 /usr/lib, or /usr/lib64 on some platforms.
1559 --with-gnustep-conf=PATH
1560 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1561 or /etc/GNUstep/GNUstep.conf
1562 --with-x use the X Window System
1563
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CPP C preprocessor
1573 XMKMF Path to xmkmf, Makefile generator for X Window System
1574
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1577
1578 _ACEOF
1579 ac_status=$?
1580 fi
1581
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 continue
1588 ac_builddir=.
1589
1590 case "$ac_dir" in
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *)
1593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600 esac
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1605
1606 case $srcdir in
1607 .) # We are building in place.
1608 ac_srcdir=.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 esac
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1630 else
1631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 fi || ac_status=$?
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1634 done
1635 fi
1636
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1639 cat <<\_ACEOF
1640 emacs configure 24.0.50
1641 generated by GNU Autoconf 2.62
1642
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647 _ACEOF
1648 exit
1649 fi
1650 cat >config.log <<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1653
1654 It was created by emacs $as_me 24.0.50, which was
1655 generated by GNU Autoconf 2.62. Invocation command line was
1656
1657 $ $0 $@
1658
1659 _ACEOF
1660 exec 5>>config.log
1661 {
1662 cat <<_ASUNAME
1663 ## --------- ##
1664 ## Platform. ##
1665 ## --------- ##
1666
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675
1676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683
1684 _ASUNAME
1685
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689 IFS=$as_save_IFS
1690 test -z "$as_dir" && as_dir=.
1691 $as_echo "PATH: $as_dir"
1692 done
1693 IFS=$as_save_IFS
1694
1695 } >&5
1696
1697 cat >&5 <<_ACEOF
1698
1699
1700 ## ----------- ##
1701 ## Core tests. ##
1702 ## ----------- ##
1703
1704 _ACEOF
1705
1706
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1712 ac_configure_args=
1713 ac_configure_args0=
1714 ac_configure_args1=
1715 ac_must_keep_next=false
1716 for ac_pass in 1 2
1717 do
1718 for ac_arg
1719 do
1720 case $ac_arg in
1721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723 | -silent | --silent | --silen | --sile | --sil)
1724 continue ;;
1725 *\'*)
1726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 esac
1728 case $ac_pass in
1729 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 2)
1731 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732 if test $ac_must_keep_next = true; then
1733 ac_must_keep_next=false # Got value, back to normal.
1734 else
1735 case $ac_arg in
1736 *=* | --config-cache | -C | -disable-* | --disable-* \
1737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739 | -with-* | --with-* | -without-* | --without-* | --x)
1740 case "$ac_configure_args0 " in
1741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742 esac
1743 ;;
1744 -* ) ac_must_keep_next=true ;;
1745 esac
1746 fi
1747 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 ;;
1749 esac
1750 done
1751 done
1752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log. We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761 # Save into config.log some information that might help in debugging.
1762 {
1763 echo
1764
1765 cat <<\_ASBOX
1766 ## ---------------- ##
1767 ## Cache variables. ##
1768 ## ---------------- ##
1769 _ASBOX
1770 echo
1771 # The following way of writing the cache mishandles newlines in values,
1772 (
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1775 case $ac_val in #(
1776 *${as_nl}*)
1777 case $ac_var in #(
1778 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1779 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1780 esac
1781 case $ac_var in #(
1782 _ | IFS | as_nl) ;; #(
1783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1784 *) $as_unset $ac_var ;;
1785 esac ;;
1786 esac
1787 done
1788 (set) 2>&1 |
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1791 sed -n \
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 ;; #(
1795 *)
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ;;
1798 esac |
1799 sort
1800 )
1801 echo
1802
1803 cat <<\_ASBOX
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1807 _ASBOX
1808 echo
1809 for ac_var in $ac_subst_vars
1810 do
1811 eval ac_val=\$$ac_var
1812 case $ac_val in
1813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 esac
1815 $as_echo "$ac_var='\''$ac_val'\''"
1816 done | sort
1817 echo
1818
1819 if test -n "$ac_subst_files"; then
1820 cat <<\_ASBOX
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1824 _ASBOX
1825 echo
1826 for ac_var in $ac_subst_files
1827 do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in
1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 esac
1832 $as_echo "$ac_var='\''$ac_val'\''"
1833 done | sort
1834 echo
1835 fi
1836
1837 if test -s confdefs.h; then
1838 cat <<\_ASBOX
1839 ## ----------- ##
1840 ## confdefs.h. ##
1841 ## ----------- ##
1842 _ASBOX
1843 echo
1844 cat confdefs.h
1845 echo
1846 fi
1847 test "$ac_signal" != 0 &&
1848 $as_echo "$as_me: caught signal $ac_signal"
1849 $as_echo "$as_me: exit $exit_status"
1850 } >&5
1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 exit $exit_status
1854 ' 0
1855 for ac_signal in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 done
1858 ac_signal=0
1859
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest* confdefs.h
1862
1863 # Predefined preprocessor variables.
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 _ACEOF
1888
1889
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer an explicitly selected file to automatically selected ones.
1892 ac_site_file1=NONE
1893 ac_site_file2=NONE
1894 if test -n "$CONFIG_SITE"; then
1895 ac_site_file1=$CONFIG_SITE
1896 elif test "x$prefix" != xNONE; then
1897 ac_site_file1=$prefix/share/config.site
1898 ac_site_file2=$prefix/etc/config.site
1899 else
1900 ac_site_file1=$ac_default_prefix/share/config.site
1901 ac_site_file2=$ac_default_prefix/etc/config.site
1902 fi
1903 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1904 do
1905 test "x$ac_site_file" = xNONE && continue
1906 if test -r "$ac_site_file"; then
1907 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909 sed 's/^/| /' "$ac_site_file" >&5
1910 . "$ac_site_file"
1911 fi
1912 done
1913
1914 if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special
1916 # files actually), so we avoid doing that.
1917 if test -f "$cache_file"; then
1918 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919 $as_echo "$as_me: loading cache $cache_file" >&6;}
1920 case $cache_file in
1921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922 *) . "./$cache_file";;
1923 esac
1924 fi
1925 else
1926 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927 $as_echo "$as_me: creating cache $cache_file" >&6;}
1928 >$cache_file
1929 fi
1930
1931 ac_header_list="$ac_header_list sys/time.h"
1932 ac_header_list="$ac_header_list unistd.h"
1933 ac_func_list="$ac_func_list alarm"
1934 # Check that the precious variables saved in the cache have kept the same
1935 # value.
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1943 set,)
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1947 ,set)
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1951 ,);;
1952 *)
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
1954 # differences in whitespace do not lead to failure.
1955 ac_old_val_w=`echo x $ac_old_val`
1956 ac_new_val_w=`echo x $ac_new_val`
1957 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1959 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960 ac_cache_corrupted=:
1961 else
1962 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1963 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1964 eval $ac_var=\$ac_old_val
1965 fi
1966 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1967 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1968 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1969 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1970 fi;;
1971 esac
1972 # Pass precious variables to config.status.
1973 if test "$ac_new_set" = set; then
1974 case $ac_new_val in
1975 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 *) ac_arg=$ac_var=$ac_new_val ;;
1977 esac
1978 case " $ac_configure_args " in
1979 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1980 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981 esac
1982 fi
1983 done
1984 if $ac_cache_corrupted; then
1985 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1986 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1987 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1988 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1989 { (exit 1); exit 1; }; }
1990 fi
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016 ac_ext=c
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021
2022
2023 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2024
2025
2026
2027 test "$program_prefix" != NONE &&
2028 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2029 # Use a double $ so make ignores it.
2030 test "$program_suffix" != NONE &&
2031 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2032 # Double any \ or $.
2033 # By default was `s,x,x', remove it if useless.
2034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2036
2037
2038 lispdir='${datadir}/emacs/${version}/lisp'
2039 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2040 '${datadir}/emacs/site-lisp'
2041 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2042 etcdir='${datadir}/emacs/${version}/etc'
2043 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2044 docdir='${datadir}/emacs/${version}/etc'
2045 gamedir='${localstatedir}/games/emacs'
2046
2047 gameuser=games
2048
2049
2050
2051
2052 # Check whether --with-pop was given.
2053 if test "${with_pop+set}" = set; then
2054 withval=$with_pop;
2055 else
2056 with_pop=yes
2057 fi
2058
2059 if test "$with_pop" = yes; then
2060 cat >>confdefs.h <<\_ACEOF
2061 #define MAIL_USE_POP 1
2062 _ACEOF
2063
2064 fi
2065
2066
2067
2068 # Check whether --with-kerberos was given.
2069 if test "${with_kerberos+set}" = set; then
2070 withval=$with_kerberos;
2071 else
2072 with_kerberos=no
2073 fi
2074
2075 if test "$with_kerberos" != no; then
2076 cat >>confdefs.h <<\_ACEOF
2077 #define KERBEROS 1
2078 _ACEOF
2079
2080 fi
2081
2082
2083
2084 # Check whether --with-kerberos5 was given.
2085 if test "${with_kerberos5+set}" = set; then
2086 withval=$with_kerberos5;
2087 else
2088 with_kerberos5=no
2089 fi
2090
2091 if test "${with_kerberos5}" != no; then
2092 if test "${with_kerberos}" = no; then
2093 with_kerberos=yes
2094 cat >>confdefs.h <<\_ACEOF
2095 #define KERBEROS 1
2096 _ACEOF
2097
2098 fi
2099
2100 cat >>confdefs.h <<\_ACEOF
2101 #define KERBEROS5 1
2102 _ACEOF
2103
2104 fi
2105
2106
2107 # Check whether --with-hesiod was given.
2108 if test "${with_hesiod+set}" = set; then
2109 withval=$with_hesiod;
2110 else
2111 with_hesiod=no
2112 fi
2113
2114 if test "$with_hesiod" != no; then
2115
2116 cat >>confdefs.h <<\_ACEOF
2117 #define HESIOD 1
2118 _ACEOF
2119
2120 fi
2121
2122
2123 # Check whether --with-mmdf was given.
2124 if test "${with_mmdf+set}" = set; then
2125 withval=$with_mmdf;
2126 else
2127 with_mmdf=no
2128 fi
2129
2130 if test "$with_mmdf" != no; then
2131
2132 cat >>confdefs.h <<\_ACEOF
2133 #define MAIL_USE_MMDF 1
2134 _ACEOF
2135
2136 fi
2137
2138
2139 # Check whether --with-mail-unlink was given.
2140 if test "${with_mail_unlink+set}" = set; then
2141 withval=$with_mail_unlink;
2142 else
2143 with_mail_unlink=no
2144 fi
2145
2146 if test "$with_mail_unlink" != no; then
2147
2148 cat >>confdefs.h <<\_ACEOF
2149 #define MAIL_UNLINK_SPOOL 1
2150 _ACEOF
2151
2152 fi
2153
2154
2155 # Check whether --with-mailhost was given.
2156 if test "${with_mailhost+set}" = set; then
2157 withval=$with_mailhost;
2158 cat >>confdefs.h <<_ACEOF
2159 #define MAILHOST "$withval"
2160 _ACEOF
2161
2162 fi
2163
2164
2165
2166 # Check whether --with-sound was given.
2167 if test "${with_sound+set}" = set; then
2168 withval=$with_sound;
2169 else
2170 with_sound=yes
2171 fi
2172
2173
2174
2175 # Check whether --with-sync-input was given.
2176 if test "${with_sync_input+set}" = set; then
2177 withval=$with_sync_input;
2178 else
2179 with_sync_input=yes
2180 fi
2181
2182 if test "$with_sync_input" = yes; then
2183
2184 cat >>confdefs.h <<\_ACEOF
2185 #define SYNC_INPUT 1
2186 _ACEOF
2187
2188 fi
2189
2190
2191 # Check whether --with-x-toolkit was given.
2192 if test "${with_x_toolkit+set}" = set; then
2193 withval=$with_x_toolkit; case "${withval}" in
2194 y | ye | yes ) val=gtk ;;
2195 n | no ) val=no ;;
2196 l | lu | luc | luci | lucid ) val=lucid ;;
2197 a | at | ath | athe | athen | athena ) val=athena ;;
2198 m | mo | mot | moti | motif ) val=motif ;;
2199 g | gt | gtk ) val=gtk ;;
2200 * )
2201 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2202 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2203 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2204 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2205 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2206 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2207 { (exit 1); exit 1; }; }
2208 ;;
2209 esac
2210 with_x_toolkit=$val
2211
2212 fi
2213
2214
2215
2216 # Check whether --with-xpm was given.
2217 if test "${with_xpm+set}" = set; then
2218 withval=$with_xpm;
2219 else
2220 with_xpm=yes
2221 fi
2222
2223
2224 # Check whether --with-jpeg was given.
2225 if test "${with_jpeg+set}" = set; then
2226 withval=$with_jpeg;
2227 else
2228 with_jpeg=yes
2229 fi
2230
2231
2232 # Check whether --with-tiff was given.
2233 if test "${with_tiff+set}" = set; then
2234 withval=$with_tiff;
2235 else
2236 with_tiff=yes
2237 fi
2238
2239
2240 # Check whether --with-gif was given.
2241 if test "${with_gif+set}" = set; then
2242 withval=$with_gif;
2243 else
2244 with_gif=yes
2245 fi
2246
2247
2248 # Check whether --with-png was given.
2249 if test "${with_png+set}" = set; then
2250 withval=$with_png;
2251 else
2252 with_png=yes
2253 fi
2254
2255
2256 # Check whether --with-rsvg was given.
2257 if test "${with_rsvg+set}" = set; then
2258 withval=$with_rsvg;
2259 else
2260 with_rsvg=yes
2261 fi
2262
2263
2264
2265 # Check whether --with-xft was given.
2266 if test "${with_xft+set}" = set; then
2267 withval=$with_xft;
2268 else
2269 with_xft=yes
2270 fi
2271
2272
2273 # Check whether --with-libotf was given.
2274 if test "${with_libotf+set}" = set; then
2275 withval=$with_libotf;
2276 else
2277 with_libotf=yes
2278 fi
2279
2280
2281 # Check whether --with-m17n-flt was given.
2282 if test "${with_m17n_flt+set}" = set; then
2283 withval=$with_m17n_flt;
2284 else
2285 with_m17n_flt=yes
2286 fi
2287
2288
2289
2290 # Check whether --with-toolkit-scroll-bars was given.
2291 if test "${with_toolkit_scroll_bars+set}" = set; then
2292 withval=$with_toolkit_scroll_bars;
2293 else
2294 with_toolkit_scroll_bars=yes
2295 fi
2296
2297
2298 # Check whether --with-xaw3d was given.
2299 if test "${with_xaw3d+set}" = set; then
2300 withval=$with_xaw3d;
2301 else
2302 with_xaw3d=yes
2303 fi
2304
2305
2306 # Check whether --with-xim was given.
2307 if test "${with_xim+set}" = set; then
2308 withval=$with_xim;
2309 else
2310 with_xim=yes
2311 fi
2312
2313
2314 # Check whether --with-ns was given.
2315 if test "${with_ns+set}" = set; then
2316 withval=$with_ns;
2317 else
2318 with_ns=no
2319 fi
2320
2321
2322
2323 # Check whether --with-gpm was given.
2324 if test "${with_gpm+set}" = set; then
2325 withval=$with_gpm;
2326 else
2327 with_gpm=yes
2328 fi
2329
2330
2331 # Check whether --with-dbus was given.
2332 if test "${with_dbus+set}" = set; then
2333 withval=$with_dbus;
2334 else
2335 with_dbus=yes
2336 fi
2337
2338
2339 # Check whether --with-gconf was given.
2340 if test "${with_gconf+set}" = set; then
2341 withval=$with_gconf;
2342 else
2343 with_gconf=yes
2344 fi
2345
2346
2347 # Check whether --with-selinux was given.
2348 if test "${with_selinux+set}" = set; then
2349 withval=$with_selinux;
2350 else
2351 with_selinux=yes
2352 fi
2353
2354
2355 ## For the times when you want to build Emacs but don't have
2356 ## a suitable makeinfo, and can live without the manuals.
2357
2358 # Check whether --with-makeinfo was given.
2359 if test "${with_makeinfo+set}" = set; then
2360 withval=$with_makeinfo;
2361 else
2362 with_makeinfo=yes
2363 fi
2364
2365
2366
2367 # Check whether --with-gtk was given.
2368 if test "${with_gtk+set}" = set; then
2369 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2370 specify a toolkit." >&5
2371 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2372 specify a toolkit." >&2;}
2373 { (exit 1); exit 1; }; }
2374 fi
2375
2376
2377
2378 # Check whether --with-gcc was given.
2379 if test "${with_gcc+set}" = set; then
2380 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2381 variable to specify a compiler." >&5
2382 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2383 variable to specify a compiler." >&2;}
2384 { (exit 1); exit 1; }; }
2385 fi
2386
2387
2388
2389 # Check whether --with-pkg-config-prog was given.
2390 if test "${with_pkg_config_prog+set}" = set; then
2391 withval=$with_pkg_config_prog;
2392 fi
2393
2394 if test "X${with_pkg_config_prog}" != X; then
2395 if test "${with_pkg_config_prog}" != yes; then
2396 PKG_CONFIG="${with_pkg_config_prog}"
2397 fi
2398 fi
2399
2400 CRT_DIR=
2401
2402 # Check whether --with-crt-dir was given.
2403 if test "${with_crt_dir+set}" = set; then
2404 withval=$with_crt_dir;
2405 fi
2406
2407 CRT_DIR="${with_crt_dir}"
2408
2409
2410 # Check whether --with-gnustep-conf was given.
2411 if test "${with_gnustep_conf+set}" = set; then
2412 withval=$with_gnustep_conf;
2413 fi
2414
2415 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2416 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2417 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2418 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2419
2420 # Check whether --enable-ns-self-contained was given.
2421 if test "${enable_ns_self_contained+set}" = set; then
2422 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2423 else
2424 EN_NS_SELF_CONTAINED=yes
2425 fi
2426
2427
2428 # Check whether --enable-asserts was given.
2429 if test "${enable_asserts+set}" = set; then
2430 enableval=$enable_asserts; USE_XASSERTS=$enableval
2431 else
2432 USE_XASSERTS=no
2433 fi
2434
2435
2436 # Check whether --enable-maintainer-mode was given.
2437 if test "${enable_maintainer_mode+set}" = set; then
2438 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2439 else
2440 USE_MAINTAINER_MODE=no
2441 fi
2442
2443 if test $USE_MAINTAINER_MODE = yes; then
2444 MAINT=
2445 else
2446 MAINT=#
2447 fi
2448
2449
2450 # Check whether --enable-locallisppath was given.
2451 if test "${enable_locallisppath+set}" = set; then
2452 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2453 locallisppath=
2454 elif test "${enableval}" != "yes"; then
2455 locallisppath=${enableval}
2456 fi
2457 fi
2458
2459
2460 # Check whether --enable-checking was given.
2461 if test "${enable_checking+set}" = set; then
2462 enableval=$enable_checking; ac_checking_flags="${enableval}"
2463 fi
2464
2465 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2466 for check in $ac_checking_flags
2467 do
2468 case $check in
2469 # these set all the flags to specific states
2470 yes) ac_enable_checking=1 ;;
2471 no) ac_enable_checking= ;
2472 ac_gc_check_stringbytes= ;
2473 ac_gc_check_string_overrun= ;
2474 ac_gc_check_string_free_list= ;
2475 ac_xmalloc_overrun= ;
2476 ac_gc_check_cons_list= ;;
2477 all) ac_enable_checking=1 ;
2478 ac_gc_check_stringbytes=1 ;
2479 ac_gc_check_string_overrun=1 ;
2480 ac_gc_check_string_free_list=1 ;
2481 ac_xmalloc_overrun=1 ;
2482 ac_gc_check_cons_list=1 ;;
2483 # these enable particular checks
2484 stringbytes) ac_gc_check_stringbytes=1 ;;
2485 stringoverrun) ac_gc_check_string_overrun=1 ;;
2486 stringfreelist) ac_gc_check_string_free_list=1 ;;
2487 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2488 conslist) ac_gc_check_cons_list=1 ;;
2489 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2490 $as_echo "$as_me: error: unknown check category $check" >&2;}
2491 { (exit 1); exit 1; }; } ;;
2492 esac
2493 done
2494 IFS="$ac_save_IFS"
2495
2496 if test x$ac_enable_checking != x ; then
2497
2498 cat >>confdefs.h <<\_ACEOF
2499 #define ENABLE_CHECKING 1
2500 _ACEOF
2501
2502 fi
2503 if test x$ac_gc_check_stringbytes != x ; then
2504
2505 cat >>confdefs.h <<\_ACEOF
2506 #define GC_CHECK_STRING_BYTES 1
2507 _ACEOF
2508
2509 fi
2510 if test x$ac_gc_check_stringoverrun != x ; then
2511
2512 cat >>confdefs.h <<\_ACEOF
2513 #define GC_CHECK_STRING_OVERRUN 1
2514 _ACEOF
2515
2516 fi
2517 if test x$ac_gc_check_string_free_list != x ; then
2518
2519 cat >>confdefs.h <<\_ACEOF
2520 #define GC_CHECK_STRING_FREE_LIST 1
2521 _ACEOF
2522
2523 fi
2524 if test x$ac_xmalloc_overrun != x ; then
2525
2526 cat >>confdefs.h <<\_ACEOF
2527 #define XMALLOC_OVERRUN_CHECK 1
2528 _ACEOF
2529
2530 fi
2531 if test x$ac_gc_check_cons_list != x ; then
2532
2533 cat >>confdefs.h <<\_ACEOF
2534 #define GC_CHECK_CONS_LIST 1
2535 _ACEOF
2536
2537 fi
2538
2539 # Check whether --enable-profiling was given.
2540 if test "${enable_profiling+set}" = set; then
2541 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2542 fi
2543
2544 if test x$ac_enable_profiling != x ; then
2545 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2546 PROFILING_LDFLAGS="-pg"
2547 else
2548 PROFILING_CFLAGS=
2549 PROFILING_LDFLAGS=
2550 fi
2551
2552 # Check whether --enable-autodepend was given.
2553 if test "${enable_autodepend+set}" = set; then
2554 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2555 else
2556 ac_enable_autodepend=yes
2557 fi
2558
2559
2560 #### Make srcdir absolute, if it isn't already. It's important to
2561 #### avoid running the path through pwd unnecessarily, since pwd can
2562 #### give you automounter prefixes, which can go away. We do all this
2563 #### so Emacs can find its files when run uninstalled.
2564 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2565 unset CDPATH
2566 case "${srcdir}" in
2567 /* ) ;;
2568 . )
2569 ## We may be able to use the $PWD environment variable to make this
2570 ## absolute. But sometimes PWD is inaccurate.
2571 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2572 ## but that tested only for a well-formed and valid PWD,
2573 ## it did not object when PWD was well-formed and valid but just wrong.
2574 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2575 then
2576 srcdir="$PWD"
2577 else
2578 srcdir="`(cd ${srcdir}; pwd)`"
2579 fi
2580 ;;
2581 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2582 esac
2583
2584 #### Check if the source directory already has a configured system in it.
2585 if test `pwd` != `(cd ${srcdir} && pwd)` \
2586 && test -f "${srcdir}/src/config.h" ; then
2587 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2588 as a build directory right now; it has been configured in its own
2589 right. To configure in another directory as well, you MUST
2590 use GNU make. If you do not have GNU make, then you must
2591 now do \`make distclean' in ${srcdir},
2592 and then run $0 again." >&5
2593 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2594 as a build directory right now; it has been configured in its own
2595 right. To configure in another directory as well, you MUST
2596 use GNU make. If you do not have GNU make, then you must
2597 now do \`make distclean' in ${srcdir},
2598 and then run $0 again." >&2;}
2599 fi
2600
2601 #### Given the configuration name, set machfile and opsysfile to the
2602 #### names of the m/*.h and s/*.h files we should use.
2603
2604 ### Canonicalize the configuration name.
2605
2606 ac_aux_dir=
2607 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2608 if test -f "$ac_dir/install-sh"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/install-sh -c"
2611 break
2612 elif test -f "$ac_dir/install.sh"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/install.sh -c"
2615 break
2616 elif test -f "$ac_dir/shtool"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/shtool install -c"
2619 break
2620 fi
2621 done
2622 if test -z "$ac_aux_dir"; then
2623 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2624 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2625 { (exit 1); exit 1; }; }
2626 fi
2627
2628 # These three variables are undocumented and unsupported,
2629 # and are intended to be withdrawn in a future Autoconf release.
2630 # They can cause serious problems if a builder's source tree is in a directory
2631 # whose full name contains unusual characters.
2632 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2633 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2634 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2635
2636
2637 # Make sure we can run config.sub.
2638 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2639 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2640 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2641 { (exit 1); exit 1; }; }
2642
2643 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2644 $as_echo_n "checking build system type... " >&6; }
2645 if test "${ac_cv_build+set}" = set; then
2646 $as_echo_n "(cached) " >&6
2647 else
2648 ac_build_alias=$build_alias
2649 test "x$ac_build_alias" = x &&
2650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2651 test "x$ac_build_alias" = x &&
2652 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2653 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2654 { (exit 1); exit 1; }; }
2655 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2656 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2657 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2658 { (exit 1); exit 1; }; }
2659
2660 fi
2661 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2664 *-*-*) ;;
2665 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2666 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2667 { (exit 1); exit 1; }; };;
2668 esac
2669 build=$ac_cv_build
2670 ac_save_IFS=$IFS; IFS='-'
2671 set x $ac_cv_build
2672 shift
2673 build_cpu=$1
2674 build_vendor=$2
2675 shift; shift
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2678 build_os=$*
2679 IFS=$ac_save_IFS
2680 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681
2682
2683 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2684 $as_echo_n "checking host system type... " >&6; }
2685 if test "${ac_cv_host+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test "x$host_alias" = x; then
2689 ac_cv_host=$ac_cv_build
2690 else
2691 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2692 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2693 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2694 { (exit 1); exit 1; }; }
2695 fi
2696
2697 fi
2698 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2699 $as_echo "$ac_cv_host" >&6; }
2700 case $ac_cv_host in
2701 *-*-*) ;;
2702 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2703 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2704 { (exit 1); exit 1; }; };;
2705 esac
2706 host=$ac_cv_host
2707 ac_save_IFS=$IFS; IFS='-'
2708 set x $ac_cv_host
2709 shift
2710 host_cpu=$1
2711 host_vendor=$2
2712 shift; shift
2713 # Remember, the first character of IFS is used to create $*,
2714 # except with old shells:
2715 host_os=$*
2716 IFS=$ac_save_IFS
2717 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2718
2719
2720 canonical=$host
2721 configuration=${host_alias-${build_alias-$host}}
2722
2723
2724
2725 ### If you add support for a new configuration, add code to this
2726 ### switch statement to recognize your configuration name and select
2727 ### the appropriate operating system and machine description files.
2728
2729 ### You would hope that you could choose an m/*.h file pretty much
2730 ### based on the machine portion of the configuration name, and an s-
2731 ### file based on the operating system portion. However, it turns out
2732 ### that each m/*.h file is pretty manufacturer-specific - for
2733 ### example mips.h is MIPS
2734 ### So we basically have to have a special case for each
2735 ### configuration name.
2736 ###
2737 ### As far as handling version numbers on operating systems is
2738 ### concerned, make sure things will fail in a fixable way. If
2739 ### /etc/MACHINES doesn't say anything about version numbers, be
2740 ### prepared to handle anything reasonably. If version numbers
2741 ### matter, be sure /etc/MACHINES says something about it.
2742 ###
2743 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2744 ### "System V Release 4"; he writes, "The old convention encouraged
2745 ### confusion between `system' and `release' levels'."
2746
2747 machine='' opsys='' unported=no
2748 case "${canonical}" in
2749
2750 ## FreeBSD ports
2751 *-*-freebsd* )
2752 opsys=freebsd
2753 case "${canonical}" in
2754 alpha*-*-freebsd*) machine=alpha ;;
2755 arm*-*-freebsd*) machine=arm ;;
2756 ia64-*-freebsd*) machine=ia64 ;;
2757 sparc-*-freebsd*) machine=sparc ;;
2758 sparc64-*-freebsd*) machine=sparc ;;
2759 powerpc-*-freebsd*) machine=macppc ;;
2760 i[3456]86-*-freebsd*) machine=intel386 ;;
2761 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2762 esac
2763 ;;
2764
2765 ## FreeBSD kernel + glibc based userland
2766 *-*-kfreebsd*gnu* )
2767 opsys=gnu-kfreebsd
2768 case "${canonical}" in
2769 alpha*-*-kfreebsd*) machine=alpha ;;
2770 ia64-*-kfreebsd*) machine=ia64 ;;
2771 sparc-*-kfreebsd*) machine=sparc ;;
2772 sparc64-*-kfreebsd*) machine=sparc ;;
2773 powerpc-*-kfreebsd*) machine=macppc ;;
2774 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2775 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2776 esac
2777 ;;
2778
2779 ## NetBSD ports
2780 *-*-netbsd* )
2781 opsys=netbsd
2782 if test -f /usr/lib/crti.o; then
2783
2784 cat >>confdefs.h <<\_ACEOF
2785 #define HAVE_CRTIN /**/
2786 _ACEOF
2787
2788 fi
2789
2790 case "${canonical}" in
2791 alpha*-*-netbsd*) machine=alpha ;;
2792 i[3456]86-*-netbsd*) machine=intel386 ;;
2793 mips-*-netbsd*) machine=mips ;;
2794 mipsel-*-netbsd*) machine=mips ;;
2795 mipseb-*-netbsd*) machine=mips ;;
2796 powerpc-*-netbsd*) machine=macppc ;;
2797 sparc*-*-netbsd*) machine=sparc ;;
2798 vax-*-netbsd*) machine=vax ;;
2799 arm-*-netbsd*) machine=arm ;;
2800 x86_64-*-netbsd*) machine=amdx86-64 ;;
2801 hppa-*-netbsd*) machine=hp800 ;;
2802 m68k-*-netbsd*) machine=m68k ;;
2803 esac
2804 ;;
2805
2806 ## OpenBSD ports
2807 *-*-openbsd* )
2808 opsys=openbsd
2809 case "${canonical}" in
2810 alpha*-*-openbsd*) machine=alpha ;;
2811 arm-*-openbsd*) machine=arm ;;
2812 i386-*-openbsd*) machine=intel386 ;;
2813 powerpc-*-openbsd*) machine=macppc ;;
2814 sparc*-*-openbsd*) machine=sparc ;;
2815 vax-*-openbsd*) machine=vax ;;
2816 x86_64-*-openbsd*) machine=amdx86-64 ;;
2817 hppa-*-openbsd*) machine=hp800 ;;
2818 esac
2819 ;;
2820
2821 alpha*-*-linux-gnu* )
2822 machine=alpha opsys=gnu-linux
2823 ;;
2824
2825 arm*-*-linux-gnu* )
2826 machine=arm opsys=gnu-linux
2827 ;;
2828
2829 ## Apple Darwin / Mac OS X
2830 *-apple-darwin* )
2831 case "${canonical}" in
2832 i[3456]86-* ) machine=intel386 ;;
2833 powerpc-* ) machine=macppc ;;
2834 x86_64-* ) machine=amdx86-64 ;;
2835 * ) unported=yes ;;
2836 esac
2837 opsys=darwin
2838 # Define CPP as follows to make autoconf work correctly.
2839 CPP="${CC-cc} -E -no-cpp-precomp"
2840 # Use fink packages if available.
2841 if test -d /sw/include && test -d /sw/lib; then
2842 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2843 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2844 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2845 fi
2846 ;;
2847
2848 ## HP 9000 series 700 and 800, running HP/UX
2849 hppa*-hp-hpux10.2* )
2850 machine=hp800 opsys=hpux10-20
2851 ;;
2852 hppa*-hp-hpux1[1-9]* )
2853 machine=hp800 opsys=hpux11
2854 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2855 ;;
2856
2857 hppa*-*-linux-gnu* )
2858 machine=hp800 opsys=gnu-linux
2859 ;;
2860
2861 ## IBM machines
2862 s390-*-linux-gnu* )
2863 machine=ibms390 opsys=gnu-linux
2864 ;;
2865 s390x-*-linux-gnu* )
2866 machine=ibms390x opsys=gnu-linux
2867 ;;
2868 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2869 machine=ibmrs6000 opsys=aix4-2
2870 ;;
2871 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2872 machine=ibmrs6000 opsys=aix4-2
2873 ;;
2874 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2875 machine=ibmrs6000 opsys=aix4-2
2876 ;;
2877 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2878 machine=ibmrs6000 opsys=aix4-2
2879 ;;
2880
2881 ## Macintosh PowerPC
2882 powerpc*-*-linux-gnu* )
2883 machine=macppc opsys=gnu-linux
2884 ;;
2885
2886 ## Silicon Graphics machines
2887 ## Iris 4D
2888 mips-sgi-irix6.5 )
2889 machine=iris4d opsys=irix6-5
2890 # Without defining _LANGUAGE_C, things get masked out in the headers
2891 # so that, for instance, grepping for `free' in stdlib.h fails and
2892 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2893 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2894 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2895 ;;
2896
2897 ## Suns
2898 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2899 machine=sparc opsys=gnu-linux
2900 ;;
2901
2902 *-sun-solaris* \
2903 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2904 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2905 case "${canonical}" in
2906 i[3456]86-*-* ) machine=intel386 ;;
2907 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2908 sparc* ) machine=sparc ;;
2909 * ) unported=yes ;;
2910 esac
2911 case "${canonical}" in
2912 *-sunos5.6* | *-solaris2.6* )
2913 opsys=sol2-6
2914 NON_GNU_CPP=/usr/ccs/lib/cpp
2915 RANLIB="ar -ts"
2916 ;;
2917 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2918 opsys=sol2-6
2919 emacs_check_sunpro_c=yes
2920 NON_GNU_CPP=/usr/ccs/lib/cpp
2921 ;;
2922 *-sunos5* | *-solaris* )
2923 opsys=sol2-10
2924 emacs_check_sunpro_c=yes
2925 NON_GNU_CPP=/usr/ccs/lib/cpp
2926 ;;
2927 esac
2928 ## Watch out for a compiler that we know will not work.
2929 case "${canonical}" in
2930 *-solaris* | *-sunos5* )
2931 if [ "x$CC" = x/usr/ucb/cc ]; then
2932 ## /usr/ucb/cc doesn't work;
2933 ## we should find some other compiler that does work.
2934 unset CC
2935 fi
2936 ;;
2937 *) ;;
2938 esac
2939 ;;
2940
2941 ## IA-64
2942 ia64*-*-linux* )
2943 machine=ia64 opsys=gnu-linux
2944 ;;
2945
2946 ## Intel 386 machines where we don't care about the manufacturer
2947 i[3456]86-*-* )
2948 machine=intel386
2949 case "${canonical}" in
2950 *-cygwin ) opsys=cygwin ;;
2951 *-darwin* ) opsys=darwin
2952 CPP="${CC-cc} -E -no-cpp-precomp"
2953 ;;
2954 *-linux-gnu* ) opsys=gnu-linux ;;
2955 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2956 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2957 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2958 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2959 esac
2960 ;;
2961
2962 ## m68k Linux-based GNU system
2963 m68k-*-linux-gnu* )
2964 machine=m68k opsys=gnu-linux
2965 ;;
2966
2967 ## Mips Linux-based GNU system
2968 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2969 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2970 machine=mips opsys=gnu-linux
2971 ;;
2972
2973 ## AMD x86-64 Linux-based GNU system
2974 x86_64-*-linux-gnu* )
2975 machine=amdx86-64 opsys=gnu-linux
2976 ;;
2977
2978 ## Tensilica Xtensa Linux-based GNU system
2979 xtensa*-*-linux-gnu* )
2980 machine=xtensa opsys=gnu-linux
2981 ;;
2982
2983 ## SuperH Linux-based GNU system
2984 sh[34]*-*-linux-gnu* )
2985 machine=sh3 opsys=gnu-linux
2986 ;;
2987
2988 * )
2989 unported=yes
2990 ;;
2991 esac
2992
2993 ### If the code above didn't choose an operating system, just choose
2994 ### an operating system based on the configuration name. You really
2995 ### only want to use this when you have no idea what the right
2996 ### operating system is; if you know what operating systems a machine
2997 ### runs, it's cleaner to make it explicit in the case statement
2998 ### above.
2999 if test x"${opsys}" = x; then
3000 case "${canonical}" in
3001 *-gnu* ) opsys=gnu ;;
3002 * )
3003 unported=yes
3004 ;;
3005 esac
3006 fi
3007
3008
3009
3010 if test $unported = yes; then
3011 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3012 Check \`etc/MACHINES' for recognized configuration names." >&5
3013 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3014 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018 machfile="m/${machine}.h"
3019 opsysfile="s/${opsys}.h"
3020
3021
3022 #### Choose a compiler.
3023 test -n "$CC" && cc_specified=yes
3024
3025 # Save the value of CFLAGS that the user specified.
3026 SPECIFIED_CFLAGS="$CFLAGS"
3027
3028 ac_ext=c
3029 ac_cpp='$CPP $CPPFLAGS'
3030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_CC+set}" = set; then
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3065 else
3066 { $as_echo "$as_me:$LINENO: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070
3071 fi
3072 if test -z "$ac_cv_prog_CC"; then
3073 ac_ct_CC=$CC
3074 # Extract the first word of "gcc", so it can be a program name with args.
3075 set dummy gcc; ac_word=$2
3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CC="gcc"
3092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3105 else
3106 { $as_echo "$as_me:$LINENO: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110 if test "x$ac_ct_CC" = x; then
3111 CC=""
3112 else
3113 case $cross_compiling:$ac_tool_warned in
3114 yes:)
3115 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3116 whose name does not start with the host triplet. If you think this
3117 configuration is useful to you, please write to autoconf@gnu.org." >&5
3118 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3119 whose name does not start with the host triplet. If you think this
3120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123 CC=$ac_ct_CC
3124 fi
3125 else
3126 CC="$ac_cv_prog_CC"
3127 fi
3128
3129 if test -z "$CC"; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}cc; ac_word=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_CC="${ac_tool_prefix}cc"
3149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 fi
3169 fi
3170 if test -z "$CC"; then
3171 # Extract the first word of "cc", so it can be a program name with args.
3172 set dummy cc; ac_word=$2
3173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_CC+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 ac_prog_rejected=no
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3190 ac_prog_rejected=yes
3191 continue
3192 fi
3193 ac_cv_prog_CC="cc"
3194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 if test $ac_prog_rejected = yes; then
3202 # We found a bogon in the path, so make sure we never use it.
3203 set dummy $ac_cv_prog_CC
3204 shift
3205 if test $# != 0; then
3206 # We chose a different compiler from the bogus one.
3207 # However, it has the same basename, so the bogon will be chosen
3208 # first if we set CC to just the basename; use the full file name.
3209 shift
3210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3211 fi
3212 fi
3213 fi
3214 fi
3215 CC=$ac_cv_prog_CC
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3219 else
3220 { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225 fi
3226 if test -z "$CC"; then
3227 if test -n "$ac_tool_prefix"; then
3228 for ac_prog in cl.exe
3229 do
3230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_CC+set}" = set; then
3235 $as_echo_n "(cached) " >&6
3236 else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3250 fi
3251 done
3252 done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262 { $as_echo "$as_me:$LINENO: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267 test -n "$CC" && break
3268 done
3269 fi
3270 if test -z "$CC"; then
3271 ac_ct_CC=$CC
3272 for ac_prog in cl.exe
3273 do
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy $ac_prog; ac_word=$2
3276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_ac_ct_CC="$ac_prog"
3292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3305 else
3306 { $as_echo "$as_me:$LINENO: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311 test -n "$ac_ct_CC" && break
3312 done
3313
3314 if test "x$ac_ct_CC" = x; then
3315 CC=""
3316 else
3317 case $cross_compiling:$ac_tool_warned in
3318 yes:)
3319 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3320 whose name does not start with the host triplet. If you think this
3321 configuration is useful to you, please write to autoconf@gnu.org." >&5
3322 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3323 whose name does not start with the host triplet. If you think this
3324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3325 ac_tool_warned=yes ;;
3326 esac
3327 CC=$ac_ct_CC
3328 fi
3329 fi
3330
3331 fi
3332
3333
3334 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335 See \`config.log' for more details." >&5
3336 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&2;}
3338 { (exit 1); exit 1; }; }
3339
3340 # Provide some information about the compiler.
3341 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3342 set X $ac_compile
3343 ac_compiler=$2
3344 { (ac_try="$ac_compiler --version >&5"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_compiler --version >&5") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (ac_try="$ac_compiler -v >&5"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler -v >&5") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 { (ac_try="$ac_compiler -V >&5"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -V >&5") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384
3385 int
3386 main ()
3387 {
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 ac_clean_files_save=$ac_clean_files
3394 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3395 # Try to create an executable without -o first, disregard a.out.
3396 # It will help us diagnose broken compilers, and finding out an intuition
3397 # of exeext.
3398 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3399 $as_echo_n "checking for C compiler default output file name... " >&6; }
3400 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3401
3402 # The possible output files:
3403 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3404
3405 ac_rmfiles=
3406 for ac_file in $ac_files
3407 do
3408 case $ac_file in
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3411 esac
3412 done
3413 rm -f $ac_rmfiles
3414
3415 if { (ac_try="$ac_link_default"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3421 $as_echo "$ac_try_echo") >&5
3422 (eval "$ac_link_default") 2>&5
3423 ac_status=$?
3424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; then
3426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3427 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3428 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3429 # so that the user can short-circuit this test for compilers unknown to
3430 # Autoconf.
3431 for ac_file in $ac_files ''
3432 do
3433 test -f "$ac_file" || continue
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3436 ;;
3437 [ab].out )
3438 # We found the default executable, but exeext='' is most
3439 # certainly right.
3440 break;;
3441 *.* )
3442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3443 then :; else
3444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 fi
3446 # We set ac_cv_exeext here because the later test for it is not
3447 # safe: cross compilers may not add the suffix if given an `-o'
3448 # argument, so we may need to know it at that point already.
3449 # Even if this section looks crufty: it has the advantage of
3450 # actually working.
3451 break;;
3452 * )
3453 break;;
3454 esac
3455 done
3456 test "$ac_cv_exeext" = no && ac_cv_exeext=
3457
3458 else
3459 ac_file=''
3460 fi
3461
3462 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3463 $as_echo "$ac_file" >&6; }
3464 if test -z "$ac_file"; then
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3469 See \`config.log' for more details." >&5
3470 $as_echo "$as_me: error: C compiler cannot create executables
3471 See \`config.log' for more details." >&2;}
3472 { (exit 77); exit 77; }; }
3473 fi
3474
3475 ac_exeext=$ac_cv_exeext
3476
3477 # Check that the compiler produces executables we can run. If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3480 $as_echo_n "checking whether the C compiler works... " >&6; }
3481 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3482 # If not cross compiling, check that we can run a simple program.
3483 if test "$cross_compiling" != yes; then
3484 if { ac_try='./$ac_file'
3485 { (case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3490 $as_echo "$ac_try_echo") >&5
3491 (eval "$ac_try") 2>&5
3492 ac_status=$?
3493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 cross_compiling=no
3496 else
3497 if test "$cross_compiling" = maybe; then
3498 cross_compiling=yes
3499 else
3500 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3501 If you meant to cross compile, use \`--host'.
3502 See \`config.log' for more details." >&5
3503 $as_echo "$as_me: error: cannot run C compiled programs.
3504 If you meant to cross compile, use \`--host'.
3505 See \`config.log' for more details." >&2;}
3506 { (exit 1); exit 1; }; }
3507 fi
3508 fi
3509 fi
3510 { $as_echo "$as_me:$LINENO: result: yes" >&5
3511 $as_echo "yes" >&6; }
3512
3513 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3514 ac_clean_files=$ac_clean_files_save
3515 # Check that the compiler produces executables we can run. If not, either
3516 # the compiler is broken, or we cross compile.
3517 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3518 $as_echo_n "checking whether we are cross compiling... " >&6; }
3519 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3520 $as_echo "$cross_compiling" >&6; }
3521
3522 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3523 $as_echo_n "checking for suffix of executables... " >&6; }
3524 if { (ac_try="$ac_link"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530 $as_echo "$ac_try_echo") >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; then
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537 # work properly (i.e., refer to `conftest.exe'), while it won't with
3538 # `rm'.
3539 for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 break;;
3545 * ) break;;
3546 esac
3547 done
3548 else
3549 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3550 See \`config.log' for more details." >&5
3551 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details." >&2;}
3553 { (exit 1); exit 1; }; }
3554 fi
3555
3556 rm -f conftest$ac_cv_exeext
3557 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
3559
3560 rm -f conftest.$ac_ext
3561 EXEEXT=$ac_cv_exeext
3562 ac_exeext=$EXEEXT
3563 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3564 $as_echo_n "checking for suffix of object files... " >&6; }
3565 if test "${ac_cv_objext+set}" = set; then
3566 $as_echo_n "(cached) " >&6
3567 else
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.o conftest.obj
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3590 $as_echo "$ac_try_echo") >&5
3591 (eval "$ac_compile") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; then
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 break;;
3601 esac
3602 done
3603 else
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3608 See \`config.log' for more details." >&5
3609 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details." >&2;}
3611 { (exit 1); exit 1; }; }
3612 fi
3613
3614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3615 fi
3616 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3617 $as_echo "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3619 ac_objext=$OBJEXT
3620 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3621 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631
3632 int
3633 main ()
3634 {
3635 #ifndef __GNUC__
3636 choke me
3637 #endif
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (ac_try="$ac_compile"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3650 $as_echo "$ac_try_echo") >&5
3651 (eval "$ac_compile") 2>conftest.er1
3652 ac_status=$?
3653 grep -v '^ *+' conftest.er1 >conftest.err
3654 rm -f conftest.er1
3655 cat conftest.err >&5
3656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } && {
3658 test -z "$ac_c_werror_flag" ||
3659 test ! -s conftest.err
3660 } && test -s conftest.$ac_objext; then
3661 ac_compiler_gnu=yes
3662 else
3663 $as_echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 ac_compiler_gnu=no
3667 fi
3668
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3671
3672 fi
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3674 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3675 if test $ac_compiler_gnu = yes; then
3676 GCC=yes
3677 else
3678 GCC=
3679 fi
3680 ac_test_CFLAGS=${CFLAGS+set}
3681 ac_save_CFLAGS=$CFLAGS
3682 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3683 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3684 if test "${ac_cv_prog_cc_g+set}" = set; then
3685 $as_echo_n "(cached) " >&6
3686 else
3687 ac_save_c_werror_flag=$ac_c_werror_flag
3688 ac_c_werror_flag=yes
3689 ac_cv_prog_cc_g=no
3690 CFLAGS="-g"
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 rm -f conftest.$ac_objext
3707 if { (ac_try="$ac_compile"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3713 $as_echo "$ac_try_echo") >&5
3714 (eval "$ac_compile") 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } && {
3721 test -z "$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 } && test -s conftest.$ac_objext; then
3724 ac_cv_prog_cc_g=yes
3725 else
3726 $as_echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 CFLAGS=""
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736
3737 int
3738 main ()
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3747 case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3752 $as_echo "$ac_try_echo") >&5
3753 (eval "$ac_compile") 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } && {
3760 test -z "$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3762 } && test -s conftest.$ac_objext; then
3763 :
3764 else
3765 $as_echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3769 CFLAGS="-g"
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776
3777 int
3778 main ()
3779 {
3780
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3792 $as_echo "$ac_try_echo") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.$ac_objext; then
3803 ac_cv_prog_cc_g=yes
3804 else
3805 $as_echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808
3809 fi
3810
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 fi
3813
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_c_werror_flag=$ac_save_c_werror_flag
3819 fi
3820 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3821 $as_echo "$ac_cv_prog_cc_g" >&6; }
3822 if test "$ac_test_CFLAGS" = set; then
3823 CFLAGS=$ac_save_CFLAGS
3824 elif test $ac_cv_prog_cc_g = yes; then
3825 if test "$GCC" = yes; then
3826 CFLAGS="-g -O2"
3827 else
3828 CFLAGS="-g"
3829 fi
3830 else
3831 if test "$GCC" = yes; then
3832 CFLAGS="-O2"
3833 else
3834 CFLAGS=
3835 fi
3836 fi
3837 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3838 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3839 if test "${ac_cv_prog_cc_c89+set}" = set; then
3840 $as_echo_n "(cached) " >&6
3841 else
3842 ac_cv_prog_cc_c89=no
3843 ac_save_CC=$CC
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <stdarg.h>
3851 #include <stdio.h>
3852 #include <sys/types.h>
3853 #include <sys/stat.h>
3854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3855 struct buf { int x; };
3856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857 static char *e (p, i)
3858 char **p;
3859 int i;
3860 {
3861 return p[i];
3862 }
3863 static char *f (char * (*g) (char **, int), char **p, ...)
3864 {
3865 char *s;
3866 va_list v;
3867 va_start (v,p);
3868 s = g (p, va_arg (v,int));
3869 va_end (v);
3870 return s;
3871 }
3872
3873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3874 function prototypes and stuff, but not '\xHH' hex character constants.
3875 These don't provoke an error unfortunately, instead are silently treated
3876 as 'x'. The following induces an error, until -std is added to get
3877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3878 array size at least. It's necessary to write '\x00'==0 to get something
3879 that's true only with -std. */
3880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3881
3882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3883 inside strings and character constants. */
3884 #define FOO(x) 'x'
3885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3886
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 int argc;
3892 char **argv;
3893 int
3894 main ()
3895 {
3896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3903 do
3904 CC="$ac_save_CC $ac_arg"
3905 rm -f conftest.$ac_objext
3906 if { (ac_try="$ac_compile"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3912 $as_echo "$ac_try_echo") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_prog_cc_c89=$ac_arg
3924 else
3925 $as_echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928
3929 fi
3930
3931 rm -f core conftest.err conftest.$ac_objext
3932 test "x$ac_cv_prog_cc_c89" != "xno" && break
3933 done
3934 rm -f conftest.$ac_ext
3935 CC=$ac_save_CC
3936
3937 fi
3938 # AC_CACHE_VAL
3939 case "x$ac_cv_prog_cc_c89" in
3940 x)
3941 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3942 $as_echo "none needed" >&6; } ;;
3943 xno)
3944 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3945 $as_echo "unsupported" >&6; } ;;
3946 *)
3947 CC="$CC $ac_cv_prog_cc_c89"
3948 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950 esac
3951
3952
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959
3960 # On Suns, sometimes $CPP names a directory.
3961 if test -n "$CPP" && test -d "$CPP"; then
3962 CPP=
3963 fi
3964
3965 ## If not using gcc, and on Solaris, and no CPP specified, see if
3966 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3967 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3968 test x"$CPP" = x; then
3969 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3970 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3971
3972 if test "${emacs_cv_sunpro_c+set}" = set; then
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981
3982 int
3983 main ()
3984 {
3985 #ifndef __SUNPRO_C
3986 fail;
3987 #endif
3988
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext conftest$ac_exeext
3994 if { (ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4000 $as_echo "$ac_try_echo") >&5
4001 (eval "$ac_link") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest$ac_exeext && {
4011 test "$cross_compiling" = yes ||
4012 $as_test_x conftest$ac_exeext
4013 }; then
4014 emacs_cv_sunpro_c=yes
4015 else
4016 $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 emacs_cv_sunpro_c=no
4020 fi
4021
4022 rm -rf conftest.dSYM
4023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4024 conftest$ac_exeext conftest.$ac_ext
4025 fi
4026
4027 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4028 $as_echo "$emacs_cv_sunpro_c" >&6; }
4029
4030 if test x"$emacs_cv_sunpro_c" = xyes; then
4031 NON_GNU_CPP="$CC -E -Xs"
4032 fi
4033 fi
4034
4035 #### Some systems specify a CPP to use unless we are using GCC.
4036 #### Now that we know whether we are using GCC, we can decide whether
4037 #### to use that one.
4038 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4039 then
4040 CPP="$NON_GNU_CPP"
4041 fi
4042
4043 #### Some systems specify a CC to use unless we are using GCC.
4044 #### Now that we know whether we are using GCC, we can decide whether
4045 #### to use that one.
4046 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4047 test x$cc_specified != xyes
4048 then
4049 CC="$NON_GNU_CC"
4050 fi
4051
4052 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4053 then
4054 CC="$CC $GCC_TEST_OPTIONS"
4055 fi
4056
4057 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4058 then
4059 CC="$CC $NON_GCC_TEST_OPTIONS"
4060 fi
4061
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4068 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4069 # On Suns, sometimes $CPP names a directory.
4070 if test -n "$CPP" && test -d "$CPP"; then
4071 CPP=
4072 fi
4073 if test -z "$CPP"; then
4074 if test "${ac_cv_prog_CPP+set}" = set; then
4075 $as_echo_n "(cached) " >&6
4076 else
4077 # Double quotes because CPP needs to be expanded
4078 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4079 do
4080 ac_preproc_ok=false
4081 for ac_c_preproc_warn_flag in '' yes
4082 do
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100 Syntax error
4101 _ACEOF
4102 if { (ac_try="$ac_cpp conftest.$ac_ext"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev/null && {
4116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 }; then
4119 :
4120 else
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 # Broken: fails on valid input.
4125 continue
4126 fi
4127
4128 rm -f conftest.err conftest.$ac_ext
4129
4130 # OK, works on sane cases. Now check whether nonexistent headers
4131 # can be detected and how.
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4139 _ACEOF
4140 if { (ac_try="$ac_cpp conftest.$ac_ext"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev/null && {
4154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4156 }; then
4157 # Broken: success on invalid input.
4158 continue
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 # Passes both tests.
4164 ac_preproc_ok=:
4165 break
4166 fi
4167
4168 rm -f conftest.err conftest.$ac_ext
4169
4170 done
4171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4172 rm -f conftest.err conftest.$ac_ext
4173 if $ac_preproc_ok; then
4174 break
4175 fi
4176
4177 done
4178 ac_cv_prog_CPP=$CPP
4179
4180 fi
4181 CPP=$ac_cv_prog_CPP
4182 else
4183 ac_cv_prog_CPP=$CPP
4184 fi
4185 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4186 $as_echo "$CPP" >&6; }
4187 ac_preproc_ok=false
4188 for ac_c_preproc_warn_flag in '' yes
4189 do
4190 # Use a header file that comes with gcc, so configuring glibc
4191 # with a fresh cross-compiler works.
4192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4193 # <limits.h> exists even on freestanding compilers.
4194 # On the NeXT, cc -E runs the code through the compiler's parser,
4195 # not just through cpp. "Syntax error" is here to catch this case.
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #ifdef __STDC__
4203 # include <limits.h>
4204 #else
4205 # include <assert.h>
4206 #endif
4207 Syntax error
4208 _ACEOF
4209 if { (ac_try="$ac_cpp conftest.$ac_ext"
4210 case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4215 $as_echo "$ac_try_echo") >&5
4216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } >/dev/null && {
4223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4225 }; then
4226 :
4227 else
4228 $as_echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 # Broken: fails on valid input.
4232 continue
4233 fi
4234
4235 rm -f conftest.err conftest.$ac_ext
4236
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 #include <ac_nonexistent.h>
4246 _ACEOF
4247 if { (ac_try="$ac_cpp conftest.$ac_ext"
4248 case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4253 $as_echo "$ac_try_echo") >&5
4254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } >/dev/null && {
4261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4262 test ! -s conftest.err
4263 }; then
4264 # Broken: success on invalid input.
4265 continue
4266 else
4267 $as_echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 # Passes both tests.
4271 ac_preproc_ok=:
4272 break
4273 fi
4274
4275 rm -f conftest.err conftest.$ac_ext
4276
4277 done
4278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279 rm -f conftest.err conftest.$ac_ext
4280 if $ac_preproc_ok; then
4281 :
4282 else
4283 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4284 See \`config.log' for more details." >&5
4285 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4286 See \`config.log' for more details." >&2;}
4287 { (exit 1); exit 1; }; }
4288 fi
4289
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296
4297 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4298 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4299 if test "${ac_cv_path_GREP+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -z "$GREP"; then
4303 ac_path_GREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in grep ggrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4314 # Check for GNU ac_path_GREP and select it if it is found.
4315 # Check for GNU $ac_path_GREP
4316 case `"$ac_path_GREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4319 *)
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4323 do
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'GREP' >> "conftest.nl"
4328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 ac_count=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_GREP="$ac_path_GREP"
4334 ac_path_GREP_max=$ac_count
4335 fi
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4341
4342 $ac_path_GREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_GREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4351 fi
4352 else
4353 ac_cv_path_GREP=$GREP
4354 fi
4355
4356 fi
4357 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4358 $as_echo "$ac_cv_path_GREP" >&6; }
4359 GREP="$ac_cv_path_GREP"
4360
4361
4362 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4363 $as_echo_n "checking for egrep... " >&6; }
4364 if test "${ac_cv_path_EGREP+set}" = set; then
4365 $as_echo_n "(cached) " >&6
4366 else
4367 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4368 then ac_cv_path_EGREP="$GREP -E"
4369 else
4370 if test -z "$EGREP"; then
4371 ac_path_EGREP_found=false
4372 # Loop through the user's path and test for each of PROGNAME-LIST
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375 do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_prog in egrep; do
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4381 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4382 # Check for GNU ac_path_EGREP and select it if it is found.
4383 # Check for GNU $ac_path_EGREP
4384 case `"$ac_path_EGREP" --version 2>&1` in
4385 *GNU*)
4386 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4387 *)
4388 ac_count=0
4389 $as_echo_n 0123456789 >"conftest.in"
4390 while :
4391 do
4392 cat "conftest.in" "conftest.in" >"conftest.tmp"
4393 mv "conftest.tmp" "conftest.in"
4394 cp "conftest.in" "conftest.nl"
4395 $as_echo 'EGREP' >> "conftest.nl"
4396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4398 ac_count=`expr $ac_count + 1`
4399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4400 # Best one so far, save it but keep looking for a better one
4401 ac_cv_path_EGREP="$ac_path_EGREP"
4402 ac_path_EGREP_max=$ac_count
4403 fi
4404 # 10*(2^10) chars as input seems more than enough
4405 test $ac_count -gt 10 && break
4406 done
4407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4408 esac
4409
4410 $ac_path_EGREP_found && break 3
4411 done
4412 done
4413 done
4414 IFS=$as_save_IFS
4415 if test -z "$ac_cv_path_EGREP"; then
4416 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4417 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4418 { (exit 1); exit 1; }; }
4419 fi
4420 else
4421 ac_cv_path_EGREP=$EGREP
4422 fi
4423
4424 fi
4425 fi
4426 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4427 $as_echo "$ac_cv_path_EGREP" >&6; }
4428 EGREP="$ac_cv_path_EGREP"
4429
4430
4431 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4432 $as_echo_n "checking for ANSI C header files... " >&6; }
4433 if test "${ac_cv_header_stdc+set}" = set; then
4434 $as_echo_n "(cached) " >&6
4435 else
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 #include <stdlib.h>
4443 #include <stdarg.h>
4444 #include <string.h>
4445 #include <float.h>
4446
4447 int
4448 main ()
4449 {
4450
4451 ;
4452 return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462 $as_echo "$ac_try_echo") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } && {
4470 test -z "$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4472 } && test -s conftest.$ac_objext; then
4473 ac_cv_header_stdc=yes
4474 else
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_cv_header_stdc=no
4479 fi
4480
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h. */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 #include <string.h>
4492
4493 _ACEOF
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "memchr" >/dev/null 2>&1; then
4496 :
4497 else
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f conftest*
4501
4502 fi
4503
4504 if test $ac_cv_header_stdc = yes; then
4505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 #include <stdlib.h>
4513
4514 _ACEOF
4515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516 $EGREP "free" >/dev/null 2>&1; then
4517 :
4518 else
4519 ac_cv_header_stdc=no
4520 fi
4521 rm -f conftest*
4522
4523 fi
4524
4525 if test $ac_cv_header_stdc = yes; then
4526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4527 if test "$cross_compiling" = yes; then
4528 :
4529 else
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <ctype.h>
4537 #include <stdlib.h>
4538 #if ((' ' & 0x0FF) == 0x020)
4539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4541 #else
4542 # define ISLOWER(c) \
4543 (('a' <= (c) && (c) <= 'i') \
4544 || ('j' <= (c) && (c) <= 'r') \
4545 || ('s' <= (c) && (c) <= 'z'))
4546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4547 #endif
4548
4549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4550 int
4551 main ()
4552 {
4553 int i;
4554 for (i = 0; i < 256; i++)
4555 if (XOR (islower (i), ISLOWER (i))
4556 || toupper (i) != TOUPPER (i))
4557 return 2;
4558 return 0;
4559 }
4560 _ACEOF
4561 rm -f conftest$ac_exeext
4562 if { (ac_try="$ac_link"
4563 case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566 esac
4567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4568 $as_echo "$ac_try_echo") >&5
4569 (eval "$ac_link") 2>&5
4570 ac_status=$?
4571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4578 $as_echo "$ac_try_echo") >&5
4579 (eval "$ac_try") 2>&5
4580 ac_status=$?
4581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 :
4584 else
4585 $as_echo "$as_me: program exited with status $ac_status" >&5
4586 $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 ( exit $ac_status )
4590 ac_cv_header_stdc=no
4591 fi
4592 rm -rf conftest.dSYM
4593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4594 fi
4595
4596
4597 fi
4598 fi
4599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4600 $as_echo "$ac_cv_header_stdc" >&6; }
4601 if test $ac_cv_header_stdc = yes; then
4602
4603 cat >>confdefs.h <<\_ACEOF
4604 #define STDC_HEADERS 1
4605 _ACEOF
4606
4607 fi
4608
4609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4620 inttypes.h stdint.h unistd.h
4621 do
4622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4624 $as_echo_n "checking for $ac_header... " >&6; }
4625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4635
4636 #include <$ac_header>
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4645 $as_echo "$ac_try_echo") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4656 eval "$as_ac_Header=yes"
4657 else
4658 $as_echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 eval "$as_ac_Header=no"
4662 fi
4663
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 fi
4666 ac_res=`eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'`
4668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4669 $as_echo "$ac_res" >&6; }
4670 if test `eval 'as_val=${'$as_ac_Header'}
4671 $as_echo "$as_val"'` = yes; then
4672 cat >>confdefs.h <<_ACEOF
4673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4674 _ACEOF
4675
4676 fi
4677
4678 done
4679
4680
4681
4682 if test "${ac_cv_header_minix_config_h+set}" = set; then
4683 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4684 $as_echo_n "checking for minix/config.h... " >&6; }
4685 if test "${ac_cv_header_minix_config_h+set}" = set; then
4686 $as_echo_n "(cached) " >&6
4687 fi
4688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4689 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4690 else
4691 # Is the header compilable?
4692 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4693 $as_echo_n "checking minix/config.h usability... " >&6; }
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 $ac_includes_default
4701 #include <minix/config.h>
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (ac_try="$ac_compile"
4705 case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708 esac
4709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4710 $as_echo "$ac_try_echo") >&5
4711 (eval "$ac_compile") 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest.$ac_objext; then
4721 ac_header_compiler=yes
4722 else
4723 $as_echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726 ac_header_compiler=no
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731 $as_echo "$ac_header_compiler" >&6; }
4732
4733 # Is the header present?
4734 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4735 $as_echo_n "checking minix/config.h presence... " >&6; }
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <minix/config.h>
4743 _ACEOF
4744 if { (ac_try="$ac_cpp conftest.$ac_ext"
4745 case "(($ac_try" in
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4748 esac
4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null && {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 }; then
4761 ac_header_preproc=yes
4762 else
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_header_preproc=no
4767 fi
4768
4769 rm -f conftest.err conftest.$ac_ext
4770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4771 $as_echo "$ac_header_preproc" >&6; }
4772
4773 # So? What about this header?
4774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4775 yes:no: )
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4780 ac_header_preproc=yes
4781 ;;
4782 no:yes:* )
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4795
4796 ;;
4797 esac
4798 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4799 $as_echo_n "checking for minix/config.h... " >&6; }
4800 if test "${ac_cv_header_minix_config_h+set}" = set; then
4801 $as_echo_n "(cached) " >&6
4802 else
4803 ac_cv_header_minix_config_h=$ac_header_preproc
4804 fi
4805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4806 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4807
4808 fi
4809 if test $ac_cv_header_minix_config_h = yes; then
4810 MINIX=yes
4811 else
4812 MINIX=
4813 fi
4814
4815
4816 if test "$MINIX" = yes; then
4817
4818 cat >>confdefs.h <<\_ACEOF
4819 #define _POSIX_SOURCE 1
4820 _ACEOF
4821
4822
4823 cat >>confdefs.h <<\_ACEOF
4824 #define _POSIX_1_SOURCE 2
4825 _ACEOF
4826
4827
4828 cat >>confdefs.h <<\_ACEOF
4829 #define _MINIX 1
4830 _ACEOF
4831
4832 fi
4833
4834
4835
4836 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4837 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4838 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4839 $as_echo_n "(cached) " >&6
4840 else
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847
4848 # define __EXTENSIONS__ 1
4849 $ac_includes_default
4850 int
4851 main ()
4852 {
4853
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4860 case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865 $as_echo "$ac_try_echo") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4876 ac_cv_safe_to_define___extensions__=yes
4877 else
4878 $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ac_cv_safe_to_define___extensions__=no
4882 fi
4883
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 fi
4886 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4887 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4888 test $ac_cv_safe_to_define___extensions__ = yes &&
4889 cat >>confdefs.h <<\_ACEOF
4890 #define __EXTENSIONS__ 1
4891 _ACEOF
4892
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _ALL_SOURCE 1
4895 _ACEOF
4896
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _GNU_SOURCE 1
4899 _ACEOF
4900
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _POSIX_PTHREAD_SEMANTICS 1
4903 _ACEOF
4904
4905 cat >>confdefs.h <<\_ACEOF
4906 #define _TANDEM_SOURCE 1
4907 _ACEOF
4908
4909
4910
4911 ### Use -Wno-pointer-sign if the compiler supports it
4912 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4913 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4914 SAVE_CFLAGS="$CFLAGS"
4915 CFLAGS="$CFLAGS -Wno-pointer-sign"
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922
4923 int
4924 main ()
4925 {
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4949 has_option=yes
4950 else
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954 has_option=no
4955 fi
4956
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 if test $has_option = yes; then
4959 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4960 fi
4961 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4962 $as_echo "$has_option" >&6; }
4963 CFLAGS="$SAVE_CFLAGS"
4964 unset has_option
4965 unset SAVE_CFLAGS
4966
4967 ### Use -Wdeclaration-after-statement if the compiler supports it
4968 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4969 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4970 SAVE_CFLAGS="$CFLAGS"
4971 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978
4979 int
4980 main ()
4981 {
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (ac_try="$ac_compile"
4989 case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992 esac
4993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4994 $as_echo "$ac_try_echo") >&5
4995 (eval "$ac_compile") 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
5005 has_option=yes
5006 else
5007 $as_echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 has_option=no
5011 fi
5012
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 if test $has_option = yes; then
5015 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5016 fi
5017 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5018 $as_echo "$has_option" >&6; }
5019 CFLAGS="$SAVE_CFLAGS"
5020 unset has_option
5021 unset SAVE_CFLAGS
5022
5023 #### Some other nice autoconf tests.
5024
5025 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5026 $as_echo_n "checking whether ln -s works... " >&6; }
5027 LN_S=$as_ln_s
5028 if test "$LN_S" = "ln -s"; then
5029 { $as_echo "$as_me:$LINENO: result: yes" >&5
5030 $as_echo "yes" >&6; }
5031 else
5032 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5033 $as_echo "no, using $LN_S" >&6; }
5034 fi
5035
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5043 # On Suns, sometimes $CPP names a directory.
5044 if test -n "$CPP" && test -d "$CPP"; then
5045 CPP=
5046 fi
5047 if test -z "$CPP"; then
5048 if test "${ac_cv_prog_CPP+set}" = set; then
5049 $as_echo_n "(cached) " >&6
5050 else
5051 # Double quotes because CPP needs to be expanded
5052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5053 do
5054 ac_preproc_ok=false
5055 for ac_c_preproc_warn_flag in '' yes
5056 do
5057 # Use a header file that comes with gcc, so configuring glibc
5058 # with a fresh cross-compiler works.
5059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060 # <limits.h> exists even on freestanding compilers.
5061 # On the NeXT, cc -E runs the code through the compiler's parser,
5062 # not just through cpp. "Syntax error" is here to catch this case.
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074 Syntax error
5075 _ACEOF
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5077 case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080 esac
5081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5082 $as_echo "$ac_try_echo") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null && {
5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 }; then
5093 :
5094 else
5095 $as_echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 # Broken: fails on valid input.
5099 continue
5100 fi
5101
5102 rm -f conftest.err conftest.$ac_ext
5103
5104 # OK, works on sane cases. Now check whether nonexistent headers
5105 # can be detected and how.
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <ac_nonexistent.h>
5113 _ACEOF
5114 if { (ac_try="$ac_cpp conftest.$ac_ext"
5115 case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118 esac
5119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5120 $as_echo "$ac_try_echo") >&5
5121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null && {
5128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 }; then
5131 # Broken: success on invalid input.
5132 continue
5133 else
5134 $as_echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # Passes both tests.
5138 ac_preproc_ok=:
5139 break
5140 fi
5141
5142 rm -f conftest.err conftest.$ac_ext
5143
5144 done
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.err conftest.$ac_ext
5147 if $ac_preproc_ok; then
5148 break
5149 fi
5150
5151 done
5152 ac_cv_prog_CPP=$CPP
5153
5154 fi
5155 CPP=$ac_cv_prog_CPP
5156 else
5157 ac_cv_prog_CPP=$CPP
5158 fi
5159 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5160 $as_echo "$CPP" >&6; }
5161 ac_preproc_ok=false
5162 for ac_c_preproc_warn_flag in '' yes
5163 do
5164 # Use a header file that comes with gcc, so configuring glibc
5165 # with a fresh cross-compiler works.
5166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167 # <limits.h> exists even on freestanding compilers.
5168 # On the NeXT, cc -E runs the code through the compiler's parser,
5169 # not just through cpp. "Syntax error" is here to catch this case.
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #ifdef __STDC__
5177 # include <limits.h>
5178 #else
5179 # include <assert.h>
5180 #endif
5181 Syntax error
5182 _ACEOF
5183 if { (ac_try="$ac_cpp conftest.$ac_ext"
5184 case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 }; then
5200 :
5201 else
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 # Broken: fails on valid input.
5206 continue
5207 fi
5208
5209 rm -f conftest.err conftest.$ac_ext
5210
5211 # OK, works on sane cases. Now check whether nonexistent headers
5212 # can be detected and how.
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5220 _ACEOF
5221 if { (ac_try="$ac_cpp conftest.$ac_ext"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227 $as_echo "$ac_try_echo") >&5
5228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5229 ac_status=$?
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
5233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } >/dev/null && {
5235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5236 test ! -s conftest.err
5237 }; then
5238 # Broken: success on invalid input.
5239 continue
5240 else
5241 $as_echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 # Passes both tests.
5245 ac_preproc_ok=:
5246 break
5247 fi
5248
5249 rm -f conftest.err conftest.$ac_ext
5250
5251 done
5252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5253 rm -f conftest.err conftest.$ac_ext
5254 if $ac_preproc_ok; then
5255 :
5256 else
5257 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5258 See \`config.log' for more details." >&5
5259 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5260 See \`config.log' for more details." >&2;}
5261 { (exit 1); exit 1; }; }
5262 fi
5263
5264 ac_ext=c
5265 ac_cpp='$CPP $CPPFLAGS'
5266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269
5270 # Find a good install program. We prefer a C program (faster),
5271 # so one script is as good as another. But avoid the broken or
5272 # incompatible versions:
5273 # SysV /etc/install, /usr/sbin/install
5274 # SunOS /usr/etc/install
5275 # IRIX /sbin/install
5276 # AIX /bin/install
5277 # AmigaOS /C/install, which installs bootblocks on floppy discs
5278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5281 # OS/2's system install, which has a completely different semantic
5282 # ./install, which can be erroneously created by make from ./install.sh.
5283 # Reject install programs that cannot install multiple files.
5284 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5285 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5286 if test -z "$INSTALL"; then
5287 if test "${ac_cv_path_install+set}" = set; then
5288 $as_echo_n "(cached) " >&6
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 # Account for people who put trailing slashes in PATH elements.
5296 case $as_dir/ in
5297 ./ | .// | /cC/* | \
5298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5299 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5300 /usr/ucb/* ) ;;
5301 *)
5302 # OSF1 and SCO ODT 3.0 have their own names for install.
5303 # Don't use installbsd from OSF since it installs stuff as root
5304 # by default.
5305 for ac_prog in ginstall scoinst install; do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5308 if test $ac_prog = install &&
5309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5310 # AIX install. It has an incompatible calling convention.
5311 :
5312 elif test $ac_prog = install &&
5313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5314 # program-specific install script used by HP pwplus--don't use.
5315 :
5316 else
5317 rm -rf conftest.one conftest.two conftest.dir
5318 echo one > conftest.one
5319 echo two > conftest.two
5320 mkdir conftest.dir
5321 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5322 test -s conftest.one && test -s conftest.two &&
5323 test -s conftest.dir/conftest.one &&
5324 test -s conftest.dir/conftest.two
5325 then
5326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5327 break 3
5328 fi
5329 fi
5330 fi
5331 done
5332 done
5333 ;;
5334 esac
5335
5336 done
5337 IFS=$as_save_IFS
5338
5339 rm -rf conftest.one conftest.two conftest.dir
5340
5341 fi
5342 if test "${ac_cv_path_install+set}" = set; then
5343 INSTALL=$ac_cv_path_install
5344 else
5345 # As a last resort, use the slow shell script. Don't cache a
5346 # value for INSTALL within a source directory, because that will
5347 # break other packages using the cache if that directory is
5348 # removed, or if the value is a relative name.
5349 INSTALL=$ac_install_sh
5350 fi
5351 fi
5352 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5353 $as_echo "$INSTALL" >&6; }
5354
5355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5356 # It thinks the first close brace ends the variable substitution.
5357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5358
5359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5360
5361 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5362
5363 if test "x$RANLIB" = x; then
5364 if test -n "$ac_tool_prefix"; then
5365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_prog_RANLIB+set}" = set; then
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$RANLIB"; then
5373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 RANLIB=$ac_cv_prog_RANLIB
5393 if test -n "$RANLIB"; then
5394 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5395 $as_echo "$RANLIB" >&6; }
5396 else
5397 { $as_echo "$as_me:$LINENO: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402 fi
5403 if test -z "$ac_cv_prog_RANLIB"; then
5404 ac_ct_RANLIB=$RANLIB
5405 # Extract the first word of "ranlib", so it can be a program name with args.
5406 set dummy ranlib; ac_word=$2
5407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$ac_ct_RANLIB"; then
5413 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_ac_ct_RANLIB="ranlib"
5423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5433 if test -n "$ac_ct_RANLIB"; then
5434 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5435 $as_echo "$ac_ct_RANLIB" >&6; }
5436 else
5437 { $as_echo "$as_me:$LINENO: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441 if test "x$ac_ct_RANLIB" = x; then
5442 RANLIB=":"
5443 else
5444 case $cross_compiling:$ac_tool_warned in
5445 yes:)
5446 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5447 whose name does not start with the host triplet. If you think this
5448 configuration is useful to you, please write to autoconf@gnu.org." >&5
5449 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5450 whose name does not start with the host triplet. If you think this
5451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5452 ac_tool_warned=yes ;;
5453 esac
5454 RANLIB=$ac_ct_RANLIB
5455 fi
5456 else
5457 RANLIB="$ac_cv_prog_RANLIB"
5458 fi
5459
5460 fi
5461
5462 ## Although we're running on an amd64 kernel, we're actually compiling for
5463 ## the x86 architecture. The user should probably have provided an
5464 ## explicit --build to `configure', but if everything else than the kernel
5465 ## is running in i386 mode, we can help them out.
5466 if test "$machine" = "amdx86-64"; then
5467 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5468 $as_echo_n "checking whether i386 is declared... " >&6; }
5469 if test "${ac_cv_have_decl_i386+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5471 else
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 $ac_includes_default
5479 int
5480 main ()
5481 {
5482 #ifndef i386
5483 (void) i386;
5484 #endif
5485
5486 ;
5487 return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_have_decl_i386=yes
5509 else
5510 $as_echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 ac_cv_have_decl_i386=no
5514 fi
5515
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 fi
5518 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5519 $as_echo "$ac_cv_have_decl_i386" >&6; }
5520
5521 if test "$ac_cv_have_decl_i386" = "yes"; then
5522 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5523 machine=intel386
5524 machfile="m/${machine}.h"
5525 fi
5526 fi
5527
5528 # Extract the first word of "install-info", so it can be a program name with args.
5529 set dummy install-info; ac_word=$2
5530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5533 $as_echo_n "(cached) " >&6
5534 else
5535 case $INSTALL_INFO in
5536 [\\/]* | ?:[\\/]*)
5537 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5538 ;;
5539 *)
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 ;;
5556 esac
5557 fi
5558 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5559 if test -n "$INSTALL_INFO"; then
5560 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5561 $as_echo "$INSTALL_INFO" >&6; }
5562 else
5563 { $as_echo "$as_me:$LINENO: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567
5568 # Extract the first word of "install-info", so it can be a program name with args.
5569 set dummy install-info; ac_word=$2
5570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5573 $as_echo_n "(cached) " >&6
5574 else
5575 case $INSTALL_INFO in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5578 ;;
5579 *)
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in /usr/sbin
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 ;;
5596 esac
5597 fi
5598 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5599 if test -n "$INSTALL_INFO"; then
5600 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5601 $as_echo "$INSTALL_INFO" >&6; }
5602 else
5603 { $as_echo "$as_me:$LINENO: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608 # Extract the first word of "install-info", so it can be a program name with args.
5609 set dummy install-info; ac_word=$2
5610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5613 $as_echo_n "(cached) " >&6
5614 else
5615 case $INSTALL_INFO in
5616 [\\/]* | ?:[\\/]*)
5617 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5618 ;;
5619 *)
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in /sbin
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5636 ;;
5637 esac
5638 fi
5639 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5640 if test -n "$INSTALL_INFO"; then
5641 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5642 $as_echo "$INSTALL_INFO" >&6; }
5643 else
5644 { $as_echo "$as_me:$LINENO: result: no" >&5
5645 $as_echo "no" >&6; }
5646 fi
5647
5648
5649 # Extract the first word of "gzip", so it can be a program name with args.
5650 set dummy gzip; ac_word=$2
5651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5654 $as_echo_n "(cached) " >&6
5655 else
5656 case $GZIP_PROG in
5657 [\\/]* | ?:[\\/]*)
5658 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5659 ;;
5660 *)
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 ;;
5677 esac
5678 fi
5679 GZIP_PROG=$ac_cv_path_GZIP_PROG
5680 if test -n "$GZIP_PROG"; then
5681 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5682 $as_echo "$GZIP_PROG" >&6; }
5683 else
5684 { $as_echo "$as_me:$LINENO: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687
5688
5689
5690
5691 ## Need makeinfo >= 4.6 (?) to build the manuals.
5692 # Extract the first word of "makeinfo", so it can be a program name with args.
5693 set dummy makeinfo; ac_word=$2
5694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5698 else
5699 case $MAKEINFO in
5700 [\\/]* | ?:[\\/]*)
5701 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5702 ;;
5703 *)
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5720 ;;
5721 esac
5722 fi
5723 MAKEINFO=$ac_cv_path_MAKEINFO
5724 if test -n "$MAKEINFO"; then
5725 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5726 $as_echo "$MAKEINFO" >&6; }
5727 else
5728 { $as_echo "$as_me:$LINENO: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733 if test "$MAKEINFO" != "no" && \
5734 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5735 MAKEINFO=no
5736 fi
5737
5738 ## Makeinfo is unusual. For a released Emacs, the manuals are
5739 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5740 ## therefore in the category of "special tools" not normally required, which
5741 ## configure does not have to check for (eg autoconf itself).
5742 ## In a Bazaar checkout on the other hand, the manuals are not included.
5743 ## So makeinfo is a requirement to build from Bazaar, and configure
5744 ## should test for it as it does for any other build requirement.
5745 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5746 ## with pre-built manuals, from a Bazaar checkout.
5747 if test "$MAKEINFO" = "no"; then
5748 if test "x${with_makeinfo}" = "xno"; then
5749 MAKEINFO=off
5750 elif test ! -e $srcdir/info/emacs; then
5751 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5752 source tree does not seem to have pre-built manuals in the \`info' directory.
5753 Either install a suitable version of makeinfo, or re-run configure
5754 with the \`--without-makeinfo' option to build without the manuals. " >&5
5755 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5756 source tree does not seem to have pre-built manuals in the \`info' directory.
5757 Either install a suitable version of makeinfo, or re-run configure
5758 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5759 { (exit 1); exit 1; }; }
5760 fi
5761 fi
5762
5763
5764 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5765 then
5766 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5767 fi
5768
5769 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5770 then
5771 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5772 fi
5773
5774
5775 late_LDFLAGS=$LDFLAGS
5776 if test "$GCC" = yes; then
5777 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5778 else
5779 LDFLAGS="$LDFLAGS -znocombreloc"
5780 fi
5781
5782 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5783 $as_echo_n "checking for -znocombreloc... " >&6; }
5784 cat >conftest.$ac_ext <<_ACEOF
5785 main(){return 0;}
5786 _ACEOF
5787 rm -f conftest.$ac_objext conftest$ac_exeext
5788 if { (ac_try="$ac_link"
5789 case "(($ac_try" in
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5792 esac
5793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5794 $as_echo "$ac_try_echo") >&5
5795 (eval "$ac_link") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest$ac_exeext && {
5805 test "$cross_compiling" = yes ||
5806 $as_test_x conftest$ac_exeext
5807 }; then
5808 { $as_echo "$as_me:$LINENO: result: yes" >&5
5809 $as_echo "yes" >&6; }
5810 else
5811 $as_echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 LDFLAGS=$late_LDFLAGS
5815 { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819 rm -rf conftest.dSYM
5820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5821 conftest$ac_exeext conftest.$ac_ext
5822
5823 LIB_MATH=-lm
5824
5825 case $opsys in
5826 cygwin )
5827 LIB_MATH=
5828 ;;
5829 darwin )
5830 ## Adding -lm confuses the dynamic linker, so omit it.
5831 LIB_MATH=
5832 ;;
5833 esac
5834
5835
5836
5837 #### Extract some information from the operating system and machine files.
5838
5839 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5840 - which libraries the lib-src programs will want, and
5841 - whether the GNU malloc routines are usable..." >&5
5842 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5843 - which libraries the lib-src programs will want, and
5844 - whether the GNU malloc routines are usable..." >&6;}
5845
5846 ### First figure out CFLAGS (which we use for running the compiler here)
5847 ### and REAL_CFLAGS (which we use for real compilation).
5848 ### The two are the same except on a few systems, where they are made
5849 ### different to work around various lossages. For example,
5850 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5851 ### as implying static linking.
5852
5853 ### If the CFLAGS env var is specified, we use that value
5854 ### instead of the default.
5855
5856 ### It's not important that this name contain the PID; you can't run
5857 ### two configures in the same directory and have anything work
5858 ### anyway.
5859 tempcname="conftest.c"
5860
5861 echo '
5862 #include "'${srcdir}'/src/'${opsysfile}'"
5863 #include "'${srcdir}'/src/'${machfile}'"
5864 #ifndef LIBS_SYSTEM
5865 #define LIBS_SYSTEM
5866 #endif
5867 #ifndef C_SWITCH_SYSTEM
5868 #define C_SWITCH_SYSTEM
5869 #endif
5870 #ifndef C_SWITCH_MACHINE
5871 #define C_SWITCH_MACHINE
5872 #endif
5873 configure___ libsrc_libs=LIBS_SYSTEM
5874 configure___ c_switch_system=C_SWITCH_SYSTEM
5875 configure___ c_switch_machine=C_SWITCH_MACHINE
5876
5877 configure___ LIBX=-lX11
5878
5879 configure___ unexec=UNEXEC
5880
5881 #ifdef SYSTEM_MALLOC
5882 configure___ system_malloc=yes
5883 #else
5884 configure___ system_malloc=no
5885 #endif
5886
5887 #ifdef USE_MMAP_FOR_BUFFERS
5888 configure___ use_mmap_for_buffers=yes
5889 #else
5890 configure___ use_mmap_for_buffers=no
5891 #endif
5892
5893 #ifndef C_OPTIMIZE_SWITCH
5894 #ifdef __GNUC__
5895 #define C_OPTIMIZE_SWITCH -O2
5896 #else
5897 #define C_OPTIMIZE_SWITCH -O
5898 #endif
5899 #endif
5900
5901 #ifndef C_WARNINGS_SWITCH
5902 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5903 #endif
5904
5905 #ifndef LD_SWITCH_MACHINE
5906 #define LD_SWITCH_MACHINE
5907 #endif
5908
5909 #ifndef LD_SWITCH_SYSTEM
5910 #define LD_SWITCH_SYSTEM
5911 #endif
5912
5913 #ifndef LD_SWITCH_X_SITE_AUX
5914 #define LD_SWITCH_X_SITE_AUX
5915 #endif
5916
5917 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5918 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5919
5920 #ifdef THIS_IS_CONFIGURE
5921
5922 /* Get the CFLAGS for tests in configure. */
5923 #ifdef __GNUC__
5924 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5925 #else
5926 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5927 #endif
5928
5929 #else /* not THIS_IS_CONFIGURE */
5930
5931 /* Get the CFLAGS for real compilation. */
5932 #ifdef __GNUC__
5933 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5934 #else
5935 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5936 #endif
5937
5938 #endif /* not THIS_IS_CONFIGURE */
5939 ' > ${tempcname}
5940
5941 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5942
5943 # The value of CPP is a quoted variable reference, so we need to do this
5944 # to get its actual value...
5945 CPP=`eval "echo $CPP"`
5946 eval `${CPP} -Isrc ${tempcname} \
5947 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5948 if test "x$SPECIFIED_CFLAGS" = x; then
5949 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5950 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5951 else
5952 REAL_CFLAGS="$CFLAGS"
5953 fi
5954 rm ${tempcname}
5955
5956 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5957
5958 ### Make sure subsequent tests use flags consistent with the build flags.
5959
5960 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5961 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5962 else
5963 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5964 fi
5965
5966
5967
5968 # Check whether --enable-largefile was given.
5969 if test "${enable_largefile+set}" = set; then
5970 enableval=$enable_largefile;
5971 fi
5972
5973 if test "$enable_largefile" != no; then
5974
5975 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5976 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5977 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5978 $as_echo_n "(cached) " >&6
5979 else
5980 ac_cv_sys_largefile_CC=no
5981 if test "$GCC" != yes; then
5982 ac_save_CC=$CC
5983 while :; do
5984 # IRIX 6.2 and later do not support large files by default,
5985 # so use the C compiler's -n32 option if that helps.
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5993 /* Check that off_t can represent 2**63 - 1 correctly.
5994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5995 since some C++ compilers masquerading as C compilers
5996 incorrectly reject 9223372036854775807. */
5997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5999 && LARGE_OFF_T % 2147483647 == 1)
6000 ? 1 : -1];
6001 int
6002 main ()
6003 {
6004
6005 ;
6006 return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6016 $as_echo "$ac_try_echo") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && {
6024 test -z "$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6026 } && test -s conftest.$ac_objext; then
6027 break
6028 else
6029 $as_echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6031
6032
6033 fi
6034
6035 rm -f core conftest.err conftest.$ac_objext
6036 CC="$CC -n32"
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6039 case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044 $as_echo "$ac_try_echo") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
6055 ac_cv_sys_largefile_CC=' -n32'; break
6056 else
6057 $as_echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060
6061 fi
6062
6063 rm -f core conftest.err conftest.$ac_objext
6064 break
6065 done
6066 CC=$ac_save_CC
6067 rm -f conftest.$ac_ext
6068 fi
6069 fi
6070 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6071 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6072 if test "$ac_cv_sys_largefile_CC" != no; then
6073 CC=$CC$ac_cv_sys_largefile_CC
6074 fi
6075
6076 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6077 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6078 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6079 $as_echo_n "(cached) " >&6
6080 else
6081 while :; do
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <sys/types.h>
6089 /* Check that off_t can represent 2**63 - 1 correctly.
6090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6091 since some C++ compilers masquerading as C compilers
6092 incorrectly reject 9223372036854775807. */
6093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6095 && LARGE_OFF_T % 2147483647 == 1)
6096 ? 1 : -1];
6097 int
6098 main ()
6099 {
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110 esac
6111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6112 $as_echo "$ac_try_echo") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
6123 ac_cv_sys_file_offset_bits=no; break
6124 else
6125 $as_echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #define _FILE_OFFSET_BITS 64
6139 #include <sys/types.h>
6140 /* Check that off_t can represent 2**63 - 1 correctly.
6141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6142 since some C++ compilers masquerading as C compilers
6143 incorrectly reject 9223372036854775807. */
6144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6146 && LARGE_OFF_T % 2147483647 == 1)
6147 ? 1 : -1];
6148 int
6149 main ()
6150 {
6151
6152 ;
6153 return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_compile") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.$ac_objext; then
6174 ac_cv_sys_file_offset_bits=64; break
6175 else
6176 $as_echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179
6180 fi
6181
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 ac_cv_sys_file_offset_bits=unknown
6184 break
6185 done
6186 fi
6187 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6188 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6189 case $ac_cv_sys_file_offset_bits in #(
6190 no | unknown) ;;
6191 *)
6192 cat >>confdefs.h <<_ACEOF
6193 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6194 _ACEOF
6195 ;;
6196 esac
6197 rm -rf conftest*
6198 if test $ac_cv_sys_file_offset_bits = unknown; then
6199 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6200 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6201 if test "${ac_cv_sys_large_files+set}" = set; then
6202 $as_echo_n "(cached) " >&6
6203 else
6204 while :; do
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <sys/types.h>
6212 /* Check that off_t can represent 2**63 - 1 correctly.
6213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6214 since some C++ compilers masquerading as C compilers
6215 incorrectly reject 9223372036854775807. */
6216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6218 && LARGE_OFF_T % 2147483647 == 1)
6219 ? 1 : -1];
6220 int
6221 main ()
6222 {
6223
6224 ;
6225 return 0;
6226 }
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (ac_try="$ac_compile"
6230 case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6246 ac_cv_sys_large_files=no; break
6247 else
6248 $as_echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251
6252 fi
6253
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 #define _LARGE_FILES 1
6262 #include <sys/types.h>
6263 /* Check that off_t can represent 2**63 - 1 correctly.
6264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6265 since some C++ compilers masquerading as C compilers
6266 incorrectly reject 9223372036854775807. */
6267 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6269 && LARGE_OFF_T % 2147483647 == 1)
6270 ? 1 : -1];
6271 int
6272 main ()
6273 {
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (ac_try="$ac_compile"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6286 $as_echo "$ac_try_echo") >&5
6287 (eval "$ac_compile") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest.$ac_objext; then
6297 ac_cv_sys_large_files=1; break
6298 else
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302
6303 fi
6304
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 ac_cv_sys_large_files=unknown
6307 break
6308 done
6309 fi
6310 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6311 $as_echo "$ac_cv_sys_large_files" >&6; }
6312 case $ac_cv_sys_large_files in #(
6313 no | unknown) ;;
6314 *)
6315 cat >>confdefs.h <<_ACEOF
6316 #define _LARGE_FILES $ac_cv_sys_large_files
6317 _ACEOF
6318 ;;
6319 esac
6320 rm -rf conftest*
6321 fi
6322 fi
6323
6324
6325
6326 ## If user specified a crt-dir, use that unconditionally.
6327 if test "X$CRT_DIR" = "X"; then
6328
6329 case "$canonical" in
6330 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6331 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6332 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6333 ## For anything else (eg /usr/lib32), it is up the user to specify
6334 ## the location (bug#5655).
6335 ## Test for crtn.o, not just the directory, because sometimes the
6336 ## directory exists but does not have the relevant files (bug#1287).
6337 ## FIXME better to test for binary compatibility somehow.
6338 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6339 ;;
6340
6341 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6342 esac
6343
6344 case "$opsys" in
6345 hpux10-20) CRT_DIR=/lib ;;
6346 esac
6347
6348 ## Default is /usr/lib.
6349 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6350
6351 else
6352
6353 ## Some platforms don't use any of these files, so it is not
6354 ## appropriate to put this test outside the if block.
6355 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6356 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6357 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6358 { (exit 1); exit 1; }; }
6359
6360 fi
6361
6362
6363
6364
6365
6366
6367
6368 if test "${with_sound}" != "no"; then
6369 # Sound support for GNU/Linux and the free BSDs.
6370
6371
6372
6373 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6374 do
6375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 $as_echo_n "checking for $ac_header... " >&6; }
6379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6380 $as_echo_n "(cached) " >&6
6381 fi
6382 ac_res=`eval 'as_val=${'$as_ac_Header'}
6383 $as_echo "$as_val"'`
6384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6385 $as_echo "$ac_res" >&6; }
6386 else
6387 # Is the header compilable?
6388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 $as_echo_n "checking $ac_header usability... " >&6; }
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (ac_try="$ac_compile"
6401 case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404 esac
6405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6406 $as_echo "$ac_try_echo") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
6417 ac_header_compiler=yes
6418 else
6419 $as_echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 ac_header_compiler=no
6423 fi
6424
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427 $as_echo "$ac_header_compiler" >&6; }
6428
6429 # Is the header present?
6430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6431 $as_echo_n "checking $ac_header presence... " >&6; }
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <$ac_header>
6439 _ACEOF
6440 if { (ac_try="$ac_cpp conftest.$ac_ext"
6441 case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6444 esac
6445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6446 $as_echo "$ac_try_echo") >&5
6447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6448 ac_status=$?
6449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
6452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } >/dev/null && {
6454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 }; then
6457 ac_header_preproc=yes
6458 else
6459 $as_echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 ac_header_preproc=no
6463 fi
6464
6465 rm -f conftest.err conftest.$ac_ext
6466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6467 $as_echo "$ac_header_preproc" >&6; }
6468
6469 # So? What about this header?
6470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6471 yes:no: )
6472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6476 ac_header_preproc=yes
6477 ;;
6478 no:yes:* )
6479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6482 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6486 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491
6492 ;;
6493 esac
6494 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 $as_echo_n "checking for $ac_header... " >&6; }
6496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6497 $as_echo_n "(cached) " >&6
6498 else
6499 eval "$as_ac_Header=\$ac_header_preproc"
6500 fi
6501 ac_res=`eval 'as_val=${'$as_ac_Header'}
6502 $as_echo "$as_val"'`
6503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6504 $as_echo "$ac_res" >&6; }
6505
6506 fi
6507 if test `eval 'as_val=${'$as_ac_Header'}
6508 $as_echo "$as_val"'` = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6512
6513 fi
6514
6515 done
6516
6517 # Emulation library used on NetBSD.
6518 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6519 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6520 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6521 $as_echo_n "(cached) " >&6
6522 else
6523 ac_check_lib_save_LIBS=$LIBS
6524 LIBS="-lossaudio $LIBS"
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531
6532 /* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6535 #ifdef __cplusplus
6536 extern "C"
6537 #endif
6538 char _oss_ioctl ();
6539 int
6540 main ()
6541 {
6542 return _oss_ioctl ();
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (ac_try="$ac_link"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6554 $as_echo "$ac_try_echo") >&5
6555 (eval "$ac_link") 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest$ac_exeext && {
6565 test "$cross_compiling" = yes ||
6566 $as_test_x conftest$ac_exeext
6567 }; then
6568 ac_cv_lib_ossaudio__oss_ioctl=yes
6569 else
6570 $as_echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573 ac_cv_lib_ossaudio__oss_ioctl=no
6574 fi
6575
6576 rm -rf conftest.dSYM
6577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6578 conftest$ac_exeext conftest.$ac_ext
6579 LIBS=$ac_check_lib_save_LIBS
6580 fi
6581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6582 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6583 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6584 LIBSOUND=-lossaudio
6585 else
6586 LIBSOUND=
6587 fi
6588
6589
6590
6591 ALSA_REQUIRED=1.0.0
6592 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6593
6594 succeeded=no
6595
6596 # Extract the first word of "pkg-config", so it can be a program name with args.
6597 set dummy pkg-config; ac_word=$2
6598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6601 $as_echo_n "(cached) " >&6
6602 else
6603 case $PKG_CONFIG in
6604 [\\/]* | ?:[\\/]*)
6605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6606 ;;
6607 *)
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619 done
6620 done
6621 IFS=$as_save_IFS
6622
6623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6624 ;;
6625 esac
6626 fi
6627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6628 if test -n "$PKG_CONFIG"; then
6629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6630 $as_echo "$PKG_CONFIG" >&6; }
6631 else
6632 { $as_echo "$as_me:$LINENO: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636
6637
6638 if test "$PKG_CONFIG" = "no" ; then
6639 HAVE_ALSA=no
6640 else
6641 PKG_CONFIG_MIN_VERSION=0.9.0
6642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6643 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6644 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6645
6646 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6647 { $as_echo "$as_me:$LINENO: result: yes" >&5
6648 $as_echo "yes" >&6; }
6649 succeeded=yes
6650
6651 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6652 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6653 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6654 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6655 $as_echo "$ALSA_CFLAGS" >&6; }
6656
6657 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6658 $as_echo_n "checking ALSA_LIBS... " >&6; }
6659 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6660 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6661 $as_echo "$ALSA_LIBS" >&6; }
6662 else
6663 { $as_echo "$as_me:$LINENO: result: no" >&5
6664 $as_echo "no" >&6; }
6665 ALSA_CFLAGS=""
6666 ALSA_LIBS=""
6667 ## If we have a custom action on failure, don't print errors, but
6668 ## do set a variable so people can do so.
6669 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6670
6671 fi
6672
6673
6674
6675 else
6676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6678 fi
6679 fi
6680
6681 if test $succeeded = yes; then
6682 HAVE_ALSA=yes
6683 else
6684 HAVE_ALSA=no
6685 fi
6686
6687 if test $HAVE_ALSA = yes; then
6688 SAVE_CFLAGS="$CFLAGS"
6689 SAVE_LDFLAGS="$LDFLAGS"
6690 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6691 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <asoundlib.h>
6699 int
6700 main ()
6701 {
6702 snd_lib_error_set_handler (0);
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.$ac_objext; then
6725 emacs_alsa_normal=yes
6726 else
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 emacs_alsa_normal=no
6731 fi
6732
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 if test "$emacs_alsa_normal" != yes; then
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <alsa/asoundlib.h>
6742 int
6743 main ()
6744 {
6745 snd_lib_error_set_handler (0);
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest.$ac_objext
6751 if { (ac_try="$ac_compile"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6757 $as_echo "$ac_try_echo") >&5
6758 (eval "$ac_compile") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.$ac_objext; then
6768 emacs_alsa_subdir=yes
6769 else
6770 $as_echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773 emacs_alsa_subdir=no
6774 fi
6775
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 if test "$emacs_alsa_subdir" != yes; then
6778 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6779 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6780 { (exit 1); exit 1; }; }
6781 fi
6782 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6783 fi
6784
6785 CFLAGS="$SAVE_CFLAGS"
6786 LDFLAGS="$SAVE_LDFLAGS"
6787 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6788 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6789
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_ALSA 1
6792 _ACEOF
6793
6794 fi
6795
6796 fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6824 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6825 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6826 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6827 sys/utsname.h pwd.h utmp.h
6828 do
6829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6832 $as_echo_n "checking for $ac_header... " >&6; }
6833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6834 $as_echo_n "(cached) " >&6
6835 fi
6836 ac_res=`eval 'as_val=${'$as_ac_Header'}
6837 $as_echo "$as_val"'`
6838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6839 $as_echo "$ac_res" >&6; }
6840 else
6841 # Is the header compilable?
6842 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6843 $as_echo_n "checking $ac_header usability... " >&6; }
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6851 #include <$ac_header>
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (ac_try="$ac_compile"
6855 case "(($ac_try" in
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6858 esac
6859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6860 $as_echo "$ac_try_echo") >&5
6861 (eval "$ac_compile") 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest.$ac_objext; then
6871 ac_header_compiler=yes
6872 else
6873 $as_echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 ac_header_compiler=no
6877 fi
6878
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6881 $as_echo "$ac_header_compiler" >&6; }
6882
6883 # Is the header present?
6884 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6885 $as_echo_n "checking $ac_header presence... " >&6; }
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 #include <$ac_header>
6893 _ACEOF
6894 if { (ac_try="$ac_cpp conftest.$ac_ext"
6895 case "(($ac_try" in
6896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897 *) ac_try_echo=$ac_try;;
6898 esac
6899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6900 $as_echo "$ac_try_echo") >&5
6901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } >/dev/null && {
6908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6909 test ! -s conftest.err
6910 }; then
6911 ac_header_preproc=yes
6912 else
6913 $as_echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 ac_header_preproc=no
6917 fi
6918
6919 rm -f conftest.err conftest.$ac_ext
6920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6921 $as_echo "$ac_header_preproc" >&6; }
6922
6923 # So? What about this header?
6924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6925 yes:no: )
6926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6927 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6930 ac_header_preproc=yes
6931 ;;
6932 no:yes:* )
6933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6934 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6936 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6938 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6940 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6944 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6945
6946 ;;
6947 esac
6948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6949 $as_echo_n "checking for $ac_header... " >&6; }
6950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6951 $as_echo_n "(cached) " >&6
6952 else
6953 eval "$as_ac_Header=\$ac_header_preproc"
6954 fi
6955 ac_res=`eval 'as_val=${'$as_ac_Header'}
6956 $as_echo "$as_val"'`
6957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6958 $as_echo "$ac_res" >&6; }
6959
6960 fi
6961 if test `eval 'as_val=${'$as_ac_Header'}
6962 $as_echo "$as_val"'` = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6965 _ACEOF
6966
6967 fi
6968
6969 done
6970
6971
6972 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6973 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 #include <sys/personality.h>
6981 int
6982 main ()
6983 {
6984 personality (PER_LINUX32)
6985 ;
6986 return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest.$ac_objext
6990 if { (ac_try="$ac_compile"
6991 case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994 esac
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.$ac_objext; then
7007 emacs_cv_personality_linux32=yes
7008 else
7009 $as_echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7011
7012 emacs_cv_personality_linux32=no
7013 fi
7014
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7017 $as_echo "$emacs_cv_personality_linux32" >&6; }
7018
7019 if test $emacs_cv_personality_linux32 = yes; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_PERSONALITY_LINUX32 1
7023 _ACEOF
7024
7025 fi
7026
7027
7028 for ac_header in term.h
7029 do
7030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7032 $as_echo_n "checking for $ac_header... " >&6; }
7033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <$ac_header>
7043 _ACEOF
7044 if { (ac_try="$ac_cpp conftest.$ac_ext"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } >/dev/null && {
7058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 }; then
7061 eval "$as_ac_Header=yes"
7062 else
7063 $as_echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066 eval "$as_ac_Header=no"
7067 fi
7068
7069 rm -f conftest.err conftest.$ac_ext
7070 fi
7071 ac_res=`eval 'as_val=${'$as_ac_Header'}
7072 $as_echo "$as_val"'`
7073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7074 $as_echo "$ac_res" >&6; }
7075 if test `eval 'as_val=${'$as_ac_Header'}
7076 $as_echo "$as_val"'` = yes; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7079 _ACEOF
7080
7081 fi
7082
7083 done
7084
7085 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7086 $as_echo_n "checking for ANSI C header files... " >&6; }
7087 if test "${ac_cv_header_stdc+set}" = set; then
7088 $as_echo_n "(cached) " >&6
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <stdlib.h>
7097 #include <stdarg.h>
7098 #include <string.h>
7099 #include <float.h>
7100
7101 int
7102 main ()
7103 {
7104
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7116 $as_echo "$ac_try_echo") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7127 ac_cv_header_stdc=yes
7128 else
7129 $as_echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_header_stdc=no
7133 fi
7134
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136
7137 if test $ac_cv_header_stdc = yes; then
7138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <string.h>
7146
7147 _ACEOF
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "memchr" >/dev/null 2>&1; then
7150 :
7151 else
7152 ac_cv_header_stdc=no
7153 fi
7154 rm -f conftest*
7155
7156 fi
7157
7158 if test $ac_cv_header_stdc = yes; then
7159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7160 cat >conftest.$ac_ext <<_ACEOF
7161 /* confdefs.h. */
7162 _ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 #include <stdlib.h>
7167
7168 _ACEOF
7169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7170 $EGREP "free" >/dev/null 2>&1; then
7171 :
7172 else
7173 ac_cv_header_stdc=no
7174 fi
7175 rm -f conftest*
7176
7177 fi
7178
7179 if test $ac_cv_header_stdc = yes; then
7180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7181 if test "$cross_compiling" = yes; then
7182 :
7183 else
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <ctype.h>
7191 #include <stdlib.h>
7192 #if ((' ' & 0x0FF) == 0x020)
7193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7195 #else
7196 # define ISLOWER(c) \
7197 (('a' <= (c) && (c) <= 'i') \
7198 || ('j' <= (c) && (c) <= 'r') \
7199 || ('s' <= (c) && (c) <= 'z'))
7200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7201 #endif
7202
7203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7204 int
7205 main ()
7206 {
7207 int i;
7208 for (i = 0; i < 256; i++)
7209 if (XOR (islower (i), ISLOWER (i))
7210 || toupper (i) != TOUPPER (i))
7211 return 2;
7212 return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest$ac_exeext
7216 if { (ac_try="$ac_link"
7217 case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220 esac
7221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7222 $as_echo "$ac_try_echo") >&5
7223 (eval "$ac_link") 2>&5
7224 ac_status=$?
7225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7227 { (case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_try") 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 :
7238 else
7239 $as_echo "$as_me: program exited with status $ac_status" >&5
7240 $as_echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ( exit $ac_status )
7244 ac_cv_header_stdc=no
7245 fi
7246 rm -rf conftest.dSYM
7247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7248 fi
7249
7250
7251 fi
7252 fi
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7254 $as_echo "$ac_cv_header_stdc" >&6; }
7255 if test $ac_cv_header_stdc = yes; then
7256
7257 cat >>confdefs.h <<\_ACEOF
7258 #define STDC_HEADERS 1
7259 _ACEOF
7260
7261 fi
7262
7263 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7264 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7265 if test "${ac_cv_header_time+set}" = set; then
7266 $as_echo_n "(cached) " >&6
7267 else
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <sys/types.h>
7275 #include <sys/time.h>
7276 #include <time.h>
7277
7278 int
7279 main ()
7280 {
7281 if ((struct tm *) 0)
7282 return 0;
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7294 $as_echo "$ac_try_echo") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 ac_cv_header_time=yes
7306 else
7307 $as_echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 ac_cv_header_time=no
7311 fi
7312
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 fi
7315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7316 $as_echo "$ac_cv_header_time" >&6; }
7317 if test $ac_cv_header_time = yes; then
7318
7319 cat >>confdefs.h <<\_ACEOF
7320 #define TIME_WITH_SYS_TIME 1
7321 _ACEOF
7322
7323 fi
7324
7325 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7326 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7327 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7328 $as_echo_n "(cached) " >&6
7329 else
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 int
7338 main ()
7339 {
7340 #ifndef sys_siglist
7341 (void) sys_siglist;
7342 #endif
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_have_decl_sys_siglist=yes
7367 else
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_cv_have_decl_sys_siglist=no
7372 fi
7373
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7377 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7378 if test $ac_cv_have_decl_sys_siglist = yes; then
7379
7380 cat >>confdefs.h <<_ACEOF
7381 #define HAVE_DECL_SYS_SIGLIST 1
7382 _ACEOF
7383
7384
7385 else
7386 cat >>confdefs.h <<_ACEOF
7387 #define HAVE_DECL_SYS_SIGLIST 0
7388 _ACEOF
7389
7390
7391 fi
7392
7393
7394 if test $ac_cv_have_decl_sys_siglist != yes; then
7395 # For Tru64, at least:
7396 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7397 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7398 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7399 $as_echo_n "(cached) " >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7408 int
7409 main ()
7410 {
7411 #ifndef __sys_siglist
7412 (void) __sys_siglist;
7413 #endif
7414
7415 ;
7416 return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.$ac_objext; then
7437 ac_cv_have_decl___sys_siglist=yes
7438 else
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 ac_cv_have_decl___sys_siglist=no
7443 fi
7444
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 fi
7447 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7448 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7449 if test $ac_cv_have_decl___sys_siglist = yes; then
7450
7451 cat >>confdefs.h <<_ACEOF
7452 #define HAVE_DECL___SYS_SIGLIST 1
7453 _ACEOF
7454
7455
7456 else
7457 cat >>confdefs.h <<_ACEOF
7458 #define HAVE_DECL___SYS_SIGLIST 0
7459 _ACEOF
7460
7461
7462 fi
7463
7464
7465 if test $ac_cv_have_decl___sys_siglist = yes; then
7466
7467 cat >>confdefs.h <<\_ACEOF
7468 #define sys_siglist __sys_siglist
7469 _ACEOF
7470
7471 fi
7472 fi
7473 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7474 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7475 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7477 else
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7485 #include <sys/wait.h>
7486 #ifndef WEXITSTATUS
7487 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7488 #endif
7489 #ifndef WIFEXITED
7490 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7491 #endif
7492
7493 int
7494 main ()
7495 {
7496 int s;
7497 wait (&s);
7498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7499 ;
7500 return 0;
7501 }
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7505 case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508 esac
7509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_cv_header_sys_wait_h=yes
7522 else
7523 $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 ac_cv_header_sys_wait_h=no
7527 fi
7528
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7532 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7533 if test $ac_cv_header_sys_wait_h = yes; then
7534
7535 cat >>confdefs.h <<\_ACEOF
7536 #define HAVE_SYS_WAIT_H 1
7537 _ACEOF
7538
7539 fi
7540
7541
7542 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7543 $as_echo_n "checking for struct utimbuf... " >&6; }
7544 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7545 $as_echo_n "(cached) " >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 #ifdef TIME_WITH_SYS_TIME
7554 #include <sys/time.h>
7555 #include <time.h>
7556 #else
7557 #ifdef HAVE_SYS_TIME_H
7558 #include <sys/time.h>
7559 #else
7560 #include <time.h>
7561 #endif
7562 #endif
7563 #ifdef HAVE_UTIME_H
7564 #include <utime.h>
7565 #endif
7566 int
7567 main ()
7568 {
7569 static struct utimbuf x; x.actime = x.modtime;
7570 ;
7571 return 0;
7572 }
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7592 emacs_cv_struct_utimbuf=yes
7593 else
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 emacs_cv_struct_utimbuf=no
7598 fi
7599
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7603 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7604 if test $emacs_cv_struct_utimbuf = yes; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_STRUCT_UTIMBUF 1
7608 _ACEOF
7609
7610 fi
7611
7612 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7613 $as_echo_n "checking return type of signal handlers... " >&6; }
7614 if test "${ac_cv_type_signal+set}" = set; then
7615 $as_echo_n "(cached) " >&6
7616 else
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 #include <sys/types.h>
7624 #include <signal.h>
7625
7626 int
7627 main ()
7628 {
7629 return *(signal (0, 0)) (0) == 1;
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (ac_try="$ac_compile"
7636 case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7641 $as_echo "$ac_try_echo") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.$ac_objext; then
7652 ac_cv_type_signal=int
7653 else
7654 $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ac_cv_type_signal=void
7658 fi
7659
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 fi
7662 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7663 $as_echo "$ac_cv_type_signal" >&6; }
7664
7665 cat >>confdefs.h <<_ACEOF
7666 #define RETSIGTYPE $ac_cv_type_signal
7667 _ACEOF
7668
7669
7670
7671 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7672 $as_echo_n "checking for speed_t... " >&6; }
7673 if test "${emacs_cv_speed_t+set}" = set; then
7674 $as_echo_n "(cached) " >&6
7675 else
7676 cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h. */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 #include <termios.h>
7683 int
7684 main ()
7685 {
7686 speed_t x = 1;
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 emacs_cv_speed_t=yes
7710 else
7711 $as_echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 emacs_cv_speed_t=no
7715 fi
7716
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 fi
7719 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7720 $as_echo "$emacs_cv_speed_t" >&6; }
7721 if test $emacs_cv_speed_t = yes; then
7722
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_SPEED_T 1
7725 _ACEOF
7726
7727 fi
7728
7729 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7730 $as_echo_n "checking for struct timeval... " >&6; }
7731 if test "${emacs_cv_struct_timeval+set}" = set; then
7732 $as_echo_n "(cached) " >&6
7733 else
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 #ifdef TIME_WITH_SYS_TIME
7741 #include <sys/time.h>
7742 #include <time.h>
7743 #else
7744 #ifdef HAVE_SYS_TIME_H
7745 #include <sys/time.h>
7746 #else
7747 #include <time.h>
7748 #endif
7749 #endif
7750 int
7751 main ()
7752 {
7753 static struct timeval x; x.tv_sec = x.tv_usec;
7754 ;
7755 return 0;
7756 }
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (ac_try="$ac_compile"
7760 case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7763 esac
7764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7765 $as_echo "$ac_try_echo") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.$ac_objext; then
7776 emacs_cv_struct_timeval=yes
7777 else
7778 $as_echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7780
7781 emacs_cv_struct_timeval=no
7782 fi
7783
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 fi
7786 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7787 $as_echo "$emacs_cv_struct_timeval" >&6; }
7788 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7789 if test $emacs_cv_struct_timeval = yes; then
7790
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_TIMEVAL 1
7793 _ACEOF
7794
7795 fi
7796
7797 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7798 $as_echo_n "checking for struct exception... " >&6; }
7799 if test "${emacs_cv_struct_exception+set}" = set; then
7800 $as_echo_n "(cached) " >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <math.h>
7809 int
7810 main ()
7811 {
7812 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7819 case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822 esac
7823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825 (eval "$ac_compile") 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest.$ac_objext; then
7835 emacs_cv_struct_exception=yes
7836 else
7837 $as_echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840 emacs_cv_struct_exception=no
7841 fi
7842
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7846 $as_echo "$emacs_cv_struct_exception" >&6; }
7847 HAVE_EXCEPTION=$emacs_cv_struct_exception
7848 if test $emacs_cv_struct_exception != yes; then
7849
7850 cat >>confdefs.h <<\_ACEOF
7851 #define NO_MATHERR 1
7852 _ACEOF
7853
7854 fi
7855
7856
7857 for ac_header in sys/socket.h
7858 do
7859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7861 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 $as_echo_n "checking for $ac_header... " >&6; }
7863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7864 $as_echo_n "(cached) " >&6
7865 fi
7866 ac_res=`eval 'as_val=${'$as_ac_Header'}
7867 $as_echo "$as_val"'`
7868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7869 $as_echo "$ac_res" >&6; }
7870 else
7871 # Is the header compilable?
7872 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7873 $as_echo_n "checking $ac_header usability... " >&6; }
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h. */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 $ac_includes_default
7881 #include <$ac_header>
7882 _ACEOF
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.$ac_objext; then
7901 ac_header_compiler=yes
7902 else
7903 $as_echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906 ac_header_compiler=no
7907 fi
7908
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7911 $as_echo "$ac_header_compiler" >&6; }
7912
7913 # Is the header present?
7914 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7915 $as_echo_n "checking $ac_header presence... " >&6; }
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <$ac_header>
7923 _ACEOF
7924 if { (ac_try="$ac_cpp conftest.$ac_ext"
7925 case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928 esac
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } >/dev/null && {
7938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 }; then
7941 ac_header_preproc=yes
7942 else
7943 $as_echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 ac_header_preproc=no
7947 fi
7948
7949 rm -f conftest.err conftest.$ac_ext
7950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7951 $as_echo "$ac_header_preproc" >&6; }
7952
7953 # So? What about this header?
7954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7955 yes:no: )
7956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7957 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7960 ac_header_preproc=yes
7961 ;;
7962 no:yes:* )
7963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7964 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7966 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7968 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7970 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7974 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7975
7976 ;;
7977 esac
7978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7979 $as_echo_n "checking for $ac_header... " >&6; }
7980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 $as_echo_n "(cached) " >&6
7982 else
7983 eval "$as_ac_Header=\$ac_header_preproc"
7984 fi
7985 ac_res=`eval 'as_val=${'$as_ac_Header'}
7986 $as_echo "$as_val"'`
7987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7988 $as_echo "$ac_res" >&6; }
7989
7990 fi
7991 if test `eval 'as_val=${'$as_ac_Header'}
7992 $as_echo "$as_val"'` = yes; then
7993 cat >>confdefs.h <<_ACEOF
7994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7995 _ACEOF
7996
7997 fi
7998
7999 done
8000
8001
8002 for ac_header in net/if.h
8003 do
8004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8006 $as_echo_n "checking for $ac_header... " >&6; }
8007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8008 $as_echo_n "(cached) " >&6
8009 else
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 #if HAVE_SYS_SOCKET_H
8018 #include <sys/socket.h>
8019 #endif
8020
8021 #include <$ac_header>
8022 _ACEOF
8023 rm -f conftest.$ac_objext
8024 if { (ac_try="$ac_compile"
8025 case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028 esac
8029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030 $as_echo "$ac_try_echo") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 eval "$as_ac_Header=yes"
8042 else
8043 $as_echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 eval "$as_ac_Header=no"
8047 fi
8048
8049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050 fi
8051 ac_res=`eval 'as_val=${'$as_ac_Header'}
8052 $as_echo "$as_val"'`
8053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8054 $as_echo "$ac_res" >&6; }
8055 if test `eval 'as_val=${'$as_ac_Header'}
8056 $as_echo "$as_val"'` = yes; then
8057 cat >>confdefs.h <<_ACEOF
8058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8059 _ACEOF
8060
8061 fi
8062
8063 done
8064
8065
8066 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8067 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8068 if test "${ac_cv_struct_tm+set}" = set; then
8069 $as_echo_n "(cached) " >&6
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <sys/types.h>
8078 #include <time.h>
8079
8080 int
8081 main ()
8082 {
8083 struct tm tm;
8084 int *p = &tm.tm_sec;
8085 return !p;
8086 ;
8087 return 0;
8088 }
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8097 $as_echo "$ac_try_echo") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_cv_struct_tm=time.h
8109 else
8110 $as_echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 ac_cv_struct_tm=sys/time.h
8114 fi
8115
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 fi
8118 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8119 $as_echo "$ac_cv_struct_tm" >&6; }
8120 if test $ac_cv_struct_tm = sys/time.h; then
8121
8122 cat >>confdefs.h <<\_ACEOF
8123 #define TM_IN_SYS_TIME 1
8124 _ACEOF
8125
8126 fi
8127
8128 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8129 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8130 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8131 $as_echo_n "(cached) " >&6
8132 else
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h. */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 #include <sys/types.h>
8140 #include <$ac_cv_struct_tm>
8141
8142
8143 int
8144 main ()
8145 {
8146 static struct tm ac_aggr;
8147 if (ac_aggr.tm_zone)
8148 return 0;
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext
8154 if { (ac_try="$ac_compile"
8155 case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.$ac_objext; then
8171 ac_cv_member_struct_tm_tm_zone=yes
8172 else
8173 $as_echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 #include <sys/types.h>
8183 #include <$ac_cv_struct_tm>
8184
8185
8186 int
8187 main ()
8188 {
8189 static struct tm ac_aggr;
8190 if (sizeof ac_aggr.tm_zone)
8191 return 0;
8192 ;
8193 return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8198 case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201 esac
8202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8203 $as_echo "$ac_try_echo") >&5
8204 (eval "$ac_compile") 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest.$ac_objext; then
8214 ac_cv_member_struct_tm_tm_zone=yes
8215 else
8216 $as_echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219 ac_cv_member_struct_tm_tm_zone=no
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8228 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8229 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8230
8231 cat >>confdefs.h <<_ACEOF
8232 #define HAVE_STRUCT_TM_TM_ZONE 1
8233 _ACEOF
8234
8235
8236 fi
8237
8238 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8239
8240 cat >>confdefs.h <<\_ACEOF
8241 #define HAVE_TM_ZONE 1
8242 _ACEOF
8243
8244 else
8245 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8246 $as_echo_n "checking whether tzname is declared... " >&6; }
8247 if test "${ac_cv_have_decl_tzname+set}" = set; then
8248 $as_echo_n "(cached) " >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 #include <time.h>
8257
8258 int
8259 main ()
8260 {
8261 #ifndef tzname
8262 (void) tzname;
8263 #endif
8264
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8271 case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274 esac
8275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8276 $as_echo "$ac_try_echo") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest.$ac_objext; then
8287 ac_cv_have_decl_tzname=yes
8288 else
8289 $as_echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 ac_cv_have_decl_tzname=no
8293 fi
8294
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 fi
8297 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8298 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8299 if test $ac_cv_have_decl_tzname = yes; then
8300
8301 cat >>confdefs.h <<_ACEOF
8302 #define HAVE_DECL_TZNAME 1
8303 _ACEOF
8304
8305
8306 else
8307 cat >>confdefs.h <<_ACEOF
8308 #define HAVE_DECL_TZNAME 0
8309 _ACEOF
8310
8311
8312 fi
8313
8314
8315 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8316 $as_echo_n "checking for tzname... " >&6; }
8317 if test "${ac_cv_var_tzname+set}" = set; then
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 #include <time.h>
8327 #if !HAVE_DECL_TZNAME
8328 extern char *tzname[];
8329 #endif
8330
8331 int
8332 main ()
8333 {
8334 return tzname[0][0];
8335 ;
8336 return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (ac_try="$ac_link"
8341 case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344 esac
8345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8346 $as_echo "$ac_try_echo") >&5
8347 (eval "$ac_link") 2>conftest.er1
8348 ac_status=$?
8349 grep -v '^ *+' conftest.er1 >conftest.err
8350 rm -f conftest.er1
8351 cat conftest.err >&5
8352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && {
8354 test -z "$ac_c_werror_flag" ||
8355 test ! -s conftest.err
8356 } && test -s conftest$ac_exeext && {
8357 test "$cross_compiling" = yes ||
8358 $as_test_x conftest$ac_exeext
8359 }; then
8360 ac_cv_var_tzname=yes
8361 else
8362 $as_echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365 ac_cv_var_tzname=no
8366 fi
8367
8368 rm -rf conftest.dSYM
8369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8370 conftest$ac_exeext conftest.$ac_ext
8371 fi
8372 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8373 $as_echo "$ac_cv_var_tzname" >&6; }
8374 if test $ac_cv_var_tzname = yes; then
8375
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_TZNAME 1
8378 _ACEOF
8379
8380 fi
8381 fi
8382
8383 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8384 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8385 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8387 else
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 #include <time.h>
8395
8396 int
8397 main ()
8398 {
8399 static struct tm ac_aggr;
8400 if (ac_aggr.tm_gmtoff)
8401 return 0;
8402 ;
8403 return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8408 case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_tm_tm_gmtoff=yes
8425 else
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 #include <time.h>
8436
8437 int
8438 main ()
8439 {
8440 static struct tm ac_aggr;
8441 if (sizeof ac_aggr.tm_gmtoff)
8442 return 0;
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8449 case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454 $as_echo "$ac_try_echo") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_member_struct_tm_tm_gmtoff=yes
8466 else
8467 $as_echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 ac_cv_member_struct_tm_tm_gmtoff=no
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 fi
8478 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8479 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8480 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8481
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_TM_GMTOFF 1
8484 _ACEOF
8485
8486 fi
8487
8488 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8489 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8490 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8502 #endif
8503 #if HAVE_NET_IF_H
8504 #include <net/if.h>
8505 #endif
8506
8507 int
8508 main ()
8509 {
8510 static struct ifreq ac_aggr;
8511 if (ac_aggr.ifr_flags)
8512 return 0;
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8519 case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8522 esac
8523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8524 $as_echo "$ac_try_echo") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_flags=yes
8536 else
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8549 #endif
8550 #if HAVE_NET_IF_H
8551 #include <net/if.h>
8552 #endif
8553
8554 int
8555 main ()
8556 {
8557 static struct ifreq ac_aggr;
8558 if (sizeof ac_aggr.ifr_flags)
8559 return 0;
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_cv_member_struct_ifreq_ifr_flags=yes
8583 else
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 ac_cv_member_struct_ifreq_ifr_flags=no
8588 fi
8589
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 fi
8592
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 fi
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8596 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8597 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8598
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8601 _ACEOF
8602
8603
8604 fi
8605 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8606 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8607 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8619 #endif
8620 #if HAVE_NET_IF_H
8621 #include <net/if.h>
8622 #endif
8623
8624 int
8625 main ()
8626 {
8627 static struct ifreq ac_aggr;
8628 if (ac_aggr.ifr_hwaddr)
8629 return 0;
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8636 case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639 esac
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8653 else
8654 $as_echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 $ac_includes_default
8664 #if HAVE_SYS_SOCKET_H
8665 #include <sys/socket.h>
8666 #endif
8667 #if HAVE_NET_IF_H
8668 #include <net/if.h>
8669 #endif
8670
8671 int
8672 main ()
8673 {
8674 static struct ifreq ac_aggr;
8675 if (sizeof ac_aggr.ifr_hwaddr)
8676 return 0;
8677 ;
8678 return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8700 else
8701 $as_echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8705 fi
8706
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 fi
8712 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8713 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8714 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8715
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8718 _ACEOF
8719
8720
8721 fi
8722 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8723 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8724 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8725 $as_echo_n "(cached) " >&6
8726 else
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 $ac_includes_default
8734 #if HAVE_SYS_SOCKET_H
8735 #include <sys/socket.h>
8736 #endif
8737 #if HAVE_NET_IF_H
8738 #include <net/if.h>
8739 #endif
8740
8741 int
8742 main ()
8743 {
8744 static struct ifreq ac_aggr;
8745 if (ac_aggr.ifr_netmask)
8746 return 0;
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (ac_try="$ac_compile"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.$ac_objext; then
8769 ac_cv_member_struct_ifreq_ifr_netmask=yes
8770 else
8771 $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 #if HAVE_SYS_SOCKET_H
8782 #include <sys/socket.h>
8783 #endif
8784 #if HAVE_NET_IF_H
8785 #include <net/if.h>
8786 #endif
8787
8788 int
8789 main ()
8790 {
8791 static struct ifreq ac_aggr;
8792 if (sizeof ac_aggr.ifr_netmask)
8793 return 0;
8794 ;
8795 return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (ac_try="$ac_compile"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8805 $as_echo "$ac_try_echo") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_cv_member_struct_ifreq_ifr_netmask=yes
8817 else
8818 $as_echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 ac_cv_member_struct_ifreq_ifr_netmask=no
8822 fi
8823
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 fi
8826
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8830 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8831 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8832
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8835 _ACEOF
8836
8837
8838 fi
8839 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8840 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8841 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8842 $as_echo_n "(cached) " >&6
8843 else
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 $ac_includes_default
8851 #if HAVE_SYS_SOCKET_H
8852 #include <sys/socket.h>
8853 #endif
8854 #if HAVE_NET_IF_H
8855 #include <net/if.h>
8856 #endif
8857
8858 int
8859 main ()
8860 {
8861 static struct ifreq ac_aggr;
8862 if (ac_aggr.ifr_broadaddr)
8863 return 0;
8864 ;
8865 return 0;
8866 }
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (ac_try="$ac_compile"
8870 case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876 (eval "$ac_compile") 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest.$ac_objext; then
8886 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8887 else
8888 $as_echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8890
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 $ac_includes_default
8898 #if HAVE_SYS_SOCKET_H
8899 #include <sys/socket.h>
8900 #endif
8901 #if HAVE_NET_IF_H
8902 #include <net/if.h>
8903 #endif
8904
8905 int
8906 main ()
8907 {
8908 static struct ifreq ac_aggr;
8909 if (sizeof ac_aggr.ifr_broadaddr)
8910 return 0;
8911 ;
8912 return 0;
8913 }
8914 _ACEOF
8915 rm -f conftest.$ac_objext
8916 if { (ac_try="$ac_compile"
8917 case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920 esac
8921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.$ac_objext; then
8933 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8934 else
8935 $as_echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8939 fi
8940
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 fi
8943
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 fi
8946 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8947 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8948 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8949
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8952 _ACEOF
8953
8954
8955 fi
8956 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8957 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8958 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8959 $as_echo_n "(cached) " >&6
8960 else
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h. */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 $ac_includes_default
8968 #if HAVE_SYS_SOCKET_H
8969 #include <sys/socket.h>
8970 #endif
8971 #if HAVE_NET_IF_H
8972 #include <net/if.h>
8973 #endif
8974
8975 int
8976 main ()
8977 {
8978 static struct ifreq ac_aggr;
8979 if (ac_aggr.ifr_addr)
8980 return 0;
8981 ;
8982 return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext
8986 if { (ac_try="$ac_compile"
8987 case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990 esac
8991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8992 $as_echo "$ac_try_echo") >&5
8993 (eval "$ac_compile") 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } && {
9000 test -z "$ac_c_werror_flag" ||
9001 test ! -s conftest.err
9002 } && test -s conftest.$ac_objext; then
9003 ac_cv_member_struct_ifreq_ifr_addr=yes
9004 else
9005 $as_echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9015 #if HAVE_SYS_SOCKET_H
9016 #include <sys/socket.h>
9017 #endif
9018 #if HAVE_NET_IF_H
9019 #include <net/if.h>
9020 #endif
9021
9022 int
9023 main ()
9024 {
9025 static struct ifreq ac_aggr;
9026 if (sizeof ac_aggr.ifr_addr)
9027 return 0;
9028 ;
9029 return 0;
9030 }
9031 _ACEOF
9032 rm -f conftest.$ac_objext
9033 if { (ac_try="$ac_compile"
9034 case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037 esac
9038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9039 $as_echo "$ac_try_echo") >&5
9040 (eval "$ac_compile") 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_c_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest.$ac_objext; then
9050 ac_cv_member_struct_ifreq_ifr_addr=yes
9051 else
9052 $as_echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_cv_member_struct_ifreq_ifr_addr=no
9056 fi
9057
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9064 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9065 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9066
9067 cat >>confdefs.h <<_ACEOF
9068 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9069 _ACEOF
9070
9071
9072 fi
9073
9074
9075
9076 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9077 $as_echo_n "checking for function prototypes... " >&6; }
9078 if test "$ac_cv_prog_cc_c89" != no; then
9079 { $as_echo "$as_me:$LINENO: result: yes" >&5
9080 $as_echo "yes" >&6; }
9081
9082 cat >>confdefs.h <<\_ACEOF
9083 #define PROTOTYPES 1
9084 _ACEOF
9085
9086
9087 cat >>confdefs.h <<\_ACEOF
9088 #define __PROTOTYPES 1
9089 _ACEOF
9090
9091 else
9092 { $as_echo "$as_me:$LINENO: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9097 $as_echo_n "checking for working volatile... " >&6; }
9098 if test "${ac_cv_c_volatile+set}" = set; then
9099 $as_echo_n "(cached) " >&6
9100 else
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107
9108 int
9109 main ()
9110 {
9111
9112 volatile int x;
9113 int * volatile y = (int *) 0;
9114 return !x && !y;
9115 ;
9116 return 0;
9117 }
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (ac_try="$ac_compile"
9121 case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124 esac
9125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9126 $as_echo "$ac_try_echo") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.$ac_objext; then
9137 ac_cv_c_volatile=yes
9138 else
9139 $as_echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_cv_c_volatile=no
9143 fi
9144
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 fi
9147 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9148 $as_echo "$ac_cv_c_volatile" >&6; }
9149 if test $ac_cv_c_volatile = no; then
9150
9151 cat >>confdefs.h <<\_ACEOF
9152 #define volatile /**/
9153 _ACEOF
9154
9155 fi
9156
9157 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9158 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9159 if test "${ac_cv_c_const+set}" = set; then
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168
9169 int
9170 main ()
9171 {
9172 /* FIXME: Include the comments suggested by Paul. */
9173 #ifndef __cplusplus
9174 /* Ultrix mips cc rejects this. */
9175 typedef int charset[2];
9176 const charset cs;
9177 /* SunOS 4.1.1 cc rejects this. */
9178 char const *const *pcpcc;
9179 char **ppc;
9180 /* NEC SVR4.0.2 mips cc rejects this. */
9181 struct point {int x, y;};
9182 static struct point const zero = {0,0};
9183 /* AIX XL C 1.02.0.0 rejects this.
9184 It does not let you subtract one const X* pointer from another in
9185 an arm of an if-expression whose if-part is not a constant
9186 expression */
9187 const char *g = "string";
9188 pcpcc = &g + (g ? g-g : 0);
9189 /* HPUX 7.0 cc rejects these. */
9190 ++pcpcc;
9191 ppc = (char**) pcpcc;
9192 pcpcc = (char const *const *) ppc;
9193 { /* SCO 3.2v4 cc rejects this. */
9194 char *t;
9195 char const *s = 0 ? (char *) 0 : (char const *) 0;
9196
9197 *t++ = 0;
9198 if (s) return 0;
9199 }
9200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9201 int x[] = {25, 17};
9202 const int *foo = &x[0];
9203 ++foo;
9204 }
9205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9206 typedef const int *iptr;
9207 iptr p = 0;
9208 ++p;
9209 }
9210 { /* AIX XL C 1.02.0.0 rejects this saying
9211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9212 struct s { int j; const int *ap[3]; };
9213 struct s *b; b->j = 5;
9214 }
9215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9216 const int foo = 10;
9217 if (!foo) return 0;
9218 }
9219 return !cs[0] && !zero.x;
9220 #endif
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9233 $as_echo "$ac_try_echo") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 ac_cv_c_const=yes
9245 else
9246 $as_echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 ac_cv_c_const=no
9250 fi
9251
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 fi
9254 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9255 $as_echo "$ac_cv_c_const" >&6; }
9256 if test $ac_cv_c_const = no; then
9257
9258 cat >>confdefs.h <<\_ACEOF
9259 #define const /**/
9260 _ACEOF
9261
9262 fi
9263
9264 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9265 $as_echo_n "checking for void * support... " >&6; }
9266 if test "${emacs_cv_void_star+set}" = set; then
9267 $as_echo_n "(cached) " >&6
9268 else
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275
9276 int
9277 main ()
9278 {
9279 void * foo;
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext
9285 if { (ac_try="$ac_compile"
9286 case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289 esac
9290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9291 $as_echo "$ac_try_echo") >&5
9292 (eval "$ac_compile") 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && {
9299 test -z "$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9301 } && test -s conftest.$ac_objext; then
9302 emacs_cv_void_star=yes
9303 else
9304 $as_echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 emacs_cv_void_star=no
9308 fi
9309
9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9313 $as_echo "$emacs_cv_void_star" >&6; }
9314 if test $emacs_cv_void_star = yes; then
9315 cat >>confdefs.h <<\_ACEOF
9316 #define POINTER_TYPE void
9317 _ACEOF
9318
9319 else
9320 cat >>confdefs.h <<\_ACEOF
9321 #define POINTER_TYPE char
9322 _ACEOF
9323
9324 fi
9325
9326
9327
9328
9329
9330 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9332 set x ${MAKE-make}
9333 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9334 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9335 $as_echo_n "(cached) " >&6
9336 else
9337 cat >conftest.make <<\_ACEOF
9338 SHELL = /bin/sh
9339 all:
9340 @echo '@@@%%%=$(MAKE)=@@@%%%'
9341 _ACEOF
9342 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9344 *@@@%%%=?*=@@@%%%*)
9345 eval ac_cv_prog_make_${ac_make}_set=yes;;
9346 *)
9347 eval ac_cv_prog_make_${ac_make}_set=no;;
9348 esac
9349 rm -f conftest.make
9350 fi
9351 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9352 { $as_echo "$as_me:$LINENO: result: yes" >&5
9353 $as_echo "yes" >&6; }
9354 SET_MAKE=
9355 else
9356 { $as_echo "$as_me:$LINENO: result: no" >&5
9357 $as_echo "no" >&6; }
9358 SET_MAKE="MAKE=${MAKE-make}"
9359 fi
9360
9361
9362 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9363 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9364 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9365 HAVE_GNU_MAKE=no
9366 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9367 if test "x$testval" != x; then
9368 HAVE_GNU_MAKE=yes
9369 else
9370 ac_enable_autodepend=no
9371 fi
9372 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9373 $as_echo "$HAVE_GNU_MAKE" >&6; }
9374 if test $HAVE_GNU_MAKE = yes; then
9375 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9376 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9377 SAVE_CFLAGS="$CFLAGS"
9378 CFLAGS="$CFLAGS -MMD -MF deps.d"
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385
9386 int
9387 main ()
9388 {
9389
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (ac_try="$ac_compile"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9401 $as_echo "$ac_try_echo") >&5
9402 (eval "$ac_compile") 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest.$ac_objext; then
9412 :
9413 else
9414 $as_echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417 ac_enable_autodepend=no
9418 fi
9419
9420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421 CFLAGS="$SAVE_CFLAGS"
9422 test -f deps.d || ac_enable_autodepend=no
9423 rm -rf deps.d
9424 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9425 $as_echo "$ac_enable_autodepend" >&6; }
9426 fi
9427 if test $ac_enable_autodepend = yes; then
9428
9429 cat >>confdefs.h <<\_ACEOF
9430 #define AUTO_DEPEND 1
9431 _ACEOF
9432
9433 fi
9434 fi
9435
9436 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9437 $as_echo_n "checking for long file names... " >&6; }
9438 if test "${ac_cv_sys_long_file_names+set}" = set; then
9439 $as_echo_n "(cached) " >&6
9440 else
9441 ac_cv_sys_long_file_names=yes
9442 # Test for long file names in all the places we know might matter:
9443 # . the current directory, where building will happen
9444 # $prefix/lib where we will be installing things
9445 # $exec_prefix/lib likewise
9446 # $TMPDIR if set, where it might want to write temporary files
9447 # /tmp where it might want to write temporary files
9448 # /var/tmp likewise
9449 # /usr/tmp likewise
9450 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9451 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9452 # in the usual case where exec_prefix is '${prefix}'.
9453 case $ac_dir in #(
9454 . | /* | ?:[\\/]*) ;; #(
9455 *) continue;;
9456 esac
9457 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9458 ac_xdir=$ac_dir/cf$$
9459 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9460 ac_tf1=$ac_xdir/conftest9012345
9461 ac_tf2=$ac_xdir/conftest9012346
9462 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9463 ac_cv_sys_long_file_names=no
9464 rm -f -r "$ac_xdir" 2>/dev/null
9465 test $ac_cv_sys_long_file_names = no && break
9466 done
9467 fi
9468 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9469 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9470 if test $ac_cv_sys_long_file_names = yes; then
9471
9472 cat >>confdefs.h <<\_ACEOF
9473 #define HAVE_LONG_FILE_NAMES 1
9474 _ACEOF
9475
9476 fi
9477
9478
9479 #### Choose a window system.
9480
9481 { $as_echo "$as_me:$LINENO: checking for X" >&5
9482 $as_echo_n "checking for X... " >&6; }
9483
9484
9485 # Check whether --with-x was given.
9486 if test "${with_x+set}" = set; then
9487 withval=$with_x;
9488 fi
9489
9490 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9491 if test "x$with_x" = xno; then
9492 # The user explicitly disabled X.
9493 have_x=disabled
9494 else
9495 case $x_includes,$x_libraries in #(
9496 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9497 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9498 { (exit 1); exit 1; }; };; #(
9499 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9500 $as_echo_n "(cached) " >&6
9501 else
9502 # One or both of the vars are not set, and there is no cached value.
9503 ac_x_includes=no ac_x_libraries=no
9504 rm -f -r conftest.dir
9505 if mkdir conftest.dir; then
9506 cd conftest.dir
9507 cat >Imakefile <<'_ACEOF'
9508 incroot:
9509 @echo incroot='${INCROOT}'
9510 usrlibdir:
9511 @echo usrlibdir='${USRLIBDIR}'
9512 libdir:
9513 @echo libdir='${LIBDIR}'
9514 _ACEOF
9515 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9516 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9517 for ac_var in incroot usrlibdir libdir; do
9518 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9519 done
9520 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9521 for ac_extension in a so sl dylib la dll; do
9522 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9523 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9524 ac_im_usrlibdir=$ac_im_libdir; break
9525 fi
9526 done
9527 # Screen out bogus values from the imake configuration. They are
9528 # bogus both because they are the default anyway, and because
9529 # using them would break gcc on systems where it needs fixed includes.
9530 case $ac_im_incroot in
9531 /usr/include) ac_x_includes= ;;
9532 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9533 esac
9534 case $ac_im_usrlibdir in
9535 /usr/lib | /lib) ;;
9536 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9537 esac
9538 fi
9539 cd ..
9540 rm -f -r conftest.dir
9541 fi
9542
9543 # Standard set of common directories for X headers.
9544 # Check X11 before X11Rn because it is often a symlink to the current release.
9545 ac_x_header_dirs='
9546 /usr/X11/include
9547 /usr/X11R6/include
9548 /usr/X11R5/include
9549 /usr/X11R4/include
9550
9551 /usr/include/X11
9552 /usr/include/X11R6
9553 /usr/include/X11R5
9554 /usr/include/X11R4
9555
9556 /usr/local/X11/include
9557 /usr/local/X11R6/include
9558 /usr/local/X11R5/include
9559 /usr/local/X11R4/include
9560
9561 /usr/local/include/X11
9562 /usr/local/include/X11R6
9563 /usr/local/include/X11R5
9564 /usr/local/include/X11R4
9565
9566 /usr/X386/include
9567 /usr/x386/include
9568 /usr/XFree86/include/X11
9569
9570 /usr/include
9571 /usr/local/include
9572 /usr/unsupported/include
9573 /usr/athena/include
9574 /usr/local/x11r5/include
9575 /usr/lpp/Xamples/include
9576
9577 /usr/openwin/include
9578 /usr/openwin/share/include'
9579
9580 if test "$ac_x_includes" = no; then
9581 # Guess where to find include files, by looking for Xlib.h.
9582 # First, try using that file with no special directory specified.
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 #include <X11/Xlib.h>
9590 _ACEOF
9591 if { (ac_try="$ac_cpp conftest.$ac_ext"
9592 case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595 esac
9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } >/dev/null && {
9605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9607 }; then
9608 # We can compile using X headers with no special include directory.
9609 ac_x_includes=
9610 else
9611 $as_echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 for ac_dir in $ac_x_header_dirs; do
9615 if test -r "$ac_dir/X11/Xlib.h"; then
9616 ac_x_includes=$ac_dir
9617 break
9618 fi
9619 done
9620 fi
9621
9622 rm -f conftest.err conftest.$ac_ext
9623 fi # $ac_x_includes = no
9624
9625 if test "$ac_x_libraries" = no; then
9626 # Check for the libraries.
9627 # See if we find them without any special options.
9628 # Don't add to $LIBS permanently.
9629 ac_save_LIBS=$LIBS
9630 LIBS="-lX11 $LIBS"
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 #include <X11/Xlib.h>
9638 int
9639 main ()
9640 {
9641 XrmInitialize ()
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651 esac
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654 (eval "$ac_link") 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext && {
9664 test "$cross_compiling" = yes ||
9665 $as_test_x conftest$ac_exeext
9666 }; then
9667 LIBS=$ac_save_LIBS
9668 # We can link X programs with no special library path.
9669 ac_x_libraries=
9670 else
9671 $as_echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674 LIBS=$ac_save_LIBS
9675 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9676 do
9677 # Don't even attempt the hair of trying to link an X program!
9678 for ac_extension in a so sl dylib la dll; do
9679 if test -r "$ac_dir/libX11.$ac_extension"; then
9680 ac_x_libraries=$ac_dir
9681 break 2
9682 fi
9683 done
9684 done
9685 fi
9686
9687 rm -rf conftest.dSYM
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689 conftest$ac_exeext conftest.$ac_ext
9690 fi # $ac_x_libraries = no
9691
9692 case $ac_x_includes,$ac_x_libraries in #(
9693 no,* | *,no | *\'*)
9694 # Didn't find X, or a directory has "'" in its name.
9695 ac_cv_have_x="have_x=no";; #(
9696 *)
9697 # Record where we found X for the cache.
9698 ac_cv_have_x="have_x=yes\
9699 ac_x_includes='$ac_x_includes'\
9700 ac_x_libraries='$ac_x_libraries'"
9701 esac
9702 fi
9703 ;; #(
9704 *) have_x=yes;;
9705 esac
9706 eval "$ac_cv_have_x"
9707 fi # $with_x != no
9708
9709 if test "$have_x" != yes; then
9710 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9711 $as_echo "$have_x" >&6; }
9712 no_x=yes
9713 else
9714 # If each of the values was on the command line, it overrides each guess.
9715 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9716 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9717 # Update the cache value to reflect the command line values.
9718 ac_cv_have_x="have_x=yes\
9719 ac_x_includes='$x_includes'\
9720 ac_x_libraries='$x_libraries'"
9721 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9722 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9723 fi
9724
9725 if test "$no_x" = yes; then
9726 window_system=none
9727 else
9728 window_system=x11
9729 fi
9730
9731 ## Workaround for bug in autoconf <= 2.62.
9732 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9733 ## No need to do anything special for these standard directories.
9734 ## This is an experiment, take it out if it causes problems.
9735 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9736
9737 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9738
9739 fi
9740
9741 if test "${x_libraries}" != NONE; then
9742 if test -n "${x_libraries}"; then
9743 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9744 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9745 fi
9746 x_default_search_path=""
9747 x_search_path=${x_libraries}
9748 if test -z "${x_search_path}"; then
9749 x_search_path=/usr/lib
9750 fi
9751 for x_library in `echo ${x_search_path}: | \
9752 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9753 x_search_path="\
9754 ${x_library}/X11/%L/%T/%N%C%S:\
9755 ${x_library}/X11/%l/%T/%N%C%S:\
9756 ${x_library}/X11/%T/%N%C%S:\
9757 ${x_library}/X11/%L/%T/%N%S:\
9758 ${x_library}/X11/%l/%T/%N%S:\
9759 ${x_library}/X11/%T/%N%S"
9760 if test x"${x_default_search_path}" = x; then
9761 x_default_search_path=${x_search_path}
9762 else
9763 x_default_search_path="${x_search_path}:${x_default_search_path}"
9764 fi
9765 done
9766 fi
9767 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9768 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9769 fi
9770
9771 if test x"${x_includes}" = x; then
9772 bitmapdir=/usr/include/X11/bitmaps
9773 else
9774 # accumulate include directories that have X11 bitmap subdirectories
9775 bmd_acc="dummyval"
9776 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9777 if test -d "${bmd}/X11/bitmaps"; then
9778 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9779 fi
9780 if test -d "${bmd}/bitmaps"; then
9781 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9782 fi
9783 done
9784 if test ${bmd_acc} != "dummyval"; then
9785 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9786 fi
9787 fi
9788
9789 HAVE_NS=no
9790 NS_IMPL_COCOA=no
9791 NS_IMPL_GNUSTEP=no
9792 tmp_CPPFLAGS="$CPPFLAGS"
9793 tmp_CFLAGS="$CFLAGS"
9794 CPPFLAGS="$CPPFLAGS -x objective-c"
9795 CFLAGS="$CFLAGS -x objective-c"
9796 if test "${with_ns}" != no; then
9797 if test "${opsys}" = darwin; then
9798 NS_IMPL_COCOA=yes
9799 ns_appdir=`pwd`/nextstep/Emacs.app
9800 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9801 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9802 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9803 elif test -f $GNUSTEP_CONFIG_FILE; then
9804 NS_IMPL_GNUSTEP=yes
9805 ns_appdir=`pwd`/nextstep/Emacs.app
9806 ns_appbindir=`pwd`/nextstep/Emacs.app
9807 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9808 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9809 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9810 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9811 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9812 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9813 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9814 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9815 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9816 fi
9817 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9818 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9819 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9820 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9821 $as_echo_n "(cached) " >&6
9822 fi
9823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9824 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9825 else
9826 # Is the header compilable?
9827 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9828 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9836 #include <AppKit/AppKit.h>
9837 _ACEOF
9838 rm -f conftest.$ac_objext
9839 if { (ac_try="$ac_compile"
9840 case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843 esac
9844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9845 $as_echo "$ac_try_echo") >&5
9846 (eval "$ac_compile") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } && {
9853 test -z "$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 } && test -s conftest.$ac_objext; then
9856 ac_header_compiler=yes
9857 else
9858 $as_echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_header_compiler=no
9862 fi
9863
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9866 $as_echo "$ac_header_compiler" >&6; }
9867
9868 # Is the header present?
9869 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9870 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h. */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 #include <AppKit/AppKit.h>
9878 _ACEOF
9879 if { (ac_try="$ac_cpp conftest.$ac_ext"
9880 case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9885 $as_echo "$ac_try_echo") >&5
9886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null && {
9893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9894 test ! -s conftest.err
9895 }; then
9896 ac_header_preproc=yes
9897 else
9898 $as_echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901 ac_header_preproc=no
9902 fi
9903
9904 rm -f conftest.err conftest.$ac_ext
9905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9906 $as_echo "$ac_header_preproc" >&6; }
9907
9908 # So? What about this header?
9909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9910 yes:no: )
9911 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9912 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9913 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9914 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9915 ac_header_preproc=yes
9916 ;;
9917 no:yes:* )
9918 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9919 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9920 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9921 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9922 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9923 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9924 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9925 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9926 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9927 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9928 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9929 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9930
9931 ;;
9932 esac
9933 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9934 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9935 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9936 $as_echo_n "(cached) " >&6
9937 else
9938 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9939 fi
9940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9941 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9942
9943 fi
9944 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9945 HAVE_NS=yes
9946 else
9947 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9948 files are missing or cannot be compiled." >&5
9949 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9950 files are missing or cannot be compiled." >&2;}
9951 { (exit 1); exit 1; }; }
9952 fi
9953
9954
9955 NS_HAVE_NSINTEGER=yes
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h. */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 #include <Foundation/NSObjCRuntime.h>
9963 int
9964 main ()
9965 {
9966 NSInteger i;
9967 ;
9968 return 0;
9969 }
9970 _ACEOF
9971 rm -f conftest.$ac_objext
9972 if { (ac_try="$ac_compile"
9973 case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979 (eval "$ac_compile") 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } && {
9986 test -z "$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 } && test -s conftest.$ac_objext; then
9989 ns_have_nsinteger=yes
9990 else
9991 $as_echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 ns_have_nsinteger=no
9995 fi
9996
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 if test $ns_have_nsinteger = no; then
9999 NS_HAVE_NSINTEGER=no
10000 fi
10001 fi
10002
10003 NS_OBJ=
10004 NS_SUPPORT=
10005 if test "${HAVE_NS}" = yes; then
10006 window_system=nextstep
10007 with_xft=no
10008 # set up packaging dirs
10009 exec_prefix=${ns_appbindir}
10010 libexecdir=${ns_appbindir}/libexec
10011 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10012 prefix=${ns_appresdir}
10013 fi
10014 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10015 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10016 fi
10017 CFLAGS="$tmp_CFLAGS"
10018 CPPFLAGS="$tmp_CPPFLAGS"
10019
10020
10021
10022 case "${window_system}" in
10023 x11 )
10024 HAVE_X_WINDOWS=yes
10025 HAVE_X11=yes
10026 case "${with_x_toolkit}" in
10027 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10028 motif ) USE_X_TOOLKIT=MOTIF ;;
10029 gtk ) with_gtk=yes
10030 USE_X_TOOLKIT=none ;;
10031 no ) USE_X_TOOLKIT=none ;;
10032 * ) USE_X_TOOLKIT=maybe ;;
10033 esac
10034 ;;
10035 nextstep | none )
10036 HAVE_X_WINDOWS=no
10037 HAVE_X11=no
10038 USE_X_TOOLKIT=none
10039 ;;
10040 esac
10041
10042 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10043 # Extract the first word of "X", so it can be a program name with args.
10044 set dummy X; ac_word=$2
10045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10048 $as_echo_n "(cached) " >&6
10049 else
10050 if test -n "$HAVE_XSERVER"; then
10051 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_prog_HAVE_XSERVER="true"
10061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066 IFS=$as_save_IFS
10067
10068 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10069 fi
10070 fi
10071 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10072 if test -n "$HAVE_XSERVER"; then
10073 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10074 $as_echo "$HAVE_XSERVER" >&6; }
10075 else
10076 { $as_echo "$as_me:$LINENO: result: no" >&5
10077 $as_echo "no" >&6; }
10078 fi
10079
10080
10081 if test "$HAVE_XSERVER" = true ||
10082 test -n "$DISPLAY" ||
10083 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10084 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10085 were found. You should install the relevant development files for X
10086 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10087 sure you have development files for image handling, i.e.
10088 tiff, gif, jpeg, png and xpm.
10089 If you are sure you want Emacs compiled without X window support, pass
10090 --without-x
10091 to configure." >&5
10092 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10093 were found. You should install the relevant development files for X
10094 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10095 sure you have development files for image handling, i.e.
10096 tiff, gif, jpeg, png and xpm.
10097 If you are sure you want Emacs compiled without X window support, pass
10098 --without-x
10099 to configure." >&2;}
10100 { (exit 1); exit 1; }; }
10101 fi
10102 fi
10103
10104 ### If we're using X11, we should use the X menu package.
10105 HAVE_MENUS=no
10106 case ${HAVE_X11} in
10107 yes ) HAVE_MENUS=yes ;;
10108 esac
10109
10110 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10111 # Assume not, until told otherwise.
10112 GNU_MALLOC=yes
10113 doug_lea_malloc=yes
10114 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10115 $as_echo_n "checking for malloc_get_state... " >&6; }
10116 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10117 $as_echo_n "(cached) " >&6
10118 else
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h. */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127 #define malloc_get_state innocuous_malloc_get_state
10128
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char malloc_get_state (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10133
10134 #ifdef __STDC__
10135 # include <limits.h>
10136 #else
10137 # include <assert.h>
10138 #endif
10139
10140 #undef malloc_get_state
10141
10142 /* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10145 #ifdef __cplusplus
10146 extern "C"
10147 #endif
10148 char malloc_get_state ();
10149 /* The GNU C library defines this for functions which it implements
10150 to always fail with ENOSYS. Some functions are actually named
10151 something starting with __ and the normal name is an alias. */
10152 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10153 choke me
10154 #endif
10155
10156 int
10157 main ()
10158 {
10159 return malloc_get_state ();
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169 esac
10170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10171 $as_echo "$ac_try_echo") >&5
10172 (eval "$ac_link") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest$ac_exeext && {
10182 test "$cross_compiling" = yes ||
10183 $as_test_x conftest$ac_exeext
10184 }; then
10185 ac_cv_func_malloc_get_state=yes
10186 else
10187 $as_echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_cv_func_malloc_get_state=no
10191 fi
10192
10193 rm -rf conftest.dSYM
10194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195 conftest$ac_exeext conftest.$ac_ext
10196 fi
10197 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10198 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10199 if test $ac_cv_func_malloc_get_state = yes; then
10200 :
10201 else
10202 doug_lea_malloc=no
10203 fi
10204
10205 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10206 $as_echo_n "checking for malloc_set_state... " >&6; }
10207 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10208 $as_echo_n "(cached) " >&6
10209 else
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10218 #define malloc_set_state innocuous_malloc_set_state
10219
10220 /* System header to define __stub macros and hopefully few prototypes,
10221 which can conflict with char malloc_set_state (); below.
10222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10223 <limits.h> exists even on freestanding compilers. */
10224
10225 #ifdef __STDC__
10226 # include <limits.h>
10227 #else
10228 # include <assert.h>
10229 #endif
10230
10231 #undef malloc_set_state
10232
10233 /* Override any GCC internal prototype to avoid an error.
10234 Use char because int might match the return type of a GCC
10235 builtin and then its argument prototype would still apply. */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 char malloc_set_state ();
10240 /* The GNU C library defines this for functions which it implements
10241 to always fail with ENOSYS. Some functions are actually named
10242 something starting with __ and the normal name is an alias. */
10243 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10244 choke me
10245 #endif
10246
10247 int
10248 main ()
10249 {
10250 return malloc_set_state ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10275 }; then
10276 ac_cv_func_malloc_set_state=yes
10277 else
10278 $as_echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_func_malloc_set_state=no
10282 fi
10283
10284 rm -rf conftest.dSYM
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10287 fi
10288 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10289 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10290 if test $ac_cv_func_malloc_set_state = yes; then
10291 :
10292 else
10293 doug_lea_malloc=no
10294 fi
10295
10296 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10297 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10298 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10299 $as_echo_n "(cached) " >&6
10300 else
10301 cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h. */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 extern void (* __after_morecore_hook)();
10308 int
10309 main ()
10310 {
10311 __after_morecore_hook = 0
10312 ;
10313 return 0;
10314 }
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321 esac
10322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10323 $as_echo "$ac_try_echo") >&5
10324 (eval "$ac_link") 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest$ac_exeext && {
10334 test "$cross_compiling" = yes ||
10335 $as_test_x conftest$ac_exeext
10336 }; then
10337 emacs_cv_var___after_morecore_hook=yes
10338 else
10339 $as_echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 emacs_cv_var___after_morecore_hook=no
10343 fi
10344
10345 rm -rf conftest.dSYM
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348 fi
10349 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10350 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10351 if test $emacs_cv_var___after_morecore_hook = no; then
10352 doug_lea_malloc=no
10353 fi
10354 if test "${system_malloc}" = "yes"; then
10355 GNU_MALLOC=no
10356 GNU_MALLOC_reason="
10357 (The GNU allocators don't work with this system configuration.)"
10358 fi
10359 if test "$doug_lea_malloc" = "yes" ; then
10360 if test "$GNU_MALLOC" = yes ; then
10361 GNU_MALLOC_reason="
10362 (Using Doug Lea's new malloc from the GNU C Library.)"
10363 fi
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define DOUG_LEA_MALLOC 1
10367 _ACEOF
10368
10369 fi
10370
10371 if test x"${REL_ALLOC}" = x; then
10372 REL_ALLOC=${GNU_MALLOC}
10373 fi
10374
10375
10376
10377
10378 for ac_header in stdlib.h unistd.h
10379 do
10380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10383 $as_echo_n "checking for $ac_header... " >&6; }
10384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10385 $as_echo_n "(cached) " >&6
10386 fi
10387 ac_res=`eval 'as_val=${'$as_ac_Header'}
10388 $as_echo "$as_val"'`
10389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10390 $as_echo "$ac_res" >&6; }
10391 else
10392 # Is the header compilable?
10393 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10394 $as_echo_n "checking $ac_header usability... " >&6; }
10395 cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h. */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 $ac_includes_default
10402 #include <$ac_header>
10403 _ACEOF
10404 rm -f conftest.$ac_objext
10405 if { (ac_try="$ac_compile"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10411 $as_echo "$ac_try_echo") >&5
10412 (eval "$ac_compile") 2>conftest.er1
10413 ac_status=$?
10414 grep -v '^ *+' conftest.er1 >conftest.err
10415 rm -f conftest.er1
10416 cat conftest.err >&5
10417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && {
10419 test -z "$ac_c_werror_flag" ||
10420 test ! -s conftest.err
10421 } && test -s conftest.$ac_objext; then
10422 ac_header_compiler=yes
10423 else
10424 $as_echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_header_compiler=no
10428 fi
10429
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10432 $as_echo "$ac_header_compiler" >&6; }
10433
10434 # Is the header present?
10435 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10436 $as_echo_n "checking $ac_header presence... " >&6; }
10437 cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h. */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <$ac_header>
10444 _ACEOF
10445 if { (ac_try="$ac_cpp conftest.$ac_ext"
10446 case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449 esac
10450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10451 $as_echo "$ac_try_echo") >&5
10452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } >/dev/null && {
10459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 }; then
10462 ac_header_preproc=yes
10463 else
10464 $as_echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 ac_header_preproc=no
10468 fi
10469
10470 rm -f conftest.err conftest.$ac_ext
10471 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10472 $as_echo "$ac_header_preproc" >&6; }
10473
10474 # So? What about this header?
10475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10476 yes:no: )
10477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10478 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10480 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10481 ac_header_preproc=yes
10482 ;;
10483 no:yes:* )
10484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10485 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10487 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10489 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10491 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10493 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10495 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10496
10497 ;;
10498 esac
10499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10500 $as_echo_n "checking for $ac_header... " >&6; }
10501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10502 $as_echo_n "(cached) " >&6
10503 else
10504 eval "$as_ac_Header=\$ac_header_preproc"
10505 fi
10506 ac_res=`eval 'as_val=${'$as_ac_Header'}
10507 $as_echo "$as_val"'`
10508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10509 $as_echo "$ac_res" >&6; }
10510
10511 fi
10512 if test `eval 'as_val=${'$as_ac_Header'}
10513 $as_echo "$as_val"'` = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10516 _ACEOF
10517
10518 fi
10519
10520 done
10521
10522
10523 for ac_func in getpagesize
10524 do
10525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10526 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10527 $as_echo_n "checking for $ac_func... " >&6; }
10528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10529 $as_echo_n "(cached) " >&6
10530 else
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10539 #define $ac_func innocuous_$ac_func
10540
10541 /* System header to define __stub macros and hopefully few prototypes,
10542 which can conflict with char $ac_func (); below.
10543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10544 <limits.h> exists even on freestanding compilers. */
10545
10546 #ifdef __STDC__
10547 # include <limits.h>
10548 #else
10549 # include <assert.h>
10550 #endif
10551
10552 #undef $ac_func
10553
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char $ac_func ();
10561 /* The GNU C library defines this for functions which it implements
10562 to always fail with ENOSYS. Some functions are actually named
10563 something starting with __ and the normal name is an alias. */
10564 #if defined __stub_$ac_func || defined __stub___$ac_func
10565 choke me
10566 #endif
10567
10568 int
10569 main ()
10570 {
10571 return $ac_func ();
10572 ;
10573 return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext conftest$ac_exeext
10577 if { (ac_try="$ac_link"
10578 case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10581 esac
10582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10583 $as_echo "$ac_try_echo") >&5
10584 (eval "$ac_link") 2>conftest.er1
10585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest$ac_exeext && {
10594 test "$cross_compiling" = yes ||
10595 $as_test_x conftest$ac_exeext
10596 }; then
10597 eval "$as_ac_var=yes"
10598 else
10599 $as_echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 eval "$as_ac_var=no"
10603 fi
10604
10605 rm -rf conftest.dSYM
10606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10607 conftest$ac_exeext conftest.$ac_ext
10608 fi
10609 ac_res=`eval 'as_val=${'$as_ac_var'}
10610 $as_echo "$as_val"'`
10611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10612 $as_echo "$ac_res" >&6; }
10613 if test `eval 'as_val=${'$as_ac_var'}
10614 $as_echo "$as_val"'` = yes; then
10615 cat >>confdefs.h <<_ACEOF
10616 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10617 _ACEOF
10618
10619 fi
10620 done
10621
10622 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10623 $as_echo_n "checking for working mmap... " >&6; }
10624 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10625 $as_echo_n "(cached) " >&6
10626 else
10627 if test "$cross_compiling" = yes; then
10628 ac_cv_func_mmap_fixed_mapped=no
10629 else
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 $ac_includes_default
10637 /* malloc might have been renamed as rpl_malloc. */
10638 #undef malloc
10639
10640 /* Thanks to Mike Haertel and Jim Avera for this test.
10641 Here is a matrix of mmap possibilities:
10642 mmap private not fixed
10643 mmap private fixed at somewhere currently unmapped
10644 mmap private fixed at somewhere already mapped
10645 mmap shared not fixed
10646 mmap shared fixed at somewhere currently unmapped
10647 mmap shared fixed at somewhere already mapped
10648 For private mappings, we should verify that changes cannot be read()
10649 back from the file, nor mmap's back from the file at a different
10650 address. (There have been systems where private was not correctly
10651 implemented like the infamous i386 svr4.0, and systems where the
10652 VM page cache was not coherent with the file system buffer cache
10653 like early versions of FreeBSD and possibly contemporary NetBSD.)
10654 For shared mappings, we should conversely verify that changes get
10655 propagated back to all the places they're supposed to be.
10656
10657 Grep wants private fixed already mapped.
10658 The main things grep needs to know about mmap are:
10659 * does it exist and is it safe to write into the mmap'd area
10660 * how to use it (BSD variants) */
10661
10662 #include <fcntl.h>
10663 #include <sys/mman.h>
10664
10665 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10666 char *malloc ();
10667 #endif
10668
10669 /* This mess was copied from the GNU getpagesize.h. */
10670 #ifndef HAVE_GETPAGESIZE
10671 /* Assume that all systems that can run configure have sys/param.h. */
10672 # ifndef HAVE_SYS_PARAM_H
10673 # define HAVE_SYS_PARAM_H 1
10674 # endif
10675
10676 # ifdef _SC_PAGESIZE
10677 # define getpagesize() sysconf(_SC_PAGESIZE)
10678 # else /* no _SC_PAGESIZE */
10679 # ifdef HAVE_SYS_PARAM_H
10680 # include <sys/param.h>
10681 # ifdef EXEC_PAGESIZE
10682 # define getpagesize() EXEC_PAGESIZE
10683 # else /* no EXEC_PAGESIZE */
10684 # ifdef NBPG
10685 # define getpagesize() NBPG * CLSIZE
10686 # ifndef CLSIZE
10687 # define CLSIZE 1
10688 # endif /* no CLSIZE */
10689 # else /* no NBPG */
10690 # ifdef NBPC
10691 # define getpagesize() NBPC
10692 # else /* no NBPC */
10693 # ifdef PAGESIZE
10694 # define getpagesize() PAGESIZE
10695 # endif /* PAGESIZE */
10696 # endif /* no NBPC */
10697 # endif /* no NBPG */
10698 # endif /* no EXEC_PAGESIZE */
10699 # else /* no HAVE_SYS_PARAM_H */
10700 # define getpagesize() 8192 /* punt totally */
10701 # endif /* no HAVE_SYS_PARAM_H */
10702 # endif /* no _SC_PAGESIZE */
10703
10704 #endif /* no HAVE_GETPAGESIZE */
10705
10706 int
10707 main ()
10708 {
10709 char *data, *data2, *data3;
10710 int i, pagesize;
10711 int fd;
10712
10713 pagesize = getpagesize ();
10714
10715 /* First, make a file with some known garbage in it. */
10716 data = (char *) malloc (pagesize);
10717 if (!data)
10718 return 1;
10719 for (i = 0; i < pagesize; ++i)
10720 *(data + i) = rand ();
10721 umask (0);
10722 fd = creat ("conftest.mmap", 0600);
10723 if (fd < 0)
10724 return 1;
10725 if (write (fd, data, pagesize) != pagesize)
10726 return 1;
10727 close (fd);
10728
10729 /* Next, try to mmap the file at a fixed address which already has
10730 something else allocated at it. If we can, also make sure that
10731 we see the same garbage. */
10732 fd = open ("conftest.mmap", O_RDWR);
10733 if (fd < 0)
10734 return 1;
10735 data2 = (char *) malloc (2 * pagesize);
10736 if (!data2)
10737 return 1;
10738 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10739 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10740 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10741 return 1;
10742 for (i = 0; i < pagesize; ++i)
10743 if (*(data + i) != *(data2 + i))
10744 return 1;
10745
10746 /* Finally, make sure that changes to the mapped area do not
10747 percolate back to the file as seen by read(). (This is a bug on
10748 some variants of i386 svr4.0.) */
10749 for (i = 0; i < pagesize; ++i)
10750 *(data2 + i) = *(data2 + i) + 1;
10751 data3 = (char *) malloc (pagesize);
10752 if (!data3)
10753 return 1;
10754 if (read (fd, data3, pagesize) != pagesize)
10755 return 1;
10756 for (i = 0; i < pagesize; ++i)
10757 if (*(data + i) != *(data3 + i))
10758 return 1;
10759 close (fd);
10760 return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770 $as_echo "$ac_try_echo") >&5
10771 (eval "$ac_link") 2>&5
10772 ac_status=$?
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778 esac
10779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10780 $as_echo "$ac_try_echo") >&5
10781 (eval "$ac_try") 2>&5
10782 ac_status=$?
10783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_cv_func_mmap_fixed_mapped=yes
10786 else
10787 $as_echo "$as_me: program exited with status $ac_status" >&5
10788 $as_echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 ( exit $ac_status )
10792 ac_cv_func_mmap_fixed_mapped=no
10793 fi
10794 rm -rf conftest.dSYM
10795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10796 fi
10797
10798
10799 fi
10800 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10801 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10802 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10803
10804 cat >>confdefs.h <<\_ACEOF
10805 #define HAVE_MMAP 1
10806 _ACEOF
10807
10808 fi
10809 rm -f conftest.mmap
10810
10811 if test $use_mmap_for_buffers = yes; then
10812 REL_ALLOC=no
10813 fi
10814
10815 LIBS="$libsrc_libs $LIBS"
10816
10817
10818 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10819 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10820 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10821 $as_echo_n "(cached) " >&6
10822 else
10823 ac_check_lib_save_LIBS=$LIBS
10824 LIBS="-ldnet $LIBS"
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char dnet_ntoa ();
10839 int
10840 main ()
10841 {
10842 return dnet_ntoa ();
10843 ;
10844 return 0;
10845 }
10846 _ACEOF
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852 esac
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855 (eval "$ac_link") 2>conftest.er1
10856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest$ac_exeext && {
10865 test "$cross_compiling" = yes ||
10866 $as_test_x conftest$ac_exeext
10867 }; then
10868 ac_cv_lib_dnet_dnet_ntoa=yes
10869 else
10870 $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873 ac_cv_lib_dnet_dnet_ntoa=no
10874 fi
10875
10876 rm -rf conftest.dSYM
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10880 fi
10881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10882 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10883 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_LIBDNET 1
10886 _ACEOF
10887
10888 LIBS="-ldnet $LIBS"
10889
10890 fi
10891
10892
10893 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10894 $as_echo_n "checking for main in -lXbsd... " >&6; }
10895 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10896 $as_echo_n "(cached) " >&6
10897 else
10898 ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-lXbsd $LIBS"
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906
10907
10908 int
10909 main ()
10910 {
10911 return main ();
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921 esac
10922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10923 $as_echo "$ac_try_echo") >&5
10924 (eval "$ac_link") 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } && {
10931 test -z "$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 } && test -s conftest$ac_exeext && {
10934 test "$cross_compiling" = yes ||
10935 $as_test_x conftest$ac_exeext
10936 }; then
10937 ac_cv_lib_Xbsd_main=yes
10938 else
10939 $as_echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_lib_Xbsd_main=no
10943 fi
10944
10945 rm -rf conftest.dSYM
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10949 fi
10950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10951 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10952 if test $ac_cv_lib_Xbsd_main = yes; then
10953 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10954 fi
10955
10956
10957
10958 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10959 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10960 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10961 $as_echo_n "(cached) " >&6
10962 else
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lpthreads $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char cma_open ();
10979 int
10980 main ()
10981 {
10982 return cma_open ();
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10994 $as_echo "$ac_try_echo") >&5
10995 (eval "$ac_link") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest$ac_exeext && {
11005 test "$cross_compiling" = yes ||
11006 $as_test_x conftest$ac_exeext
11007 }; then
11008 ac_cv_lib_pthreads_cma_open=yes
11009 else
11010 $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 ac_cv_lib_pthreads_cma_open=no
11014 fi
11015
11016 rm -rf conftest.dSYM
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11022 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11023 if test $ac_cv_lib_pthreads_cma_open = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_LIBPTHREADS 1
11026 _ACEOF
11027
11028 LIBS="-lpthreads $LIBS"
11029
11030 fi
11031
11032
11033
11034 case ${host_os} in
11035 aix*)
11036 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11037 $as_echo_n "checking for -bbigtoc option... " >&6; }
11038 if test "${gdb_cv_bigtoc+set}" = set; then
11039 $as_echo_n "(cached) " >&6
11040 else
11041
11042 case $GCC in
11043 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11044 *) gdb_cv_bigtoc=-bbigtoc ;;
11045 esac
11046
11047 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054
11055 int
11056 main ()
11057 {
11058 int i;
11059 ;
11060 return 0;
11061 }
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11070 $as_echo "$ac_try_echo") >&5
11071 (eval "$ac_link") 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest$ac_exeext && {
11081 test "$cross_compiling" = yes ||
11082 $as_test_x conftest$ac_exeext
11083 }; then
11084 :
11085 else
11086 $as_echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 gdb_cv_bigtoc=
11090 fi
11091
11092 rm -rf conftest.dSYM
11093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11094 conftest$ac_exeext conftest.$ac_ext
11095
11096 fi
11097 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11098 $as_echo "$gdb_cv_bigtoc" >&6; }
11099 ;;
11100 esac
11101
11102 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11103 # used for the tests that follow. We set them back to REAL_CFLAGS and
11104 # REAL_CPPFLAGS later on.
11105
11106 REAL_CPPFLAGS="$CPPFLAGS"
11107
11108 if test "${HAVE_X11}" = "yes"; then
11109 DEFS="$C_SWITCH_X_SITE $DEFS"
11110 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11111 LIBS="$LIBX $LIBS"
11112 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11113 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11114
11115 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11116 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11117 # but it's more convenient here to set LD_RUN_PATH
11118 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11119 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11120 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11121 export LD_RUN_PATH
11122 fi
11123
11124 if test "${opsys}" = "gnu-linux"; then
11125 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11126 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133
11134 int
11135 main ()
11136 {
11137 XOpenDisplay ("foo");
11138 ;
11139 return 0;
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (ac_try="$ac_link"
11144 case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147 esac
11148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11149 $as_echo "$ac_try_echo") >&5
11150 (eval "$ac_link") 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && {
11157 test -z "$ac_c_werror_flag" ||
11158 test ! -s conftest.err
11159 } && test -s conftest$ac_exeext && {
11160 test "$cross_compiling" = yes ||
11161 $as_test_x conftest$ac_exeext
11162 }; then
11163 xlinux_first_failure=no
11164 else
11165 $as_echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 xlinux_first_failure=yes
11169 fi
11170
11171 rm -rf conftest.dSYM
11172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11173 conftest$ac_exeext conftest.$ac_ext
11174 if test "${xlinux_first_failure}" = "yes"; then
11175 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11176 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11177 OLD_CPPFLAGS="$CPPFLAGS"
11178 OLD_LIBS="$LIBS"
11179 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11180 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11181 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11182 LIBS="$LIBS -b i486-linuxaout"
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189
11190 int
11191 main ()
11192 {
11193 XOpenDisplay ("foo");
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 rm -f conftest.$ac_objext conftest$ac_exeext
11199 if { (ac_try="$ac_link"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11203 esac
11204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11205 $as_echo "$ac_try_echo") >&5
11206 (eval "$ac_link") 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest$ac_exeext && {
11216 test "$cross_compiling" = yes ||
11217 $as_test_x conftest$ac_exeext
11218 }; then
11219 xlinux_second_failure=no
11220 else
11221 $as_echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 xlinux_second_failure=yes
11225 fi
11226
11227 rm -rf conftest.dSYM
11228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11229 conftest$ac_exeext conftest.$ac_ext
11230 if test "${xlinux_second_failure}" = "yes"; then
11231 # If we get the same failure with -b, there is no use adding -b.
11232 # So take it out. This plays safe.
11233 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11234 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11235 CPPFLAGS="$OLD_CPPFLAGS"
11236 LIBS="$OLD_LIBS"
11237 { $as_echo "$as_me:$LINENO: result: no" >&5
11238 $as_echo "no" >&6; }
11239 else
11240 { $as_echo "$as_me:$LINENO: result: yes" >&5
11241 $as_echo "yes" >&6; }
11242 fi
11243 else
11244 { $as_echo "$as_me:$LINENO: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247 fi
11248
11249 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11250 # header files included from there.
11251 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11252 $as_echo_n "checking for Xkb... " >&6; }
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <X11/Xlib.h>
11260 #include <X11/XKBlib.h>
11261 int
11262 main ()
11263 {
11264 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (ac_try="$ac_link"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274 esac
11275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11276 $as_echo "$ac_try_echo") >&5
11277 (eval "$ac_link") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest$ac_exeext && {
11287 test "$cross_compiling" = yes ||
11288 $as_test_x conftest$ac_exeext
11289 }; then
11290 emacs_xkb=yes
11291 else
11292 $as_echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 emacs_xkb=no
11296 fi
11297
11298 rm -rf conftest.dSYM
11299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11300 conftest$ac_exeext conftest.$ac_ext
11301 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11302 $as_echo "$emacs_xkb" >&6; }
11303 if test $emacs_xkb = yes; then
11304
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_XKBGETKEYBOARD 1
11307 _ACEOF
11308
11309 fi
11310
11311
11312
11313
11314
11315 for ac_func in XrmSetDatabase XScreenResourceString \
11316 XScreenNumberOfScreen XSetWMProtocols
11317 do
11318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11320 $as_echo_n "checking for $ac_func... " >&6; }
11321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11322 $as_echo_n "(cached) " >&6
11323 else
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11332 #define $ac_func innocuous_$ac_func
11333
11334 /* System header to define __stub macros and hopefully few prototypes,
11335 which can conflict with char $ac_func (); below.
11336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11337 <limits.h> exists even on freestanding compilers. */
11338
11339 #ifdef __STDC__
11340 # include <limits.h>
11341 #else
11342 # include <assert.h>
11343 #endif
11344
11345 #undef $ac_func
11346
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char $ac_func ();
11354 /* The GNU C library defines this for functions which it implements
11355 to always fail with ENOSYS. Some functions are actually named
11356 something starting with __ and the normal name is an alias. */
11357 #if defined __stub_$ac_func || defined __stub___$ac_func
11358 choke me
11359 #endif
11360
11361 int
11362 main ()
11363 {
11364 return $ac_func ();
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (ac_try="$ac_link"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374 esac
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377 (eval "$ac_link") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest$ac_exeext && {
11387 test "$cross_compiling" = yes ||
11388 $as_test_x conftest$ac_exeext
11389 }; then
11390 eval "$as_ac_var=yes"
11391 else
11392 $as_echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 eval "$as_ac_var=no"
11396 fi
11397
11398 rm -rf conftest.dSYM
11399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11400 conftest$ac_exeext conftest.$ac_ext
11401 fi
11402 ac_res=`eval 'as_val=${'$as_ac_var'}
11403 $as_echo "$as_val"'`
11404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11405 $as_echo "$ac_res" >&6; }
11406 if test `eval 'as_val=${'$as_ac_var'}
11407 $as_echo "$as_val"'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11410 _ACEOF
11411
11412 fi
11413 done
11414
11415 fi
11416
11417 if test "${window_system}" = "x11"; then
11418 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11419 $as_echo_n "checking X11 version 6... " >&6; }
11420 if test "${emacs_cv_x11_version_6+set}" = set; then
11421 $as_echo_n "(cached) " >&6
11422 else
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <X11/Xlib.h>
11430 int
11431 main ()
11432 {
11433 #if XlibSpecificationRelease < 6
11434 fail;
11435 #endif
11436
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446 esac
11447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11448 $as_echo "$ac_try_echo") >&5
11449 (eval "$ac_link") 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext && {
11459 test "$cross_compiling" = yes ||
11460 $as_test_x conftest$ac_exeext
11461 }; then
11462 emacs_cv_x11_version_6=yes
11463 else
11464 $as_echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 emacs_cv_x11_version_6=no
11468 fi
11469
11470 rm -rf conftest.dSYM
11471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11472 conftest$ac_exeext conftest.$ac_ext
11473 fi
11474
11475 if test $emacs_cv_x11_version_6 = yes; then
11476 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11477 $as_echo "6 or newer" >&6; }
11478
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_X11R6 1
11481 _ACEOF
11482
11483 else
11484 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11485 $as_echo "before 6" >&6; }
11486 fi
11487 fi
11488
11489
11490 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11491 HAVE_RSVG=no
11492 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11493 if test "${with_rsvg}" != "no"; then
11494 RSVG_REQUIRED=2.11.0
11495 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11496
11497
11498 succeeded=no
11499
11500 # Extract the first word of "pkg-config", so it can be a program name with args.
11501 set dummy pkg-config; ac_word=$2
11502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11505 $as_echo_n "(cached) " >&6
11506 else
11507 case $PKG_CONFIG in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11510 ;;
11511 *)
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11522 fi
11523 done
11524 done
11525 IFS=$as_save_IFS
11526
11527 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11528 ;;
11529 esac
11530 fi
11531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11532 if test -n "$PKG_CONFIG"; then
11533 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11534 $as_echo "$PKG_CONFIG" >&6; }
11535 else
11536 { $as_echo "$as_me:$LINENO: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540
11541
11542 if test "$PKG_CONFIG" = "no" ; then
11543 :
11544 else
11545 PKG_CONFIG_MIN_VERSION=0.9.0
11546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11547 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11548 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11549
11550 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11551 { $as_echo "$as_me:$LINENO: result: yes" >&5
11552 $as_echo "yes" >&6; }
11553 succeeded=yes
11554
11555 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11556 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11557 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11558 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11559 $as_echo "$RSVG_CFLAGS" >&6; }
11560
11561 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11562 $as_echo_n "checking RSVG_LIBS... " >&6; }
11563 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11564 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11565 $as_echo "$RSVG_LIBS" >&6; }
11566 else
11567 { $as_echo "$as_me:$LINENO: result: no" >&5
11568 $as_echo "no" >&6; }
11569 RSVG_CFLAGS=""
11570 RSVG_LIBS=""
11571 ## If we have a custom action on failure, don't print errors, but
11572 ## do set a variable so people can do so.
11573 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11574
11575 fi
11576
11577
11578
11579 else
11580 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11581 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11582 fi
11583 fi
11584
11585 if test $succeeded = yes; then
11586 :
11587 else
11588 :
11589 fi
11590
11591
11592
11593
11594 if test ".${RSVG_CFLAGS}" != "."; then
11595 HAVE_RSVG=yes
11596
11597 cat >>confdefs.h <<\_ACEOF
11598 #define HAVE_RSVG 1
11599 _ACEOF
11600
11601 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11602 LIBS="$RSVG_LIBS $LIBS"
11603 fi
11604 fi
11605 fi
11606
11607
11608 HAVE_GTK=no
11609 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11610 GLIB_REQUIRED=2.6
11611 GTK_REQUIRED=2.6
11612 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11613
11614
11615 succeeded=no
11616
11617 # Extract the first word of "pkg-config", so it can be a program name with args.
11618 set dummy pkg-config; ac_word=$2
11619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11620 $as_echo_n "checking for $ac_word... " >&6; }
11621 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11622 $as_echo_n "(cached) " >&6
11623 else
11624 case $PKG_CONFIG in
11625 [\\/]* | ?:[\\/]*)
11626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11627 ;;
11628 *)
11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11631 do
11632 IFS=$as_save_IFS
11633 test -z "$as_dir" && as_dir=.
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11636 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11638 break 2
11639 fi
11640 done
11641 done
11642 IFS=$as_save_IFS
11643
11644 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11645 ;;
11646 esac
11647 fi
11648 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11649 if test -n "$PKG_CONFIG"; then
11650 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11651 $as_echo "$PKG_CONFIG" >&6; }
11652 else
11653 { $as_echo "$as_me:$LINENO: result: no" >&5
11654 $as_echo "no" >&6; }
11655 fi
11656
11657
11658
11659 if test "$PKG_CONFIG" = "no" ; then
11660 pkg_check_gtk=no
11661 else
11662 PKG_CONFIG_MIN_VERSION=0.9.0
11663 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11664 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11665 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11666
11667 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11668 { $as_echo "$as_me:$LINENO: result: yes" >&5
11669 $as_echo "yes" >&6; }
11670 succeeded=yes
11671
11672 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11673 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11674 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11675 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11676 $as_echo "$GTK_CFLAGS" >&6; }
11677
11678 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11679 $as_echo_n "checking GTK_LIBS... " >&6; }
11680 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11681 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11682 $as_echo "$GTK_LIBS" >&6; }
11683 else
11684 { $as_echo "$as_me:$LINENO: result: no" >&5
11685 $as_echo "no" >&6; }
11686 GTK_CFLAGS=""
11687 GTK_LIBS=""
11688 ## If we have a custom action on failure, don't print errors, but
11689 ## do set a variable so people can do so.
11690 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11691
11692 fi
11693
11694
11695
11696 else
11697 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11698 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11699 fi
11700 fi
11701
11702 if test $succeeded = yes; then
11703 pkg_check_gtk=yes
11704 else
11705 pkg_check_gtk=no
11706 fi
11707
11708 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11709 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11710 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11711 { (exit 1); exit 1; }; }
11712 fi
11713 fi
11714
11715
11716 GTK_OBJ=
11717 if test x"$pkg_check_gtk" = xyes; then
11718
11719
11720
11721 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11722 CFLAGS="$CFLAGS $GTK_CFLAGS"
11723 LIBS="$GTK_LIBS $LIBS"
11724 GTK_COMPILES=no
11725
11726 for ac_func in gtk_main
11727 do
11728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11729 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 $as_echo_n "checking for $ac_func... " >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11732 $as_echo_n "(cached) " >&6
11733 else
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11743
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11748
11749 #ifdef __STDC__
11750 # include <limits.h>
11751 #else
11752 # include <assert.h>
11753 #endif
11754
11755 #undef $ac_func
11756
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 char $ac_func ();
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11768 choke me
11769 #endif
11770
11771 int
11772 main ()
11773 {
11774 return $ac_func ();
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_link") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext && {
11797 test "$cross_compiling" = yes ||
11798 $as_test_x conftest$ac_exeext
11799 }; then
11800 eval "$as_ac_var=yes"
11801 else
11802 $as_echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 eval "$as_ac_var=no"
11806 fi
11807
11808 rm -rf conftest.dSYM
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810 conftest$ac_exeext conftest.$ac_ext
11811 fi
11812 ac_res=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11815 $as_echo "$ac_res" >&6; }
11816 if test `eval 'as_val=${'$as_ac_var'}
11817 $as_echo "$as_val"'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 _ACEOF
11821 GTK_COMPILES=yes
11822 fi
11823 done
11824
11825 if test "${GTK_COMPILES}" != "yes"; then
11826 if test "$USE_X_TOOLKIT" != "maybe"; then
11827 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11828 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11829 { (exit 1); exit 1; }; };
11830 fi
11831 else
11832 HAVE_GTK=yes
11833
11834 cat >>confdefs.h <<\_ACEOF
11835 #define USE_GTK 1
11836 _ACEOF
11837
11838 GTK_OBJ=gtkutil.o
11839 USE_X_TOOLKIT=none
11840 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11841 :
11842 else
11843 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11844 closing open displays. This is no problem if you just use
11845 one display, but if you use more than one and close one of them
11846 Emacs may crash." >&5
11847 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11848 closing open displays. This is no problem if you just use
11849 one display, but if you use more than one and close one of them
11850 Emacs may crash." >&2;}
11851 sleep 3
11852 fi
11853 fi
11854
11855 fi
11856
11857
11858
11859 if test "${HAVE_GTK}" = "yes"; then
11860
11861 if test "$with_toolkit_scroll_bars" != no; then
11862 with_toolkit_scroll_bars=yes
11863 fi
11864
11865 HAVE_GTK_MULTIDISPLAY=no
11866
11867 for ac_func in gdk_display_open
11868 do
11869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11870 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11871 $as_echo_n "checking for $ac_func... " >&6; }
11872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11873 $as_echo_n "(cached) " >&6
11874 else
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11883 #define $ac_func innocuous_$ac_func
11884
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11889
11890 #ifdef __STDC__
11891 # include <limits.h>
11892 #else
11893 # include <assert.h>
11894 #endif
11895
11896 #undef $ac_func
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char $ac_func ();
11905 /* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
11908 #if defined __stub_$ac_func || defined __stub___$ac_func
11909 choke me
11910 #endif
11911
11912 int
11913 main ()
11914 {
11915 return $ac_func ();
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925 esac
11926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11927 $as_echo "$ac_try_echo") >&5
11928 (eval "$ac_link") 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest$ac_exeext && {
11938 test "$cross_compiling" = yes ||
11939 $as_test_x conftest$ac_exeext
11940 }; then
11941 eval "$as_ac_var=yes"
11942 else
11943 $as_echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946 eval "$as_ac_var=no"
11947 fi
11948
11949 rm -rf conftest.dSYM
11950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11951 conftest$ac_exeext conftest.$ac_ext
11952 fi
11953 ac_res=`eval 'as_val=${'$as_ac_var'}
11954 $as_echo "$as_val"'`
11955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11956 $as_echo "$ac_res" >&6; }
11957 if test `eval 'as_val=${'$as_ac_var'}
11958 $as_echo "$as_val"'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961 _ACEOF
11962 HAVE_GTK_MULTIDISPLAY=yes
11963 fi
11964 done
11965
11966 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11967
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_GTK_MULTIDISPLAY 1
11970 _ACEOF
11971
11972 fi
11973
11974 HAVE_GTK_FILE_SELECTION=no
11975 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11976 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11977 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11978 $as_echo_n "(cached) " >&6
11979 else
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 $ac_includes_default
11987 #include <gtk/gtk.h>
11988
11989 int
11990 main ()
11991 {
11992 #ifndef GTK_TYPE_FILE_SELECTION
11993 (void) GTK_TYPE_FILE_SELECTION;
11994 #endif
11995
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext
12001 if { (ac_try="$ac_compile"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005 esac
12006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12007 $as_echo "$ac_try_echo") >&5
12008 (eval "$ac_compile") 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest.$ac_objext; then
12018 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12019 else
12020 $as_echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12024 fi
12025
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 fi
12028 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12029 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12030 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12031 HAVE_GTK_FILE_SELECTION=yes
12032 else
12033 HAVE_GTK_FILE_SELECTION=no
12034 fi
12035
12036 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12037
12038 for ac_func in gtk_file_selection_new
12039 do
12040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12041 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12042 $as_echo_n "checking for $ac_func... " >&6; }
12043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12044 $as_echo_n "(cached) " >&6
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12054 #define $ac_func innocuous_$ac_func
12055
12056 /* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char $ac_func (); below.
12058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12059 <limits.h> exists even on freestanding compilers. */
12060
12061 #ifdef __STDC__
12062 # include <limits.h>
12063 #else
12064 # include <assert.h>
12065 #endif
12066
12067 #undef $ac_func
12068
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12072 #ifdef __cplusplus
12073 extern "C"
12074 #endif
12075 char $ac_func ();
12076 /* The GNU C library defines this for functions which it implements
12077 to always fail with ENOSYS. Some functions are actually named
12078 something starting with __ and the normal name is an alias. */
12079 #if defined __stub_$ac_func || defined __stub___$ac_func
12080 choke me
12081 #endif
12082
12083 int
12084 main ()
12085 {
12086 return $ac_func ();
12087 ;
12088 return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096 esac
12097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12098 $as_echo "$ac_try_echo") >&5
12099 (eval "$ac_link") 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } && {
12106 test -z "$ac_c_werror_flag" ||
12107 test ! -s conftest.err
12108 } && test -s conftest$ac_exeext && {
12109 test "$cross_compiling" = yes ||
12110 $as_test_x conftest$ac_exeext
12111 }; then
12112 eval "$as_ac_var=yes"
12113 else
12114 $as_echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 eval "$as_ac_var=no"
12118 fi
12119
12120 rm -rf conftest.dSYM
12121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12122 conftest$ac_exeext conftest.$ac_ext
12123 fi
12124 ac_res=`eval 'as_val=${'$as_ac_var'}
12125 $as_echo "$as_val"'`
12126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12127 $as_echo "$ac_res" >&6; }
12128 if test `eval 'as_val=${'$as_ac_var'}
12129 $as_echo "$as_val"'` = yes; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 _ACEOF
12133 HAVE_GTK_FILE_SELECTION=yes
12134 else
12135 HAVE_GTK_FILE_SELECTION=no
12136 fi
12137 done
12138
12139 fi
12140
12141 HAVE_GTK_FILE_CHOOSER=no
12142 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12143 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12144 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12145 $as_echo_n "(cached) " >&6
12146 else
12147 cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 $ac_includes_default
12154 #include <gtk/gtk.h>
12155
12156 int
12157 main ()
12158 {
12159 #ifndef GTK_TYPE_FILE_CHOOSER
12160 (void) GTK_TYPE_FILE_CHOOSER;
12161 #endif
12162
12163 ;
12164 return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext
12168 if { (ac_try="$ac_compile"
12169 case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172 esac
12173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12174 $as_echo "$ac_try_echo") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12186 else
12187 $as_echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12191 fi
12192
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 fi
12195 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12196 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12197 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12198 HAVE_GTK_FILE_CHOOSER=yes
12199 else
12200 HAVE_GTK_FILE_CHOOSER=no
12201 fi
12202
12203 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12204
12205 for ac_func in gtk_file_chooser_dialog_new
12206 do
12207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12208 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12209 $as_echo_n "checking for $ac_func... " >&6; }
12210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12211 $as_echo_n "(cached) " >&6
12212 else
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12221 #define $ac_func innocuous_$ac_func
12222
12223 /* System header to define __stub macros and hopefully few prototypes,
12224 which can conflict with char $ac_func (); below.
12225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12226 <limits.h> exists even on freestanding compilers. */
12227
12228 #ifdef __STDC__
12229 # include <limits.h>
12230 #else
12231 # include <assert.h>
12232 #endif
12233
12234 #undef $ac_func
12235
12236 /* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
12239 #ifdef __cplusplus
12240 extern "C"
12241 #endif
12242 char $ac_func ();
12243 /* The GNU C library defines this for functions which it implements
12244 to always fail with ENOSYS. Some functions are actually named
12245 something starting with __ and the normal name is an alias. */
12246 #if defined __stub_$ac_func || defined __stub___$ac_func
12247 choke me
12248 #endif
12249
12250 int
12251 main ()
12252 {
12253 return $ac_func ();
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263 esac
12264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12265 $as_echo "$ac_try_echo") >&5
12266 (eval "$ac_link") 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && {
12273 test -z "$ac_c_werror_flag" ||
12274 test ! -s conftest.err
12275 } && test -s conftest$ac_exeext && {
12276 test "$cross_compiling" = yes ||
12277 $as_test_x conftest$ac_exeext
12278 }; then
12279 eval "$as_ac_var=yes"
12280 else
12281 $as_echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 eval "$as_ac_var=no"
12285 fi
12286
12287 rm -rf conftest.dSYM
12288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12289 conftest$ac_exeext conftest.$ac_ext
12290 fi
12291 ac_res=`eval 'as_val=${'$as_ac_var'}
12292 $as_echo "$as_val"'`
12293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12294 $as_echo "$ac_res" >&6; }
12295 if test `eval 'as_val=${'$as_ac_var'}
12296 $as_echo "$as_val"'` = yes; then
12297 cat >>confdefs.h <<_ACEOF
12298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12299 _ACEOF
12300 HAVE_GTK_FILE_CHOOSER=yes
12301 else
12302 HAVE_GTK_FILE_CHOOSER=no
12303 fi
12304 done
12305
12306 fi
12307
12308 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12309 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12310
12311 cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_GTK_FILE_BOTH 1
12313 _ACEOF
12314
12315 fi
12316
12317 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12318 HAVE_GTK_AND_PTHREAD=no
12319
12320 for ac_header in pthread.h
12321 do
12322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12325 $as_echo_n "checking for $ac_header... " >&6; }
12326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12327 $as_echo_n "(cached) " >&6
12328 fi
12329 ac_res=`eval 'as_val=${'$as_ac_Header'}
12330 $as_echo "$as_val"'`
12331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12332 $as_echo "$ac_res" >&6; }
12333 else
12334 # Is the header compilable?
12335 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12336 $as_echo_n "checking $ac_header usability... " >&6; }
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12344 #include <$ac_header>
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354 (eval "$ac_compile") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest.$ac_objext; then
12364 ac_header_compiler=yes
12365 else
12366 $as_echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_header_compiler=no
12370 fi
12371
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12374 $as_echo "$ac_header_compiler" >&6; }
12375
12376 # Is the header present?
12377 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12378 $as_echo_n "checking $ac_header presence... " >&6; }
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <$ac_header>
12386 _ACEOF
12387 if { (ac_try="$ac_cpp conftest.$ac_ext"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391 esac
12392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } >/dev/null && {
12401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 }; then
12404 ac_header_preproc=yes
12405 else
12406 $as_echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 ac_header_preproc=no
12410 fi
12411
12412 rm -f conftest.err conftest.$ac_ext
12413 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12414 $as_echo "$ac_header_preproc" >&6; }
12415
12416 # So? What about this header?
12417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12418 yes:no: )
12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12420 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12423 ac_header_preproc=yes
12424 ;;
12425 no:yes:* )
12426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12427 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12429 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12431 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12433 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12437 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12438
12439 ;;
12440 esac
12441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12442 $as_echo_n "checking for $ac_header... " >&6; }
12443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12444 $as_echo_n "(cached) " >&6
12445 else
12446 eval "$as_ac_Header=\$ac_header_preproc"
12447 fi
12448 ac_res=`eval 'as_val=${'$as_ac_Header'}
12449 $as_echo "$as_val"'`
12450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12451 $as_echo "$ac_res" >&6; }
12452
12453 fi
12454 if test `eval 'as_val=${'$as_ac_Header'}
12455 $as_echo "$as_val"'` = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12458 _ACEOF
12459
12460 fi
12461
12462 done
12463
12464 if test "$ac_cv_header_pthread_h"; then
12465 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12466 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12467 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12468 $as_echo_n "(cached) " >&6
12469 else
12470 ac_check_lib_save_LIBS=$LIBS
12471 LIBS="-lpthread $LIBS"
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char pthread_self ();
12486 int
12487 main ()
12488 {
12489 return pthread_self ();
12490 ;
12491 return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (ac_try="$ac_link"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499 esac
12500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502 (eval "$ac_link") 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest$ac_exeext && {
12512 test "$cross_compiling" = yes ||
12513 $as_test_x conftest$ac_exeext
12514 }; then
12515 ac_cv_lib_pthread_pthread_self=yes
12516 else
12517 $as_echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12519
12520 ac_cv_lib_pthread_pthread_self=no
12521 fi
12522
12523 rm -rf conftest.dSYM
12524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12525 conftest$ac_exeext conftest.$ac_ext
12526 LIBS=$ac_check_lib_save_LIBS
12527 fi
12528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12529 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12530 if test $ac_cv_lib_pthread_pthread_self = yes; then
12531 HAVE_GTK_AND_PTHREAD=yes
12532 fi
12533
12534 fi
12535 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12536 case "${canonical}" in
12537 *-hpux*) ;;
12538 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12539 esac
12540
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_GTK_AND_PTHREAD 1
12543 _ACEOF
12544
12545 fi
12546 fi
12547 fi
12548
12549 HAVE_DBUS=no
12550 DBUS_OBJ=
12551 if test "${with_dbus}" = "yes"; then
12552
12553 succeeded=no
12554
12555 # Extract the first word of "pkg-config", so it can be a program name with args.
12556 set dummy pkg-config; ac_word=$2
12557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12560 $as_echo_n "(cached) " >&6
12561 else
12562 case $PKG_CONFIG in
12563 [\\/]* | ?:[\\/]*)
12564 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12565 ;;
12566 *)
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12574 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12577 fi
12578 done
12579 done
12580 IFS=$as_save_IFS
12581
12582 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12583 ;;
12584 esac
12585 fi
12586 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12587 if test -n "$PKG_CONFIG"; then
12588 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12589 $as_echo "$PKG_CONFIG" >&6; }
12590 else
12591 { $as_echo "$as_me:$LINENO: result: no" >&5
12592 $as_echo "no" >&6; }
12593 fi
12594
12595
12596
12597 if test "$PKG_CONFIG" = "no" ; then
12598 HAVE_DBUS=no
12599 else
12600 PKG_CONFIG_MIN_VERSION=0.9.0
12601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12602 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12603 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12604
12605 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12606 { $as_echo "$as_me:$LINENO: result: yes" >&5
12607 $as_echo "yes" >&6; }
12608 succeeded=yes
12609
12610 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12611 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12612 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12613 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12614 $as_echo "$DBUS_CFLAGS" >&6; }
12615
12616 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12617 $as_echo_n "checking DBUS_LIBS... " >&6; }
12618 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12619 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12620 $as_echo "$DBUS_LIBS" >&6; }
12621 else
12622 { $as_echo "$as_me:$LINENO: result: no" >&5
12623 $as_echo "no" >&6; }
12624 DBUS_CFLAGS=""
12625 DBUS_LIBS=""
12626 ## If we have a custom action on failure, don't print errors, but
12627 ## do set a variable so people can do so.
12628 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12629
12630 fi
12631
12632
12633
12634 else
12635 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12636 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12637 fi
12638 fi
12639
12640 if test $succeeded = yes; then
12641 HAVE_DBUS=yes
12642 else
12643 HAVE_DBUS=no
12644 fi
12645
12646 if test "$HAVE_DBUS" = yes; then
12647 LIBS="$LIBS $DBUS_LIBS"
12648
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_DBUS 1
12651 _ACEOF
12652
12653
12654 for ac_func in dbus_watch_get_unix_fd
12655 do
12656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12658 $as_echo_n "checking for $ac_func... " >&6; }
12659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12660 $as_echo_n "(cached) " >&6
12661 else
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12670 #define $ac_func innocuous_$ac_func
12671
12672 /* System header to define __stub macros and hopefully few prototypes,
12673 which can conflict with char $ac_func (); below.
12674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12675 <limits.h> exists even on freestanding compilers. */
12676
12677 #ifdef __STDC__
12678 # include <limits.h>
12679 #else
12680 # include <assert.h>
12681 #endif
12682
12683 #undef $ac_func
12684
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char $ac_func ();
12692 /* The GNU C library defines this for functions which it implements
12693 to always fail with ENOSYS. Some functions are actually named
12694 something starting with __ and the normal name is an alias. */
12695 #if defined __stub_$ac_func || defined __stub___$ac_func
12696 choke me
12697 #endif
12698
12699 int
12700 main ()
12701 {
12702 return $ac_func ();
12703 ;
12704 return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext conftest$ac_exeext
12708 if { (ac_try="$ac_link"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712 esac
12713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12714 $as_echo "$ac_try_echo") >&5
12715 (eval "$ac_link") 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest$ac_exeext && {
12725 test "$cross_compiling" = yes ||
12726 $as_test_x conftest$ac_exeext
12727 }; then
12728 eval "$as_ac_var=yes"
12729 else
12730 $as_echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 eval "$as_ac_var=no"
12734 fi
12735
12736 rm -rf conftest.dSYM
12737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12738 conftest$ac_exeext conftest.$ac_ext
12739 fi
12740 ac_res=`eval 'as_val=${'$as_ac_var'}
12741 $as_echo "$as_val"'`
12742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12743 $as_echo "$ac_res" >&6; }
12744 if test `eval 'as_val=${'$as_ac_var'}
12745 $as_echo "$as_val"'` = yes; then
12746 cat >>confdefs.h <<_ACEOF
12747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12748 _ACEOF
12749
12750 fi
12751 done
12752
12753 DBUS_OBJ=dbusbind.o
12754 fi
12755 fi
12756
12757
12758 HAVE_GCONF=no
12759 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12760
12761 succeeded=no
12762
12763 # Extract the first word of "pkg-config", so it can be a program name with args.
12764 set dummy pkg-config; ac_word=$2
12765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12768 $as_echo_n "(cached) " >&6
12769 else
12770 case $PKG_CONFIG in
12771 [\\/]* | ?:[\\/]*)
12772 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12773 ;;
12774 *)
12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12777 do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12782 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12785 fi
12786 done
12787 done
12788 IFS=$as_save_IFS
12789
12790 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12791 ;;
12792 esac
12793 fi
12794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12795 if test -n "$PKG_CONFIG"; then
12796 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12797 $as_echo "$PKG_CONFIG" >&6; }
12798 else
12799 { $as_echo "$as_me:$LINENO: result: no" >&5
12800 $as_echo "no" >&6; }
12801 fi
12802
12803
12804
12805 if test "$PKG_CONFIG" = "no" ; then
12806 HAVE_GCONF=no
12807 else
12808 PKG_CONFIG_MIN_VERSION=0.9.0
12809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12810 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12811 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12812
12813 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12814 { $as_echo "$as_me:$LINENO: result: yes" >&5
12815 $as_echo "yes" >&6; }
12816 succeeded=yes
12817
12818 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12819 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12820 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12821 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12822 $as_echo "$GCONF_CFLAGS" >&6; }
12823
12824 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12825 $as_echo_n "checking GCONF_LIBS... " >&6; }
12826 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12827 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12828 $as_echo "$GCONF_LIBS" >&6; }
12829 else
12830 { $as_echo "$as_me:$LINENO: result: no" >&5
12831 $as_echo "no" >&6; }
12832 GCONF_CFLAGS=""
12833 GCONF_LIBS=""
12834 ## If we have a custom action on failure, don't print errors, but
12835 ## do set a variable so people can do so.
12836 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12837
12838 fi
12839
12840
12841
12842 else
12843 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12844 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12845 fi
12846 fi
12847
12848 if test $succeeded = yes; then
12849 HAVE_GCONF=yes
12850 else
12851 HAVE_GCONF=no
12852 fi
12853
12854 if test "$HAVE_GCONF" = yes; then
12855
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_GCONF 1
12858 _ACEOF
12859
12860 fi
12861 fi
12862
12863 HAVE_LIBSELINUX=no
12864 LIBSELINUX_LIBS=
12865 if test "${with_selinux}" = "yes"; then
12866 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12867 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12868 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12869 $as_echo_n "(cached) " >&6
12870 else
12871 ac_check_lib_save_LIBS=$LIBS
12872 LIBS="-lselinux $LIBS"
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12883 #ifdef __cplusplus
12884 extern "C"
12885 #endif
12886 char lgetfilecon ();
12887 int
12888 main ()
12889 {
12890 return lgetfilecon ();
12891 ;
12892 return 0;
12893 }
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900 esac
12901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12902 $as_echo "$ac_try_echo") >&5
12903 (eval "$ac_link") 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } && {
12910 test -z "$ac_c_werror_flag" ||
12911 test ! -s conftest.err
12912 } && test -s conftest$ac_exeext && {
12913 test "$cross_compiling" = yes ||
12914 $as_test_x conftest$ac_exeext
12915 }; then
12916 ac_cv_lib_selinux_lgetfilecon=yes
12917 else
12918 $as_echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 ac_cv_lib_selinux_lgetfilecon=no
12922 fi
12923
12924 rm -rf conftest.dSYM
12925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12928 fi
12929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12930 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12931 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12932 HAVE_LIBSELINUX=yes
12933 else
12934 HAVE_LIBSELINUX=no
12935 fi
12936
12937 if test "$HAVE_LIBSELINUX" = yes; then
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_LIBSELINUX 1
12941 _ACEOF
12942
12943 LIBSELINUX_LIBS=-lselinux
12944 fi
12945 fi
12946
12947
12948 HAVE_XAW3D=no
12949 LUCID_LIBW=
12950 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12951 if test "$with_xaw3d" != no; then
12952 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12953 $as_echo_n "checking for xaw3d... " >&6; }
12954 if test "${emacs_cv_xaw3d+set}" = set; then
12955 $as_echo_n "(cached) " >&6
12956 else
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963
12964 #include <X11/Intrinsic.h>
12965 #include <X11/Xaw3d/Simple.h>
12966 int
12967 main ()
12968 {
12969
12970 ;
12971 return 0;
12972 }
12973 _ACEOF
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (ac_try="$ac_link"
12976 case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979 esac
12980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12981 $as_echo "$ac_try_echo") >&5
12982 (eval "$ac_link") 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } && {
12989 test -z "$ac_c_werror_flag" ||
12990 test ! -s conftest.err
12991 } && test -s conftest$ac_exeext && {
12992 test "$cross_compiling" = yes ||
12993 $as_test_x conftest$ac_exeext
12994 }; then
12995 emacs_cv_xaw3d=yes
12996 else
12997 $as_echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000 emacs_cv_xaw3d=no
13001 fi
13002
13003 rm -rf conftest.dSYM
13004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext conftest.$ac_ext
13006 fi
13007
13008 else
13009 emacs_cv_xaw3d=no
13010 fi
13011 if test $emacs_cv_xaw3d = yes; then
13012 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13013 $as_echo "yes; using Lucid toolkit" >&6; }
13014 USE_X_TOOLKIT=LUCID
13015 HAVE_XAW3D=yes
13016 LUCID_LIBW=-lXaw3d
13017
13018 cat >>confdefs.h <<\_ACEOF
13019 #define HAVE_XAW3D 1
13020 _ACEOF
13021
13022 else
13023 { $as_echo "$as_me:$LINENO: result: no" >&5
13024 $as_echo "no" >&6; }
13025 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13026 $as_echo_n "checking for libXaw... " >&6; }
13027 if test "${emacs_cv_xaw+set}" = set; then
13028 $as_echo_n "(cached) " >&6
13029 else
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036
13037 #include <X11/Intrinsic.h>
13038 #include <X11/Xaw/Simple.h>
13039 int
13040 main ()
13041 {
13042
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13052 esac
13053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13054 $as_echo "$ac_try_echo") >&5
13055 (eval "$ac_link") 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest$ac_exeext && {
13065 test "$cross_compiling" = yes ||
13066 $as_test_x conftest$ac_exeext
13067 }; then
13068 emacs_cv_xaw=yes
13069 else
13070 $as_echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 emacs_cv_xaw=no
13074 fi
13075
13076 rm -rf conftest.dSYM
13077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13078 conftest$ac_exeext conftest.$ac_ext
13079 fi
13080
13081 if test $emacs_cv_xaw = yes; then
13082 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13083 $as_echo "yes; using Lucid toolkit" >&6; }
13084 USE_X_TOOLKIT=LUCID
13085 LUCID_LIBW=-lXaw
13086 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13087 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13088 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13089 { (exit 1); exit 1; }; }
13090 else
13091 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13092 $as_echo "no; do not use toolkit by default" >&6; }
13093 USE_X_TOOLKIT=none
13094 fi
13095 fi
13096 fi
13097
13098 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13099
13100 LIBXTR6=
13101 if test "${USE_X_TOOLKIT}" != "none"; then
13102 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13103 $as_echo_n "checking X11 toolkit version... " >&6; }
13104 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13105 $as_echo_n "(cached) " >&6
13106 else
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 #include <X11/Intrinsic.h>
13114 int
13115 main ()
13116 {
13117 #if XtSpecificationRelease < 6
13118 fail;
13119 #endif
13120
13121 ;
13122 return 0;
13123 }
13124 _ACEOF
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130 esac
13131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133 (eval "$ac_link") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest$ac_exeext && {
13143 test "$cross_compiling" = yes ||
13144 $as_test_x conftest$ac_exeext
13145 }; then
13146 emacs_cv_x11_toolkit_version_6=yes
13147 else
13148 $as_echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 emacs_cv_x11_toolkit_version_6=no
13152 fi
13153
13154 rm -rf conftest.dSYM
13155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13156 conftest$ac_exeext conftest.$ac_ext
13157 fi
13158
13159 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13160 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13161 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13162 $as_echo "6 or newer" >&6; }
13163
13164 cat >>confdefs.h <<\_ACEOF
13165 #define HAVE_X11XTR6 1
13166 _ACEOF
13167
13168 LIBXTR6="-lSM -lICE"
13169 case "$opsys" in
13170 ## Use libw.a along with X11R6 Xt.
13171 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13172 esac
13173 else
13174 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13175 $as_echo "before 6" >&6; }
13176 fi
13177
13178 OLDLIBS="$LIBS"
13179 if test x$HAVE_X11XTR6 = xyes; then
13180 LIBS="-lXt -lSM -lICE $LIBS"
13181 else
13182 LIBS="-lXt $LIBS"
13183 fi
13184
13185 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13186 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13187 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13188 $as_echo_n "(cached) " >&6
13189 else
13190 ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-lXmu $LIBS"
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h. */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198
13199 /* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13202 #ifdef __cplusplus
13203 extern "C"
13204 #endif
13205 char XmuConvertStandardSelection ();
13206 int
13207 main ()
13208 {
13209 return XmuConvertStandardSelection ();
13210 ;
13211 return 0;
13212 }
13213 _ACEOF
13214 rm -f conftest.$ac_objext conftest$ac_exeext
13215 if { (ac_try="$ac_link"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219 esac
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222 (eval "$ac_link") 2>conftest.er1
13223 ac_status=$?
13224 grep -v '^ *+' conftest.er1 >conftest.err
13225 rm -f conftest.er1
13226 cat conftest.err >&5
13227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } && {
13229 test -z "$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13231 } && test -s conftest$ac_exeext && {
13232 test "$cross_compiling" = yes ||
13233 $as_test_x conftest$ac_exeext
13234 }; then
13235 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13236 else
13237 $as_echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13241 fi
13242
13243 rm -rf conftest.dSYM
13244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13247 fi
13248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13249 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13250 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13251 cat >>confdefs.h <<_ACEOF
13252 #define HAVE_LIBXMU 1
13253 _ACEOF
13254
13255 LIBS="-lXmu $LIBS"
13256
13257 fi
13258
13259 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13260 fi
13261
13262
13263 LIBXMU=-lXmu
13264 case "$machine" in
13265 ## These machines don't supply Xmu.
13266 hpux* | aix4-2 )
13267 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13268 ;;
13269 esac
13270
13271
13272 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13273 if test "${HAVE_X11}" = "yes"; then
13274 if test "${USE_X_TOOLKIT}" != "none"; then
13275
13276 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13277 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13278 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13279 $as_echo_n "(cached) " >&6
13280 else
13281 ac_check_lib_save_LIBS=$LIBS
13282 LIBS="-lXext $LIBS"
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char XShapeQueryExtension ();
13297 int
13298 main ()
13299 {
13300 return XShapeQueryExtension ();
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (ac_try="$ac_link"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310 esac
13311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13312 $as_echo "$ac_try_echo") >&5
13313 (eval "$ac_link") 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } && {
13320 test -z "$ac_c_werror_flag" ||
13321 test ! -s conftest.err
13322 } && test -s conftest$ac_exeext && {
13323 test "$cross_compiling" = yes ||
13324 $as_test_x conftest$ac_exeext
13325 }; then
13326 ac_cv_lib_Xext_XShapeQueryExtension=yes
13327 else
13328 $as_echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13330
13331 ac_cv_lib_Xext_XShapeQueryExtension=no
13332 fi
13333
13334 rm -rf conftest.dSYM
13335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13336 conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13338 fi
13339 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13340 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13341 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_LIBXEXT 1
13344 _ACEOF
13345
13346 LIBS="-lXext $LIBS"
13347
13348 fi
13349
13350 fi
13351 fi
13352
13353 LIBXP=
13354 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13355 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13356 $as_echo_n "checking for Motif version 2.1... " >&6; }
13357 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13358 $as_echo_n "(cached) " >&6
13359 else
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 #include <Xm/Xm.h>
13367 int
13368 main ()
13369 {
13370 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13371 int x = 5;
13372 #else
13373 Motif version prior to 2.1.
13374 #endif
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext
13380 if { (ac_try="$ac_compile"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386 $as_echo "$ac_try_echo") >&5
13387 (eval "$ac_compile") 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest.$ac_objext; then
13397 emacs_cv_motif_version_2_1=yes
13398 else
13399 $as_echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 emacs_cv_motif_version_2_1=no
13403 fi
13404
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 fi
13407 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13408 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13409 if test $emacs_cv_motif_version_2_1 = yes; then
13410 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13411 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13412 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13413 $as_echo_n "(cached) " >&6
13414 else
13415 ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-lXp $LIBS"
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13427 #ifdef __cplusplus
13428 extern "C"
13429 #endif
13430 char XpCreateContext ();
13431 int
13432 main ()
13433 {
13434 return XpCreateContext ();
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (ac_try="$ac_link"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13444 esac
13445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13446 $as_echo "$ac_try_echo") >&5
13447 (eval "$ac_link") 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && {
13454 test -z "$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13456 } && test -s conftest$ac_exeext && {
13457 test "$cross_compiling" = yes ||
13458 $as_test_x conftest$ac_exeext
13459 }; then
13460 ac_cv_lib_Xp_XpCreateContext=yes
13461 else
13462 $as_echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 ac_cv_lib_Xp_XpCreateContext=no
13466 fi
13467
13468 rm -rf conftest.dSYM
13469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13472 fi
13473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13474 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13475 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13476 LIBXP=-lXp
13477 fi
13478
13479 else
13480 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13481 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13482 if test "${emacs_cv_lesstif+set}" = set; then
13483 $as_echo_n "(cached) " >&6
13484 else
13485 # We put this in CFLAGS temporarily to precede other -I options
13486 # that might be in CFLAGS temporarily.
13487 # We put this in CPPFLAGS where it precedes the other -I options.
13488 OLD_CPPFLAGS=$CPPFLAGS
13489 OLD_CFLAGS=$CFLAGS
13490 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13491 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13499 int
13500 main ()
13501 {
13502 int x = 5;
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 rm -f conftest.$ac_objext
13508 if { (ac_try="$ac_compile"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512 esac
13513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13514 $as_echo "$ac_try_echo") >&5
13515 (eval "$ac_compile") 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && {
13522 test -z "$ac_c_werror_flag" ||
13523 test ! -s conftest.err
13524 } && test -s conftest.$ac_objext; then
13525 emacs_cv_lesstif=yes
13526 else
13527 $as_echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 emacs_cv_lesstif=no
13531 fi
13532
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534 fi
13535 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13536 $as_echo "$emacs_cv_lesstif" >&6; }
13537 if test $emacs_cv_lesstif = yes; then
13538 # Make sure this -I option remains in CPPFLAGS after it is set
13539 # back to REAL_CPPFLAGS.
13540 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13541 # have those other -I options anyway. Ultimately, having this
13542 # directory ultimately in CPPFLAGS will be enough.
13543 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13544 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13545 else
13546 CFLAGS=$OLD_CFLAGS
13547 CPPFLAGS=$OLD_CPPFLAGS
13548 fi
13549 fi
13550 fi
13551
13552
13553
13554 USE_TOOLKIT_SCROLL_BARS=no
13555 if test "${with_toolkit_scroll_bars}" != "no"; then
13556 if test "${USE_X_TOOLKIT}" != "none"; then
13557 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13558 cat >>confdefs.h <<\_ACEOF
13559 #define USE_TOOLKIT_SCROLL_BARS 1
13560 _ACEOF
13561
13562 HAVE_XAW3D=no
13563 USE_TOOLKIT_SCROLL_BARS=yes
13564 elif test "${HAVE_XAW3D}" = "yes"; then
13565 cat >>confdefs.h <<\_ACEOF
13566 #define USE_TOOLKIT_SCROLL_BARS 1
13567 _ACEOF
13568
13569 USE_TOOLKIT_SCROLL_BARS=yes
13570 fi
13571 elif test "${HAVE_GTK}" = "yes"; then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define USE_TOOLKIT_SCROLL_BARS 1
13574 _ACEOF
13575
13576 USE_TOOLKIT_SCROLL_BARS=yes
13577 elif test "${HAVE_NS}" = "yes"; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define USE_TOOLKIT_SCROLL_BARS 1
13580 _ACEOF
13581
13582 USE_TOOLKIT_SCROLL_BARS=yes
13583 fi
13584 fi
13585
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592
13593 #include <X11/Xlib.h>
13594 #include <X11/Xresource.h>
13595 int
13596 main ()
13597 {
13598 XIMProc callback;
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (ac_try="$ac_compile"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608 esac
13609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611 (eval "$ac_compile") 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest.$ac_objext; then
13621 HAVE_XIM=yes
13622
13623 cat >>confdefs.h <<\_ACEOF
13624 #define HAVE_XIM 1
13625 _ACEOF
13626
13627 else
13628 $as_echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 HAVE_XIM=no
13632 fi
13633
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635
13636
13637 if test "${with_xim}" != "no"; then
13638
13639 cat >>confdefs.h <<\_ACEOF
13640 #define USE_XIM 1
13641 _ACEOF
13642
13643 fi
13644
13645
13646 if test "${HAVE_XIM}" != "no"; then
13647 late_CFLAGS=$CFLAGS
13648 if test "$GCC" = yes; then
13649 CFLAGS="$CFLAGS --pedantic-errors"
13650 fi
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h. */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657
13658 #include <X11/Xlib.h>
13659 #include <X11/Xresource.h>
13660 int
13661 main ()
13662 {
13663 Display *display;
13664 XrmDatabase db;
13665 char *res_name;
13666 char *res_class;
13667 XIMProc callback;
13668 XPointer *client_data;
13669 #ifndef __GNUC__
13670 /* If we're not using GCC, it's probably not XFree86, and this is
13671 probably right, but we can't use something like --pedantic-errors. */
13672 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13673 char*, XIMProc, XPointer*);
13674 #endif
13675 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13676 client_data);
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (ac_try="$ac_compile"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686 esac
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689 (eval "$ac_compile") 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13698 } && test -s conftest.$ac_objext; then
13699 emacs_cv_arg6_star=yes
13700 else
13701 $as_echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704
13705 fi
13706
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708
13709 if test "$emacs_cv_arg6_star" = yes; then
13710 cat >>confdefs.h <<\_ACEOF
13711 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13712 _ACEOF
13713
13714 else
13715 cat >>confdefs.h <<\_ACEOF
13716 #define XRegisterIMInstantiateCallback_arg6 XPointer
13717 _ACEOF
13718
13719 fi
13720 CFLAGS=$late_CFLAGS
13721 fi
13722
13723 ### Start of font-backend (under any platform) section.
13724 # (nothing here yet -- this is a placeholder)
13725 ### End of font-backend (under any platform) section.
13726
13727 ### Start of font-backend (under X11) section.
13728 if test "${HAVE_X11}" = "yes"; then
13729
13730 succeeded=no
13731
13732 # Extract the first word of "pkg-config", so it can be a program name with args.
13733 set dummy pkg-config; ac_word=$2
13734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13737 $as_echo_n "(cached) " >&6
13738 else
13739 case $PKG_CONFIG in
13740 [\\/]* | ?:[\\/]*)
13741 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13742 ;;
13743 *)
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13746 do
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13754 fi
13755 done
13756 done
13757 IFS=$as_save_IFS
13758
13759 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13760 ;;
13761 esac
13762 fi
13763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13764 if test -n "$PKG_CONFIG"; then
13765 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13766 $as_echo "$PKG_CONFIG" >&6; }
13767 else
13768 { $as_echo "$as_me:$LINENO: result: no" >&5
13769 $as_echo "no" >&6; }
13770 fi
13771
13772
13773
13774 if test "$PKG_CONFIG" = "no" ; then
13775 HAVE_FC=no
13776 else
13777 PKG_CONFIG_MIN_VERSION=0.9.0
13778 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13779 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13780 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13781
13782 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13783 { $as_echo "$as_me:$LINENO: result: yes" >&5
13784 $as_echo "yes" >&6; }
13785 succeeded=yes
13786
13787 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13788 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13789 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13790 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13791 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13792
13793 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13794 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13795 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13796 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13797 $as_echo "$FONTCONFIG_LIBS" >&6; }
13798 else
13799 { $as_echo "$as_me:$LINENO: result: no" >&5
13800 $as_echo "no" >&6; }
13801 FONTCONFIG_CFLAGS=""
13802 FONTCONFIG_LIBS=""
13803 ## If we have a custom action on failure, don't print errors, but
13804 ## do set a variable so people can do so.
13805 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13806
13807 fi
13808
13809
13810
13811 else
13812 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13813 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13814 fi
13815 fi
13816
13817 if test $succeeded = yes; then
13818 HAVE_FC=yes
13819 else
13820 HAVE_FC=no
13821 fi
13822
13823
13824 ## Use -lXft if available, unless `--with-xft=no'.
13825 HAVE_XFT=maybe
13826 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13827 with_xft="no";
13828 fi
13829 if test "x${with_xft}" != "xno"; then
13830
13831
13832 succeeded=no
13833
13834 # Extract the first word of "pkg-config", so it can be a program name with args.
13835 set dummy pkg-config; ac_word=$2
13836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13837 $as_echo_n "checking for $ac_word... " >&6; }
13838 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13839 $as_echo_n "(cached) " >&6
13840 else
13841 case $PKG_CONFIG in
13842 [\\/]* | ?:[\\/]*)
13843 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13844 ;;
13845 *)
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13848 do
13849 IFS=$as_save_IFS
13850 test -z "$as_dir" && as_dir=.
13851 for ac_exec_ext in '' $ac_executable_extensions; do
13852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13855 break 2
13856 fi
13857 done
13858 done
13859 IFS=$as_save_IFS
13860
13861 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13862 ;;
13863 esac
13864 fi
13865 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13866 if test -n "$PKG_CONFIG"; then
13867 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13868 $as_echo "$PKG_CONFIG" >&6; }
13869 else
13870 { $as_echo "$as_me:$LINENO: result: no" >&5
13871 $as_echo "no" >&6; }
13872 fi
13873
13874
13875
13876 if test "$PKG_CONFIG" = "no" ; then
13877 HAVE_XFT=no
13878 else
13879 PKG_CONFIG_MIN_VERSION=0.9.0
13880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13881 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13882 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13883
13884 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13885 { $as_echo "$as_me:$LINENO: result: yes" >&5
13886 $as_echo "yes" >&6; }
13887 succeeded=yes
13888
13889 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13890 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13891 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13892 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13893 $as_echo "$XFT_CFLAGS" >&6; }
13894
13895 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13896 $as_echo_n "checking XFT_LIBS... " >&6; }
13897 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13898 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13899 $as_echo "$XFT_LIBS" >&6; }
13900 else
13901 { $as_echo "$as_me:$LINENO: result: no" >&5
13902 $as_echo "no" >&6; }
13903 XFT_CFLAGS=""
13904 XFT_LIBS=""
13905 ## If we have a custom action on failure, don't print errors, but
13906 ## do set a variable so people can do so.
13907 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13908
13909 fi
13910
13911
13912
13913 else
13914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13916 fi
13917 fi
13918
13919 if test $succeeded = yes; then
13920 :
13921 else
13922 HAVE_XFT=no
13923 fi
13924
13925 ## Because xftfont.c uses XRenderQueryExtension, we also
13926 ## need to link to -lXrender.
13927 HAVE_XRENDER=no
13928 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13929 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13930 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13931 $as_echo_n "(cached) " >&6
13932 else
13933 ac_check_lib_save_LIBS=$LIBS
13934 LIBS="-lXrender $LIBS"
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13945 #ifdef __cplusplus
13946 extern "C"
13947 #endif
13948 char XRenderQueryExtension ();
13949 int
13950 main ()
13951 {
13952 return XRenderQueryExtension ();
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 rm -f conftest.$ac_objext conftest$ac_exeext
13958 if { (ac_try="$ac_link"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962 esac
13963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13964 $as_echo "$ac_try_echo") >&5
13965 (eval "$ac_link") 2>conftest.er1
13966 ac_status=$?
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
13970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && {
13972 test -z "$ac_c_werror_flag" ||
13973 test ! -s conftest.err
13974 } && test -s conftest$ac_exeext && {
13975 test "$cross_compiling" = yes ||
13976 $as_test_x conftest$ac_exeext
13977 }; then
13978 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13979 else
13980 $as_echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_cv_lib_Xrender_XRenderQueryExtension=no
13984 fi
13985
13986 rm -rf conftest.dSYM
13987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13990 fi
13991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13992 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13993 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13994 HAVE_XRENDER=yes
13995 fi
13996
13997 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13998 OLD_CPPFLAGS="$CPPFLAGS"
13999 OLD_CFLAGS="$CFLAGS"
14000 OLD_LIBS="$LIBS"
14001 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14002 CFLAGS="$CFLAGS $XFT_CFLAGS"
14003 XFT_LIBS="-lXrender $XFT_LIBS"
14004 LIBS="$XFT_LIBS $LIBS"
14005 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14006 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14007 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14008 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14009 $as_echo_n "(cached) " >&6
14010 fi
14011 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14012 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14013 else
14014 # Is the header compilable?
14015 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14016 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h. */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 $ac_includes_default
14024 #include <X11/Xft/Xft.h>
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_compile") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest.$ac_objext; then
14044 ac_header_compiler=yes
14045 else
14046 $as_echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_header_compiler=no
14050 fi
14051
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054 $as_echo "$ac_header_compiler" >&6; }
14055
14056 # Is the header present?
14057 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14058 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <X11/Xft/Xft.h>
14066 _ACEOF
14067 if { (ac_try="$ac_cpp conftest.$ac_ext"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071 esac
14072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14073 $as_echo "$ac_try_echo") >&5
14074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } >/dev/null && {
14081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14083 }; then
14084 ac_header_preproc=yes
14085 else
14086 $as_echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089 ac_header_preproc=no
14090 fi
14091
14092 rm -f conftest.err conftest.$ac_ext
14093 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094 $as_echo "$ac_header_preproc" >&6; }
14095
14096 # So? What about this header?
14097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14098 yes:no: )
14099 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14100 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14102 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14103 ac_header_preproc=yes
14104 ;;
14105 no:yes:* )
14106 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14107 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14108 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14109 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14110 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14111 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14112 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14113 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14114 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14115 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14116 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14117 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14118
14119 ;;
14120 esac
14121 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14122 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14123 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14124 $as_echo_n "(cached) " >&6
14125 else
14126 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14127 fi
14128 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14129 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14130
14131 fi
14132 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14133 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14134 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14135 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14136 $as_echo_n "(cached) " >&6
14137 else
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lXft $XFT_LIBS $LIBS"
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146
14147 /* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
14150 #ifdef __cplusplus
14151 extern "C"
14152 #endif
14153 char XftFontOpen ();
14154 int
14155 main ()
14156 {
14157 return XftFontOpen ();
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167 esac
14168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14169 $as_echo "$ac_try_echo") >&5
14170 (eval "$ac_link") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest$ac_exeext && {
14180 test "$cross_compiling" = yes ||
14181 $as_test_x conftest$ac_exeext
14182 }; then
14183 ac_cv_lib_Xft_XftFontOpen=yes
14184 else
14185 $as_echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ac_cv_lib_Xft_XftFontOpen=no
14189 fi
14190
14191 rm -rf conftest.dSYM
14192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14195 fi
14196 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14197 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14198 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14199 HAVE_XFT=yes
14200 fi
14201
14202 fi
14203
14204
14205
14206 if test "${HAVE_XFT}" = "yes"; then
14207
14208 cat >>confdefs.h <<\_ACEOF
14209 #define HAVE_XFT 1
14210 _ACEOF
14211
14212
14213 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14214 else
14215 CPPFLAGS="$OLD_CPPFLAGS"
14216 CFLAGS="$OLD_CFLAGS"
14217 LIBS="$OLD_LIBS"
14218 fi # "${HAVE_XFT}" = "yes"
14219 fi # "$HAVE_XFT" != no
14220 fi # "x${with_xft}" != "xno"
14221
14222 if test "$HAVE_XFT" != "yes"; then
14223 HAVE_XFT=no
14224 fi
14225
14226
14227 HAVE_FREETYPE=no
14228 ## We used to allow building with FreeType and without Xft.
14229 ## However, the ftx font backend driver is not in good shape.
14230 if test "${HAVE_XFT}" = "yes"; then
14231 HAVE_FREETYPE=yes
14232 FONTCONFIG_CFLAGS=
14233 FONTCONFIG_LIBS=
14234 fi
14235
14236 HAVE_LIBOTF=no
14237 if test "${HAVE_FREETYPE}" = "yes"; then
14238
14239 cat >>confdefs.h <<\_ACEOF
14240 #define HAVE_FREETYPE 1
14241 _ACEOF
14242
14243 if test "${with_libotf}" != "no"; then
14244
14245 succeeded=no
14246
14247 # Extract the first word of "pkg-config", so it can be a program name with args.
14248 set dummy pkg-config; ac_word=$2
14249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14250 $as_echo_n "checking for $ac_word... " >&6; }
14251 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14252 $as_echo_n "(cached) " >&6
14253 else
14254 case $PKG_CONFIG in
14255 [\\/]* | ?:[\\/]*)
14256 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14257 ;;
14258 *)
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14261 do
14262 IFS=$as_save_IFS
14263 test -z "$as_dir" && as_dir=.
14264 for ac_exec_ext in '' $ac_executable_extensions; do
14265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14266 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14268 break 2
14269 fi
14270 done
14271 done
14272 IFS=$as_save_IFS
14273
14274 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14275 ;;
14276 esac
14277 fi
14278 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14279 if test -n "$PKG_CONFIG"; then
14280 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14281 $as_echo "$PKG_CONFIG" >&6; }
14282 else
14283 { $as_echo "$as_me:$LINENO: result: no" >&5
14284 $as_echo "no" >&6; }
14285 fi
14286
14287
14288
14289 if test "$PKG_CONFIG" = "no" ; then
14290 HAVE_LIBOTF=no
14291 else
14292 PKG_CONFIG_MIN_VERSION=0.9.0
14293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14294 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14295 $as_echo_n "checking for libotf... " >&6; }
14296
14297 if $PKG_CONFIG --exists "libotf" 2>&5; then
14298 { $as_echo "$as_me:$LINENO: result: yes" >&5
14299 $as_echo "yes" >&6; }
14300 succeeded=yes
14301
14302 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14303 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14304 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14305 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14306 $as_echo "$LIBOTF_CFLAGS" >&6; }
14307
14308 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14309 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14310 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14311 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14312 $as_echo "$LIBOTF_LIBS" >&6; }
14313 else
14314 { $as_echo "$as_me:$LINENO: result: no" >&5
14315 $as_echo "no" >&6; }
14316 LIBOTF_CFLAGS=""
14317 LIBOTF_LIBS=""
14318 ## If we have a custom action on failure, don't print errors, but
14319 ## do set a variable so people can do so.
14320 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14321
14322 fi
14323
14324
14325
14326 else
14327 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14328 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14329 fi
14330 fi
14331
14332 if test $succeeded = yes; then
14333 HAVE_LIBOTF=yes
14334 else
14335 HAVE_LIBOTF=no
14336 fi
14337
14338 if test "$HAVE_LIBOTF" = "yes"; then
14339
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_LIBOTF 1
14342 _ACEOF
14343
14344 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14345 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14346 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14347 $as_echo_n "(cached) " >&6
14348 else
14349 ac_check_lib_save_LIBS=$LIBS
14350 LIBS="-lotf $LIBS"
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h. */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char OTF_get_variation_glyphs ();
14365 int
14366 main ()
14367 {
14368 return OTF_get_variation_glyphs ();
14369 ;
14370 return 0;
14371 }
14372 _ACEOF
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (ac_try="$ac_link"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14378 esac
14379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14380 $as_echo "$ac_try_echo") >&5
14381 (eval "$ac_link") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest$ac_exeext && {
14391 test "$cross_compiling" = yes ||
14392 $as_test_x conftest$ac_exeext
14393 }; then
14394 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14395 else
14396 $as_echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14398
14399 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14400 fi
14401
14402 rm -rf conftest.dSYM
14403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LIBS=$ac_check_lib_save_LIBS
14406 fi
14407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14408 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14409 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14410 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14411 else
14412 HAVE_OTF_GET_VARIATION_GLYPHS=no
14413 fi
14414
14415 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14416
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14419 _ACEOF
14420
14421 fi
14422 fi
14423 fi
14424 fi
14425
14426 HAVE_M17N_FLT=no
14427 if test "${HAVE_LIBOTF}" = yes; then
14428 if test "${with_m17n_flt}" != "no"; then
14429
14430 succeeded=no
14431
14432 # Extract the first word of "pkg-config", so it can be a program name with args.
14433 set dummy pkg-config; ac_word=$2
14434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14435 $as_echo_n "checking for $ac_word... " >&6; }
14436 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14437 $as_echo_n "(cached) " >&6
14438 else
14439 case $PKG_CONFIG in
14440 [\\/]* | ?:[\\/]*)
14441 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14442 ;;
14443 *)
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447 IFS=$as_save_IFS
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14451 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 break 2
14454 fi
14455 done
14456 done
14457 IFS=$as_save_IFS
14458
14459 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14460 ;;
14461 esac
14462 fi
14463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14464 if test -n "$PKG_CONFIG"; then
14465 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14466 $as_echo "$PKG_CONFIG" >&6; }
14467 else
14468 { $as_echo "$as_me:$LINENO: result: no" >&5
14469 $as_echo "no" >&6; }
14470 fi
14471
14472
14473
14474 if test "$PKG_CONFIG" = "no" ; then
14475 HAVE_M17N_FLT=no
14476 else
14477 PKG_CONFIG_MIN_VERSION=0.9.0
14478 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14479 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14480 $as_echo_n "checking for m17n-flt... " >&6; }
14481
14482 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14483 { $as_echo "$as_me:$LINENO: result: yes" >&5
14484 $as_echo "yes" >&6; }
14485 succeeded=yes
14486
14487 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14488 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14489 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14490 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14491 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14492
14493 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14494 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14495 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14496 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14497 $as_echo "$M17N_FLT_LIBS" >&6; }
14498 else
14499 { $as_echo "$as_me:$LINENO: result: no" >&5
14500 $as_echo "no" >&6; }
14501 M17N_FLT_CFLAGS=""
14502 M17N_FLT_LIBS=""
14503 ## If we have a custom action on failure, don't print errors, but
14504 ## do set a variable so people can do so.
14505 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14506
14507 fi
14508
14509
14510
14511 else
14512 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14513 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14514 fi
14515 fi
14516
14517 if test $succeeded = yes; then
14518 HAVE_M17N_FLT=yes
14519 else
14520 HAVE_M17N_FLT=no
14521 fi
14522
14523 if test "$HAVE_M17N_FLT" = "yes"; then
14524
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_M17N_FLT 1
14527 _ACEOF
14528
14529 fi
14530 fi
14531 fi
14532 else
14533 HAVE_XFT=no
14534 HAVE_FREETYPE=no
14535 HAVE_LIBOTF=no
14536 HAVE_M17N_FLT=no
14537 fi
14538
14539 FONT_OBJ=xfont.o
14540 if test "$HAVE_XFT" = "yes"; then
14541 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14542 elif test "$HAVE_FREETYPE" = "yes"; then
14543 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14544 fi
14545
14546
14547 ### End of font-backend (under X11) section.
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558 ### Use -lXpm if available, unless `--with-xpm=no'.
14559 HAVE_XPM=no
14560 LIBXPM=
14561 if test "${HAVE_X11}" = "yes"; then
14562 if test "${with_xpm}" != "no"; then
14563 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14564 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14565 $as_echo_n "checking for X11/xpm.h... " >&6; }
14566 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14567 $as_echo_n "(cached) " >&6
14568 fi
14569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14570 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14571 else
14572 # Is the header compilable?
14573 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14574 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h. */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 $ac_includes_default
14582 #include <X11/xpm.h>
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589 esac
14590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14591 $as_echo "$ac_try_echo") >&5
14592 (eval "$ac_compile") 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest.$ac_objext; then
14602 ac_header_compiler=yes
14603 else
14604 $as_echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_header_compiler=no
14608 fi
14609
14610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14611 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14612 $as_echo "$ac_header_compiler" >&6; }
14613
14614 # Is the header present?
14615 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14616 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #include <X11/xpm.h>
14624 _ACEOF
14625 if { (ac_try="$ac_cpp conftest.$ac_ext"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629 esac
14630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14631 $as_echo "$ac_try_echo") >&5
14632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } >/dev/null && {
14639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 }; then
14642 ac_header_preproc=yes
14643 else
14644 $as_echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 ac_header_preproc=no
14648 fi
14649
14650 rm -f conftest.err conftest.$ac_ext
14651 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14652 $as_echo "$ac_header_preproc" >&6; }
14653
14654 # So? What about this header?
14655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14656 yes:no: )
14657 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14658 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14659 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14660 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14661 ac_header_preproc=yes
14662 ;;
14663 no:yes:* )
14664 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14665 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14666 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14667 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14668 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14669 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14670 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14671 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14672 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14673 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14674 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14675 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14676
14677 ;;
14678 esac
14679 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14680 $as_echo_n "checking for X11/xpm.h... " >&6; }
14681 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14682 $as_echo_n "(cached) " >&6
14683 else
14684 ac_cv_header_X11_xpm_h=$ac_header_preproc
14685 fi
14686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14687 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14688
14689 fi
14690 if test $ac_cv_header_X11_xpm_h = yes; then
14691 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14692 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14693 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14694 $as_echo_n "(cached) " >&6
14695 else
14696 ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-lXpm -lX11 $LIBS"
14698 cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h. */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704
14705 /* Override any GCC internal prototype to avoid an error.
14706 Use char because int might match the return type of a GCC
14707 builtin and then its argument prototype would still apply. */
14708 #ifdef __cplusplus
14709 extern "C"
14710 #endif
14711 char XpmReadFileToPixmap ();
14712 int
14713 main ()
14714 {
14715 return XpmReadFileToPixmap ();
14716 ;
14717 return 0;
14718 }
14719 _ACEOF
14720 rm -f conftest.$ac_objext conftest$ac_exeext
14721 if { (ac_try="$ac_link"
14722 case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14727 $as_echo "$ac_try_echo") >&5
14728 (eval "$ac_link") 2>conftest.er1
14729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } && {
14735 test -z "$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14737 } && test -s conftest$ac_exeext && {
14738 test "$cross_compiling" = yes ||
14739 $as_test_x conftest$ac_exeext
14740 }; then
14741 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14742 else
14743 $as_echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14747 fi
14748
14749 rm -rf conftest.dSYM
14750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14751 conftest$ac_exeext conftest.$ac_ext
14752 LIBS=$ac_check_lib_save_LIBS
14753 fi
14754 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14755 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14756 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14757 HAVE_XPM=yes
14758 fi
14759
14760 fi
14761
14762
14763 if test "${HAVE_XPM}" = "yes"; then
14764 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14765 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14766 cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h. */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 #include "X11/xpm.h"
14773 #ifndef XpmReturnAllocPixels
14774 no_return_alloc_pixels
14775 #endif
14776
14777 _ACEOF
14778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14779 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14780 HAVE_XPM=no
14781 else
14782 HAVE_XPM=yes
14783 fi
14784 rm -f conftest*
14785
14786
14787 if test "${HAVE_XPM}" = "yes"; then
14788 { $as_echo "$as_me:$LINENO: result: yes" >&5
14789 $as_echo "yes" >&6; }
14790 else
14791 { $as_echo "$as_me:$LINENO: result: no" >&5
14792 $as_echo "no" >&6; }
14793 fi
14794 fi
14795 fi
14796
14797 if test "${HAVE_XPM}" = "yes"; then
14798
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_XPM 1
14801 _ACEOF
14802
14803 LIBXPM=-lXpm
14804 fi
14805 fi
14806
14807
14808 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14809 HAVE_JPEG=no
14810 LIBJPEG=
14811 if test "${HAVE_X11}" = "yes"; then
14812 if test "${with_jpeg}" != "no"; then
14813 if test "${ac_cv_header_jerror_h+set}" = set; then
14814 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14815 $as_echo_n "checking for jerror.h... " >&6; }
14816 if test "${ac_cv_header_jerror_h+set}" = set; then
14817 $as_echo_n "(cached) " >&6
14818 fi
14819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14820 $as_echo "$ac_cv_header_jerror_h" >&6; }
14821 else
14822 # Is the header compilable?
14823 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14824 $as_echo_n "checking jerror.h usability... " >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 $ac_includes_default
14832 #include <jerror.h>
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (ac_try="$ac_compile"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14839 esac
14840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14841 $as_echo "$ac_try_echo") >&5
14842 (eval "$ac_compile") 2>conftest.er1
14843 ac_status=$?
14844 grep -v '^ *+' conftest.er1 >conftest.err
14845 rm -f conftest.er1
14846 cat conftest.err >&5
14847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } && {
14849 test -z "$ac_c_werror_flag" ||
14850 test ! -s conftest.err
14851 } && test -s conftest.$ac_objext; then
14852 ac_header_compiler=yes
14853 else
14854 $as_echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14856
14857 ac_header_compiler=no
14858 fi
14859
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14862 $as_echo "$ac_header_compiler" >&6; }
14863
14864 # Is the header present?
14865 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14866 $as_echo_n "checking jerror.h presence... " >&6; }
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <jerror.h>
14874 _ACEOF
14875 if { (ac_try="$ac_cpp conftest.$ac_ext"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881 $as_echo "$ac_try_echo") >&5
14882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } >/dev/null && {
14889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 }; then
14892 ac_header_preproc=yes
14893 else
14894 $as_echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 ac_header_preproc=no
14898 fi
14899
14900 rm -f conftest.err conftest.$ac_ext
14901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14902 $as_echo "$ac_header_preproc" >&6; }
14903
14904 # So? What about this header?
14905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14906 yes:no: )
14907 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14908 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14909 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14910 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14911 ac_header_preproc=yes
14912 ;;
14913 no:yes:* )
14914 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14915 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14916 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14917 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14918 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14919 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14920 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14921 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14922 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14923 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14924 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14925 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14926
14927 ;;
14928 esac
14929 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14930 $as_echo_n "checking for jerror.h... " >&6; }
14931 if test "${ac_cv_header_jerror_h+set}" = set; then
14932 $as_echo_n "(cached) " >&6
14933 else
14934 ac_cv_header_jerror_h=$ac_header_preproc
14935 fi
14936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14937 $as_echo "$ac_cv_header_jerror_h" >&6; }
14938
14939 fi
14940 if test $ac_cv_header_jerror_h = yes; then
14941 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14942 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14943 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14944 $as_echo_n "(cached) " >&6
14945 else
14946 ac_check_lib_save_LIBS=$LIBS
14947 LIBS="-ljpeg $LIBS"
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h. */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14958 #ifdef __cplusplus
14959 extern "C"
14960 #endif
14961 char jpeg_destroy_compress ();
14962 int
14963 main ()
14964 {
14965 return jpeg_destroy_compress ();
14966 ;
14967 return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14977 $as_echo "$ac_try_echo") >&5
14978 (eval "$ac_link") 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest$ac_exeext && {
14988 test "$cross_compiling" = yes ||
14989 $as_test_x conftest$ac_exeext
14990 }; then
14991 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14992 else
14993 $as_echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14997 fi
14998
14999 rm -rf conftest.dSYM
15000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15001 conftest$ac_exeext conftest.$ac_ext
15002 LIBS=$ac_check_lib_save_LIBS
15003 fi
15004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15005 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15006 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15007 HAVE_JPEG=yes
15008 fi
15009
15010 fi
15011
15012
15013 fi
15014
15015
15016 if test "${HAVE_JPEG}" = "yes"; then
15017 cat >>confdefs.h <<\_ACEOF
15018 #define HAVE_JPEG 1
15019 _ACEOF
15020
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 #include <jpeglib.h>
15028 version=JPEG_LIB_VERSION
15029
15030 _ACEOF
15031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15032 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define HAVE_JPEG 1
15035 _ACEOF
15036
15037 else
15038 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15039 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15040 HAVE_JPEG=no
15041 fi
15042 rm -f conftest*
15043
15044 fi
15045 if test "${HAVE_JPEG}" = "yes"; then
15046 LIBJPEG=-ljpeg
15047 fi
15048 fi
15049
15050
15051 ### Use -lpng if available, unless `--with-png=no'.
15052 HAVE_PNG=no
15053 LIBPNG=
15054 if test "${HAVE_X11}" = "yes"; then
15055 if test "${with_png}" != "no"; then
15056 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15057 # in /usr/include/libpng.
15058
15059
15060 for ac_header in png.h libpng/png.h
15061 do
15062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15065 $as_echo_n "checking for $ac_header... " >&6; }
15066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15067 $as_echo_n "(cached) " >&6
15068 fi
15069 ac_res=`eval 'as_val=${'$as_ac_Header'}
15070 $as_echo "$as_val"'`
15071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15072 $as_echo "$ac_res" >&6; }
15073 else
15074 # Is the header compilable?
15075 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15076 $as_echo_n "checking $ac_header usability... " >&6; }
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 $ac_includes_default
15084 #include <$ac_header>
15085 _ACEOF
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15093 $as_echo "$ac_try_echo") >&5
15094 (eval "$ac_compile") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && {
15101 test -z "$ac_c_werror_flag" ||
15102 test ! -s conftest.err
15103 } && test -s conftest.$ac_objext; then
15104 ac_header_compiler=yes
15105 else
15106 $as_echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15108
15109 ac_header_compiler=no
15110 fi
15111
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 $as_echo "$ac_header_compiler" >&6; }
15115
15116 # Is the header present?
15117 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 $as_echo_n "checking $ac_header presence... " >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 #include <$ac_header>
15126 _ACEOF
15127 if { (ac_try="$ac_cpp conftest.$ac_ext"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } >/dev/null && {
15141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 }; then
15144 ac_header_preproc=yes
15145 else
15146 $as_echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149 ac_header_preproc=no
15150 fi
15151
15152 rm -f conftest.err conftest.$ac_ext
15153 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15154 $as_echo "$ac_header_preproc" >&6; }
15155
15156 # So? What about this header?
15157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15158 yes:no: )
15159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15160 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15162 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15163 ac_header_preproc=yes
15164 ;;
15165 no:yes:* )
15166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15167 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15169 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15171 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15173 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15175 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15177 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15178
15179 ;;
15180 esac
15181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15182 $as_echo_n "checking for $ac_header... " >&6; }
15183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15184 $as_echo_n "(cached) " >&6
15185 else
15186 eval "$as_ac_Header=\$ac_header_preproc"
15187 fi
15188 ac_res=`eval 'as_val=${'$as_ac_Header'}
15189 $as_echo "$as_val"'`
15190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15191 $as_echo "$ac_res" >&6; }
15192
15193 fi
15194 if test `eval 'as_val=${'$as_ac_Header'}
15195 $as_echo "$as_val"'` = yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15198 _ACEOF
15199
15200 fi
15201
15202 done
15203
15204 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15205 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15206 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15207 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15208 $as_echo_n "(cached) " >&6
15209 else
15210 ac_check_lib_save_LIBS=$LIBS
15211 LIBS="-lpng -lz -lm $LIBS"
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h. */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218
15219 /* Override any GCC internal prototype to avoid an error.
15220 Use char because int might match the return type of a GCC
15221 builtin and then its argument prototype would still apply. */
15222 #ifdef __cplusplus
15223 extern "C"
15224 #endif
15225 char png_get_channels ();
15226 int
15227 main ()
15228 {
15229 return png_get_channels ();
15230 ;
15231 return 0;
15232 }
15233 _ACEOF
15234 rm -f conftest.$ac_objext conftest$ac_exeext
15235 if { (ac_try="$ac_link"
15236 case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239 esac
15240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15241 $as_echo "$ac_try_echo") >&5
15242 (eval "$ac_link") 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } && {
15249 test -z "$ac_c_werror_flag" ||
15250 test ! -s conftest.err
15251 } && test -s conftest$ac_exeext && {
15252 test "$cross_compiling" = yes ||
15253 $as_test_x conftest$ac_exeext
15254 }; then
15255 ac_cv_lib_png_png_get_channels=yes
15256 else
15257 $as_echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_cv_lib_png_png_get_channels=no
15261 fi
15262
15263 rm -rf conftest.dSYM
15264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15265 conftest$ac_exeext conftest.$ac_ext
15266 LIBS=$ac_check_lib_save_LIBS
15267 fi
15268 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15269 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15270 if test $ac_cv_lib_png_png_get_channels = yes; then
15271 HAVE_PNG=yes
15272 fi
15273
15274 fi
15275 fi
15276
15277 if test "${HAVE_PNG}" = "yes"; then
15278
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_PNG 1
15281 _ACEOF
15282
15283 LIBPNG="-lpng -lz -lm"
15284 fi
15285 fi
15286
15287
15288 ### Use -ltiff if available, unless `--with-tiff=no'.
15289 HAVE_TIFF=no
15290 LIBTIFF=
15291 if test "${HAVE_X11}" = "yes"; then
15292 if test "${with_tiff}" != "no"; then
15293 if test "${ac_cv_header_tiffio_h+set}" = set; then
15294 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15295 $as_echo_n "checking for tiffio.h... " >&6; }
15296 if test "${ac_cv_header_tiffio_h+set}" = set; then
15297 $as_echo_n "(cached) " >&6
15298 fi
15299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15300 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15301 else
15302 # Is the header compilable?
15303 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15304 $as_echo_n "checking tiffio.h usability... " >&6; }
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15312 #include <tiffio.h>
15313 _ACEOF
15314 rm -f conftest.$ac_objext
15315 if { (ac_try="$ac_compile"
15316 case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15319 esac
15320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15321 $as_echo "$ac_try_echo") >&5
15322 (eval "$ac_compile") 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } && {
15329 test -z "$ac_c_werror_flag" ||
15330 test ! -s conftest.err
15331 } && test -s conftest.$ac_objext; then
15332 ac_header_compiler=yes
15333 else
15334 $as_echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15336
15337 ac_header_compiler=no
15338 fi
15339
15340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15342 $as_echo "$ac_header_compiler" >&6; }
15343
15344 # Is the header present?
15345 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15346 $as_echo_n "checking tiffio.h presence... " >&6; }
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <tiffio.h>
15354 _ACEOF
15355 if { (ac_try="$ac_cpp conftest.$ac_ext"
15356 case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15359 esac
15360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15361 $as_echo "$ac_try_echo") >&5
15362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } >/dev/null && {
15369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15370 test ! -s conftest.err
15371 }; then
15372 ac_header_preproc=yes
15373 else
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ac_header_preproc=no
15378 fi
15379
15380 rm -f conftest.err conftest.$ac_ext
15381 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15382 $as_echo "$ac_header_preproc" >&6; }
15383
15384 # So? What about this header?
15385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15386 yes:no: )
15387 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15388 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15389 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15390 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15391 ac_header_preproc=yes
15392 ;;
15393 no:yes:* )
15394 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15395 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15397 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15398 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15399 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15401 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15402 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15403 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15404 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15405 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15406
15407 ;;
15408 esac
15409 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15410 $as_echo_n "checking for tiffio.h... " >&6; }
15411 if test "${ac_cv_header_tiffio_h+set}" = set; then
15412 $as_echo_n "(cached) " >&6
15413 else
15414 ac_cv_header_tiffio_h=$ac_header_preproc
15415 fi
15416 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15417 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15418
15419 fi
15420 if test $ac_cv_header_tiffio_h = yes; then
15421 tifflibs="-lz -lm"
15422 # At least one tiff package requires the jpeg library.
15423 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15424 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15425 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15426 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15427 $as_echo_n "(cached) " >&6
15428 else
15429 ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-ltiff $tifflibs $LIBS"
15431 cat >conftest.$ac_ext <<_ACEOF
15432 /* confdefs.h. */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15437
15438 /* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15441 #ifdef __cplusplus
15442 extern "C"
15443 #endif
15444 char TIFFGetVersion ();
15445 int
15446 main ()
15447 {
15448 return TIFFGetVersion ();
15449 ;
15450 return 0;
15451 }
15452 _ACEOF
15453 rm -f conftest.$ac_objext conftest$ac_exeext
15454 if { (ac_try="$ac_link"
15455 case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15458 esac
15459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15460 $as_echo "$ac_try_echo") >&5
15461 (eval "$ac_link") 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } && {
15468 test -z "$ac_c_werror_flag" ||
15469 test ! -s conftest.err
15470 } && test -s conftest$ac_exeext && {
15471 test "$cross_compiling" = yes ||
15472 $as_test_x conftest$ac_exeext
15473 }; then
15474 ac_cv_lib_tiff_TIFFGetVersion=yes
15475 else
15476 $as_echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 ac_cv_lib_tiff_TIFFGetVersion=no
15480 fi
15481
15482 rm -rf conftest.dSYM
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS
15486 fi
15487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15488 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15489 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15490 HAVE_TIFF=yes
15491 fi
15492
15493 fi
15494
15495
15496 fi
15497
15498 if test "${HAVE_TIFF}" = "yes"; then
15499
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_TIFF 1
15502 _ACEOF
15503
15504 LIBTIFF=-ltiff
15505 fi
15506 fi
15507
15508
15509 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15510 HAVE_GIF=no
15511 LIBGIF=
15512 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15513 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15514 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15515 $as_echo_n "checking for gif_lib.h... " >&6; }
15516 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15517 $as_echo_n "(cached) " >&6
15518 fi
15519 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15520 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15521 else
15522 # Is the header compilable?
15523 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15524 $as_echo_n "checking gif_lib.h usability... " >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h. */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15532 #include <gif_lib.h>
15533 _ACEOF
15534 rm -f conftest.$ac_objext
15535 if { (ac_try="$ac_compile"
15536 case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15539 esac
15540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15541 $as_echo "$ac_try_echo") >&5
15542 (eval "$ac_compile") 2>conftest.er1
15543 ac_status=$?
15544 grep -v '^ *+' conftest.er1 >conftest.err
15545 rm -f conftest.er1
15546 cat conftest.err >&5
15547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } && {
15549 test -z "$ac_c_werror_flag" ||
15550 test ! -s conftest.err
15551 } && test -s conftest.$ac_objext; then
15552 ac_header_compiler=yes
15553 else
15554 $as_echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557 ac_header_compiler=no
15558 fi
15559
15560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15562 $as_echo "$ac_header_compiler" >&6; }
15563
15564 # Is the header present?
15565 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15566 $as_echo_n "checking gif_lib.h presence... " >&6; }
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 #include <gif_lib.h>
15574 _ACEOF
15575 if { (ac_try="$ac_cpp conftest.$ac_ext"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579 esac
15580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15581 $as_echo "$ac_try_echo") >&5
15582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15583 ac_status=$?
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
15587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } >/dev/null && {
15589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15590 test ! -s conftest.err
15591 }; then
15592 ac_header_preproc=yes
15593 else
15594 $as_echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ac_header_preproc=no
15598 fi
15599
15600 rm -f conftest.err conftest.$ac_ext
15601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15602 $as_echo "$ac_header_preproc" >&6; }
15603
15604 # So? What about this header?
15605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15606 yes:no: )
15607 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15608 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15609 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15610 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15611 ac_header_preproc=yes
15612 ;;
15613 no:yes:* )
15614 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15615 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15616 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15617 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15618 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15619 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15620 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15621 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15622 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15623 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15624 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15625 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15626
15627 ;;
15628 esac
15629 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15630 $as_echo_n "checking for gif_lib.h... " >&6; }
15631 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15632 $as_echo_n "(cached) " >&6
15633 else
15634 ac_cv_header_gif_lib_h=$ac_header_preproc
15635 fi
15636 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15637 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15638
15639 fi
15640 if test $ac_cv_header_gif_lib_h = yes; then
15641 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15642 # Earlier versions can crash Emacs.
15643 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15644 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15645 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15646 $as_echo_n "(cached) " >&6
15647 else
15648 ac_check_lib_save_LIBS=$LIBS
15649 LIBS="-lgif $LIBS"
15650 cat >conftest.$ac_ext <<_ACEOF
15651 /* confdefs.h. */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656
15657 /* Override any GCC internal prototype to avoid an error.
15658 Use char because int might match the return type of a GCC
15659 builtin and then its argument prototype would still apply. */
15660 #ifdef __cplusplus
15661 extern "C"
15662 #endif
15663 char EGifPutExtensionLast ();
15664 int
15665 main ()
15666 {
15667 return EGifPutExtensionLast ();
15668 ;
15669 return 0;
15670 }
15671 _ACEOF
15672 rm -f conftest.$ac_objext conftest$ac_exeext
15673 if { (ac_try="$ac_link"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15677 esac
15678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15679 $as_echo "$ac_try_echo") >&5
15680 (eval "$ac_link") 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } && {
15687 test -z "$ac_c_werror_flag" ||
15688 test ! -s conftest.err
15689 } && test -s conftest$ac_exeext && {
15690 test "$cross_compiling" = yes ||
15691 $as_test_x conftest$ac_exeext
15692 }; then
15693 ac_cv_lib_gif_EGifPutExtensionLast=yes
15694 else
15695 $as_echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698 ac_cv_lib_gif_EGifPutExtensionLast=no
15699 fi
15700
15701 rm -rf conftest.dSYM
15702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15703 conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15705 fi
15706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15707 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15708 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15709 HAVE_GIF=yes
15710 else
15711 HAVE_GIF=maybe
15712 fi
15713
15714 fi
15715
15716
15717
15718 if test "$HAVE_GIF" = yes; then
15719 LIBGIF=-lgif
15720 elif test "$HAVE_GIF" = maybe; then
15721 # If gif_lib.h but no libgif, try libungif.
15722 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15723 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15724 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15725 $as_echo_n "(cached) " >&6
15726 else
15727 ac_check_lib_save_LIBS=$LIBS
15728 LIBS="-lungif $LIBS"
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h. */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735
15736 /* Override any GCC internal prototype to avoid an error.
15737 Use char because int might match the return type of a GCC
15738 builtin and then its argument prototype would still apply. */
15739 #ifdef __cplusplus
15740 extern "C"
15741 #endif
15742 char EGifPutExtensionLast ();
15743 int
15744 main ()
15745 {
15746 return EGifPutExtensionLast ();
15747 ;
15748 return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (ac_try="$ac_link"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15756 esac
15757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15758 $as_echo "$ac_try_echo") >&5
15759 (eval "$ac_link") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest$ac_exeext && {
15769 test "$cross_compiling" = yes ||
15770 $as_test_x conftest$ac_exeext
15771 }; then
15772 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15773 else
15774 $as_echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15776
15777 ac_cv_lib_ungif_EGifPutExtensionLast=no
15778 fi
15779
15780 rm -rf conftest.dSYM
15781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15782 conftest$ac_exeext conftest.$ac_ext
15783 LIBS=$ac_check_lib_save_LIBS
15784 fi
15785 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15786 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15787 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15788 HAVE_GIF=yes
15789 else
15790 HAVE_GIF=no
15791 fi
15792
15793 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15794 fi
15795
15796 if test "${HAVE_GIF}" = "yes"; then
15797
15798 cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_GIF 1
15800 _ACEOF
15801
15802 fi
15803 fi
15804
15805
15806 if test "${HAVE_X11}" = "yes"; then
15807 MISSING=""
15808 WITH_NO=""
15809 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15810 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15811 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15812 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15813 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15814 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15815 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15816 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15817 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15818 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15819
15820 if test "X${MISSING}" != X; then
15821 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15822 $MISSING
15823 Maybe some development libraries/packages are missing?
15824 If you don't want to link with them give
15825 $WITH_NO
15826 as options to configure" >&5
15827 $as_echo "$as_me: error: The following required libraries were not found:
15828 $MISSING
15829 Maybe some development libraries/packages are missing?
15830 If you don't want to link with them give
15831 $WITH_NO
15832 as options to configure" >&2;}
15833 { (exit 1); exit 1; }; }
15834 fi
15835 fi
15836
15837 ### Use -lgpm if available, unless `--with-gpm=no'.
15838 HAVE_GPM=no
15839 LIBGPM=
15840 GPM_MOUSE_SUPPORT=
15841 if test "${with_gpm}" != "no"; then
15842 if test "${ac_cv_header_gpm_h+set}" = set; then
15843 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15844 $as_echo_n "checking for gpm.h... " >&6; }
15845 if test "${ac_cv_header_gpm_h+set}" = set; then
15846 $as_echo_n "(cached) " >&6
15847 fi
15848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15849 $as_echo "$ac_cv_header_gpm_h" >&6; }
15850 else
15851 # Is the header compilable?
15852 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15853 $as_echo_n "checking gpm.h usability... " >&6; }
15854 cat >conftest.$ac_ext <<_ACEOF
15855 /* confdefs.h. */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15860 $ac_includes_default
15861 #include <gpm.h>
15862 _ACEOF
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868 esac
15869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15870 $as_echo "$ac_try_echo") >&5
15871 (eval "$ac_compile") 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } && {
15878 test -z "$ac_c_werror_flag" ||
15879 test ! -s conftest.err
15880 } && test -s conftest.$ac_objext; then
15881 ac_header_compiler=yes
15882 else
15883 $as_echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15885
15886 ac_header_compiler=no
15887 fi
15888
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15891 $as_echo "$ac_header_compiler" >&6; }
15892
15893 # Is the header present?
15894 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15895 $as_echo_n "checking gpm.h presence... " >&6; }
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h. */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 #include <gpm.h>
15903 _ACEOF
15904 if { (ac_try="$ac_cpp conftest.$ac_ext"
15905 case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908 esac
15909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15910 $as_echo "$ac_try_echo") >&5
15911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15912 ac_status=$?
15913 grep -v '^ *+' conftest.er1 >conftest.err
15914 rm -f conftest.er1
15915 cat conftest.err >&5
15916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } >/dev/null && {
15918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15920 }; then
15921 ac_header_preproc=yes
15922 else
15923 $as_echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15925
15926 ac_header_preproc=no
15927 fi
15928
15929 rm -f conftest.err conftest.$ac_ext
15930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15931 $as_echo "$ac_header_preproc" >&6; }
15932
15933 # So? What about this header?
15934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935 yes:no: )
15936 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15937 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15938 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15939 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15940 ac_header_preproc=yes
15941 ;;
15942 no:yes:* )
15943 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15944 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15946 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15947 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15948 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15949 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15950 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15951 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15952 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15953 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15954 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15955
15956 ;;
15957 esac
15958 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15959 $as_echo_n "checking for gpm.h... " >&6; }
15960 if test "${ac_cv_header_gpm_h+set}" = set; then
15961 $as_echo_n "(cached) " >&6
15962 else
15963 ac_cv_header_gpm_h=$ac_header_preproc
15964 fi
15965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15966 $as_echo "$ac_cv_header_gpm_h" >&6; }
15967
15968 fi
15969 if test $ac_cv_header_gpm_h = yes; then
15970 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15971 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15972 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15973 $as_echo_n "(cached) " >&6
15974 else
15975 ac_check_lib_save_LIBS=$LIBS
15976 LIBS="-lgpm $LIBS"
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983
15984 /* Override any GCC internal prototype to avoid an error.
15985 Use char because int might match the return type of a GCC
15986 builtin and then its argument prototype would still apply. */
15987 #ifdef __cplusplus
15988 extern "C"
15989 #endif
15990 char Gpm_Open ();
15991 int
15992 main ()
15993 {
15994 return Gpm_Open ();
15995 ;
15996 return 0;
15997 }
15998 _ACEOF
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004 esac
16005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16006 $as_echo "$ac_try_echo") >&5
16007 (eval "$ac_link") 2>conftest.er1
16008 ac_status=$?
16009 grep -v '^ *+' conftest.er1 >conftest.err
16010 rm -f conftest.er1
16011 cat conftest.err >&5
16012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } && {
16014 test -z "$ac_c_werror_flag" ||
16015 test ! -s conftest.err
16016 } && test -s conftest$ac_exeext && {
16017 test "$cross_compiling" = yes ||
16018 $as_test_x conftest$ac_exeext
16019 }; then
16020 ac_cv_lib_gpm_Gpm_Open=yes
16021 else
16022 $as_echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 ac_cv_lib_gpm_Gpm_Open=no
16026 fi
16027
16028 rm -rf conftest.dSYM
16029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16030 conftest$ac_exeext conftest.$ac_ext
16031 LIBS=$ac_check_lib_save_LIBS
16032 fi
16033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16034 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16035 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16036 HAVE_GPM=yes
16037 fi
16038
16039 fi
16040
16041
16042
16043 if test "${HAVE_GPM}" = "yes"; then
16044
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE_GPM 1
16047 _ACEOF
16048
16049 LIBGPM=-lgpm
16050 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16051 fi
16052 fi
16053
16054
16055
16056 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16057 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16058 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16059 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16060 $as_echo_n "(cached) " >&6
16061 fi
16062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16063 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16064 else
16065 # Is the header compilable?
16066 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16067 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 $ac_includes_default
16075 #include <malloc/malloc.h>
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (ac_try="$ac_compile"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082 esac
16083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16084 $as_echo "$ac_try_echo") >&5
16085 (eval "$ac_compile") 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } && {
16092 test -z "$ac_c_werror_flag" ||
16093 test ! -s conftest.err
16094 } && test -s conftest.$ac_objext; then
16095 ac_header_compiler=yes
16096 else
16097 $as_echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16099
16100 ac_header_compiler=no
16101 fi
16102
16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16105 $as_echo "$ac_header_compiler" >&6; }
16106
16107 # Is the header present?
16108 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16109 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 #include <malloc/malloc.h>
16117 _ACEOF
16118 if { (ac_try="$ac_cpp conftest.$ac_ext"
16119 case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16122 esac
16123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16124 $as_echo "$ac_try_echo") >&5
16125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } >/dev/null && {
16132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16133 test ! -s conftest.err
16134 }; then
16135 ac_header_preproc=yes
16136 else
16137 $as_echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 ac_header_preproc=no
16141 fi
16142
16143 rm -f conftest.err conftest.$ac_ext
16144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16145 $as_echo "$ac_header_preproc" >&6; }
16146
16147 # So? What about this header?
16148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16149 yes:no: )
16150 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16151 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16152 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16153 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16154 ac_header_preproc=yes
16155 ;;
16156 no:yes:* )
16157 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16158 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16159 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16160 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16161 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16162 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16163 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16164 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16165 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16166 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16167 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16168 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16169
16170 ;;
16171 esac
16172 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16173 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16174 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16175 $as_echo_n "(cached) " >&6
16176 else
16177 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16178 fi
16179 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16180 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16181
16182 fi
16183 if test $ac_cv_header_malloc_malloc_h = yes; then
16184
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_MALLOC_MALLOC_H 1
16187 _ACEOF
16188
16189 fi
16190
16191
16192
16193 C_SWITCH_X_SYSTEM=
16194 ### Use NeXTstep API to implement GUI.
16195 if test "${HAVE_NS}" = "yes"; then
16196
16197 cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_NS 1
16199 _ACEOF
16200
16201 if test "${NS_IMPL_COCOA}" = "yes"; then
16202
16203 cat >>confdefs.h <<\_ACEOF
16204 #define NS_IMPL_COCOA 1
16205 _ACEOF
16206
16207 GNU_OBJC_CFLAGS=
16208 fi
16209 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16210
16211 cat >>confdefs.h <<\_ACEOF
16212 #define NS_IMPL_GNUSTEP 1
16213 _ACEOF
16214
16215 # See also .m.o rule in Makefile.in */
16216 # FIXME: are all these flags really needed? Document here why. */
16217 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16218 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16219 fi
16220 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16221
16222 cat >>confdefs.h <<\_ACEOF
16223 #define NS_HAVE_NSINTEGER 1
16224 _ACEOF
16225
16226 fi
16227 # We also have mouse menus.
16228 HAVE_MENUS=yes
16229 OTHER_FILES=ns-app
16230 fi
16231
16232
16233 ### Use session management (-lSM -lICE) if available
16234 HAVE_X_SM=no
16235 LIBXSM=
16236 if test "${HAVE_X11}" = "yes"; then
16237 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16238 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16239 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16240 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16241 $as_echo_n "(cached) " >&6
16242 fi
16243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16244 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16245 else
16246 # Is the header compilable?
16247 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16248 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16256 #include <X11/SM/SMlib.h>
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263 esac
16264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16265 $as_echo "$ac_try_echo") >&5
16266 (eval "$ac_compile") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } && {
16273 test -z "$ac_c_werror_flag" ||
16274 test ! -s conftest.err
16275 } && test -s conftest.$ac_objext; then
16276 ac_header_compiler=yes
16277 else
16278 $as_echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 ac_header_compiler=no
16282 fi
16283
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16286 $as_echo "$ac_header_compiler" >&6; }
16287
16288 # Is the header present?
16289 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16290 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16291 cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h. */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 #include <X11/SM/SMlib.h>
16298 _ACEOF
16299 if { (ac_try="$ac_cpp conftest.$ac_ext"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303 esac
16304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16305 $as_echo "$ac_try_echo") >&5
16306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } >/dev/null && {
16313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16315 }; then
16316 ac_header_preproc=yes
16317 else
16318 $as_echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 ac_header_preproc=no
16322 fi
16323
16324 rm -f conftest.err conftest.$ac_ext
16325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16326 $as_echo "$ac_header_preproc" >&6; }
16327
16328 # So? What about this header?
16329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16330 yes:no: )
16331 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16332 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16333 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16334 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16335 ac_header_preproc=yes
16336 ;;
16337 no:yes:* )
16338 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16339 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16340 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16341 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16342 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16343 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16344 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16345 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16346 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16347 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16348 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16349 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16350
16351 ;;
16352 esac
16353 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16354 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16355 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16356 $as_echo_n "(cached) " >&6
16357 else
16358 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16359 fi
16360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16361 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16362
16363 fi
16364 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16365 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16366 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16367 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16368 $as_echo_n "(cached) " >&6
16369 else
16370 ac_check_lib_save_LIBS=$LIBS
16371 LIBS="-lSM -lICE $LIBS"
16372 cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h. */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378
16379 /* Override any GCC internal prototype to avoid an error.
16380 Use char because int might match the return type of a GCC
16381 builtin and then its argument prototype would still apply. */
16382 #ifdef __cplusplus
16383 extern "C"
16384 #endif
16385 char SmcOpenConnection ();
16386 int
16387 main ()
16388 {
16389 return SmcOpenConnection ();
16390 ;
16391 return 0;
16392 }
16393 _ACEOF
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (ac_try="$ac_link"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16399 esac
16400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16401 $as_echo "$ac_try_echo") >&5
16402 (eval "$ac_link") 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } && {
16409 test -z "$ac_c_werror_flag" ||
16410 test ! -s conftest.err
16411 } && test -s conftest$ac_exeext && {
16412 test "$cross_compiling" = yes ||
16413 $as_test_x conftest$ac_exeext
16414 }; then
16415 ac_cv_lib_SM_SmcOpenConnection=yes
16416 else
16417 $as_echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 ac_cv_lib_SM_SmcOpenConnection=no
16421 fi
16422
16423 rm -rf conftest.dSYM
16424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16425 conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16427 fi
16428 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16429 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16430 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16431 HAVE_X_SM=yes
16432 fi
16433
16434 fi
16435
16436
16437
16438 if test "${HAVE_X_SM}" = "yes"; then
16439
16440 cat >>confdefs.h <<\_ACEOF
16441 #define HAVE_X_SM 1
16442 _ACEOF
16443
16444 LIBXSM="-lSM -lICE"
16445 case "$LIBS" in
16446 *-lSM*) ;;
16447 *) LIBS="$LIBXSM $LIBS" ;;
16448 esac
16449 fi
16450 fi
16451
16452
16453 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16454 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16455 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16456 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16457 $as_echo_n "(cached) " >&6
16458 else
16459 cat >conftest.$ac_ext <<_ACEOF
16460 /* confdefs.h. */
16461 _ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16465 #include <netdb.h>
16466 int
16467 main ()
16468 {
16469 return h_errno;
16470 ;
16471 return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (ac_try="$ac_link"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479 esac
16480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16481 $as_echo "$ac_try_echo") >&5
16482 (eval "$ac_link") 2>conftest.er1
16483 ac_status=$?
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
16487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } && {
16489 test -z "$ac_c_werror_flag" ||
16490 test ! -s conftest.err
16491 } && test -s conftest$ac_exeext && {
16492 test "$cross_compiling" = yes ||
16493 $as_test_x conftest$ac_exeext
16494 }; then
16495 emacs_cv_netdb_declares_h_errno=yes
16496 else
16497 $as_echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 emacs_cv_netdb_declares_h_errno=no
16501 fi
16502
16503 rm -rf conftest.dSYM
16504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16505 conftest$ac_exeext conftest.$ac_ext
16506 fi
16507 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16508 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16509 if test $emacs_cv_netdb_declares_h_errno = yes; then
16510
16511 cat >>confdefs.h <<\_ACEOF
16512 #define HAVE_H_ERRNO 1
16513 _ACEOF
16514
16515 fi
16516
16517 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16518 # for constant arguments. Useless!
16519 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16520 $as_echo_n "checking for working alloca.h... " >&6; }
16521 if test "${ac_cv_working_alloca_h+set}" = set; then
16522 $as_echo_n "(cached) " >&6
16523 else
16524 cat >conftest.$ac_ext <<_ACEOF
16525 /* confdefs.h. */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 #include <alloca.h>
16531 int
16532 main ()
16533 {
16534 char *p = (char *) alloca (2 * sizeof (int));
16535 if (p) return 0;
16536 ;
16537 return 0;
16538 }
16539 _ACEOF
16540 rm -f conftest.$ac_objext conftest$ac_exeext
16541 if { (ac_try="$ac_link"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545 esac
16546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16547 $as_echo "$ac_try_echo") >&5
16548 (eval "$ac_link") 2>conftest.er1
16549 ac_status=$?
16550 grep -v '^ *+' conftest.er1 >conftest.err
16551 rm -f conftest.er1
16552 cat conftest.err >&5
16553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && {
16555 test -z "$ac_c_werror_flag" ||
16556 test ! -s conftest.err
16557 } && test -s conftest$ac_exeext && {
16558 test "$cross_compiling" = yes ||
16559 $as_test_x conftest$ac_exeext
16560 }; then
16561 ac_cv_working_alloca_h=yes
16562 else
16563 $as_echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16565
16566 ac_cv_working_alloca_h=no
16567 fi
16568
16569 rm -rf conftest.dSYM
16570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16571 conftest$ac_exeext conftest.$ac_ext
16572 fi
16573 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16574 $as_echo "$ac_cv_working_alloca_h" >&6; }
16575 if test $ac_cv_working_alloca_h = yes; then
16576
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_ALLOCA_H 1
16579 _ACEOF
16580
16581 fi
16582
16583 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16584 $as_echo_n "checking for alloca... " >&6; }
16585 if test "${ac_cv_func_alloca_works+set}" = set; then
16586 $as_echo_n "(cached) " >&6
16587 else
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 #ifdef __GNUC__
16595 # define alloca __builtin_alloca
16596 #else
16597 # ifdef _MSC_VER
16598 # include <malloc.h>
16599 # define alloca _alloca
16600 # else
16601 # ifdef HAVE_ALLOCA_H
16602 # include <alloca.h>
16603 # else
16604 # ifdef _AIX
16605 #pragma alloca
16606 # else
16607 # ifndef alloca /* predefined by HP cc +Olibcalls */
16608 char *alloca ();
16609 # endif
16610 # endif
16611 # endif
16612 # endif
16613 #endif
16614
16615 int
16616 main ()
16617 {
16618 char *p = (char *) alloca (1);
16619 if (p) return 0;
16620 ;
16621 return 0;
16622 }
16623 _ACEOF
16624 rm -f conftest.$ac_objext conftest$ac_exeext
16625 if { (ac_try="$ac_link"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629 esac
16630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16631 $as_echo "$ac_try_echo") >&5
16632 (eval "$ac_link") 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } && {
16639 test -z "$ac_c_werror_flag" ||
16640 test ! -s conftest.err
16641 } && test -s conftest$ac_exeext && {
16642 test "$cross_compiling" = yes ||
16643 $as_test_x conftest$ac_exeext
16644 }; then
16645 ac_cv_func_alloca_works=yes
16646 else
16647 $as_echo "$as_me: failed program was:" >&5
16648 sed 's/^/| /' conftest.$ac_ext >&5
16649
16650 ac_cv_func_alloca_works=no
16651 fi
16652
16653 rm -rf conftest.dSYM
16654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16655 conftest$ac_exeext conftest.$ac_ext
16656 fi
16657 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16658 $as_echo "$ac_cv_func_alloca_works" >&6; }
16659
16660 if test $ac_cv_func_alloca_works = yes; then
16661
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_ALLOCA 1
16664 _ACEOF
16665
16666 else
16667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16668 # that cause trouble. Some versions do not even contain alloca or
16669 # contain a buggy version. If you still want to use their alloca,
16670 # use ar to extract alloca.o from them instead of compiling alloca.c.
16671
16672 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16673
16674 cat >>confdefs.h <<\_ACEOF
16675 #define C_ALLOCA 1
16676 _ACEOF
16677
16678
16679 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16680 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16681 if test "${ac_cv_os_cray+set}" = set; then
16682 $as_echo_n "(cached) " >&6
16683 else
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 #if defined CRAY && ! defined CRAY2
16691 webecray
16692 #else
16693 wenotbecray
16694 #endif
16695
16696 _ACEOF
16697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16698 $EGREP "webecray" >/dev/null 2>&1; then
16699 ac_cv_os_cray=yes
16700 else
16701 ac_cv_os_cray=no
16702 fi
16703 rm -f conftest*
16704
16705 fi
16706 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16707 $as_echo "$ac_cv_os_cray" >&6; }
16708 if test $ac_cv_os_cray = yes; then
16709 for ac_func in _getb67 GETB67 getb67; do
16710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16712 $as_echo_n "checking for $ac_func... " >&6; }
16713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16714 $as_echo_n "(cached) " >&6
16715 else
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h. */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16724 #define $ac_func innocuous_$ac_func
16725
16726 /* System header to define __stub macros and hopefully few prototypes,
16727 which can conflict with char $ac_func (); below.
16728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16729 <limits.h> exists even on freestanding compilers. */
16730
16731 #ifdef __STDC__
16732 # include <limits.h>
16733 #else
16734 # include <assert.h>
16735 #endif
16736
16737 #undef $ac_func
16738
16739 /* Override any GCC internal prototype to avoid an error.
16740 Use char because int might match the return type of a GCC
16741 builtin and then its argument prototype would still apply. */
16742 #ifdef __cplusplus
16743 extern "C"
16744 #endif
16745 char $ac_func ();
16746 /* The GNU C library defines this for functions which it implements
16747 to always fail with ENOSYS. Some functions are actually named
16748 something starting with __ and the normal name is an alias. */
16749 #if defined __stub_$ac_func || defined __stub___$ac_func
16750 choke me
16751 #endif
16752
16753 int
16754 main ()
16755 {
16756 return $ac_func ();
16757 ;
16758 return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (ac_try="$ac_link"
16763 case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16766 esac
16767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16768 $as_echo "$ac_try_echo") >&5
16769 (eval "$ac_link") 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } && {
16776 test -z "$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16778 } && test -s conftest$ac_exeext && {
16779 test "$cross_compiling" = yes ||
16780 $as_test_x conftest$ac_exeext
16781 }; then
16782 eval "$as_ac_var=yes"
16783 else
16784 $as_echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787 eval "$as_ac_var=no"
16788 fi
16789
16790 rm -rf conftest.dSYM
16791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16792 conftest$ac_exeext conftest.$ac_ext
16793 fi
16794 ac_res=`eval 'as_val=${'$as_ac_var'}
16795 $as_echo "$as_val"'`
16796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16797 $as_echo "$ac_res" >&6; }
16798 if test `eval 'as_val=${'$as_ac_var'}
16799 $as_echo "$as_val"'` = yes; then
16800
16801 cat >>confdefs.h <<_ACEOF
16802 #define CRAY_STACKSEG_END $ac_func
16803 _ACEOF
16804
16805 break
16806 fi
16807
16808 done
16809 fi
16810
16811 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16812 $as_echo_n "checking stack direction for C alloca... " >&6; }
16813 if test "${ac_cv_c_stack_direction+set}" = set; then
16814 $as_echo_n "(cached) " >&6
16815 else
16816 if test "$cross_compiling" = yes; then
16817 ac_cv_c_stack_direction=0
16818 else
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 int
16827 find_stack_direction ()
16828 {
16829 static char *addr = 0;
16830 auto char dummy;
16831 if (addr == 0)
16832 {
16833 addr = &dummy;
16834 return find_stack_direction ();
16835 }
16836 else
16837 return (&dummy > addr) ? 1 : -1;
16838 }
16839
16840 int
16841 main ()
16842 {
16843 return find_stack_direction () < 0;
16844 }
16845 _ACEOF
16846 rm -f conftest$ac_exeext
16847 if { (ac_try="$ac_link"
16848 case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16851 esac
16852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16853 $as_echo "$ac_try_echo") >&5
16854 (eval "$ac_link") 2>&5
16855 ac_status=$?
16856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16858 { (case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861 esac
16862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16863 $as_echo "$ac_try_echo") >&5
16864 (eval "$ac_try") 2>&5
16865 ac_status=$?
16866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_c_stack_direction=1
16869 else
16870 $as_echo "$as_me: program exited with status $ac_status" >&5
16871 $as_echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 ( exit $ac_status )
16875 ac_cv_c_stack_direction=-1
16876 fi
16877 rm -rf conftest.dSYM
16878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16879 fi
16880
16881
16882 fi
16883 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16884 $as_echo "$ac_cv_c_stack_direction" >&6; }
16885
16886 cat >>confdefs.h <<_ACEOF
16887 #define STACK_DIRECTION $ac_cv_c_stack_direction
16888 _ACEOF
16889
16890
16891 fi
16892
16893
16894 if test x"$ac_cv_func_alloca_works" != xyes; then
16895 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16896 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16897 { (exit 1); exit 1; }; }
16898 fi
16899
16900 # fmod, logb, and frexp are found in -lm on most systems.
16901 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16902
16903 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16904 $as_echo_n "checking for sqrt in -lm... " >&6; }
16905 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16906 $as_echo_n "(cached) " >&6
16907 else
16908 ac_check_lib_save_LIBS=$LIBS
16909 LIBS="-lm $LIBS"
16910 cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h. */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916
16917 /* Override any GCC internal prototype to avoid an error.
16918 Use char because int might match the return type of a GCC
16919 builtin and then its argument prototype would still apply. */
16920 #ifdef __cplusplus
16921 extern "C"
16922 #endif
16923 char sqrt ();
16924 int
16925 main ()
16926 {
16927 return sqrt ();
16928 ;
16929 return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (ac_try="$ac_link"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16937 esac
16938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940 (eval "$ac_link") 2>conftest.er1
16941 ac_status=$?
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
16945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } && {
16947 test -z "$ac_c_werror_flag" ||
16948 test ! -s conftest.err
16949 } && test -s conftest$ac_exeext && {
16950 test "$cross_compiling" = yes ||
16951 $as_test_x conftest$ac_exeext
16952 }; then
16953 ac_cv_lib_m_sqrt=yes
16954 else
16955 $as_echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 ac_cv_lib_m_sqrt=no
16959 fi
16960
16961 rm -rf conftest.dSYM
16962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16963 conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16965 fi
16966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16967 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16968 if test $ac_cv_lib_m_sqrt = yes; then
16969 cat >>confdefs.h <<_ACEOF
16970 #define HAVE_LIBM 1
16971 _ACEOF
16972
16973 LIBS="-lm $LIBS"
16974
16975 fi
16976
16977
16978 # Check for mail-locking functions in a "mail" library. Probably this should
16979 # have the same check as for liblockfile below.
16980 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16981 $as_echo_n "checking for maillock in -lmail... " >&6; }
16982 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16983 $as_echo_n "(cached) " >&6
16984 else
16985 ac_check_lib_save_LIBS=$LIBS
16986 LIBS="-lmail $LIBS"
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h. */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993
16994 /* Override any GCC internal prototype to avoid an error.
16995 Use char because int might match the return type of a GCC
16996 builtin and then its argument prototype would still apply. */
16997 #ifdef __cplusplus
16998 extern "C"
16999 #endif
17000 char maillock ();
17001 int
17002 main ()
17003 {
17004 return maillock ();
17005 ;
17006 return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (ac_try="$ac_link"
17011 case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17014 esac
17015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17016 $as_echo "$ac_try_echo") >&5
17017 (eval "$ac_link") 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && {
17024 test -z "$ac_c_werror_flag" ||
17025 test ! -s conftest.err
17026 } && test -s conftest$ac_exeext && {
17027 test "$cross_compiling" = yes ||
17028 $as_test_x conftest$ac_exeext
17029 }; then
17030 ac_cv_lib_mail_maillock=yes
17031 else
17032 $as_echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 ac_cv_lib_mail_maillock=no
17036 fi
17037
17038 rm -rf conftest.dSYM
17039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17040 conftest$ac_exeext conftest.$ac_ext
17041 LIBS=$ac_check_lib_save_LIBS
17042 fi
17043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17044 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17045 if test $ac_cv_lib_mail_maillock = yes; then
17046 have_mail=yes
17047 else
17048 have_mail=no
17049 fi
17050
17051 if test $have_mail = yes; then
17052 LIBS_MAIL=-lmail
17053 LIBS="$LIBS_MAIL $LIBS"
17054
17055 cat >>confdefs.h <<\_ACEOF
17056 #define HAVE_LIBMAIL 1
17057 _ACEOF
17058
17059 else
17060 LIBS_MAIL=
17061 fi
17062 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17063 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17064 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17065 $as_echo_n "(cached) " >&6
17066 else
17067 ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-llockfile $LIBS"
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char maillock ();
17083 int
17084 main ()
17085 {
17086 return maillock ();
17087 ;
17088 return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17098 $as_echo "$ac_try_echo") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext && {
17109 test "$cross_compiling" = yes ||
17110 $as_test_x conftest$ac_exeext
17111 }; then
17112 ac_cv_lib_lockfile_maillock=yes
17113 else
17114 $as_echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117 ac_cv_lib_lockfile_maillock=no
17118 fi
17119
17120 rm -rf conftest.dSYM
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17123 LIBS=$ac_check_lib_save_LIBS
17124 fi
17125 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17126 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17127 if test $ac_cv_lib_lockfile_maillock = yes; then
17128 have_lockfile=yes
17129 else
17130 have_lockfile=no
17131 fi
17132
17133 if test $have_lockfile = yes; then
17134 LIBS_MAIL=-llockfile
17135 LIBS="$LIBS_MAIL $LIBS"
17136
17137 cat >>confdefs.h <<\_ACEOF
17138 #define HAVE_LIBLOCKFILE 1
17139 _ACEOF
17140
17141 else
17142 # If we have the shared liblockfile, assume we must use it for mail
17143 # locking (e.g. Debian). If we couldn't link against liblockfile
17144 # (no liblockfile.a installed), ensure that we don't need to.
17145 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17146 set dummy liblockfile.so; ac_word=$2
17147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17148 $as_echo_n "checking for $ac_word... " >&6; }
17149 if test "${ac_cv_prog_liblockfile+set}" = set; then
17150 $as_echo_n "(cached) " >&6
17151 else
17152 if test -n "$liblockfile"; then
17153 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17154 else
17155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17157 for as_dir in $as_dummy
17158 do
17159 IFS=$as_save_IFS
17160 test -z "$as_dir" && as_dir=.
17161 for ac_exec_ext in '' $ac_executable_extensions; do
17162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17163 ac_cv_prog_liblockfile="yes"
17164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17165 break 2
17166 fi
17167 done
17168 done
17169 IFS=$as_save_IFS
17170
17171 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17172 fi
17173 fi
17174 liblockfile=$ac_cv_prog_liblockfile
17175 if test -n "$liblockfile"; then
17176 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17177 $as_echo "$liblockfile" >&6; }
17178 else
17179 { $as_echo "$as_me:$LINENO: result: no" >&5
17180 $as_echo "no" >&6; }
17181 fi
17182
17183
17184 if test $ac_cv_prog_liblockfile = yes; then
17185 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17186 This probably means that movemail could lose mail.
17187 There may be a \`development' package to install containing liblockfile." >&5
17188 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17189 This probably means that movemail could lose mail.
17190 There may be a \`development' package to install containing liblockfile." >&2;}
17191 { (exit 1); exit 1; }; }
17192 fi
17193 fi
17194
17195 for ac_func in touchlock
17196 do
17197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 $as_echo_n "checking for $ac_func... " >&6; }
17200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 $as_echo_n "(cached) " >&6
17202 else
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211 #define $ac_func innocuous_$ac_func
17212
17213 /* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17217
17218 #ifdef __STDC__
17219 # include <limits.h>
17220 #else
17221 # include <assert.h>
17222 #endif
17223
17224 #undef $ac_func
17225
17226 /* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17229 #ifdef __cplusplus
17230 extern "C"
17231 #endif
17232 char $ac_func ();
17233 /* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236 #if defined __stub_$ac_func || defined __stub___$ac_func
17237 choke me
17238 #endif
17239
17240 int
17241 main ()
17242 {
17243 return $ac_func ();
17244 ;
17245 return 0;
17246 }
17247 _ACEOF
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253 esac
17254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17255 $as_echo "$ac_try_echo") >&5
17256 (eval "$ac_link") 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest$ac_exeext && {
17266 test "$cross_compiling" = yes ||
17267 $as_test_x conftest$ac_exeext
17268 }; then
17269 eval "$as_ac_var=yes"
17270 else
17271 $as_echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 eval "$as_ac_var=no"
17275 fi
17276
17277 rm -rf conftest.dSYM
17278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17279 conftest$ac_exeext conftest.$ac_ext
17280 fi
17281 ac_res=`eval 'as_val=${'$as_ac_var'}
17282 $as_echo "$as_val"'`
17283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17284 $as_echo "$ac_res" >&6; }
17285 if test `eval 'as_val=${'$as_ac_var'}
17286 $as_echo "$as_val"'` = yes; then
17287 cat >>confdefs.h <<_ACEOF
17288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17289 _ACEOF
17290
17291 fi
17292 done
17293
17294
17295 for ac_header in maillock.h
17296 do
17297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17300 $as_echo_n "checking for $ac_header... " >&6; }
17301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17302 $as_echo_n "(cached) " >&6
17303 fi
17304 ac_res=`eval 'as_val=${'$as_ac_Header'}
17305 $as_echo "$as_val"'`
17306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17307 $as_echo "$ac_res" >&6; }
17308 else
17309 # Is the header compilable?
17310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17311 $as_echo_n "checking $ac_header usability... " >&6; }
17312 cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h. */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 $ac_includes_default
17319 #include <$ac_header>
17320 _ACEOF
17321 rm -f conftest.$ac_objext
17322 if { (ac_try="$ac_compile"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326 esac
17327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17328 $as_echo "$ac_try_echo") >&5
17329 (eval "$ac_compile") 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest.$ac_objext; then
17339 ac_header_compiler=yes
17340 else
17341 $as_echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17343
17344 ac_header_compiler=no
17345 fi
17346
17347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17349 $as_echo "$ac_header_compiler" >&6; }
17350
17351 # Is the header present?
17352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17353 $as_echo_n "checking $ac_header presence... " >&6; }
17354 cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h. */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360 #include <$ac_header>
17361 _ACEOF
17362 if { (ac_try="$ac_cpp conftest.$ac_ext"
17363 case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17366 esac
17367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17368 $as_echo "$ac_try_echo") >&5
17369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } >/dev/null && {
17376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17377 test ! -s conftest.err
17378 }; then
17379 ac_header_preproc=yes
17380 else
17381 $as_echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 ac_header_preproc=no
17385 fi
17386
17387 rm -f conftest.err conftest.$ac_ext
17388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17389 $as_echo "$ac_header_preproc" >&6; }
17390
17391 # So? What about this header?
17392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17393 yes:no: )
17394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17398 ac_header_preproc=yes
17399 ;;
17400 no:yes:* )
17401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17404 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17408 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17413
17414 ;;
17415 esac
17416 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17417 $as_echo_n "checking for $ac_header... " >&6; }
17418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17419 $as_echo_n "(cached) " >&6
17420 else
17421 eval "$as_ac_Header=\$ac_header_preproc"
17422 fi
17423 ac_res=`eval 'as_val=${'$as_ac_Header'}
17424 $as_echo "$as_val"'`
17425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17426 $as_echo "$ac_res" >&6; }
17427
17428 fi
17429 if test `eval 'as_val=${'$as_ac_Header'}
17430 $as_echo "$as_val"'` = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17433 _ACEOF
17434
17435 fi
17436
17437 done
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512 for ac_func in gethostname getdomainname dup2 \
17513 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17514 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17515 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17516 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17517 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17518 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17519 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17520 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17521 cfmakeraw cfsetspeed
17522 do
17523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17524 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17525 $as_echo_n "checking for $ac_func... " >&6; }
17526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17527 $as_echo_n "(cached) " >&6
17528 else
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17537 #define $ac_func innocuous_$ac_func
17538
17539 /* System header to define __stub macros and hopefully few prototypes,
17540 which can conflict with char $ac_func (); below.
17541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17542 <limits.h> exists even on freestanding compilers. */
17543
17544 #ifdef __STDC__
17545 # include <limits.h>
17546 #else
17547 # include <assert.h>
17548 #endif
17549
17550 #undef $ac_func
17551
17552 /* Override any GCC internal prototype to avoid an error.
17553 Use char because int might match the return type of a GCC
17554 builtin and then its argument prototype would still apply. */
17555 #ifdef __cplusplus
17556 extern "C"
17557 #endif
17558 char $ac_func ();
17559 /* The GNU C library defines this for functions which it implements
17560 to always fail with ENOSYS. Some functions are actually named
17561 something starting with __ and the normal name is an alias. */
17562 #if defined __stub_$ac_func || defined __stub___$ac_func
17563 choke me
17564 #endif
17565
17566 int
17567 main ()
17568 {
17569 return $ac_func ();
17570 ;
17571 return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (ac_try="$ac_link"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579 esac
17580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17581 $as_echo "$ac_try_echo") >&5
17582 (eval "$ac_link") 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } && {
17589 test -z "$ac_c_werror_flag" ||
17590 test ! -s conftest.err
17591 } && test -s conftest$ac_exeext && {
17592 test "$cross_compiling" = yes ||
17593 $as_test_x conftest$ac_exeext
17594 }; then
17595 eval "$as_ac_var=yes"
17596 else
17597 $as_echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 eval "$as_ac_var=no"
17601 fi
17602
17603 rm -rf conftest.dSYM
17604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17605 conftest$ac_exeext conftest.$ac_ext
17606 fi
17607 ac_res=`eval 'as_val=${'$as_ac_var'}
17608 $as_echo "$as_val"'`
17609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17610 $as_echo "$ac_res" >&6; }
17611 if test `eval 'as_val=${'$as_ac_var'}
17612 $as_echo "$as_val"'` = yes; then
17613 cat >>confdefs.h <<_ACEOF
17614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17615 _ACEOF
17616
17617 fi
17618 done
17619
17620
17621
17622 for ac_header in sys/un.h
17623 do
17624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17627 $as_echo_n "checking for $ac_header... " >&6; }
17628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17629 $as_echo_n "(cached) " >&6
17630 fi
17631 ac_res=`eval 'as_val=${'$as_ac_Header'}
17632 $as_echo "$as_val"'`
17633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17634 $as_echo "$ac_res" >&6; }
17635 else
17636 # Is the header compilable?
17637 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17638 $as_echo_n "checking $ac_header usability... " >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 $ac_includes_default
17646 #include <$ac_header>
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (ac_try="$ac_compile"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653 esac
17654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17655 $as_echo "$ac_try_echo") >&5
17656 (eval "$ac_compile") 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } && {
17663 test -z "$ac_c_werror_flag" ||
17664 test ! -s conftest.err
17665 } && test -s conftest.$ac_objext; then
17666 ac_header_compiler=yes
17667 else
17668 $as_echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671 ac_header_compiler=no
17672 fi
17673
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17676 $as_echo "$ac_header_compiler" >&6; }
17677
17678 # Is the header present?
17679 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17680 $as_echo_n "checking $ac_header presence... " >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 #include <$ac_header>
17688 _ACEOF
17689 if { (ac_try="$ac_cpp conftest.$ac_ext"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693 esac
17694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17695 $as_echo "$ac_try_echo") >&5
17696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17697 ac_status=$?
17698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
17701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } >/dev/null && {
17703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17704 test ! -s conftest.err
17705 }; then
17706 ac_header_preproc=yes
17707 else
17708 $as_echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ac_header_preproc=no
17712 fi
17713
17714 rm -f conftest.err conftest.$ac_ext
17715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17716 $as_echo "$ac_header_preproc" >&6; }
17717
17718 # So? What about this header?
17719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17720 yes:no: )
17721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17722 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17724 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17725 ac_header_preproc=yes
17726 ;;
17727 no:yes:* )
17728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17729 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17731 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17733 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17735 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17737 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17739 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17740
17741 ;;
17742 esac
17743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17744 $as_echo_n "checking for $ac_header... " >&6; }
17745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17746 $as_echo_n "(cached) " >&6
17747 else
17748 eval "$as_ac_Header=\$ac_header_preproc"
17749 fi
17750 ac_res=`eval 'as_val=${'$as_ac_Header'}
17751 $as_echo "$as_val"'`
17752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17753 $as_echo "$ac_res" >&6; }
17754
17755 fi
17756 if test `eval 'as_val=${'$as_ac_Header'}
17757 $as_echo "$as_val"'` = yes; then
17758 cat >>confdefs.h <<_ACEOF
17759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17760 _ACEOF
17761
17762 fi
17763
17764 done
17765
17766
17767
17768
17769
17770
17771 for ac_header in $ac_header_list
17772 do
17773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17776 $as_echo_n "checking for $ac_header... " >&6; }
17777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17778 $as_echo_n "(cached) " >&6
17779 fi
17780 ac_res=`eval 'as_val=${'$as_ac_Header'}
17781 $as_echo "$as_val"'`
17782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17783 $as_echo "$ac_res" >&6; }
17784 else
17785 # Is the header compilable?
17786 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17787 $as_echo_n "checking $ac_header usability... " >&6; }
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h. */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 $ac_includes_default
17795 #include <$ac_header>
17796 _ACEOF
17797 rm -f conftest.$ac_objext
17798 if { (ac_try="$ac_compile"
17799 case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802 esac
17803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17804 $as_echo "$ac_try_echo") >&5
17805 (eval "$ac_compile") 2>conftest.er1
17806 ac_status=$?
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
17810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } && {
17812 test -z "$ac_c_werror_flag" ||
17813 test ! -s conftest.err
17814 } && test -s conftest.$ac_objext; then
17815 ac_header_compiler=yes
17816 else
17817 $as_echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820 ac_header_compiler=no
17821 fi
17822
17823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17825 $as_echo "$ac_header_compiler" >&6; }
17826
17827 # Is the header present?
17828 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17829 $as_echo_n "checking $ac_header presence... " >&6; }
17830 cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h. */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 #include <$ac_header>
17837 _ACEOF
17838 if { (ac_try="$ac_cpp conftest.$ac_ext"
17839 case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842 esac
17843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17844 $as_echo "$ac_try_echo") >&5
17845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } >/dev/null && {
17852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17853 test ! -s conftest.err
17854 }; then
17855 ac_header_preproc=yes
17856 else
17857 $as_echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860 ac_header_preproc=no
17861 fi
17862
17863 rm -f conftest.err conftest.$ac_ext
17864 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17865 $as_echo "$ac_header_preproc" >&6; }
17866
17867 # So? What about this header?
17868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17869 yes:no: )
17870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17871 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17874 ac_header_preproc=yes
17875 ;;
17876 no:yes:* )
17877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17878 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17880 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17882 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17884 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17886 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17888 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17889
17890 ;;
17891 esac
17892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17893 $as_echo_n "checking for $ac_header... " >&6; }
17894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17895 $as_echo_n "(cached) " >&6
17896 else
17897 eval "$as_ac_Header=\$ac_header_preproc"
17898 fi
17899 ac_res=`eval 'as_val=${'$as_ac_Header'}
17900 $as_echo "$as_val"'`
17901 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17902 $as_echo "$ac_res" >&6; }
17903
17904 fi
17905 if test `eval 'as_val=${'$as_ac_Header'}
17906 $as_echo "$as_val"'` = yes; then
17907 cat >>confdefs.h <<_ACEOF
17908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17909 _ACEOF
17910
17911 fi
17912
17913 done
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923 for ac_func in $ac_func_list
17924 do
17925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 $as_echo_n "checking for $ac_func... " >&6; }
17928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929 $as_echo_n "(cached) " >&6
17930 else
17931 cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h. */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939 #define $ac_func innocuous_$ac_func
17940
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17945
17946 #ifdef __STDC__
17947 # include <limits.h>
17948 #else
17949 # include <assert.h>
17950 #endif
17951
17952 #undef $ac_func
17953
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 char $ac_func ();
17961 /* The GNU C library defines this for functions which it implements
17962 to always fail with ENOSYS. Some functions are actually named
17963 something starting with __ and the normal name is an alias. */
17964 #if defined __stub_$ac_func || defined __stub___$ac_func
17965 choke me
17966 #endif
17967
17968 int
17969 main ()
17970 {
17971 return $ac_func ();
17972 ;
17973 return 0;
17974 }
17975 _ACEOF
17976 rm -f conftest.$ac_objext conftest$ac_exeext
17977 if { (ac_try="$ac_link"
17978 case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17981 esac
17982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17983 $as_echo "$ac_try_echo") >&5
17984 (eval "$ac_link") 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && {
17991 test -z "$ac_c_werror_flag" ||
17992 test ! -s conftest.err
17993 } && test -s conftest$ac_exeext && {
17994 test "$cross_compiling" = yes ||
17995 $as_test_x conftest$ac_exeext
17996 }; then
17997 eval "$as_ac_var=yes"
17998 else
17999 $as_echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18001
18002 eval "$as_ac_var=no"
18003 fi
18004
18005 rm -rf conftest.dSYM
18006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18007 conftest$ac_exeext conftest.$ac_ext
18008 fi
18009 ac_res=`eval 'as_val=${'$as_ac_var'}
18010 $as_echo "$as_val"'`
18011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18012 $as_echo "$ac_res" >&6; }
18013 if test `eval 'as_val=${'$as_ac_var'}
18014 $as_echo "$as_val"'` = yes; then
18015 cat >>confdefs.h <<_ACEOF
18016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18017 _ACEOF
18018
18019 fi
18020 done
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18039 $as_echo_n "checking for working mktime... " >&6; }
18040 if test "${ac_cv_func_working_mktime+set}" = set; then
18041 $as_echo_n "(cached) " >&6
18042 else
18043 if test "$cross_compiling" = yes; then
18044 ac_cv_func_working_mktime=no
18045 else
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 /* Test program from Paul Eggert and Tony Leneis. */
18053 #ifdef TIME_WITH_SYS_TIME
18054 # include <sys/time.h>
18055 # include <time.h>
18056 #else
18057 # ifdef HAVE_SYS_TIME_H
18058 # include <sys/time.h>
18059 # else
18060 # include <time.h>
18061 # endif
18062 #endif
18063
18064 #include <limits.h>
18065 #include <stdlib.h>
18066
18067 #ifdef HAVE_UNISTD_H
18068 # include <unistd.h>
18069 #endif
18070
18071 #ifndef HAVE_ALARM
18072 # define alarm(X) /* empty */
18073 #endif
18074
18075 /* Work around redefinition to rpl_putenv by other config tests. */
18076 #undef putenv
18077
18078 static time_t time_t_max;
18079 static time_t time_t_min;
18080
18081 /* Values we'll use to set the TZ environment variable. */
18082 static char *tz_strings[] = {
18083 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18084 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18085 };
18086 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18087
18088 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18089 Based on a problem report from Andreas Jaeger. */
18090 static int
18091 spring_forward_gap ()
18092 {
18093 /* glibc (up to about 1998-10-07) failed this test. */
18094 struct tm tm;
18095
18096 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18097 instead of "TZ=America/Vancouver" in order to detect the bug even
18098 on systems that don't support the Olson extension, or don't have the
18099 full zoneinfo tables installed. */
18100 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18101
18102 tm.tm_year = 98;
18103 tm.tm_mon = 3;
18104 tm.tm_mday = 5;
18105 tm.tm_hour = 2;
18106 tm.tm_min = 0;
18107 tm.tm_sec = 0;
18108 tm.tm_isdst = -1;
18109 return mktime (&tm) != (time_t) -1;
18110 }
18111
18112 static int
18113 mktime_test1 (now)
18114 time_t now;
18115 {
18116 struct tm *lt;
18117 return ! (lt = localtime (&now)) || mktime (lt) == now;
18118 }
18119
18120 static int
18121 mktime_test (now)
18122 time_t now;
18123 {
18124 return (mktime_test1 (now)
18125 && mktime_test1 ((time_t) (time_t_max - now))
18126 && mktime_test1 ((time_t) (time_t_min + now)));
18127 }
18128
18129 static int
18130 irix_6_4_bug ()
18131 {
18132 /* Based on code from Ariel Faigon. */
18133 struct tm tm;
18134 tm.tm_year = 96;
18135 tm.tm_mon = 3;
18136 tm.tm_mday = 0;
18137 tm.tm_hour = 0;
18138 tm.tm_min = 0;
18139 tm.tm_sec = 0;
18140 tm.tm_isdst = -1;
18141 mktime (&tm);
18142 return tm.tm_mon == 2 && tm.tm_mday == 31;
18143 }
18144
18145 static int
18146 bigtime_test (j)
18147 int j;
18148 {
18149 struct tm tm;
18150 time_t now;
18151 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18152 now = mktime (&tm);
18153 if (now != (time_t) -1)
18154 {
18155 struct tm *lt = localtime (&now);
18156 if (! (lt
18157 && lt->tm_year == tm.tm_year
18158 && lt->tm_mon == tm.tm_mon
18159 && lt->tm_mday == tm.tm_mday
18160 && lt->tm_hour == tm.tm_hour
18161 && lt->tm_min == tm.tm_min
18162 && lt->tm_sec == tm.tm_sec
18163 && lt->tm_yday == tm.tm_yday
18164 && lt->tm_wday == tm.tm_wday
18165 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18166 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18167 return 0;
18168 }
18169 return 1;
18170 }
18171
18172 static int
18173 year_2050_test ()
18174 {
18175 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18176 ignoring leap seconds. */
18177 unsigned long int answer = 2527315200UL;
18178
18179 struct tm tm;
18180 time_t t;
18181 tm.tm_year = 2050 - 1900;
18182 tm.tm_mon = 2 - 1;
18183 tm.tm_mday = 1;
18184 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18185 tm.tm_isdst = -1;
18186
18187 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18188 instead of "TZ=America/Vancouver" in order to detect the bug even
18189 on systems that don't support the Olson extension, or don't have the
18190 full zoneinfo tables installed. */
18191 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18192
18193 t = mktime (&tm);
18194
18195 /* Check that the result is either a failure, or close enough
18196 to the correct answer that we can assume the discrepancy is
18197 due to leap seconds. */
18198 return (t == (time_t) -1
18199 || (0 < t && answer - 120 <= t && t <= answer + 120));
18200 }
18201
18202 int
18203 main ()
18204 {
18205 time_t t, delta;
18206 int i, j;
18207
18208 /* This test makes some buggy mktime implementations loop.
18209 Give up after 60 seconds; a mktime slower than that
18210 isn't worth using anyway. */
18211 alarm (60);
18212
18213 for (;;)
18214 {
18215 t = (time_t_max << 1) + 1;
18216 if (t <= time_t_max)
18217 break;
18218 time_t_max = t;
18219 }
18220 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18221
18222 delta = time_t_max / 997; /* a suitable prime number */
18223 for (i = 0; i < N_STRINGS; i++)
18224 {
18225 if (tz_strings[i])
18226 putenv (tz_strings[i]);
18227
18228 for (t = 0; t <= time_t_max - delta; t += delta)
18229 if (! mktime_test (t))
18230 return 1;
18231 if (! (mktime_test ((time_t) 1)
18232 && mktime_test ((time_t) (60 * 60))
18233 && mktime_test ((time_t) (60 * 60 * 24))))
18234 return 1;
18235
18236 for (j = 1; ; j <<= 1)
18237 if (! bigtime_test (j))
18238 return 1;
18239 else if (INT_MAX / 2 < j)
18240 break;
18241 if (! bigtime_test (INT_MAX))
18242 return 1;
18243 }
18244 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18245 }
18246 _ACEOF
18247 rm -f conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252 esac
18253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18254 $as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>&5
18256 ac_status=$?
18257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262 esac
18263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18264 $as_echo "$ac_try_echo") >&5
18265 (eval "$ac_try") 2>&5
18266 ac_status=$?
18267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 ac_cv_func_working_mktime=yes
18270 else
18271 $as_echo "$as_me: program exited with status $ac_status" >&5
18272 $as_echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18274
18275 ( exit $ac_status )
18276 ac_cv_func_working_mktime=no
18277 fi
18278 rm -rf conftest.dSYM
18279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18280 fi
18281
18282
18283 fi
18284 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18285 $as_echo "$ac_cv_func_working_mktime" >&6; }
18286 if test $ac_cv_func_working_mktime = no; then
18287 case " $LIBOBJS " in
18288 *" mktime.$ac_objext "* ) ;;
18289 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18290 ;;
18291 esac
18292
18293 fi
18294
18295 if test "$ac_cv_func_working_mktime" = no; then
18296
18297 cat >>confdefs.h <<\_ACEOF
18298 #define BROKEN_MKTIME 1
18299 _ACEOF
18300
18301 fi
18302
18303 ac_have_func=no # yes means we've found a way to get the load average.
18304
18305 # Make sure getloadavg.c is where it belongs, at configure-time.
18306 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18307 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18308 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18309 { (exit 1); exit 1; }; }
18310
18311 ac_save_LIBS=$LIBS
18312
18313 # Check for getloadavg, but be sure not to touch the cache variable.
18314 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18315 $as_echo_n "checking for getloadavg... " >&6; }
18316 if test "${ac_cv_func_getloadavg+set}" = set; then
18317 $as_echo_n "(cached) " >&6
18318 else
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h. */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18325 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18327 #define getloadavg innocuous_getloadavg
18328
18329 /* System header to define __stub macros and hopefully few prototypes,
18330 which can conflict with char getloadavg (); below.
18331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18332 <limits.h> exists even on freestanding compilers. */
18333
18334 #ifdef __STDC__
18335 # include <limits.h>
18336 #else
18337 # include <assert.h>
18338 #endif
18339
18340 #undef getloadavg
18341
18342 /* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18345 #ifdef __cplusplus
18346 extern "C"
18347 #endif
18348 char getloadavg ();
18349 /* The GNU C library defines this for functions which it implements
18350 to always fail with ENOSYS. Some functions are actually named
18351 something starting with __ and the normal name is an alias. */
18352 #if defined __stub_getloadavg || defined __stub___getloadavg
18353 choke me
18354 #endif
18355
18356 int
18357 main ()
18358 {
18359 return getloadavg ();
18360 ;
18361 return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest.$ac_objext conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18369 esac
18370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18371 $as_echo "$ac_try_echo") >&5
18372 (eval "$ac_link") 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest$ac_exeext && {
18382 test "$cross_compiling" = yes ||
18383 $as_test_x conftest$ac_exeext
18384 }; then
18385 ac_cv_func_getloadavg=yes
18386 else
18387 $as_echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18389
18390 ac_cv_func_getloadavg=no
18391 fi
18392
18393 rm -rf conftest.dSYM
18394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18395 conftest$ac_exeext conftest.$ac_ext
18396 fi
18397 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18398 $as_echo "$ac_cv_func_getloadavg" >&6; }
18399 if test $ac_cv_func_getloadavg = yes; then
18400 exit 0
18401 else
18402 exit 1
18403 fi
18404 ) && ac_have_func=yes
18405
18406 # On HPUX9, an unprivileged user can get load averages through this function.
18407
18408 for ac_func in pstat_getdynamic
18409 do
18410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18411 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18412 $as_echo_n "checking for $ac_func... " >&6; }
18413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18414 $as_echo_n "(cached) " >&6
18415 else
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h. */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define $ac_func innocuous_$ac_func
18425
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char $ac_func (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18430
18431 #ifdef __STDC__
18432 # include <limits.h>
18433 #else
18434 # include <assert.h>
18435 #endif
18436
18437 #undef $ac_func
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char $ac_func ();
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined __stub_$ac_func || defined __stub___$ac_func
18450 choke me
18451 #endif
18452
18453 int
18454 main ()
18455 {
18456 return $ac_func ();
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (ac_try="$ac_link"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466 esac
18467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18468 $as_echo "$ac_try_echo") >&5
18469 (eval "$ac_link") 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest$ac_exeext && {
18479 test "$cross_compiling" = yes ||
18480 $as_test_x conftest$ac_exeext
18481 }; then
18482 eval "$as_ac_var=yes"
18483 else
18484 $as_echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 eval "$as_ac_var=no"
18488 fi
18489
18490 rm -rf conftest.dSYM
18491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18492 conftest$ac_exeext conftest.$ac_ext
18493 fi
18494 ac_res=`eval 'as_val=${'$as_ac_var'}
18495 $as_echo "$as_val"'`
18496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18497 $as_echo "$ac_res" >&6; }
18498 if test `eval 'as_val=${'$as_ac_var'}
18499 $as_echo "$as_val"'` = yes; then
18500 cat >>confdefs.h <<_ACEOF
18501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18502 _ACEOF
18503
18504 fi
18505 done
18506
18507
18508 # Solaris has libkstat which does not require root.
18509
18510 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18511 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18512 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18513 $as_echo_n "(cached) " >&6
18514 else
18515 ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lkstat $LIBS"
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 char kstat_open ();
18531 int
18532 main ()
18533 {
18534 return kstat_open ();
18535 ;
18536 return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544 esac
18545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18546 $as_echo "$ac_try_echo") >&5
18547 (eval "$ac_link") 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext && {
18557 test "$cross_compiling" = yes ||
18558 $as_test_x conftest$ac_exeext
18559 }; then
18560 ac_cv_lib_kstat_kstat_open=yes
18561 else
18562 $as_echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565 ac_cv_lib_kstat_kstat_open=no
18566 fi
18567
18568 rm -rf conftest.dSYM
18569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS
18572 fi
18573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18574 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18575 if test $ac_cv_lib_kstat_kstat_open = yes; then
18576 cat >>confdefs.h <<_ACEOF
18577 #define HAVE_LIBKSTAT 1
18578 _ACEOF
18579
18580 LIBS="-lkstat $LIBS"
18581
18582 fi
18583
18584 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18585
18586 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18587 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18588 # to get the right answer into the cache.
18589 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18590 if test $ac_have_func = no; then
18591 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18592 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18593 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18594 $as_echo_n "(cached) " >&6
18595 else
18596 ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lelf $LIBS"
18598 cat >conftest.$ac_ext <<_ACEOF
18599 /* confdefs.h. */
18600 _ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18604
18605 /* Override any GCC internal prototype to avoid an error.
18606 Use char because int might match the return type of a GCC
18607 builtin and then its argument prototype would still apply. */
18608 #ifdef __cplusplus
18609 extern "C"
18610 #endif
18611 char elf_begin ();
18612 int
18613 main ()
18614 {
18615 return elf_begin ();
18616 ;
18617 return 0;
18618 }
18619 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18627 $as_echo "$ac_try_echo") >&5
18628 (eval "$ac_link") 2>conftest.er1
18629 ac_status=$?
18630 grep -v '^ *+' conftest.er1 >conftest.err
18631 rm -f conftest.er1
18632 cat conftest.err >&5
18633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext && {
18638 test "$cross_compiling" = yes ||
18639 $as_test_x conftest$ac_exeext
18640 }; then
18641 ac_cv_lib_elf_elf_begin=yes
18642 else
18643 $as_echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_cv_lib_elf_elf_begin=no
18647 fi
18648
18649 rm -rf conftest.dSYM
18650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18653 fi
18654 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18655 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18656 if test $ac_cv_lib_elf_elf_begin = yes; then
18657 LIBS="-lelf $LIBS"
18658 fi
18659
18660 fi
18661 if test $ac_have_func = no; then
18662 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18663 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18664 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18665 $as_echo_n "(cached) " >&6
18666 else
18667 ac_check_lib_save_LIBS=$LIBS
18668 LIBS="-lkvm $LIBS"
18669 cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675
18676 /* Override any GCC internal prototype to avoid an error.
18677 Use char because int might match the return type of a GCC
18678 builtin and then its argument prototype would still apply. */
18679 #ifdef __cplusplus
18680 extern "C"
18681 #endif
18682 char kvm_open ();
18683 int
18684 main ()
18685 {
18686 return kvm_open ();
18687 ;
18688 return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18696 esac
18697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18698 $as_echo "$ac_try_echo") >&5
18699 (eval "$ac_link") 2>conftest.er1
18700 ac_status=$?
18701 grep -v '^ *+' conftest.er1 >conftest.err
18702 rm -f conftest.er1
18703 cat conftest.err >&5
18704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } && {
18706 test -z "$ac_c_werror_flag" ||
18707 test ! -s conftest.err
18708 } && test -s conftest$ac_exeext && {
18709 test "$cross_compiling" = yes ||
18710 $as_test_x conftest$ac_exeext
18711 }; then
18712 ac_cv_lib_kvm_kvm_open=yes
18713 else
18714 $as_echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 ac_cv_lib_kvm_kvm_open=no
18718 fi
18719
18720 rm -rf conftest.dSYM
18721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18722 conftest$ac_exeext conftest.$ac_ext
18723 LIBS=$ac_check_lib_save_LIBS
18724 fi
18725 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18726 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18727 if test $ac_cv_lib_kvm_kvm_open = yes; then
18728 LIBS="-lkvm $LIBS"
18729 fi
18730
18731 # Check for the 4.4BSD definition of getloadavg.
18732 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18733 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18734 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18735 $as_echo_n "(cached) " >&6
18736 else
18737 ac_check_lib_save_LIBS=$LIBS
18738 LIBS="-lutil $LIBS"
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h. */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 char getloadavg ();
18753 int
18754 main ()
18755 {
18756 return getloadavg ();
18757 ;
18758 return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766 esac
18767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18768 $as_echo "$ac_try_echo") >&5
18769 (eval "$ac_link") 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } && {
18776 test -z "$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 } && test -s conftest$ac_exeext && {
18779 test "$cross_compiling" = yes ||
18780 $as_test_x conftest$ac_exeext
18781 }; then
18782 ac_cv_lib_util_getloadavg=yes
18783 else
18784 $as_echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18786
18787 ac_cv_lib_util_getloadavg=no
18788 fi
18789
18790 rm -rf conftest.dSYM
18791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18794 fi
18795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18796 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18797 if test $ac_cv_lib_util_getloadavg = yes; then
18798 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18799 fi
18800
18801 fi
18802
18803 if test $ac_have_func = no; then
18804 # There is a commonly available library for RS/6000 AIX.
18805 # Since it is not a standard part of AIX, it might be installed locally.
18806 ac_getloadavg_LIBS=$LIBS
18807 LIBS="-L/usr/local/lib $LIBS"
18808 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18809 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18810 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18811 $as_echo_n "(cached) " >&6
18812 else
18813 ac_check_lib_save_LIBS=$LIBS
18814 LIBS="-lgetloadavg $LIBS"
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18825 #ifdef __cplusplus
18826 extern "C"
18827 #endif
18828 char getloadavg ();
18829 int
18830 main ()
18831 {
18832 return getloadavg ();
18833 ;
18834 return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842 esac
18843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18844 $as_echo "$ac_try_echo") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext && {
18855 test "$cross_compiling" = yes ||
18856 $as_test_x conftest$ac_exeext
18857 }; then
18858 ac_cv_lib_getloadavg_getloadavg=yes
18859 else
18860 $as_echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_cv_lib_getloadavg_getloadavg=no
18864 fi
18865
18866 rm -rf conftest.dSYM
18867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18868 conftest$ac_exeext conftest.$ac_ext
18869 LIBS=$ac_check_lib_save_LIBS
18870 fi
18871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18872 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18873 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18874 LIBS="-lgetloadavg $LIBS"
18875 else
18876 LIBS=$ac_getloadavg_LIBS
18877 fi
18878
18879 fi
18880
18881 # Make sure it is really in the library, if we think we found it,
18882 # otherwise set up the replacement function.
18883
18884 for ac_func in getloadavg
18885 do
18886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18887 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18888 $as_echo_n "checking for $ac_func... " >&6; }
18889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18890 $as_echo_n "(cached) " >&6
18891 else
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18900 #define $ac_func innocuous_$ac_func
18901
18902 /* System header to define __stub macros and hopefully few prototypes,
18903 which can conflict with char $ac_func (); below.
18904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18905 <limits.h> exists even on freestanding compilers. */
18906
18907 #ifdef __STDC__
18908 # include <limits.h>
18909 #else
18910 # include <assert.h>
18911 #endif
18912
18913 #undef $ac_func
18914
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18918 #ifdef __cplusplus
18919 extern "C"
18920 #endif
18921 char $ac_func ();
18922 /* The GNU C library defines this for functions which it implements
18923 to always fail with ENOSYS. Some functions are actually named
18924 something starting with __ and the normal name is an alias. */
18925 #if defined __stub_$ac_func || defined __stub___$ac_func
18926 choke me
18927 #endif
18928
18929 int
18930 main ()
18931 {
18932 return $ac_func ();
18933 ;
18934 return 0;
18935 }
18936 _ACEOF
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942 esac
18943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18944 $as_echo "$ac_try_echo") >&5
18945 (eval "$ac_link") 2>conftest.er1
18946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } && {
18952 test -z "$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18954 } && test -s conftest$ac_exeext && {
18955 test "$cross_compiling" = yes ||
18956 $as_test_x conftest$ac_exeext
18957 }; then
18958 eval "$as_ac_var=yes"
18959 else
18960 $as_echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963 eval "$as_ac_var=no"
18964 fi
18965
18966 rm -rf conftest.dSYM
18967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18968 conftest$ac_exeext conftest.$ac_ext
18969 fi
18970 ac_res=`eval 'as_val=${'$as_ac_var'}
18971 $as_echo "$as_val"'`
18972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18973 $as_echo "$ac_res" >&6; }
18974 if test `eval 'as_val=${'$as_ac_var'}
18975 $as_echo "$as_val"'` = yes; then
18976 cat >>confdefs.h <<_ACEOF
18977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18978 _ACEOF
18979
18980 else
18981 case " $LIBOBJS " in
18982 *" getloadavg.$ac_objext "* ) ;;
18983 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18984 ;;
18985 esac
18986
18987
18988 cat >>confdefs.h <<\_ACEOF
18989 #define C_GETLOADAVG 1
18990 _ACEOF
18991
18992 # Figure out what our getloadavg.c needs.
18993 ac_have_func=no
18994 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18995 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18996 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18997 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18998 $as_echo_n "(cached) " >&6
18999 fi
19000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19001 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19002 else
19003 # Is the header compilable?
19004 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19005 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h. */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 $ac_includes_default
19013 #include <sys/dg_sys_info.h>
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19020 esac
19021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19022 $as_echo "$ac_try_echo") >&5
19023 (eval "$ac_compile") 2>conftest.er1
19024 ac_status=$?
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
19028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } && {
19030 test -z "$ac_c_werror_flag" ||
19031 test ! -s conftest.err
19032 } && test -s conftest.$ac_objext; then
19033 ac_header_compiler=yes
19034 else
19035 $as_echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19037
19038 ac_header_compiler=no
19039 fi
19040
19041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19043 $as_echo "$ac_header_compiler" >&6; }
19044
19045 # Is the header present?
19046 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19047 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19048 cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h. */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19054 #include <sys/dg_sys_info.h>
19055 _ACEOF
19056 if { (ac_try="$ac_cpp conftest.$ac_ext"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } >/dev/null && {
19070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 }; then
19073 ac_header_preproc=yes
19074 else
19075 $as_echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078 ac_header_preproc=no
19079 fi
19080
19081 rm -f conftest.err conftest.$ac_ext
19082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19083 $as_echo "$ac_header_preproc" >&6; }
19084
19085 # So? What about this header?
19086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19087 yes:no: )
19088 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19089 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19090 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19091 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19092 ac_header_preproc=yes
19093 ;;
19094 no:yes:* )
19095 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19096 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19097 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19098 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19099 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19100 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19101 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19102 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19103 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19104 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19105 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19106 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19107
19108 ;;
19109 esac
19110 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19111 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19112 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19113 $as_echo_n "(cached) " >&6
19114 else
19115 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19116 fi
19117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19118 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19119
19120 fi
19121 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19122 ac_have_func=yes
19123
19124 cat >>confdefs.h <<\_ACEOF
19125 #define DGUX 1
19126 _ACEOF
19127
19128
19129 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19130 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19131 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19132 $as_echo_n "(cached) " >&6
19133 else
19134 ac_check_lib_save_LIBS=$LIBS
19135 LIBS="-ldgc $LIBS"
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h. */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 char dg_sys_info ();
19150 int
19151 main ()
19152 {
19153 return dg_sys_info ();
19154 ;
19155 return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163 esac
19164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19165 $as_echo "$ac_try_echo") >&5
19166 (eval "$ac_link") 2>conftest.er1
19167 ac_status=$?
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
19171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext && {
19176 test "$cross_compiling" = yes ||
19177 $as_test_x conftest$ac_exeext
19178 }; then
19179 ac_cv_lib_dgc_dg_sys_info=yes
19180 else
19181 $as_echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 ac_cv_lib_dgc_dg_sys_info=no
19185 fi
19186
19187 rm -rf conftest.dSYM
19188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19191 fi
19192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19193 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19194 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19195 cat >>confdefs.h <<_ACEOF
19196 #define HAVE_LIBDGC 1
19197 _ACEOF
19198
19199 LIBS="-ldgc $LIBS"
19200
19201 fi
19202
19203 fi
19204
19205
19206
19207 if test "${ac_cv_header_locale_h+set}" = set; then
19208 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19209 $as_echo_n "checking for locale.h... " >&6; }
19210 if test "${ac_cv_header_locale_h+set}" = set; then
19211 $as_echo_n "(cached) " >&6
19212 fi
19213 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19214 $as_echo "$ac_cv_header_locale_h" >&6; }
19215 else
19216 # Is the header compilable?
19217 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19218 $as_echo_n "checking locale.h usability... " >&6; }
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h. */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 $ac_includes_default
19226 #include <locale.h>
19227 _ACEOF
19228 rm -f conftest.$ac_objext
19229 if { (ac_try="$ac_compile"
19230 case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19233 esac
19234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19235 $as_echo "$ac_try_echo") >&5
19236 (eval "$ac_compile") 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && {
19243 test -z "$ac_c_werror_flag" ||
19244 test ! -s conftest.err
19245 } && test -s conftest.$ac_objext; then
19246 ac_header_compiler=yes
19247 else
19248 $as_echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_header_compiler=no
19252 fi
19253
19254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19256 $as_echo "$ac_header_compiler" >&6; }
19257
19258 # Is the header present?
19259 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19260 $as_echo_n "checking locale.h presence... " >&6; }
19261 cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h. */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 #include <locale.h>
19268 _ACEOF
19269 if { (ac_try="$ac_cpp conftest.$ac_ext"
19270 case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19273 esac
19274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19275 $as_echo "$ac_try_echo") >&5
19276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } >/dev/null && {
19283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 }; then
19286 ac_header_preproc=yes
19287 else
19288 $as_echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19290
19291 ac_header_preproc=no
19292 fi
19293
19294 rm -f conftest.err conftest.$ac_ext
19295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19296 $as_echo "$ac_header_preproc" >&6; }
19297
19298 # So? What about this header?
19299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19300 yes:no: )
19301 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19302 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19303 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19304 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19305 ac_header_preproc=yes
19306 ;;
19307 no:yes:* )
19308 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19309 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19310 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19311 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19312 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19313 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19314 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19315 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19316 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19317 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19318 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19319 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19320
19321 ;;
19322 esac
19323 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19324 $as_echo_n "checking for locale.h... " >&6; }
19325 if test "${ac_cv_header_locale_h+set}" = set; then
19326 $as_echo_n "(cached) " >&6
19327 else
19328 ac_cv_header_locale_h=$ac_header_preproc
19329 fi
19330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19331 $as_echo "$ac_cv_header_locale_h" >&6; }
19332
19333 fi
19334
19335
19336
19337 for ac_func in setlocale
19338 do
19339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19340 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19341 $as_echo_n "checking for $ac_func... " >&6; }
19342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19343 $as_echo_n "(cached) " >&6
19344 else
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h. */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19353 #define $ac_func innocuous_$ac_func
19354
19355 /* System header to define __stub macros and hopefully few prototypes,
19356 which can conflict with char $ac_func (); below.
19357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19358 <limits.h> exists even on freestanding compilers. */
19359
19360 #ifdef __STDC__
19361 # include <limits.h>
19362 #else
19363 # include <assert.h>
19364 #endif
19365
19366 #undef $ac_func
19367
19368 /* Override any GCC internal prototype to avoid an error.
19369 Use char because int might match the return type of a GCC
19370 builtin and then its argument prototype would still apply. */
19371 #ifdef __cplusplus
19372 extern "C"
19373 #endif
19374 char $ac_func ();
19375 /* The GNU C library defines this for functions which it implements
19376 to always fail with ENOSYS. Some functions are actually named
19377 something starting with __ and the normal name is an alias. */
19378 #if defined __stub_$ac_func || defined __stub___$ac_func
19379 choke me
19380 #endif
19381
19382 int
19383 main ()
19384 {
19385 return $ac_func ();
19386 ;
19387 return 0;
19388 }
19389 _ACEOF
19390 rm -f conftest.$ac_objext conftest$ac_exeext
19391 if { (ac_try="$ac_link"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19395 esac
19396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19397 $as_echo "$ac_try_echo") >&5
19398 (eval "$ac_link") 2>conftest.er1
19399 ac_status=$?
19400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
19403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest$ac_exeext && {
19408 test "$cross_compiling" = yes ||
19409 $as_test_x conftest$ac_exeext
19410 }; then
19411 eval "$as_ac_var=yes"
19412 else
19413 $as_echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 eval "$as_ac_var=no"
19417 fi
19418
19419 rm -rf conftest.dSYM
19420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19421 conftest$ac_exeext conftest.$ac_ext
19422 fi
19423 ac_res=`eval 'as_val=${'$as_ac_var'}
19424 $as_echo "$as_val"'`
19425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19426 $as_echo "$ac_res" >&6; }
19427 if test `eval 'as_val=${'$as_ac_var'}
19428 $as_echo "$as_val"'` = yes; then
19429 cat >>confdefs.h <<_ACEOF
19430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19431 _ACEOF
19432
19433 fi
19434 done
19435
19436
19437 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19438 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19439 # Irix 4.0.5F has the header but not the library.
19440 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19441 ac_have_func=yes
19442
19443 cat >>confdefs.h <<\_ACEOF
19444 #define SVR4 1
19445 _ACEOF
19446
19447 fi
19448
19449 if test $ac_have_func = no; then
19450 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19451 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19452 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19453 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19454 $as_echo_n "(cached) " >&6
19455 fi
19456 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19457 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19458 else
19459 # Is the header compilable?
19460 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19461 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19462 cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h. */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 $ac_includes_default
19469 #include <inq_stats/cpustats.h>
19470 _ACEOF
19471 rm -f conftest.$ac_objext
19472 if { (ac_try="$ac_compile"
19473 case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19476 esac
19477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19478 $as_echo "$ac_try_echo") >&5
19479 (eval "$ac_compile") 2>conftest.er1
19480 ac_status=$?
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
19484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } && {
19486 test -z "$ac_c_werror_flag" ||
19487 test ! -s conftest.err
19488 } && test -s conftest.$ac_objext; then
19489 ac_header_compiler=yes
19490 else
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 ac_header_compiler=no
19495 fi
19496
19497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19499 $as_echo "$ac_header_compiler" >&6; }
19500
19501 # Is the header present?
19502 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19503 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19504 cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h. */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #include <inq_stats/cpustats.h>
19511 _ACEOF
19512 if { (ac_try="$ac_cpp conftest.$ac_ext"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516 esac
19517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19518 $as_echo "$ac_try_echo") >&5
19519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19520 ac_status=$?
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
19524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } >/dev/null && {
19526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19527 test ! -s conftest.err
19528 }; then
19529 ac_header_preproc=yes
19530 else
19531 $as_echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 ac_header_preproc=no
19535 fi
19536
19537 rm -f conftest.err conftest.$ac_ext
19538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19539 $as_echo "$ac_header_preproc" >&6; }
19540
19541 # So? What about this header?
19542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19543 yes:no: )
19544 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19545 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19547 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19548 ac_header_preproc=yes
19549 ;;
19550 no:yes:* )
19551 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19552 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19554 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19555 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19556 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19557 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19558 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19559 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19560 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19561 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19562 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19563
19564 ;;
19565 esac
19566 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19567 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19568 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19569 $as_echo_n "(cached) " >&6
19570 else
19571 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19572 fi
19573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19574 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19575
19576 fi
19577 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19578 ac_have_func=yes
19579
19580 cat >>confdefs.h <<\_ACEOF
19581 #define UMAX 1
19582 _ACEOF
19583
19584
19585 cat >>confdefs.h <<\_ACEOF
19586 #define UMAX4_3 1
19587 _ACEOF
19588
19589 fi
19590
19591
19592 fi
19593
19594 if test $ac_have_func = no; then
19595 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19596 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19597 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19598 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19599 $as_echo_n "(cached) " >&6
19600 fi
19601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19602 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19603 else
19604 # Is the header compilable?
19605 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19606 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h. */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 $ac_includes_default
19614 #include <sys/cpustats.h>
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621 esac
19622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19623 $as_echo "$ac_try_echo") >&5
19624 (eval "$ac_compile") 2>conftest.er1
19625 ac_status=$?
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
19629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } && {
19631 test -z "$ac_c_werror_flag" ||
19632 test ! -s conftest.err
19633 } && test -s conftest.$ac_objext; then
19634 ac_header_compiler=yes
19635 else
19636 $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_header_compiler=no
19640 fi
19641
19642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19644 $as_echo "$ac_header_compiler" >&6; }
19645
19646 # Is the header present?
19647 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19648 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 #include <sys/cpustats.h>
19656 _ACEOF
19657 if { (ac_try="$ac_cpp conftest.$ac_ext"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661 esac
19662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19663 $as_echo "$ac_try_echo") >&5
19664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } >/dev/null && {
19671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 }; then
19674 ac_header_preproc=yes
19675 else
19676 $as_echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 ac_header_preproc=no
19680 fi
19681
19682 rm -f conftest.err conftest.$ac_ext
19683 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19684 $as_echo "$ac_header_preproc" >&6; }
19685
19686 # So? What about this header?
19687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19688 yes:no: )
19689 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19690 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19691 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19692 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19693 ac_header_preproc=yes
19694 ;;
19695 no:yes:* )
19696 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19697 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19699 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19700 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19701 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19702 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19703 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19704 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19705 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19706 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19707 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19708
19709 ;;
19710 esac
19711 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19712 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19713 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19714 $as_echo_n "(cached) " >&6
19715 else
19716 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19717 fi
19718 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19719 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19720
19721 fi
19722 if test $ac_cv_header_sys_cpustats_h = yes; then
19723 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19724 #define UMAX 1
19725 _ACEOF
19726
19727 fi
19728
19729
19730 fi
19731
19732 if test $ac_have_func = no; then
19733
19734 for ac_header in mach/mach.h
19735 do
19736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19739 $as_echo_n "checking for $ac_header... " >&6; }
19740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19741 $as_echo_n "(cached) " >&6
19742 fi
19743 ac_res=`eval 'as_val=${'$as_ac_Header'}
19744 $as_echo "$as_val"'`
19745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19746 $as_echo "$ac_res" >&6; }
19747 else
19748 # Is the header compilable?
19749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19750 $as_echo_n "checking $ac_header usability... " >&6; }
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h. */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 $ac_includes_default
19758 #include <$ac_header>
19759 _ACEOF
19760 rm -f conftest.$ac_objext
19761 if { (ac_try="$ac_compile"
19762 case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19765 esac
19766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19767 $as_echo "$ac_try_echo") >&5
19768 (eval "$ac_compile") 2>conftest.er1
19769 ac_status=$?
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
19773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && {
19775 test -z "$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19777 } && test -s conftest.$ac_objext; then
19778 ac_header_compiler=yes
19779 else
19780 $as_echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783 ac_header_compiler=no
19784 fi
19785
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19788 $as_echo "$ac_header_compiler" >&6; }
19789
19790 # Is the header present?
19791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19792 $as_echo_n "checking $ac_header presence... " >&6; }
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 #include <$ac_header>
19800 _ACEOF
19801 if { (ac_try="$ac_cpp conftest.$ac_ext"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805 esac
19806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807 $as_echo "$ac_try_echo") >&5
19808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } >/dev/null && {
19815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 }; then
19818 ac_header_preproc=yes
19819 else
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 ac_header_preproc=no
19824 fi
19825
19826 rm -f conftest.err conftest.$ac_ext
19827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19828 $as_echo "$ac_header_preproc" >&6; }
19829
19830 # So? What about this header?
19831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19832 yes:no: )
19833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19837 ac_header_preproc=yes
19838 ;;
19839 no:yes:* )
19840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19843 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19852
19853 ;;
19854 esac
19855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19856 $as_echo_n "checking for $ac_header... " >&6; }
19857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19858 $as_echo_n "(cached) " >&6
19859 else
19860 eval "$as_ac_Header=\$ac_header_preproc"
19861 fi
19862 ac_res=`eval 'as_val=${'$as_ac_Header'}
19863 $as_echo "$as_val"'`
19864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19865 $as_echo "$ac_res" >&6; }
19866
19867 fi
19868 if test `eval 'as_val=${'$as_ac_Header'}
19869 $as_echo "$as_val"'` = yes; then
19870 cat >>confdefs.h <<_ACEOF
19871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19872 _ACEOF
19873
19874 fi
19875
19876 done
19877
19878 fi
19879
19880
19881 for ac_header in nlist.h
19882 do
19883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19886 $as_echo_n "checking for $ac_header... " >&6; }
19887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19888 $as_echo_n "(cached) " >&6
19889 fi
19890 ac_res=`eval 'as_val=${'$as_ac_Header'}
19891 $as_echo "$as_val"'`
19892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19893 $as_echo "$ac_res" >&6; }
19894 else
19895 # Is the header compilable?
19896 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19897 $as_echo_n "checking $ac_header usability... " >&6; }
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 $ac_includes_default
19905 #include <$ac_header>
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912 esac
19913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19914 $as_echo "$ac_try_echo") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19916 ac_status=$?
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
19920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest.$ac_objext; then
19925 ac_header_compiler=yes
19926 else
19927 $as_echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930 ac_header_compiler=no
19931 fi
19932
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 $as_echo "$ac_header_compiler" >&6; }
19936
19937 # Is the header present?
19938 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19939 $as_echo_n "checking $ac_header presence... " >&6; }
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <$ac_header>
19947 _ACEOF
19948 if { (ac_try="$ac_cpp conftest.$ac_ext"
19949 case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952 esac
19953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19954 $as_echo "$ac_try_echo") >&5
19955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } >/dev/null && {
19962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19963 test ! -s conftest.err
19964 }; then
19965 ac_header_preproc=yes
19966 else
19967 $as_echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970 ac_header_preproc=no
19971 fi
19972
19973 rm -f conftest.err conftest.$ac_ext
19974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975 $as_echo "$ac_header_preproc" >&6; }
19976
19977 # So? What about this header?
19978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19979 yes:no: )
19980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19981 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19983 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19984 ac_header_preproc=yes
19985 ;;
19986 no:yes:* )
19987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19988 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19990 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19992 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19994 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19996 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19998 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19999
20000 ;;
20001 esac
20002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20003 $as_echo_n "checking for $ac_header... " >&6; }
20004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20005 $as_echo_n "(cached) " >&6
20006 else
20007 eval "$as_ac_Header=\$ac_header_preproc"
20008 fi
20009 ac_res=`eval 'as_val=${'$as_ac_Header'}
20010 $as_echo "$as_val"'`
20011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20012 $as_echo "$ac_res" >&6; }
20013
20014 fi
20015 if test `eval 'as_val=${'$as_ac_Header'}
20016 $as_echo "$as_val"'` = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20019 _ACEOF
20020 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20021 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20022 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20023 $as_echo_n "(cached) " >&6
20024 else
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 #include <nlist.h>
20032
20033 int
20034 main ()
20035 {
20036 static struct nlist ac_aggr;
20037 if (ac_aggr.n_un.n_name)
20038 return 0;
20039 ;
20040 return 0;
20041 }
20042 _ACEOF
20043 rm -f conftest.$ac_objext
20044 if { (ac_try="$ac_compile"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20048 esac
20049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20050 $as_echo "$ac_try_echo") >&5
20051 (eval "$ac_compile") 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } && {
20058 test -z "$ac_c_werror_flag" ||
20059 test ! -s conftest.err
20060 } && test -s conftest.$ac_objext; then
20061 ac_cv_member_struct_nlist_n_un_n_name=yes
20062 else
20063 $as_echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h. */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 #include <nlist.h>
20073
20074 int
20075 main ()
20076 {
20077 static struct nlist ac_aggr;
20078 if (sizeof ac_aggr.n_un.n_name)
20079 return 0;
20080 ;
20081 return 0;
20082 }
20083 _ACEOF
20084 rm -f conftest.$ac_objext
20085 if { (ac_try="$ac_compile"
20086 case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20089 esac
20090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20091 $as_echo "$ac_try_echo") >&5
20092 (eval "$ac_compile") 2>conftest.er1
20093 ac_status=$?
20094 grep -v '^ *+' conftest.er1 >conftest.err
20095 rm -f conftest.er1
20096 cat conftest.err >&5
20097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } && {
20099 test -z "$ac_c_werror_flag" ||
20100 test ! -s conftest.err
20101 } && test -s conftest.$ac_objext; then
20102 ac_cv_member_struct_nlist_n_un_n_name=yes
20103 else
20104 $as_echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 ac_cv_member_struct_nlist_n_un_n_name=no
20108 fi
20109
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 fi
20112
20113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114 fi
20115 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20116 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20117 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20118
20119 cat >>confdefs.h <<_ACEOF
20120 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20121 _ACEOF
20122
20123
20124 cat >>confdefs.h <<\_ACEOF
20125 #define NLIST_NAME_UNION 1
20126 _ACEOF
20127
20128 fi
20129
20130
20131 fi
20132
20133 done
20134
20135 fi
20136 done
20137
20138
20139 # Some definitions of getloadavg require that the program be installed setgid.
20140 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20141 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20142 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20143 $as_echo_n "(cached) " >&6
20144 else
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20152 #ifdef LDAV_PRIVILEGED
20153 Yowza Am I SETGID yet
20154 #endif
20155 _ACEOF
20156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20158 ac_cv_func_getloadavg_setgid=yes
20159 else
20160 ac_cv_func_getloadavg_setgid=no
20161 fi
20162 rm -f conftest*
20163
20164 fi
20165 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20166 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20167 if test $ac_cv_func_getloadavg_setgid = yes; then
20168 NEED_SETGID=true
20169
20170 cat >>confdefs.h <<\_ACEOF
20171 #define GETLOADAVG_PRIVILEGED 1
20172 _ACEOF
20173
20174 else
20175 NEED_SETGID=false
20176 fi
20177
20178 if test $ac_cv_func_getloadavg_setgid = yes; then
20179 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20180 $as_echo_n "checking group of /dev/kmem... " >&6; }
20181 if test "${ac_cv_group_kmem+set}" = set; then
20182 $as_echo_n "(cached) " >&6
20183 else
20184 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20185 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20186 # If we got an error (system does not support symlinks), try without -L.
20187 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20188 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20189 | sed -ne 's/[ ][ ]*/ /g;
20190 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20191 / /s/.* //;p;'`
20192
20193 fi
20194 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20195 $as_echo "$ac_cv_group_kmem" >&6; }
20196 KMEM_GROUP=$ac_cv_group_kmem
20197 fi
20198 if test "x$ac_save_LIBS" = x; then
20199 GETLOADAVG_LIBS=$LIBS
20200 else
20201 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20202 fi
20203 LIBS=$ac_save_LIBS
20204
20205
20206
20207 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20208 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20209 if test "${ac_cv_sys_largefile_source+set}" = set; then
20210 $as_echo_n "(cached) " >&6
20211 else
20212 while :; do
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h. */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 #include <sys/types.h> /* for off_t */
20220 #include <stdio.h>
20221 int
20222 main ()
20223 {
20224 int (*fp) (FILE *, off_t, int) = fseeko;
20225 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20226 ;
20227 return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20235 esac
20236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20237 $as_echo "$ac_try_echo") >&5
20238 (eval "$ac_link") 2>conftest.er1
20239 ac_status=$?
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
20243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && {
20245 test -z "$ac_c_werror_flag" ||
20246 test ! -s conftest.err
20247 } && test -s conftest$ac_exeext && {
20248 test "$cross_compiling" = yes ||
20249 $as_test_x conftest$ac_exeext
20250 }; then
20251 ac_cv_sys_largefile_source=no; break
20252 else
20253 $as_echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256
20257 fi
20258
20259 rm -rf conftest.dSYM
20260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20261 conftest$ac_exeext conftest.$ac_ext
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h. */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 #define _LARGEFILE_SOURCE 1
20269 #include <sys/types.h> /* for off_t */
20270 #include <stdio.h>
20271 int
20272 main ()
20273 {
20274 int (*fp) (FILE *, off_t, int) = fseeko;
20275 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20276 ;
20277 return 0;
20278 }
20279 _ACEOF
20280 rm -f conftest.$ac_objext conftest$ac_exeext
20281 if { (ac_try="$ac_link"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285 esac
20286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20287 $as_echo "$ac_try_echo") >&5
20288 (eval "$ac_link") 2>conftest.er1
20289 ac_status=$?
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
20293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && {
20295 test -z "$ac_c_werror_flag" ||
20296 test ! -s conftest.err
20297 } && test -s conftest$ac_exeext && {
20298 test "$cross_compiling" = yes ||
20299 $as_test_x conftest$ac_exeext
20300 }; then
20301 ac_cv_sys_largefile_source=1; break
20302 else
20303 $as_echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306
20307 fi
20308
20309 rm -rf conftest.dSYM
20310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20311 conftest$ac_exeext conftest.$ac_ext
20312 ac_cv_sys_largefile_source=unknown
20313 break
20314 done
20315 fi
20316 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20317 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20318 case $ac_cv_sys_largefile_source in #(
20319 no | unknown) ;;
20320 *)
20321 cat >>confdefs.h <<_ACEOF
20322 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20323 _ACEOF
20324 ;;
20325 esac
20326 rm -rf conftest*
20327
20328 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20329 # in glibc 2.1.3, but that breaks too many other things.
20330 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20331 if test $ac_cv_sys_largefile_source != unknown; then
20332
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE_FSEEKO 1
20335 _ACEOF
20336
20337 fi
20338
20339
20340 # Configure getopt.
20341 # getopt.m4 serial 10
20342
20343 # The getopt module assume you want GNU getopt, with getopt_long etc,
20344 # rather than vanilla POSIX getopt. This means your your code should
20345 # always include <getopt.h> for the getopt prototypes.
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357 # Prerequisites of lib/getopt*.
20358
20359
20360
20361
20362 GETOPT_H=
20363
20364 for ac_header in getopt.h
20365 do
20366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20368 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20369 $as_echo_n "checking for $ac_header... " >&6; }
20370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20371 $as_echo_n "(cached) " >&6
20372 fi
20373 ac_res=`eval 'as_val=${'$as_ac_Header'}
20374 $as_echo "$as_val"'`
20375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20376 $as_echo "$ac_res" >&6; }
20377 else
20378 # Is the header compilable?
20379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20380 $as_echo_n "checking $ac_header usability... " >&6; }
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 $ac_includes_default
20388 #include <$ac_header>
20389 _ACEOF
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395 esac
20396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20397 $as_echo "$ac_try_echo") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest.$ac_objext; then
20408 ac_header_compiler=yes
20409 else
20410 $as_echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 ac_header_compiler=no
20414 fi
20415
20416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20418 $as_echo "$ac_header_compiler" >&6; }
20419
20420 # Is the header present?
20421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20422 $as_echo_n "checking $ac_header presence... " >&6; }
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 #include <$ac_header>
20430 _ACEOF
20431 if { (ac_try="$ac_cpp conftest.$ac_ext"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435 esac
20436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20437 $as_echo "$ac_try_echo") >&5
20438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } >/dev/null && {
20445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 }; then
20448 ac_header_preproc=yes
20449 else
20450 $as_echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20452
20453 ac_header_preproc=no
20454 fi
20455
20456 rm -f conftest.err conftest.$ac_ext
20457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20458 $as_echo "$ac_header_preproc" >&6; }
20459
20460 # So? What about this header?
20461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20462 yes:no: )
20463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20467 ac_header_preproc=yes
20468 ;;
20469 no:yes:* )
20470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20473 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20477 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20482
20483 ;;
20484 esac
20485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20486 $as_echo_n "checking for $ac_header... " >&6; }
20487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20488 $as_echo_n "(cached) " >&6
20489 else
20490 eval "$as_ac_Header=\$ac_header_preproc"
20491 fi
20492 ac_res=`eval 'as_val=${'$as_ac_Header'}
20493 $as_echo "$as_val"'`
20494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20495 $as_echo "$ac_res" >&6; }
20496
20497 fi
20498 if test `eval 'as_val=${'$as_ac_Header'}
20499 $as_echo "$as_val"'` = yes; then
20500 cat >>confdefs.h <<_ACEOF
20501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20502 _ACEOF
20503
20504 else
20505 GETOPT_H=getopt.h
20506 fi
20507
20508 done
20509
20510 if test -z "$GETOPT_H"; then
20511
20512 for ac_func in getopt_long_only
20513 do
20514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20516 $as_echo_n "checking for $ac_func... " >&6; }
20517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20518 $as_echo_n "(cached) " >&6
20519 else
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h. */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20528 #define $ac_func innocuous_$ac_func
20529
20530 /* System header to define __stub macros and hopefully few prototypes,
20531 which can conflict with char $ac_func (); below.
20532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20533 <limits.h> exists even on freestanding compilers. */
20534
20535 #ifdef __STDC__
20536 # include <limits.h>
20537 #else
20538 # include <assert.h>
20539 #endif
20540
20541 #undef $ac_func
20542
20543 /* Override any GCC internal prototype to avoid an error.
20544 Use char because int might match the return type of a GCC
20545 builtin and then its argument prototype would still apply. */
20546 #ifdef __cplusplus
20547 extern "C"
20548 #endif
20549 char $ac_func ();
20550 /* The GNU C library defines this for functions which it implements
20551 to always fail with ENOSYS. Some functions are actually named
20552 something starting with __ and the normal name is an alias. */
20553 #if defined __stub_$ac_func || defined __stub___$ac_func
20554 choke me
20555 #endif
20556
20557 int
20558 main ()
20559 {
20560 return $ac_func ();
20561 ;
20562 return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (ac_try="$ac_link"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570 esac
20571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573 (eval "$ac_link") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest$ac_exeext && {
20583 test "$cross_compiling" = yes ||
20584 $as_test_x conftest$ac_exeext
20585 }; then
20586 eval "$as_ac_var=yes"
20587 else
20588 $as_echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591 eval "$as_ac_var=no"
20592 fi
20593
20594 rm -rf conftest.dSYM
20595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20596 conftest$ac_exeext conftest.$ac_ext
20597 fi
20598 ac_res=`eval 'as_val=${'$as_ac_var'}
20599 $as_echo "$as_val"'`
20600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20601 $as_echo "$ac_res" >&6; }
20602 if test `eval 'as_val=${'$as_ac_var'}
20603 $as_echo "$as_val"'` = yes; then
20604 cat >>confdefs.h <<_ACEOF
20605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20606 _ACEOF
20607
20608 else
20609 GETOPT_H=getopt.h
20610 fi
20611 done
20612
20613 fi
20614
20615 if test -z "$GETOPT_H"; then
20616 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20617 $as_echo_n "checking whether optreset is declared... " >&6; }
20618 if test "${ac_cv_have_decl_optreset+set}" = set; then
20619 $as_echo_n "(cached) " >&6
20620 else
20621 cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h. */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 #include <getopt.h>
20628
20629 int
20630 main ()
20631 {
20632 #ifndef optreset
20633 (void) optreset;
20634 #endif
20635
20636 ;
20637 return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20645 esac
20646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20647 $as_echo "$ac_try_echo") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.$ac_objext; then
20658 ac_cv_have_decl_optreset=yes
20659 else
20660 $as_echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 ac_cv_have_decl_optreset=no
20664 fi
20665
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 fi
20668 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20669 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20670 if test $ac_cv_have_decl_optreset = yes; then
20671 GETOPT_H=getopt.h
20672 fi
20673
20674 fi
20675
20676 if test -z "$GETOPT_H"; then
20677 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20678 $as_echo_n "checking for working GNU getopt function... " >&6; }
20679 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20680 $as_echo_n "(cached) " >&6
20681 else
20682 if test "$cross_compiling" = yes; then
20683 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20684 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20685 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20686 $as_echo_n "(cached) " >&6
20687 else
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h. */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 #include <getopt.h>
20695
20696 int
20697 main ()
20698 {
20699 #ifndef getopt_clip
20700 (void) getopt_clip;
20701 #endif
20702
20703 ;
20704 return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20712 esac
20713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20714 $as_echo "$ac_try_echo") >&5
20715 (eval "$ac_compile") 2>conftest.er1
20716 ac_status=$?
20717 grep -v '^ *+' conftest.er1 >conftest.err
20718 rm -f conftest.er1
20719 cat conftest.err >&5
20720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest.$ac_objext; then
20725 ac_cv_have_decl_getopt_clip=yes
20726 else
20727 $as_echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 ac_cv_have_decl_getopt_clip=no
20731 fi
20732
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 fi
20735 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20736 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20737 if test $ac_cv_have_decl_getopt_clip = yes; then
20738 gl_cv_func_gnu_getopt=no
20739 else
20740 gl_cv_func_gnu_getopt=yes
20741 fi
20742
20743 else
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h. */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 #include <getopt.h>
20751 int
20752 main ()
20753 {
20754
20755 char *myargv[3];
20756 myargv[0] = "conftest";
20757 myargv[1] = "-+";
20758 myargv[2] = 0;
20759 return getopt (2, myargv, "+a") != '?';
20760
20761 ;
20762 return 0;
20763 }
20764 _ACEOF
20765 rm -f conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770 esac
20771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20772 $as_echo "$ac_try_echo") >&5
20773 (eval "$ac_link") 2>&5
20774 ac_status=$?
20775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20777 { (case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783 (eval "$ac_try") 2>&5
20784 ac_status=$?
20785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; }; then
20787 gl_cv_func_gnu_getopt=yes
20788 else
20789 $as_echo "$as_me: program exited with status $ac_status" >&5
20790 $as_echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ( exit $ac_status )
20794 gl_cv_func_gnu_getopt=no
20795 fi
20796 rm -rf conftest.dSYM
20797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20798 fi
20799
20800
20801 fi
20802 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20803 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20804 if test "$gl_cv_func_gnu_getopt" = "no"; then
20805 GETOPT_H=getopt.h
20806 fi
20807 fi
20808
20809
20810
20811 if test -n "$GETOPT_H"; then
20812
20813
20814 GETOPT_H=getopt.h
20815
20816 cat >>confdefs.h <<\_ACEOF
20817 #define __GETOPT_PREFIX rpl_
20818 _ACEOF
20819
20820
20821
20822 :
20823 GETOPTOBJS='getopt.o getopt1.o'
20824
20825 fi
20826
20827
20828
20829
20830 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20831 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20832 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20833 $as_echo_n "(cached) " >&6
20834 else
20835 # Use it with a single arg.
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h. */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 $ac_includes_default
20843 int
20844 main ()
20845 {
20846 getpgrp (0);
20847 ;
20848 return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext
20852 if { (ac_try="$ac_compile"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20856 esac
20857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20858 $as_echo "$ac_try_echo") >&5
20859 (eval "$ac_compile") 2>conftest.er1
20860 ac_status=$?
20861 grep -v '^ *+' conftest.er1 >conftest.err
20862 rm -f conftest.er1
20863 cat conftest.err >&5
20864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } && {
20866 test -z "$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 } && test -s conftest.$ac_objext; then
20869 ac_cv_func_getpgrp_void=no
20870 else
20871 $as_echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874 ac_cv_func_getpgrp_void=yes
20875 fi
20876
20877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878
20879 fi
20880 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20881 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20882 if test $ac_cv_func_getpgrp_void = yes; then
20883
20884 cat >>confdefs.h <<\_ACEOF
20885 #define GETPGRP_VOID 1
20886 _ACEOF
20887
20888 fi
20889
20890
20891
20892 for ac_func in strftime
20893 do
20894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20895 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20896 $as_echo_n "checking for $ac_func... " >&6; }
20897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20898 $as_echo_n "(cached) " >&6
20899 else
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h. */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20908 #define $ac_func innocuous_$ac_func
20909
20910 /* System header to define __stub macros and hopefully few prototypes,
20911 which can conflict with char $ac_func (); below.
20912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20913 <limits.h> exists even on freestanding compilers. */
20914
20915 #ifdef __STDC__
20916 # include <limits.h>
20917 #else
20918 # include <assert.h>
20919 #endif
20920
20921 #undef $ac_func
20922
20923 /* Override any GCC internal prototype to avoid an error.
20924 Use char because int might match the return type of a GCC
20925 builtin and then its argument prototype would still apply. */
20926 #ifdef __cplusplus
20927 extern "C"
20928 #endif
20929 char $ac_func ();
20930 /* The GNU C library defines this for functions which it implements
20931 to always fail with ENOSYS. Some functions are actually named
20932 something starting with __ and the normal name is an alias. */
20933 #if defined __stub_$ac_func || defined __stub___$ac_func
20934 choke me
20935 #endif
20936
20937 int
20938 main ()
20939 {
20940 return $ac_func ();
20941 ;
20942 return 0;
20943 }
20944 _ACEOF
20945 rm -f conftest.$ac_objext conftest$ac_exeext
20946 if { (ac_try="$ac_link"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950 esac
20951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20952 $as_echo "$ac_try_echo") >&5
20953 (eval "$ac_link") 2>conftest.er1
20954 ac_status=$?
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
20958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && {
20960 test -z "$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 } && test -s conftest$ac_exeext && {
20963 test "$cross_compiling" = yes ||
20964 $as_test_x conftest$ac_exeext
20965 }; then
20966 eval "$as_ac_var=yes"
20967 else
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 eval "$as_ac_var=no"
20972 fi
20973
20974 rm -rf conftest.dSYM
20975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20976 conftest$ac_exeext conftest.$ac_ext
20977 fi
20978 ac_res=`eval 'as_val=${'$as_ac_var'}
20979 $as_echo "$as_val"'`
20980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20981 $as_echo "$ac_res" >&6; }
20982 if test `eval 'as_val=${'$as_ac_var'}
20983 $as_echo "$as_val"'` = yes; then
20984 cat >>confdefs.h <<_ACEOF
20985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20986 _ACEOF
20987
20988 else
20989 # strftime is in -lintl on SCO UNIX.
20990 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20991 $as_echo_n "checking for strftime in -lintl... " >&6; }
20992 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20993 $as_echo_n "(cached) " >&6
20994 else
20995 ac_check_lib_save_LIBS=$LIBS
20996 LIBS="-lintl $LIBS"
20997 cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h. */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003
21004 /* Override any GCC internal prototype to avoid an error.
21005 Use char because int might match the return type of a GCC
21006 builtin and then its argument prototype would still apply. */
21007 #ifdef __cplusplus
21008 extern "C"
21009 #endif
21010 char strftime ();
21011 int
21012 main ()
21013 {
21014 return strftime ();
21015 ;
21016 return 0;
21017 }
21018 _ACEOF
21019 rm -f conftest.$ac_objext conftest$ac_exeext
21020 if { (ac_try="$ac_link"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024 esac
21025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21026 $as_echo "$ac_try_echo") >&5
21027 (eval "$ac_link") 2>conftest.er1
21028 ac_status=$?
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
21032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest$ac_exeext && {
21037 test "$cross_compiling" = yes ||
21038 $as_test_x conftest$ac_exeext
21039 }; then
21040 ac_cv_lib_intl_strftime=yes
21041 else
21042 $as_echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 ac_cv_lib_intl_strftime=no
21046 fi
21047
21048 rm -rf conftest.dSYM
21049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21050 conftest$ac_exeext conftest.$ac_ext
21051 LIBS=$ac_check_lib_save_LIBS
21052 fi
21053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21054 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21055 if test $ac_cv_lib_intl_strftime = yes; then
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_STRFTIME 1
21058 _ACEOF
21059
21060 LIBS="-lintl $LIBS"
21061 fi
21062
21063 fi
21064 done
21065
21066
21067 # UNIX98 PTYs.
21068
21069 for ac_func in grantpt
21070 do
21071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21073 $as_echo_n "checking for $ac_func... " >&6; }
21074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21075 $as_echo_n "(cached) " >&6
21076 else
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h. */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21085 #define $ac_func innocuous_$ac_func
21086
21087 /* System header to define __stub macros and hopefully few prototypes,
21088 which can conflict with char $ac_func (); below.
21089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21090 <limits.h> exists even on freestanding compilers. */
21091
21092 #ifdef __STDC__
21093 # include <limits.h>
21094 #else
21095 # include <assert.h>
21096 #endif
21097
21098 #undef $ac_func
21099
21100 /* Override any GCC internal prototype to avoid an error.
21101 Use char because int might match the return type of a GCC
21102 builtin and then its argument prototype would still apply. */
21103 #ifdef __cplusplus
21104 extern "C"
21105 #endif
21106 char $ac_func ();
21107 /* The GNU C library defines this for functions which it implements
21108 to always fail with ENOSYS. Some functions are actually named
21109 something starting with __ and the normal name is an alias. */
21110 #if defined __stub_$ac_func || defined __stub___$ac_func
21111 choke me
21112 #endif
21113
21114 int
21115 main ()
21116 {
21117 return $ac_func ();
21118 ;
21119 return 0;
21120 }
21121 _ACEOF
21122 rm -f conftest.$ac_objext conftest$ac_exeext
21123 if { (ac_try="$ac_link"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21127 esac
21128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21129 $as_echo "$ac_try_echo") >&5
21130 (eval "$ac_link") 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } && {
21137 test -z "$ac_c_werror_flag" ||
21138 test ! -s conftest.err
21139 } && test -s conftest$ac_exeext && {
21140 test "$cross_compiling" = yes ||
21141 $as_test_x conftest$ac_exeext
21142 }; then
21143 eval "$as_ac_var=yes"
21144 else
21145 $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148 eval "$as_ac_var=no"
21149 fi
21150
21151 rm -rf conftest.dSYM
21152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21153 conftest$ac_exeext conftest.$ac_ext
21154 fi
21155 ac_res=`eval 'as_val=${'$as_ac_var'}
21156 $as_echo "$as_val"'`
21157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21158 $as_echo "$ac_res" >&6; }
21159 if test `eval 'as_val=${'$as_ac_var'}
21160 $as_echo "$as_val"'` = yes; then
21161 cat >>confdefs.h <<_ACEOF
21162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21163 _ACEOF
21164
21165 fi
21166 done
21167
21168
21169 # PTY-related GNU extensions.
21170
21171 for ac_func in getpt
21172 do
21173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21174 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21175 $as_echo_n "checking for $ac_func... " >&6; }
21176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21177 $as_echo_n "(cached) " >&6
21178 else
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21187 #define $ac_func innocuous_$ac_func
21188
21189 /* System header to define __stub macros and hopefully few prototypes,
21190 which can conflict with char $ac_func (); below.
21191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21192 <limits.h> exists even on freestanding compilers. */
21193
21194 #ifdef __STDC__
21195 # include <limits.h>
21196 #else
21197 # include <assert.h>
21198 #endif
21199
21200 #undef $ac_func
21201
21202 /* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
21205 #ifdef __cplusplus
21206 extern "C"
21207 #endif
21208 char $ac_func ();
21209 /* The GNU C library defines this for functions which it implements
21210 to always fail with ENOSYS. Some functions are actually named
21211 something starting with __ and the normal name is an alias. */
21212 #if defined __stub_$ac_func || defined __stub___$ac_func
21213 choke me
21214 #endif
21215
21216 int
21217 main ()
21218 {
21219 return $ac_func ();
21220 ;
21221 return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21231 $as_echo "$ac_try_echo") >&5
21232 (eval "$ac_link") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest$ac_exeext && {
21242 test "$cross_compiling" = yes ||
21243 $as_test_x conftest$ac_exeext
21244 }; then
21245 eval "$as_ac_var=yes"
21246 else
21247 $as_echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 eval "$as_ac_var=no"
21251 fi
21252
21253 rm -rf conftest.dSYM
21254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21255 conftest$ac_exeext conftest.$ac_ext
21256 fi
21257 ac_res=`eval 'as_val=${'$as_ac_var'}
21258 $as_echo "$as_val"'`
21259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21260 $as_echo "$ac_res" >&6; }
21261 if test `eval 'as_val=${'$as_ac_var'}
21262 $as_echo "$as_val"'` = yes; then
21263 cat >>confdefs.h <<_ACEOF
21264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21265 _ACEOF
21266
21267 fi
21268 done
21269
21270
21271 # Check this now, so that we will NOT find the above functions in ncurses.
21272 # That is because we have not set up to link ncurses in lib-src.
21273 # It's better to believe a function is not available
21274 # than to expect to find it in ncurses.
21275 # Also we need tputs and frieds to be able to build at all.
21276 have_tputs_et_al=true
21277 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21278 $as_echo_n "checking for library containing tputs... " >&6; }
21279 if test "${ac_cv_search_tputs+set}" = set; then
21280 $as_echo_n "(cached) " >&6
21281 else
21282 ac_func_search_save_LIBS=$LIBS
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289
21290 /* Override any GCC internal prototype to avoid an error.
21291 Use char because int might match the return type of a GCC
21292 builtin and then its argument prototype would still apply. */
21293 #ifdef __cplusplus
21294 extern "C"
21295 #endif
21296 char tputs ();
21297 int
21298 main ()
21299 {
21300 return tputs ();
21301 ;
21302 return 0;
21303 }
21304 _ACEOF
21305 for ac_lib in '' ncurses terminfo termcap; do
21306 if test -z "$ac_lib"; then
21307 ac_res="none required"
21308 else
21309 ac_res=-l$ac_lib
21310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21311 fi
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (ac_try="$ac_link"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317 esac
21318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21319 $as_echo "$ac_try_echo") >&5
21320 (eval "$ac_link") 2>conftest.er1
21321 ac_status=$?
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
21325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest$ac_exeext && {
21330 test "$cross_compiling" = yes ||
21331 $as_test_x conftest$ac_exeext
21332 }; then
21333 ac_cv_search_tputs=$ac_res
21334 else
21335 $as_echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21337
21338
21339 fi
21340
21341 rm -rf conftest.dSYM
21342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21343 conftest$ac_exeext
21344 if test "${ac_cv_search_tputs+set}" = set; then
21345 break
21346 fi
21347 done
21348 if test "${ac_cv_search_tputs+set}" = set; then
21349 :
21350 else
21351 ac_cv_search_tputs=no
21352 fi
21353 rm conftest.$ac_ext
21354 LIBS=$ac_func_search_save_LIBS
21355 fi
21356 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21357 $as_echo "$ac_cv_search_tputs" >&6; }
21358 ac_res=$ac_cv_search_tputs
21359 if test "$ac_res" != no; then
21360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21361
21362 else
21363 have_tputs_et_al=false
21364 fi
21365
21366 if test "$have_tputs_et_al" != true; then
21367 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21368 Maybe some development libraries/packages are missing? Try installing
21369 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21370 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21371 Maybe some development libraries/packages are missing? Try installing
21372 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21373 { (exit 1); exit 1; }; }
21374 fi
21375 # Must define this when any termcap library is found.
21376
21377 cat >>confdefs.h <<\_ACEOF
21378 #define HAVE_LIBNCURSES 1
21379 _ACEOF
21380
21381
21382 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21383
21384 resolv=no
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h. */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include <netinet/in.h>
21392 #include <arpa/nameser.h>
21393 #include <resolv.h>
21394 int
21395 main ()
21396 {
21397 return res_init();
21398 ;
21399 return 0;
21400 }
21401 _ACEOF
21402 rm -f conftest.$ac_objext conftest$ac_exeext
21403 if { (ac_try="$ac_link"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21407 esac
21408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409 $as_echo "$ac_try_echo") >&5
21410 (eval "$ac_link") 2>conftest.er1
21411 ac_status=$?
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
21415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && {
21417 test -z "$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21419 } && test -s conftest$ac_exeext && {
21420 test "$cross_compiling" = yes ||
21421 $as_test_x conftest$ac_exeext
21422 }; then
21423 have_res_init=yes
21424 else
21425 $as_echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428 have_res_init=no
21429 fi
21430
21431 rm -rf conftest.dSYM
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433 conftest$ac_exeext conftest.$ac_ext
21434 if test "$have_res_init" = no; then
21435 OLIBS="$LIBS"
21436 LIBS="$LIBS -lresolv"
21437 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21438 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <netinet/in.h>
21446 #include <arpa/nameser.h>
21447 #include <resolv.h>
21448 int
21449 main ()
21450 {
21451 return res_init();
21452 ;
21453 return 0;
21454 }
21455 _ACEOF
21456 rm -f conftest.$ac_objext conftest$ac_exeext
21457 if { (ac_try="$ac_link"
21458 case "(($ac_try" in
21459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460 *) ac_try_echo=$ac_try;;
21461 esac
21462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21463 $as_echo "$ac_try_echo") >&5
21464 (eval "$ac_link") 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && {
21471 test -z "$ac_c_werror_flag" ||
21472 test ! -s conftest.err
21473 } && test -s conftest$ac_exeext && {
21474 test "$cross_compiling" = yes ||
21475 $as_test_x conftest$ac_exeext
21476 }; then
21477 have_res_init=yes
21478 else
21479 $as_echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21481
21482 have_res_init=no
21483 fi
21484
21485 rm -rf conftest.dSYM
21486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21487 conftest$ac_exeext conftest.$ac_ext
21488 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21489 $as_echo "$have_res_init" >&6; }
21490 if test "$have_res_init" = yes ; then
21491 resolv=yes
21492 fi
21493 LIBS="$OLIBS"
21494 fi
21495
21496 if test "$have_res_init" = yes; then
21497
21498 cat >>confdefs.h <<\_ACEOF
21499 #define HAVE_RES_INIT 1
21500 _ACEOF
21501
21502 fi
21503
21504 # Do we need the Hesiod library to provide the support routines?
21505 LIBHESIOD=
21506 if test "$with_hesiod" != no ; then
21507 # Don't set $LIBS here -- see comments above. FIXME which comments?
21508 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21509 $as_echo_n "checking for res_send... " >&6; }
21510 if test "${ac_cv_func_res_send+set}" = set; then
21511 $as_echo_n "(cached) " >&6
21512 else
21513 cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h. */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21519 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21521 #define res_send innocuous_res_send
21522
21523 /* System header to define __stub macros and hopefully few prototypes,
21524 which can conflict with char res_send (); below.
21525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21526 <limits.h> exists even on freestanding compilers. */
21527
21528 #ifdef __STDC__
21529 # include <limits.h>
21530 #else
21531 # include <assert.h>
21532 #endif
21533
21534 #undef res_send
21535
21536 /* Override any GCC internal prototype to avoid an error.
21537 Use char because int might match the return type of a GCC
21538 builtin and then its argument prototype would still apply. */
21539 #ifdef __cplusplus
21540 extern "C"
21541 #endif
21542 char res_send ();
21543 /* The GNU C library defines this for functions which it implements
21544 to always fail with ENOSYS. Some functions are actually named
21545 something starting with __ and the normal name is an alias. */
21546 #if defined __stub_res_send || defined __stub___res_send
21547 choke me
21548 #endif
21549
21550 int
21551 main ()
21552 {
21553 return res_send ();
21554 ;
21555 return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (ac_try="$ac_link"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563 esac
21564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21565 $as_echo "$ac_try_echo") >&5
21566 (eval "$ac_link") 2>conftest.er1
21567 ac_status=$?
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
21571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest$ac_exeext && {
21576 test "$cross_compiling" = yes ||
21577 $as_test_x conftest$ac_exeext
21578 }; then
21579 ac_cv_func_res_send=yes
21580 else
21581 $as_echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 ac_cv_func_res_send=no
21585 fi
21586
21587 rm -rf conftest.dSYM
21588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21589 conftest$ac_exeext conftest.$ac_ext
21590 fi
21591 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21592 $as_echo "$ac_cv_func_res_send" >&6; }
21593 if test $ac_cv_func_res_send = yes; then
21594 :
21595 else
21596 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21597 $as_echo_n "checking for __res_send... " >&6; }
21598 if test "${ac_cv_func___res_send+set}" = set; then
21599 $as_echo_n "(cached) " >&6
21600 else
21601 cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h. */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21609 #define __res_send innocuous___res_send
21610
21611 /* System header to define __stub macros and hopefully few prototypes,
21612 which can conflict with char __res_send (); below.
21613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21614 <limits.h> exists even on freestanding compilers. */
21615
21616 #ifdef __STDC__
21617 # include <limits.h>
21618 #else
21619 # include <assert.h>
21620 #endif
21621
21622 #undef __res_send
21623
21624 /* Override any GCC internal prototype to avoid an error.
21625 Use char because int might match the return type of a GCC
21626 builtin and then its argument prototype would still apply. */
21627 #ifdef __cplusplus
21628 extern "C"
21629 #endif
21630 char __res_send ();
21631 /* The GNU C library defines this for functions which it implements
21632 to always fail with ENOSYS. Some functions are actually named
21633 something starting with __ and the normal name is an alias. */
21634 #if defined __stub___res_send || defined __stub_____res_send
21635 choke me
21636 #endif
21637
21638 int
21639 main ()
21640 {
21641 return __res_send ();
21642 ;
21643 return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21653 $as_echo "$ac_try_echo") >&5
21654 (eval "$ac_link") 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest$ac_exeext && {
21664 test "$cross_compiling" = yes ||
21665 $as_test_x conftest$ac_exeext
21666 }; then
21667 ac_cv_func___res_send=yes
21668 else
21669 $as_echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 ac_cv_func___res_send=no
21673 fi
21674
21675 rm -rf conftest.dSYM
21676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21677 conftest$ac_exeext conftest.$ac_ext
21678 fi
21679 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21680 $as_echo "$ac_cv_func___res_send" >&6; }
21681 if test $ac_cv_func___res_send = yes; then
21682 :
21683 else
21684 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21685 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21686 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21687 $as_echo_n "(cached) " >&6
21688 else
21689 ac_check_lib_save_LIBS=$LIBS
21690 LIBS="-lresolv $LIBS"
21691 cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h. */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697
21698 /* Override any GCC internal prototype to avoid an error.
21699 Use char because int might match the return type of a GCC
21700 builtin and then its argument prototype would still apply. */
21701 #ifdef __cplusplus
21702 extern "C"
21703 #endif
21704 char res_send ();
21705 int
21706 main ()
21707 {
21708 return res_send ();
21709 ;
21710 return 0;
21711 }
21712 _ACEOF
21713 rm -f conftest.$ac_objext conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21718 esac
21719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21720 $as_echo "$ac_try_echo") >&5
21721 (eval "$ac_link") 2>conftest.er1
21722 ac_status=$?
21723 grep -v '^ *+' conftest.er1 >conftest.err
21724 rm -f conftest.er1
21725 cat conftest.err >&5
21726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } && {
21728 test -z "$ac_c_werror_flag" ||
21729 test ! -s conftest.err
21730 } && test -s conftest$ac_exeext && {
21731 test "$cross_compiling" = yes ||
21732 $as_test_x conftest$ac_exeext
21733 }; then
21734 ac_cv_lib_resolv_res_send=yes
21735 else
21736 $as_echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739 ac_cv_lib_resolv_res_send=no
21740 fi
21741
21742 rm -rf conftest.dSYM
21743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21744 conftest$ac_exeext conftest.$ac_ext
21745 LIBS=$ac_check_lib_save_LIBS
21746 fi
21747 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21748 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21749 if test $ac_cv_lib_resolv_res_send = yes; then
21750 resolv=yes
21751 else
21752 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21753 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21754 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21755 $as_echo_n "(cached) " >&6
21756 else
21757 ac_check_lib_save_LIBS=$LIBS
21758 LIBS="-lresolv $LIBS"
21759 cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h. */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765
21766 /* Override any GCC internal prototype to avoid an error.
21767 Use char because int might match the return type of a GCC
21768 builtin and then its argument prototype would still apply. */
21769 #ifdef __cplusplus
21770 extern "C"
21771 #endif
21772 char __res_send ();
21773 int
21774 main ()
21775 {
21776 return __res_send ();
21777 ;
21778 return 0;
21779 }
21780 _ACEOF
21781 rm -f conftest.$ac_objext conftest$ac_exeext
21782 if { (ac_try="$ac_link"
21783 case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786 esac
21787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21788 $as_echo "$ac_try_echo") >&5
21789 (eval "$ac_link") 2>conftest.er1
21790 ac_status=$?
21791 grep -v '^ *+' conftest.er1 >conftest.err
21792 rm -f conftest.er1
21793 cat conftest.err >&5
21794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && {
21796 test -z "$ac_c_werror_flag" ||
21797 test ! -s conftest.err
21798 } && test -s conftest$ac_exeext && {
21799 test "$cross_compiling" = yes ||
21800 $as_test_x conftest$ac_exeext
21801 }; then
21802 ac_cv_lib_resolv___res_send=yes
21803 else
21804 $as_echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21806
21807 ac_cv_lib_resolv___res_send=no
21808 fi
21809
21810 rm -rf conftest.dSYM
21811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21812 conftest$ac_exeext conftest.$ac_ext
21813 LIBS=$ac_check_lib_save_LIBS
21814 fi
21815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21816 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21817 if test $ac_cv_lib_resolv___res_send = yes; then
21818 resolv=yes
21819 fi
21820
21821 fi
21822
21823 fi
21824
21825 fi
21826
21827 if test "$resolv" = yes ; then
21828 RESOLVLIB=-lresolv
21829 else
21830 RESOLVLIB=
21831 fi
21832 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21833 $as_echo_n "checking for hes_getmailhost... " >&6; }
21834 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21835 $as_echo_n "(cached) " >&6
21836 else
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h. */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21845 #define hes_getmailhost innocuous_hes_getmailhost
21846
21847 /* System header to define __stub macros and hopefully few prototypes,
21848 which can conflict with char hes_getmailhost (); below.
21849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21850 <limits.h> exists even on freestanding compilers. */
21851
21852 #ifdef __STDC__
21853 # include <limits.h>
21854 #else
21855 # include <assert.h>
21856 #endif
21857
21858 #undef hes_getmailhost
21859
21860 /* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863 #ifdef __cplusplus
21864 extern "C"
21865 #endif
21866 char hes_getmailhost ();
21867 /* The GNU C library defines this for functions which it implements
21868 to always fail with ENOSYS. Some functions are actually named
21869 something starting with __ and the normal name is an alias. */
21870 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21871 choke me
21872 #endif
21873
21874 int
21875 main ()
21876 {
21877 return hes_getmailhost ();
21878 ;
21879 return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21889 $as_echo "$ac_try_echo") >&5
21890 (eval "$ac_link") 2>conftest.er1
21891 ac_status=$?
21892 grep -v '^ *+' conftest.er1 >conftest.err
21893 rm -f conftest.er1
21894 cat conftest.err >&5
21895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } && {
21897 test -z "$ac_c_werror_flag" ||
21898 test ! -s conftest.err
21899 } && test -s conftest$ac_exeext && {
21900 test "$cross_compiling" = yes ||
21901 $as_test_x conftest$ac_exeext
21902 }; then
21903 ac_cv_func_hes_getmailhost=yes
21904 else
21905 $as_echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908 ac_cv_func_hes_getmailhost=no
21909 fi
21910
21911 rm -rf conftest.dSYM
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913 conftest$ac_exeext conftest.$ac_ext
21914 fi
21915 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21916 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21917 if test $ac_cv_func_hes_getmailhost = yes; then
21918 :
21919 else
21920 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21921 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21922 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21923 $as_echo_n "(cached) " >&6
21924 else
21925 ac_check_lib_save_LIBS=$LIBS
21926 LIBS="-lhesiod $RESOLVLIB $LIBS"
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h. */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933
21934 /* Override any GCC internal prototype to avoid an error.
21935 Use char because int might match the return type of a GCC
21936 builtin and then its argument prototype would still apply. */
21937 #ifdef __cplusplus
21938 extern "C"
21939 #endif
21940 char hes_getmailhost ();
21941 int
21942 main ()
21943 {
21944 return hes_getmailhost ();
21945 ;
21946 return 0;
21947 }
21948 _ACEOF
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954 esac
21955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21956 $as_echo "$ac_try_echo") >&5
21957 (eval "$ac_link") 2>conftest.er1
21958 ac_status=$?
21959 grep -v '^ *+' conftest.er1 >conftest.err
21960 rm -f conftest.er1
21961 cat conftest.err >&5
21962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } && {
21964 test -z "$ac_c_werror_flag" ||
21965 test ! -s conftest.err
21966 } && test -s conftest$ac_exeext && {
21967 test "$cross_compiling" = yes ||
21968 $as_test_x conftest$ac_exeext
21969 }; then
21970 ac_cv_lib_hesiod_hes_getmailhost=yes
21971 else
21972 $as_echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975 ac_cv_lib_hesiod_hes_getmailhost=no
21976 fi
21977
21978 rm -rf conftest.dSYM
21979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21980 conftest$ac_exeext conftest.$ac_ext
21981 LIBS=$ac_check_lib_save_LIBS
21982 fi
21983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21984 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21985 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21986 hesiod=yes
21987 else
21988 :
21989 fi
21990
21991 fi
21992
21993
21994 if test x"$hesiod" = xyes; then
21995
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_LIBHESIOD 1
21998 _ACEOF
21999
22000 LIBHESIOD=-lhesiod
22001 fi
22002 fi
22003
22004
22005 # Do we need libresolv (due to res_init or Hesiod)?
22006 if test "$resolv" = yes ; then
22007
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_LIBRESOLV 1
22010 _ACEOF
22011
22012 LIBRESOLV=-lresolv
22013 else
22014 LIBRESOLV=
22015 fi
22016
22017
22018 # These tell us which Kerberos-related libraries to use.
22019 COM_ERRLIB=
22020 CRYPTOLIB=
22021 KRB5LIB=
22022 DESLIB=
22023 KRB4LIB=
22024
22025 if test "${with_kerberos}" != no; then
22026 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22027 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22028 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22029 $as_echo_n "(cached) " >&6
22030 else
22031 ac_check_lib_save_LIBS=$LIBS
22032 LIBS="-lcom_err $LIBS"
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h. */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039
22040 /* Override any GCC internal prototype to avoid an error.
22041 Use char because int might match the return type of a GCC
22042 builtin and then its argument prototype would still apply. */
22043 #ifdef __cplusplus
22044 extern "C"
22045 #endif
22046 char com_err ();
22047 int
22048 main ()
22049 {
22050 return com_err ();
22051 ;
22052 return 0;
22053 }
22054 _ACEOF
22055 rm -f conftest.$ac_objext conftest$ac_exeext
22056 if { (ac_try="$ac_link"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060 esac
22061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22062 $as_echo "$ac_try_echo") >&5
22063 (eval "$ac_link") 2>conftest.er1
22064 ac_status=$?
22065 grep -v '^ *+' conftest.er1 >conftest.err
22066 rm -f conftest.er1
22067 cat conftest.err >&5
22068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest$ac_exeext && {
22073 test "$cross_compiling" = yes ||
22074 $as_test_x conftest$ac_exeext
22075 }; then
22076 ac_cv_lib_com_err_com_err=yes
22077 else
22078 $as_echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 ac_cv_lib_com_err_com_err=no
22082 fi
22083
22084 rm -rf conftest.dSYM
22085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22086 conftest$ac_exeext conftest.$ac_ext
22087 LIBS=$ac_check_lib_save_LIBS
22088 fi
22089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22090 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22091 if test $ac_cv_lib_com_err_com_err = yes; then
22092 have_com_err=yes
22093 else
22094 have_com_err=no
22095 fi
22096
22097 if test $have_com_err = yes; then
22098 COM_ERRLIB=-lcom_err
22099 LIBS="$COM_ERRLIB $LIBS"
22100
22101 cat >>confdefs.h <<\_ACEOF
22102 #define HAVE_LIBCOM_ERR 1
22103 _ACEOF
22104
22105 fi
22106 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22107 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22108 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22109 $as_echo_n "(cached) " >&6
22110 else
22111 ac_check_lib_save_LIBS=$LIBS
22112 LIBS="-lcrypto $LIBS"
22113 cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h. */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119
22120 /* Override any GCC internal prototype to avoid an error.
22121 Use char because int might match the return type of a GCC
22122 builtin and then its argument prototype would still apply. */
22123 #ifdef __cplusplus
22124 extern "C"
22125 #endif
22126 char mit_des_cbc_encrypt ();
22127 int
22128 main ()
22129 {
22130 return mit_des_cbc_encrypt ();
22131 ;
22132 return 0;
22133 }
22134 _ACEOF
22135 rm -f conftest.$ac_objext conftest$ac_exeext
22136 if { (ac_try="$ac_link"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140 esac
22141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22142 $as_echo "$ac_try_echo") >&5
22143 (eval "$ac_link") 2>conftest.er1
22144 ac_status=$?
22145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
22148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } && {
22150 test -z "$ac_c_werror_flag" ||
22151 test ! -s conftest.err
22152 } && test -s conftest$ac_exeext && {
22153 test "$cross_compiling" = yes ||
22154 $as_test_x conftest$ac_exeext
22155 }; then
22156 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22157 else
22158 $as_echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22160
22161 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22162 fi
22163
22164 rm -rf conftest.dSYM
22165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22166 conftest$ac_exeext conftest.$ac_ext
22167 LIBS=$ac_check_lib_save_LIBS
22168 fi
22169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22170 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22171 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22172 have_crypto=yes
22173 else
22174 have_crypto=no
22175 fi
22176
22177 if test $have_crypto = yes; then
22178 CRYPTOLIB=-lcrypto
22179 LIBS="$CRYPTOLIB $LIBS"
22180
22181 cat >>confdefs.h <<\_ACEOF
22182 #define HAVE_LIBCRYPTO 1
22183 _ACEOF
22184
22185 fi
22186 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22187 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22188 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22189 $as_echo_n "(cached) " >&6
22190 else
22191 ac_check_lib_save_LIBS=$LIBS
22192 LIBS="-lk5crypto $LIBS"
22193 cat >conftest.$ac_ext <<_ACEOF
22194 /* confdefs.h. */
22195 _ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22199
22200 /* Override any GCC internal prototype to avoid an error.
22201 Use char because int might match the return type of a GCC
22202 builtin and then its argument prototype would still apply. */
22203 #ifdef __cplusplus
22204 extern "C"
22205 #endif
22206 char mit_des_cbc_encrypt ();
22207 int
22208 main ()
22209 {
22210 return mit_des_cbc_encrypt ();
22211 ;
22212 return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext conftest$ac_exeext
22216 if { (ac_try="$ac_link"
22217 case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220 esac
22221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22222 $as_echo "$ac_try_echo") >&5
22223 (eval "$ac_link") 2>conftest.er1
22224 ac_status=$?
22225 grep -v '^ *+' conftest.er1 >conftest.err
22226 rm -f conftest.er1
22227 cat conftest.err >&5
22228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } && {
22230 test -z "$ac_c_werror_flag" ||
22231 test ! -s conftest.err
22232 } && test -s conftest$ac_exeext && {
22233 test "$cross_compiling" = yes ||
22234 $as_test_x conftest$ac_exeext
22235 }; then
22236 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22237 else
22238 $as_echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22240
22241 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22242 fi
22243
22244 rm -rf conftest.dSYM
22245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246 conftest$ac_exeext conftest.$ac_ext
22247 LIBS=$ac_check_lib_save_LIBS
22248 fi
22249 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22250 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22251 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22252 have_k5crypto=yes
22253 else
22254 have_k5crypto=no
22255 fi
22256
22257 if test $have_k5crypto = yes; then
22258 CRYPTOLIB=-lk5crypto
22259 LIBS="$CRYPTOLIB $LIBS"
22260
22261 cat >>confdefs.h <<\_ACEOF
22262 #define HAVE_LIBK5CRYPTO 1
22263 _ACEOF
22264
22265 fi
22266 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22267 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22268 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22269 $as_echo_n "(cached) " >&6
22270 else
22271 ac_check_lib_save_LIBS=$LIBS
22272 LIBS="-lkrb5 $LIBS"
22273 cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h. */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22283 #ifdef __cplusplus
22284 extern "C"
22285 #endif
22286 char krb5_init_context ();
22287 int
22288 main ()
22289 {
22290 return krb5_init_context ();
22291 ;
22292 return 0;
22293 }
22294 _ACEOF
22295 rm -f conftest.$ac_objext conftest$ac_exeext
22296 if { (ac_try="$ac_link"
22297 case "(($ac_try" in
22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299 *) ac_try_echo=$ac_try;;
22300 esac
22301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22302 $as_echo "$ac_try_echo") >&5
22303 (eval "$ac_link") 2>conftest.er1
22304 ac_status=$?
22305 grep -v '^ *+' conftest.er1 >conftest.err
22306 rm -f conftest.er1
22307 cat conftest.err >&5
22308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest$ac_exeext && {
22313 test "$cross_compiling" = yes ||
22314 $as_test_x conftest$ac_exeext
22315 }; then
22316 ac_cv_lib_krb5_krb5_init_context=yes
22317 else
22318 $as_echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321 ac_cv_lib_krb5_krb5_init_context=no
22322 fi
22323
22324 rm -rf conftest.dSYM
22325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22326 conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22328 fi
22329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22330 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22331 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22332 have_krb5=yes
22333 else
22334 have_krb5=no
22335 fi
22336
22337 if test $have_krb5=yes; then
22338 KRB5LIB=-lkrb5
22339 LIBS="$KRB5LIB $LIBS"
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_LIBKRB5 1
22343 _ACEOF
22344
22345 fi
22346 if test "${with_kerberos5}" = no; then
22347 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22348 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22349 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22350 $as_echo_n "(cached) " >&6
22351 else
22352 ac_check_lib_save_LIBS=$LIBS
22353 LIBS="-ldes425 $LIBS"
22354 cat >conftest.$ac_ext <<_ACEOF
22355 /* confdefs.h. */
22356 _ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360
22361 /* Override any GCC internal prototype to avoid an error.
22362 Use char because int might match the return type of a GCC
22363 builtin and then its argument prototype would still apply. */
22364 #ifdef __cplusplus
22365 extern "C"
22366 #endif
22367 char des_cbc_encrypt ();
22368 int
22369 main ()
22370 {
22371 return des_cbc_encrypt ();
22372 ;
22373 return 0;
22374 }
22375 _ACEOF
22376 rm -f conftest.$ac_objext conftest$ac_exeext
22377 if { (ac_try="$ac_link"
22378 case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22381 esac
22382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22383 $as_echo "$ac_try_echo") >&5
22384 (eval "$ac_link") 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest$ac_exeext && {
22394 test "$cross_compiling" = yes ||
22395 $as_test_x conftest$ac_exeext
22396 }; then
22397 ac_cv_lib_des425_des_cbc_encrypt=yes
22398 else
22399 $as_echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402 ac_cv_lib_des425_des_cbc_encrypt=no
22403 fi
22404
22405 rm -rf conftest.dSYM
22406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22407 conftest$ac_exeext conftest.$ac_ext
22408 LIBS=$ac_check_lib_save_LIBS
22409 fi
22410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22411 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22412 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22413 have_des425=yes
22414 else
22415 have_des425=no
22416 fi
22417
22418 if test $have_des425 = yes; then
22419 DESLIB=-ldes425
22420 LIBS="$DESLIB $LIBS"
22421
22422 cat >>confdefs.h <<\_ACEOF
22423 #define HAVE_LIBDES425 1
22424 _ACEOF
22425
22426 else
22427 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22428 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22429 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22430 $as_echo_n "(cached) " >&6
22431 else
22432 ac_check_lib_save_LIBS=$LIBS
22433 LIBS="-ldes $LIBS"
22434 cat >conftest.$ac_ext <<_ACEOF
22435 /* confdefs.h. */
22436 _ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h. */
22440
22441 /* Override any GCC internal prototype to avoid an error.
22442 Use char because int might match the return type of a GCC
22443 builtin and then its argument prototype would still apply. */
22444 #ifdef __cplusplus
22445 extern "C"
22446 #endif
22447 char des_cbc_encrypt ();
22448 int
22449 main ()
22450 {
22451 return des_cbc_encrypt ();
22452 ;
22453 return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22461 esac
22462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22463 $as_echo "$ac_try_echo") >&5
22464 (eval "$ac_link") 2>conftest.er1
22465 ac_status=$?
22466 grep -v '^ *+' conftest.er1 >conftest.err
22467 rm -f conftest.er1
22468 cat conftest.err >&5
22469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && {
22471 test -z "$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22473 } && test -s conftest$ac_exeext && {
22474 test "$cross_compiling" = yes ||
22475 $as_test_x conftest$ac_exeext
22476 }; then
22477 ac_cv_lib_des_des_cbc_encrypt=yes
22478 else
22479 $as_echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22481
22482 ac_cv_lib_des_des_cbc_encrypt=no
22483 fi
22484
22485 rm -rf conftest.dSYM
22486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22487 conftest$ac_exeext conftest.$ac_ext
22488 LIBS=$ac_check_lib_save_LIBS
22489 fi
22490 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22491 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22492 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22493 have_des=yes
22494 else
22495 have_des=no
22496 fi
22497
22498 if test $have_des = yes; then
22499 DESLIB=-ldes
22500 LIBS="$DESLIB $LIBS"
22501
22502 cat >>confdefs.h <<\_ACEOF
22503 #define HAVE_LIBDES 1
22504 _ACEOF
22505
22506 fi
22507 fi
22508 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22509 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22510 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22511 $as_echo_n "(cached) " >&6
22512 else
22513 ac_check_lib_save_LIBS=$LIBS
22514 LIBS="-lkrb4 $LIBS"
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521
22522 /* Override any GCC internal prototype to avoid an error.
22523 Use char because int might match the return type of a GCC
22524 builtin and then its argument prototype would still apply. */
22525 #ifdef __cplusplus
22526 extern "C"
22527 #endif
22528 char krb_get_cred ();
22529 int
22530 main ()
22531 {
22532 return krb_get_cred ();
22533 ;
22534 return 0;
22535 }
22536 _ACEOF
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (ac_try="$ac_link"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22542 esac
22543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22544 $as_echo "$ac_try_echo") >&5
22545 (eval "$ac_link") 2>conftest.er1
22546 ac_status=$?
22547 grep -v '^ *+' conftest.er1 >conftest.err
22548 rm -f conftest.er1
22549 cat conftest.err >&5
22550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } && {
22552 test -z "$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 } && test -s conftest$ac_exeext && {
22555 test "$cross_compiling" = yes ||
22556 $as_test_x conftest$ac_exeext
22557 }; then
22558 ac_cv_lib_krb4_krb_get_cred=yes
22559 else
22560 $as_echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22562
22563 ac_cv_lib_krb4_krb_get_cred=no
22564 fi
22565
22566 rm -rf conftest.dSYM
22567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22568 conftest$ac_exeext conftest.$ac_ext
22569 LIBS=$ac_check_lib_save_LIBS
22570 fi
22571 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22572 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22573 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22574 have_krb4=yes
22575 else
22576 have_krb4=no
22577 fi
22578
22579 if test $have_krb4 = yes; then
22580 KRB4LIB=-lkrb4
22581 LIBS="$KRB4LIB $LIBS"
22582
22583 cat >>confdefs.h <<\_ACEOF
22584 #define HAVE_LIBKRB4 1
22585 _ACEOF
22586
22587 else
22588 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22589 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22590 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22591 $as_echo_n "(cached) " >&6
22592 else
22593 ac_check_lib_save_LIBS=$LIBS
22594 LIBS="-lkrb $LIBS"
22595 cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h. */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601
22602 /* Override any GCC internal prototype to avoid an error.
22603 Use char because int might match the return type of a GCC
22604 builtin and then its argument prototype would still apply. */
22605 #ifdef __cplusplus
22606 extern "C"
22607 #endif
22608 char krb_get_cred ();
22609 int
22610 main ()
22611 {
22612 return krb_get_cred ();
22613 ;
22614 return 0;
22615 }
22616 _ACEOF
22617 rm -f conftest.$ac_objext conftest$ac_exeext
22618 if { (ac_try="$ac_link"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22622 esac
22623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22624 $as_echo "$ac_try_echo") >&5
22625 (eval "$ac_link") 2>conftest.er1
22626 ac_status=$?
22627 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1
22629 cat conftest.err >&5
22630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && {
22632 test -z "$ac_c_werror_flag" ||
22633 test ! -s conftest.err
22634 } && test -s conftest$ac_exeext && {
22635 test "$cross_compiling" = yes ||
22636 $as_test_x conftest$ac_exeext
22637 }; then
22638 ac_cv_lib_krb_krb_get_cred=yes
22639 else
22640 $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643 ac_cv_lib_krb_krb_get_cred=no
22644 fi
22645
22646 rm -rf conftest.dSYM
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648 conftest$ac_exeext conftest.$ac_ext
22649 LIBS=$ac_check_lib_save_LIBS
22650 fi
22651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22652 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22653 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22654 have_krb=yes
22655 else
22656 have_krb=no
22657 fi
22658
22659 if test $have_krb = yes; then
22660 KRB4LIB=-lkrb
22661 LIBS="$KRB4LIB $LIBS"
22662
22663 cat >>confdefs.h <<\_ACEOF
22664 #define HAVE_LIBKRB 1
22665 _ACEOF
22666
22667 fi
22668 fi
22669 fi
22670
22671 if test "${with_kerberos5}" != no; then
22672
22673 for ac_header in krb5.h
22674 do
22675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22678 $as_echo_n "checking for $ac_header... " >&6; }
22679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22680 $as_echo_n "(cached) " >&6
22681 fi
22682 ac_res=`eval 'as_val=${'$as_ac_Header'}
22683 $as_echo "$as_val"'`
22684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22685 $as_echo "$ac_res" >&6; }
22686 else
22687 # Is the header compilable?
22688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22689 $as_echo_n "checking $ac_header usability... " >&6; }
22690 cat >conftest.$ac_ext <<_ACEOF
22691 /* confdefs.h. */
22692 _ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h. */
22696 $ac_includes_default
22697 #include <$ac_header>
22698 _ACEOF
22699 rm -f conftest.$ac_objext
22700 if { (ac_try="$ac_compile"
22701 case "(($ac_try" in
22702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703 *) ac_try_echo=$ac_try;;
22704 esac
22705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22706 $as_echo "$ac_try_echo") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22708 ac_status=$?
22709 grep -v '^ *+' conftest.er1 >conftest.err
22710 rm -f conftest.er1
22711 cat conftest.err >&5
22712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.$ac_objext; then
22717 ac_header_compiler=yes
22718 else
22719 $as_echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722 ac_header_compiler=no
22723 fi
22724
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22727 $as_echo "$ac_header_compiler" >&6; }
22728
22729 # Is the header present?
22730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22731 $as_echo_n "checking $ac_header presence... " >&6; }
22732 cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h. */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 #include <$ac_header>
22739 _ACEOF
22740 if { (ac_try="$ac_cpp conftest.$ac_ext"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744 esac
22745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22746 $as_echo "$ac_try_echo") >&5
22747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22748 ac_status=$?
22749 grep -v '^ *+' conftest.er1 >conftest.err
22750 rm -f conftest.er1
22751 cat conftest.err >&5
22752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } >/dev/null && {
22754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 }; then
22757 ac_header_preproc=yes
22758 else
22759 $as_echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762 ac_header_preproc=no
22763 fi
22764
22765 rm -f conftest.err conftest.$ac_ext
22766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22767 $as_echo "$ac_header_preproc" >&6; }
22768
22769 # So? What about this header?
22770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22771 yes:no: )
22772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22776 ac_header_preproc=yes
22777 ;;
22778 no:yes:* )
22779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22791
22792 ;;
22793 esac
22794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22795 $as_echo_n "checking for $ac_header... " >&6; }
22796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22797 $as_echo_n "(cached) " >&6
22798 else
22799 eval "$as_ac_Header=\$ac_header_preproc"
22800 fi
22801 ac_res=`eval 'as_val=${'$as_ac_Header'}
22802 $as_echo "$as_val"'`
22803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22804 $as_echo "$ac_res" >&6; }
22805
22806 fi
22807 if test `eval 'as_val=${'$as_ac_Header'}
22808 $as_echo "$as_val"'` = yes; then
22809 cat >>confdefs.h <<_ACEOF
22810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22811 _ACEOF
22812 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22813 $as_echo_n "checking for krb5_error.text... " >&6; }
22814 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22815 $as_echo_n "(cached) " >&6
22816 else
22817 cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h. */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 #include <krb5.h>
22824
22825 int
22826 main ()
22827 {
22828 static krb5_error ac_aggr;
22829 if (ac_aggr.text)
22830 return 0;
22831 ;
22832 return 0;
22833 }
22834 _ACEOF
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22840 esac
22841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22842 $as_echo "$ac_try_echo") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22844 ac_status=$?
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 ac_cv_member_krb5_error_text=yes
22854 else
22855 $as_echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858 cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h. */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22864 #include <krb5.h>
22865
22866 int
22867 main ()
22868 {
22869 static krb5_error ac_aggr;
22870 if (sizeof ac_aggr.text)
22871 return 0;
22872 ;
22873 return 0;
22874 }
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22881 esac
22882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22883 $as_echo "$ac_try_echo") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.$ac_objext; then
22894 ac_cv_member_krb5_error_text=yes
22895 else
22896 $as_echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22898
22899 ac_cv_member_krb5_error_text=no
22900 fi
22901
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 fi
22907 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22908 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22909 if test $ac_cv_member_krb5_error_text = yes; then
22910
22911 cat >>confdefs.h <<_ACEOF
22912 #define HAVE_KRB5_ERROR_TEXT 1
22913 _ACEOF
22914
22915
22916 fi
22917 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22918 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22919 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22920 $as_echo_n "(cached) " >&6
22921 else
22922 cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h. */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 #include <krb5.h>
22929
22930 int
22931 main ()
22932 {
22933 static krb5_error ac_aggr;
22934 if (ac_aggr.e_text)
22935 return 0;
22936 ;
22937 return 0;
22938 }
22939 _ACEOF
22940 rm -f conftest.$ac_objext
22941 if { (ac_try="$ac_compile"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22945 esac
22946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22947 $as_echo "$ac_try_echo") >&5
22948 (eval "$ac_compile") 2>conftest.er1
22949 ac_status=$?
22950 grep -v '^ *+' conftest.er1 >conftest.err
22951 rm -f conftest.er1
22952 cat conftest.err >&5
22953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } && {
22955 test -z "$ac_c_werror_flag" ||
22956 test ! -s conftest.err
22957 } && test -s conftest.$ac_objext; then
22958 ac_cv_member_krb5_error_e_text=yes
22959 else
22960 $as_echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963 cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h. */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22969 #include <krb5.h>
22970
22971 int
22972 main ()
22973 {
22974 static krb5_error ac_aggr;
22975 if (sizeof ac_aggr.e_text)
22976 return 0;
22977 ;
22978 return 0;
22979 }
22980 _ACEOF
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986 esac
22987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22988 $as_echo "$ac_try_echo") >&5
22989 (eval "$ac_compile") 2>conftest.er1
22990 ac_status=$?
22991 grep -v '^ *+' conftest.er1 >conftest.err
22992 rm -f conftest.er1
22993 cat conftest.err >&5
22994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest.$ac_objext; then
22999 ac_cv_member_krb5_error_e_text=yes
23000 else
23001 $as_echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004 ac_cv_member_krb5_error_e_text=no
23005 fi
23006
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008 fi
23009
23010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011 fi
23012 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23013 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23014 if test $ac_cv_member_krb5_error_e_text = yes; then
23015
23016 cat >>confdefs.h <<_ACEOF
23017 #define HAVE_KRB5_ERROR_E_TEXT 1
23018 _ACEOF
23019
23020
23021 fi
23022
23023 fi
23024
23025 done
23026
23027 else
23028
23029 for ac_header in des.h
23030 do
23031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23034 $as_echo_n "checking for $ac_header... " >&6; }
23035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23036 $as_echo_n "(cached) " >&6
23037 fi
23038 ac_res=`eval 'as_val=${'$as_ac_Header'}
23039 $as_echo "$as_val"'`
23040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23041 $as_echo "$ac_res" >&6; }
23042 else
23043 # Is the header compilable?
23044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23045 $as_echo_n "checking $ac_header usability... " >&6; }
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h. */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23053 #include <$ac_header>
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23062 $as_echo "$ac_try_echo") >&5
23063 (eval "$ac_compile") 2>conftest.er1
23064 ac_status=$?
23065 grep -v '^ *+' conftest.er1 >conftest.err
23066 rm -f conftest.er1
23067 cat conftest.err >&5
23068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && {
23070 test -z "$ac_c_werror_flag" ||
23071 test ! -s conftest.err
23072 } && test -s conftest.$ac_objext; then
23073 ac_header_compiler=yes
23074 else
23075 $as_echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 ac_header_compiler=no
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23083 $as_echo "$ac_header_compiler" >&6; }
23084
23085 # Is the header present?
23086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23087 $as_echo_n "checking $ac_header presence... " >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h. */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 #include <$ac_header>
23095 _ACEOF
23096 if { (ac_try="$ac_cpp conftest.$ac_ext"
23097 case "(($ac_try" in
23098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23100 esac
23101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23102 $as_echo "$ac_try_echo") >&5
23103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23104 ac_status=$?
23105 grep -v '^ *+' conftest.er1 >conftest.err
23106 rm -f conftest.er1
23107 cat conftest.err >&5
23108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } >/dev/null && {
23110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 }; then
23113 ac_header_preproc=yes
23114 else
23115 $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118 ac_header_preproc=no
23119 fi
23120
23121 rm -f conftest.err conftest.$ac_ext
23122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 $as_echo "$ac_header_preproc" >&6; }
23124
23125 # So? What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23127 yes:no: )
23128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23132 ac_header_preproc=yes
23133 ;;
23134 no:yes:* )
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23142 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23147
23148 ;;
23149 esac
23150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23151 $as_echo_n "checking for $ac_header... " >&6; }
23152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23153 $as_echo_n "(cached) " >&6
23154 else
23155 eval "$as_ac_Header=\$ac_header_preproc"
23156 fi
23157 ac_res=`eval 'as_val=${'$as_ac_Header'}
23158 $as_echo "$as_val"'`
23159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23160 $as_echo "$ac_res" >&6; }
23161
23162 fi
23163 if test `eval 'as_val=${'$as_ac_Header'}
23164 $as_echo "$as_val"'` = yes; then
23165 cat >>confdefs.h <<_ACEOF
23166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23167 _ACEOF
23168
23169 else
23170
23171 for ac_header in kerberosIV/des.h
23172 do
23173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23176 $as_echo_n "checking for $ac_header... " >&6; }
23177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23178 $as_echo_n "(cached) " >&6
23179 fi
23180 ac_res=`eval 'as_val=${'$as_ac_Header'}
23181 $as_echo "$as_val"'`
23182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23183 $as_echo "$ac_res" >&6; }
23184 else
23185 # Is the header compilable?
23186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23187 $as_echo_n "checking $ac_header usability... " >&6; }
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h. */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23195 #include <$ac_header>
23196 _ACEOF
23197 rm -f conftest.$ac_objext
23198 if { (ac_try="$ac_compile"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202 esac
23203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23204 $as_echo "$ac_try_echo") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23206 ac_status=$?
23207 grep -v '^ *+' conftest.er1 >conftest.err
23208 rm -f conftest.er1
23209 cat conftest.err >&5
23210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.$ac_objext; then
23215 ac_header_compiler=yes
23216 else
23217 $as_echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220 ac_header_compiler=no
23221 fi
23222
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23225 $as_echo "$ac_header_compiler" >&6; }
23226
23227 # Is the header present?
23228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23229 $as_echo_n "checking $ac_header presence... " >&6; }
23230 cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h. */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 #include <$ac_header>
23237 _ACEOF
23238 if { (ac_try="$ac_cpp conftest.$ac_ext"
23239 case "(($ac_try" in
23240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241 *) ac_try_echo=$ac_try;;
23242 esac
23243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23244 $as_echo "$ac_try_echo") >&5
23245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23246 ac_status=$?
23247 grep -v '^ *+' conftest.er1 >conftest.err
23248 rm -f conftest.er1
23249 cat conftest.err >&5
23250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } >/dev/null && {
23252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23253 test ! -s conftest.err
23254 }; then
23255 ac_header_preproc=yes
23256 else
23257 $as_echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260 ac_header_preproc=no
23261 fi
23262
23263 rm -f conftest.err conftest.$ac_ext
23264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23265 $as_echo "$ac_header_preproc" >&6; }
23266
23267 # So? What about this header?
23268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23269 yes:no: )
23270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23274 ac_header_preproc=yes
23275 ;;
23276 no:yes:* )
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23289
23290 ;;
23291 esac
23292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23293 $as_echo_n "checking for $ac_header... " >&6; }
23294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23295 $as_echo_n "(cached) " >&6
23296 else
23297 eval "$as_ac_Header=\$ac_header_preproc"
23298 fi
23299 ac_res=`eval 'as_val=${'$as_ac_Header'}
23300 $as_echo "$as_val"'`
23301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23302 $as_echo "$ac_res" >&6; }
23303
23304 fi
23305 if test `eval 'as_val=${'$as_ac_Header'}
23306 $as_echo "$as_val"'` = yes; then
23307 cat >>confdefs.h <<_ACEOF
23308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23309 _ACEOF
23310
23311 else
23312
23313 for ac_header in kerberos/des.h
23314 do
23315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23318 $as_echo_n "checking for $ac_header... " >&6; }
23319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23320 $as_echo_n "(cached) " >&6
23321 fi
23322 ac_res=`eval 'as_val=${'$as_ac_Header'}
23323 $as_echo "$as_val"'`
23324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23325 $as_echo "$ac_res" >&6; }
23326 else
23327 # Is the header compilable?
23328 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23329 $as_echo_n "checking $ac_header usability... " >&6; }
23330 cat >conftest.$ac_ext <<_ACEOF
23331 /* confdefs.h. */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23336 $ac_includes_default
23337 #include <$ac_header>
23338 _ACEOF
23339 rm -f conftest.$ac_objext
23340 if { (ac_try="$ac_compile"
23341 case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23344 esac
23345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23346 $as_echo "$ac_try_echo") >&5
23347 (eval "$ac_compile") 2>conftest.er1
23348 ac_status=$?
23349 grep -v '^ *+' conftest.er1 >conftest.err
23350 rm -f conftest.er1
23351 cat conftest.err >&5
23352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } && {
23354 test -z "$ac_c_werror_flag" ||
23355 test ! -s conftest.err
23356 } && test -s conftest.$ac_objext; then
23357 ac_header_compiler=yes
23358 else
23359 $as_echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362 ac_header_compiler=no
23363 fi
23364
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23367 $as_echo "$ac_header_compiler" >&6; }
23368
23369 # Is the header present?
23370 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23371 $as_echo_n "checking $ac_header presence... " >&6; }
23372 cat >conftest.$ac_ext <<_ACEOF
23373 /* confdefs.h. */
23374 _ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23378 #include <$ac_header>
23379 _ACEOF
23380 if { (ac_try="$ac_cpp conftest.$ac_ext"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23384 esac
23385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23386 $as_echo "$ac_try_echo") >&5
23387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23388 ac_status=$?
23389 grep -v '^ *+' conftest.er1 >conftest.err
23390 rm -f conftest.er1
23391 cat conftest.err >&5
23392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } >/dev/null && {
23394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23395 test ! -s conftest.err
23396 }; then
23397 ac_header_preproc=yes
23398 else
23399 $as_echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23401
23402 ac_header_preproc=no
23403 fi
23404
23405 rm -f conftest.err conftest.$ac_ext
23406 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23407 $as_echo "$ac_header_preproc" >&6; }
23408
23409 # So? What about this header?
23410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23411 yes:no: )
23412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23413 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23415 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23416 ac_header_preproc=yes
23417 ;;
23418 no:yes:* )
23419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23420 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23422 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23424 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23426 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23428 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23430 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23431
23432 ;;
23433 esac
23434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23435 $as_echo_n "checking for $ac_header... " >&6; }
23436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23437 $as_echo_n "(cached) " >&6
23438 else
23439 eval "$as_ac_Header=\$ac_header_preproc"
23440 fi
23441 ac_res=`eval 'as_val=${'$as_ac_Header'}
23442 $as_echo "$as_val"'`
23443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23444 $as_echo "$ac_res" >&6; }
23445
23446 fi
23447 if test `eval 'as_val=${'$as_ac_Header'}
23448 $as_echo "$as_val"'` = yes; then
23449 cat >>confdefs.h <<_ACEOF
23450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23451 _ACEOF
23452
23453 fi
23454
23455 done
23456
23457 fi
23458
23459 done
23460
23461 fi
23462
23463 done
23464
23465
23466 for ac_header in krb.h
23467 do
23468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23470 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23471 $as_echo_n "checking for $ac_header... " >&6; }
23472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23473 $as_echo_n "(cached) " >&6
23474 fi
23475 ac_res=`eval 'as_val=${'$as_ac_Header'}
23476 $as_echo "$as_val"'`
23477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23478 $as_echo "$ac_res" >&6; }
23479 else
23480 # Is the header compilable?
23481 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23482 $as_echo_n "checking $ac_header usability... " >&6; }
23483 cat >conftest.$ac_ext <<_ACEOF
23484 /* confdefs.h. */
23485 _ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23489 $ac_includes_default
23490 #include <$ac_header>
23491 _ACEOF
23492 rm -f conftest.$ac_objext
23493 if { (ac_try="$ac_compile"
23494 case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23497 esac
23498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23499 $as_echo "$ac_try_echo") >&5
23500 (eval "$ac_compile") 2>conftest.er1
23501 ac_status=$?
23502 grep -v '^ *+' conftest.er1 >conftest.err
23503 rm -f conftest.er1
23504 cat conftest.err >&5
23505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest.$ac_objext; then
23510 ac_header_compiler=yes
23511 else
23512 $as_echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23514
23515 ac_header_compiler=no
23516 fi
23517
23518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23519 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23520 $as_echo "$ac_header_compiler" >&6; }
23521
23522 # Is the header present?
23523 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23524 $as_echo_n "checking $ac_header presence... " >&6; }
23525 cat >conftest.$ac_ext <<_ACEOF
23526 /* confdefs.h. */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
23531 #include <$ac_header>
23532 _ACEOF
23533 if { (ac_try="$ac_cpp conftest.$ac_ext"
23534 case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23537 esac
23538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23539 $as_echo "$ac_try_echo") >&5
23540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23541 ac_status=$?
23542 grep -v '^ *+' conftest.er1 >conftest.err
23543 rm -f conftest.er1
23544 cat conftest.err >&5
23545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } >/dev/null && {
23547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23548 test ! -s conftest.err
23549 }; then
23550 ac_header_preproc=yes
23551 else
23552 $as_echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 ac_header_preproc=no
23556 fi
23557
23558 rm -f conftest.err conftest.$ac_ext
23559 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23560 $as_echo "$ac_header_preproc" >&6; }
23561
23562 # So? What about this header?
23563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23564 yes:no: )
23565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23566 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23568 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23569 ac_header_preproc=yes
23570 ;;
23571 no:yes:* )
23572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23573 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23575 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23577 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23579 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23583 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23584
23585 ;;
23586 esac
23587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23588 $as_echo_n "checking for $ac_header... " >&6; }
23589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23590 $as_echo_n "(cached) " >&6
23591 else
23592 eval "$as_ac_Header=\$ac_header_preproc"
23593 fi
23594 ac_res=`eval 'as_val=${'$as_ac_Header'}
23595 $as_echo "$as_val"'`
23596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23597 $as_echo "$ac_res" >&6; }
23598
23599 fi
23600 if test `eval 'as_val=${'$as_ac_Header'}
23601 $as_echo "$as_val"'` = yes; then
23602 cat >>confdefs.h <<_ACEOF
23603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23604 _ACEOF
23605
23606 else
23607
23608 for ac_header in kerberosIV/krb.h
23609 do
23610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23613 $as_echo_n "checking for $ac_header... " >&6; }
23614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23615 $as_echo_n "(cached) " >&6
23616 fi
23617 ac_res=`eval 'as_val=${'$as_ac_Header'}
23618 $as_echo "$as_val"'`
23619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23620 $as_echo "$ac_res" >&6; }
23621 else
23622 # Is the header compilable?
23623 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23624 $as_echo_n "checking $ac_header usability... " >&6; }
23625 cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h. */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631 $ac_includes_default
23632 #include <$ac_header>
23633 _ACEOF
23634 rm -f conftest.$ac_objext
23635 if { (ac_try="$ac_compile"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23639 esac
23640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642 (eval "$ac_compile") 2>conftest.er1
23643 ac_status=$?
23644 grep -v '^ *+' conftest.er1 >conftest.err
23645 rm -f conftest.er1
23646 cat conftest.err >&5
23647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } && {
23649 test -z "$ac_c_werror_flag" ||
23650 test ! -s conftest.err
23651 } && test -s conftest.$ac_objext; then
23652 ac_header_compiler=yes
23653 else
23654 $as_echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657 ac_header_compiler=no
23658 fi
23659
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23662 $as_echo "$ac_header_compiler" >&6; }
23663
23664 # Is the header present?
23665 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23666 $as_echo_n "checking $ac_header presence... " >&6; }
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h. */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 #include <$ac_header>
23674 _ACEOF
23675 if { (ac_try="$ac_cpp conftest.$ac_ext"
23676 case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23679 esac
23680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23681 $as_echo "$ac_try_echo") >&5
23682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23683 ac_status=$?
23684 grep -v '^ *+' conftest.er1 >conftest.err
23685 rm -f conftest.er1
23686 cat conftest.err >&5
23687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } >/dev/null && {
23689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23690 test ! -s conftest.err
23691 }; then
23692 ac_header_preproc=yes
23693 else
23694 $as_echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 ac_header_preproc=no
23698 fi
23699
23700 rm -f conftest.err conftest.$ac_ext
23701 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23702 $as_echo "$ac_header_preproc" >&6; }
23703
23704 # So? What about this header?
23705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23706 yes:no: )
23707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23708 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23711 ac_header_preproc=yes
23712 ;;
23713 no:yes:* )
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23715 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23717 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23719 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23721 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23725 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23726
23727 ;;
23728 esac
23729 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23730 $as_echo_n "checking for $ac_header... " >&6; }
23731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23732 $as_echo_n "(cached) " >&6
23733 else
23734 eval "$as_ac_Header=\$ac_header_preproc"
23735 fi
23736 ac_res=`eval 'as_val=${'$as_ac_Header'}
23737 $as_echo "$as_val"'`
23738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23739 $as_echo "$ac_res" >&6; }
23740
23741 fi
23742 if test `eval 'as_val=${'$as_ac_Header'}
23743 $as_echo "$as_val"'` = yes; then
23744 cat >>confdefs.h <<_ACEOF
23745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23746 _ACEOF
23747
23748 else
23749
23750 for ac_header in kerberos/krb.h
23751 do
23752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23755 $as_echo_n "checking for $ac_header... " >&6; }
23756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23757 $as_echo_n "(cached) " >&6
23758 fi
23759 ac_res=`eval 'as_val=${'$as_ac_Header'}
23760 $as_echo "$as_val"'`
23761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23762 $as_echo "$ac_res" >&6; }
23763 else
23764 # Is the header compilable?
23765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23766 $as_echo_n "checking $ac_header usability... " >&6; }
23767 cat >conftest.$ac_ext <<_ACEOF
23768 /* confdefs.h. */
23769 _ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h. */
23773 $ac_includes_default
23774 #include <$ac_header>
23775 _ACEOF
23776 rm -f conftest.$ac_objext
23777 if { (ac_try="$ac_compile"
23778 case "(($ac_try" in
23779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23781 esac
23782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23783 $as_echo "$ac_try_echo") >&5
23784 (eval "$ac_compile") 2>conftest.er1
23785 ac_status=$?
23786 grep -v '^ *+' conftest.er1 >conftest.err
23787 rm -f conftest.er1
23788 cat conftest.err >&5
23789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } && {
23791 test -z "$ac_c_werror_flag" ||
23792 test ! -s conftest.err
23793 } && test -s conftest.$ac_objext; then
23794 ac_header_compiler=yes
23795 else
23796 $as_echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 ac_header_compiler=no
23800 fi
23801
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23804 $as_echo "$ac_header_compiler" >&6; }
23805
23806 # Is the header present?
23807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23808 $as_echo_n "checking $ac_header presence... " >&6; }
23809 cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h. */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 #include <$ac_header>
23816 _ACEOF
23817 if { (ac_try="$ac_cpp conftest.$ac_ext"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23821 esac
23822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23823 $as_echo "$ac_try_echo") >&5
23824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23825 ac_status=$?
23826 grep -v '^ *+' conftest.er1 >conftest.err
23827 rm -f conftest.er1
23828 cat conftest.err >&5
23829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } >/dev/null && {
23831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 }; then
23834 ac_header_preproc=yes
23835 else
23836 $as_echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23838
23839 ac_header_preproc=no
23840 fi
23841
23842 rm -f conftest.err conftest.$ac_ext
23843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23844 $as_echo "$ac_header_preproc" >&6; }
23845
23846 # So? What about this header?
23847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23848 yes:no: )
23849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23853 ac_header_preproc=yes
23854 ;;
23855 no:yes:* )
23856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23868
23869 ;;
23870 esac
23871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23872 $as_echo_n "checking for $ac_header... " >&6; }
23873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23874 $as_echo_n "(cached) " >&6
23875 else
23876 eval "$as_ac_Header=\$ac_header_preproc"
23877 fi
23878 ac_res=`eval 'as_val=${'$as_ac_Header'}
23879 $as_echo "$as_val"'`
23880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23881 $as_echo "$ac_res" >&6; }
23882
23883 fi
23884 if test `eval 'as_val=${'$as_ac_Header'}
23885 $as_echo "$as_val"'` = yes; then
23886 cat >>confdefs.h <<_ACEOF
23887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23888 _ACEOF
23889
23890 fi
23891
23892 done
23893
23894 fi
23895
23896 done
23897
23898 fi
23899
23900 done
23901
23902 fi
23903
23904 for ac_header in com_err.h
23905 do
23906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23909 $as_echo_n "checking for $ac_header... " >&6; }
23910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23911 $as_echo_n "(cached) " >&6
23912 fi
23913 ac_res=`eval 'as_val=${'$as_ac_Header'}
23914 $as_echo "$as_val"'`
23915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23916 $as_echo "$ac_res" >&6; }
23917 else
23918 # Is the header compilable?
23919 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23920 $as_echo_n "checking $ac_header usability... " >&6; }
23921 cat >conftest.$ac_ext <<_ACEOF
23922 /* confdefs.h. */
23923 _ACEOF
23924 cat confdefs.h >>conftest.$ac_ext
23925 cat >>conftest.$ac_ext <<_ACEOF
23926 /* end confdefs.h. */
23927 $ac_includes_default
23928 #include <$ac_header>
23929 _ACEOF
23930 rm -f conftest.$ac_objext
23931 if { (ac_try="$ac_compile"
23932 case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23935 esac
23936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23937 $as_echo "$ac_try_echo") >&5
23938 (eval "$ac_compile") 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest.$ac_objext; then
23948 ac_header_compiler=yes
23949 else
23950 $as_echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23952
23953 ac_header_compiler=no
23954 fi
23955
23956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23958 $as_echo "$ac_header_compiler" >&6; }
23959
23960 # Is the header present?
23961 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23962 $as_echo_n "checking $ac_header presence... " >&6; }
23963 cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h. */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 #include <$ac_header>
23970 _ACEOF
23971 if { (ac_try="$ac_cpp conftest.$ac_ext"
23972 case "(($ac_try" in
23973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974 *) ac_try_echo=$ac_try;;
23975 esac
23976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23977 $as_echo "$ac_try_echo") >&5
23978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23979 ac_status=$?
23980 grep -v '^ *+' conftest.er1 >conftest.err
23981 rm -f conftest.er1
23982 cat conftest.err >&5
23983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } >/dev/null && {
23985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 }; then
23988 ac_header_preproc=yes
23989 else
23990 $as_echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23992
23993 ac_header_preproc=no
23994 fi
23995
23996 rm -f conftest.err conftest.$ac_ext
23997 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23998 $as_echo "$ac_header_preproc" >&6; }
23999
24000 # So? What about this header?
24001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24002 yes:no: )
24003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24004 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24007 ac_header_preproc=yes
24008 ;;
24009 no:yes:* )
24010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24011 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24013 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24015 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24017 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24019 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24021 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24022
24023 ;;
24024 esac
24025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24026 $as_echo_n "checking for $ac_header... " >&6; }
24027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24028 $as_echo_n "(cached) " >&6
24029 else
24030 eval "$as_ac_Header=\$ac_header_preproc"
24031 fi
24032 ac_res=`eval 'as_val=${'$as_ac_Header'}
24033 $as_echo "$as_val"'`
24034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24035 $as_echo "$ac_res" >&6; }
24036
24037 fi
24038 if test `eval 'as_val=${'$as_ac_Header'}
24039 $as_echo "$as_val"'` = yes; then
24040 cat >>confdefs.h <<_ACEOF
24041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24042 _ACEOF
24043
24044 fi
24045
24046 done
24047
24048 fi
24049
24050
24051
24052
24053
24054
24055
24056 # Solaris requires -lintl if you want strerror (which calls dgettext)
24057 # to return localized messages.
24058
24059 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24060 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24061 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24062 $as_echo_n "(cached) " >&6
24063 else
24064 ac_check_lib_save_LIBS=$LIBS
24065 LIBS="-lintl $LIBS"
24066 cat >conftest.$ac_ext <<_ACEOF
24067 /* confdefs.h. */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072
24073 /* Override any GCC internal prototype to avoid an error.
24074 Use char because int might match the return type of a GCC
24075 builtin and then its argument prototype would still apply. */
24076 #ifdef __cplusplus
24077 extern "C"
24078 #endif
24079 char dgettext ();
24080 int
24081 main ()
24082 {
24083 return dgettext ();
24084 ;
24085 return 0;
24086 }
24087 _ACEOF
24088 rm -f conftest.$ac_objext conftest$ac_exeext
24089 if { (ac_try="$ac_link"
24090 case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093 esac
24094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095 $as_echo "$ac_try_echo") >&5
24096 (eval "$ac_link") 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest$ac_exeext && {
24106 test "$cross_compiling" = yes ||
24107 $as_test_x conftest$ac_exeext
24108 }; then
24109 ac_cv_lib_intl_dgettext=yes
24110 else
24111 $as_echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24113
24114 ac_cv_lib_intl_dgettext=no
24115 fi
24116
24117 rm -rf conftest.dSYM
24118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24119 conftest$ac_exeext conftest.$ac_ext
24120 LIBS=$ac_check_lib_save_LIBS
24121 fi
24122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24123 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24124 if test $ac_cv_lib_intl_dgettext = yes; then
24125 cat >>confdefs.h <<_ACEOF
24126 #define HAVE_LIBINTL 1
24127 _ACEOF
24128
24129 LIBS="-lintl $LIBS"
24130
24131 fi
24132
24133
24134 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24135 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24136 if test "${emacs_cv_localtime_cache+set}" = set; then
24137 $as_echo_n "(cached) " >&6
24138 else
24139 if test x$ac_cv_func_tzset = xyes; then
24140 if test "$cross_compiling" = yes; then
24141 # If we have tzset, assume the worst when cross-compiling.
24142 emacs_cv_localtime_cache=yes
24143 else
24144 cat >conftest.$ac_ext <<_ACEOF
24145 /* confdefs.h. */
24146 _ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24150 #include <time.h>
24151 extern char **environ;
24152 unset_TZ ()
24153 {
24154 char **from, **to;
24155 for (to = from = environ; (*to = *from); from++)
24156 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24157 to++;
24158 }
24159 char TZ_GMT0[] = "TZ=GMT0";
24160 char TZ_PST8[] = "TZ=PST8";
24161 main()
24162 {
24163 time_t now = time ((time_t *) 0);
24164 int hour_GMT0, hour_unset;
24165 if (putenv (TZ_GMT0) != 0)
24166 exit (1);
24167 hour_GMT0 = localtime (&now)->tm_hour;
24168 unset_TZ ();
24169 hour_unset = localtime (&now)->tm_hour;
24170 if (putenv (TZ_PST8) != 0)
24171 exit (1);
24172 if (localtime (&now)->tm_hour == hour_GMT0)
24173 exit (1);
24174 unset_TZ ();
24175 if (localtime (&now)->tm_hour != hour_unset)
24176 exit (1);
24177 exit (0);
24178 }
24179 _ACEOF
24180 rm -f conftest$ac_exeext
24181 if { (ac_try="$ac_link"
24182 case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24185 esac
24186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24187 $as_echo "$ac_try_echo") >&5
24188 (eval "$ac_link") 2>&5
24189 ac_status=$?
24190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24192 { (case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24195 esac
24196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24197 $as_echo "$ac_try_echo") >&5
24198 (eval "$ac_try") 2>&5
24199 ac_status=$?
24200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 emacs_cv_localtime_cache=no
24203 else
24204 $as_echo "$as_me: program exited with status $ac_status" >&5
24205 $as_echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24207
24208 ( exit $ac_status )
24209 emacs_cv_localtime_cache=yes
24210 fi
24211 rm -rf conftest.dSYM
24212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24213 fi
24214
24215
24216 else
24217 # If we lack tzset, report that localtime does not cache TZ,
24218 # since we can't invalidate the cache if we don't have tzset.
24219 emacs_cv_localtime_cache=no
24220 fi
24221 fi
24222 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24223 $as_echo "$emacs_cv_localtime_cache" >&6; }
24224 if test $emacs_cv_localtime_cache = yes; then
24225
24226 cat >>confdefs.h <<\_ACEOF
24227 #define LOCALTIME_CACHE 1
24228 _ACEOF
24229
24230 fi
24231
24232 if test "x$HAVE_TIMEVAL" = xyes; then
24233
24234 for ac_func in gettimeofday
24235 do
24236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24238 $as_echo_n "checking for $ac_func... " >&6; }
24239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24240 $as_echo_n "(cached) " >&6
24241 else
24242 cat >conftest.$ac_ext <<_ACEOF
24243 /* confdefs.h. */
24244 _ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h. */
24248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24250 #define $ac_func innocuous_$ac_func
24251
24252 /* System header to define __stub macros and hopefully few prototypes,
24253 which can conflict with char $ac_func (); below.
24254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24255 <limits.h> exists even on freestanding compilers. */
24256
24257 #ifdef __STDC__
24258 # include <limits.h>
24259 #else
24260 # include <assert.h>
24261 #endif
24262
24263 #undef $ac_func
24264
24265 /* Override any GCC internal prototype to avoid an error.
24266 Use char because int might match the return type of a GCC
24267 builtin and then its argument prototype would still apply. */
24268 #ifdef __cplusplus
24269 extern "C"
24270 #endif
24271 char $ac_func ();
24272 /* The GNU C library defines this for functions which it implements
24273 to always fail with ENOSYS. Some functions are actually named
24274 something starting with __ and the normal name is an alias. */
24275 #if defined __stub_$ac_func || defined __stub___$ac_func
24276 choke me
24277 #endif
24278
24279 int
24280 main ()
24281 {
24282 return $ac_func ();
24283 ;
24284 return 0;
24285 }
24286 _ACEOF
24287 rm -f conftest.$ac_objext conftest$ac_exeext
24288 if { (ac_try="$ac_link"
24289 case "(($ac_try" in
24290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24291 *) ac_try_echo=$ac_try;;
24292 esac
24293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24294 $as_echo "$ac_try_echo") >&5
24295 (eval "$ac_link") 2>conftest.er1
24296 ac_status=$?
24297 grep -v '^ *+' conftest.er1 >conftest.err
24298 rm -f conftest.er1
24299 cat conftest.err >&5
24300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } && {
24302 test -z "$ac_c_werror_flag" ||
24303 test ! -s conftest.err
24304 } && test -s conftest$ac_exeext && {
24305 test "$cross_compiling" = yes ||
24306 $as_test_x conftest$ac_exeext
24307 }; then
24308 eval "$as_ac_var=yes"
24309 else
24310 $as_echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24312
24313 eval "$as_ac_var=no"
24314 fi
24315
24316 rm -rf conftest.dSYM
24317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24318 conftest$ac_exeext conftest.$ac_ext
24319 fi
24320 ac_res=`eval 'as_val=${'$as_ac_var'}
24321 $as_echo "$as_val"'`
24322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24323 $as_echo "$ac_res" >&6; }
24324 if test `eval 'as_val=${'$as_ac_var'}
24325 $as_echo "$as_val"'` = yes; then
24326 cat >>confdefs.h <<_ACEOF
24327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24328 _ACEOF
24329
24330 fi
24331 done
24332
24333 if test $ac_cv_func_gettimeofday = yes; then
24334 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24335 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24336 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24337 $as_echo_n "(cached) " >&6
24338 else
24339 cat >conftest.$ac_ext <<_ACEOF
24340 /* confdefs.h. */
24341 _ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24345
24346 #ifdef TIME_WITH_SYS_TIME
24347 #include <sys/time.h>
24348 #include <time.h>
24349 #else
24350 #ifdef HAVE_SYS_TIME_H
24351 #include <sys/time.h>
24352 #else
24353 #include <time.h>
24354 #endif
24355 #endif
24356 int
24357 main ()
24358 {
24359 struct timeval time;
24360 gettimeofday (&time, 0);
24361 ;
24362 return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24370 esac
24371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24372 $as_echo "$ac_try_echo") >&5
24373 (eval "$ac_compile") 2>conftest.er1
24374 ac_status=$?
24375 grep -v '^ *+' conftest.er1 >conftest.err
24376 rm -f conftest.er1
24377 cat conftest.err >&5
24378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && {
24380 test -z "$ac_c_werror_flag" ||
24381 test ! -s conftest.err
24382 } && test -s conftest.$ac_objext; then
24383 emacs_cv_gettimeofday_two_arguments=yes
24384 else
24385 $as_echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24387
24388 emacs_cv_gettimeofday_two_arguments=no
24389 fi
24390
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392 fi
24393 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24394 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24395 if test $emacs_cv_gettimeofday_two_arguments = no; then
24396
24397 cat >>confdefs.h <<\_ACEOF
24398 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24399 _ACEOF
24400
24401 fi
24402 fi
24403 fi
24404
24405 ok_so_far=yes
24406 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24407 $as_echo_n "checking for socket... " >&6; }
24408 if test "${ac_cv_func_socket+set}" = set; then
24409 $as_echo_n "(cached) " >&6
24410 else
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h. */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24419 #define socket innocuous_socket
24420
24421 /* System header to define __stub macros and hopefully few prototypes,
24422 which can conflict with char socket (); below.
24423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24424 <limits.h> exists even on freestanding compilers. */
24425
24426 #ifdef __STDC__
24427 # include <limits.h>
24428 #else
24429 # include <assert.h>
24430 #endif
24431
24432 #undef socket
24433
24434 /* Override any GCC internal prototype to avoid an error.
24435 Use char because int might match the return type of a GCC
24436 builtin and then its argument prototype would still apply. */
24437 #ifdef __cplusplus
24438 extern "C"
24439 #endif
24440 char socket ();
24441 /* The GNU C library defines this for functions which it implements
24442 to always fail with ENOSYS. Some functions are actually named
24443 something starting with __ and the normal name is an alias. */
24444 #if defined __stub_socket || defined __stub___socket
24445 choke me
24446 #endif
24447
24448 int
24449 main ()
24450 {
24451 return socket ();
24452 ;
24453 return 0;
24454 }
24455 _ACEOF
24456 rm -f conftest.$ac_objext conftest$ac_exeext
24457 if { (ac_try="$ac_link"
24458 case "(($ac_try" in
24459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460 *) ac_try_echo=$ac_try;;
24461 esac
24462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24463 $as_echo "$ac_try_echo") >&5
24464 (eval "$ac_link") 2>conftest.er1
24465 ac_status=$?
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
24469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && {
24471 test -z "$ac_c_werror_flag" ||
24472 test ! -s conftest.err
24473 } && test -s conftest$ac_exeext && {
24474 test "$cross_compiling" = yes ||
24475 $as_test_x conftest$ac_exeext
24476 }; then
24477 ac_cv_func_socket=yes
24478 else
24479 $as_echo "$as_me: failed program was:" >&5
24480 sed 's/^/| /' conftest.$ac_ext >&5
24481
24482 ac_cv_func_socket=no
24483 fi
24484
24485 rm -rf conftest.dSYM
24486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24487 conftest$ac_exeext conftest.$ac_ext
24488 fi
24489 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24490 $as_echo "$ac_cv_func_socket" >&6; }
24491 if test $ac_cv_func_socket = yes; then
24492 :
24493 else
24494 ok_so_far=no
24495 fi
24496
24497 if test $ok_so_far = yes; then
24498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24499 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24500 $as_echo_n "checking for netinet/in.h... " >&6; }
24501 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24502 $as_echo_n "(cached) " >&6
24503 fi
24504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24505 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24506 else
24507 # Is the header compilable?
24508 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24509 $as_echo_n "checking netinet/in.h usability... " >&6; }
24510 cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h. */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h. */
24516 $ac_includes_default
24517 #include <netinet/in.h>
24518 _ACEOF
24519 rm -f conftest.$ac_objext
24520 if { (ac_try="$ac_compile"
24521 case "(($ac_try" in
24522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523 *) ac_try_echo=$ac_try;;
24524 esac
24525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24526 $as_echo "$ac_try_echo") >&5
24527 (eval "$ac_compile") 2>conftest.er1
24528 ac_status=$?
24529 grep -v '^ *+' conftest.er1 >conftest.err
24530 rm -f conftest.er1
24531 cat conftest.err >&5
24532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } && {
24534 test -z "$ac_c_werror_flag" ||
24535 test ! -s conftest.err
24536 } && test -s conftest.$ac_objext; then
24537 ac_header_compiler=yes
24538 else
24539 $as_echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24541
24542 ac_header_compiler=no
24543 fi
24544
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24547 $as_echo "$ac_header_compiler" >&6; }
24548
24549 # Is the header present?
24550 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24551 $as_echo_n "checking netinet/in.h presence... " >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h. */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 #include <netinet/in.h>
24559 _ACEOF
24560 if { (ac_try="$ac_cpp conftest.$ac_ext"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24564 esac
24565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24566 $as_echo "$ac_try_echo") >&5
24567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24568 ac_status=$?
24569 grep -v '^ *+' conftest.er1 >conftest.err
24570 rm -f conftest.er1
24571 cat conftest.err >&5
24572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } >/dev/null && {
24574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24575 test ! -s conftest.err
24576 }; then
24577 ac_header_preproc=yes
24578 else
24579 $as_echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 ac_header_preproc=no
24583 fi
24584
24585 rm -f conftest.err conftest.$ac_ext
24586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24587 $as_echo "$ac_header_preproc" >&6; }
24588
24589 # So? What about this header?
24590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24591 yes:no: )
24592 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24593 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24594 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24595 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24596 ac_header_preproc=yes
24597 ;;
24598 no:yes:* )
24599 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24600 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24601 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24602 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24603 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24604 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24605 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24606 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24607 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24608 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24609 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24610 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24611
24612 ;;
24613 esac
24614 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24615 $as_echo_n "checking for netinet/in.h... " >&6; }
24616 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24617 $as_echo_n "(cached) " >&6
24618 else
24619 ac_cv_header_netinet_in_h=$ac_header_preproc
24620 fi
24621 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24622 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24623
24624 fi
24625 if test $ac_cv_header_netinet_in_h = yes; then
24626 :
24627 else
24628 ok_so_far=no
24629 fi
24630
24631
24632 fi
24633 if test $ok_so_far = yes; then
24634 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24635 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24636 $as_echo_n "checking for arpa/inet.h... " >&6; }
24637 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24638 $as_echo_n "(cached) " >&6
24639 fi
24640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24641 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24642 else
24643 # Is the header compilable?
24644 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24645 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24646 cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h. */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24652 $ac_includes_default
24653 #include <arpa/inet.h>
24654 _ACEOF
24655 rm -f conftest.$ac_objext
24656 if { (ac_try="$ac_compile"
24657 case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660 esac
24661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24662 $as_echo "$ac_try_echo") >&5
24663 (eval "$ac_compile") 2>conftest.er1
24664 ac_status=$?
24665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
24668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } && {
24670 test -z "$ac_c_werror_flag" ||
24671 test ! -s conftest.err
24672 } && test -s conftest.$ac_objext; then
24673 ac_header_compiler=yes
24674 else
24675 $as_echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ac_header_compiler=no
24679 fi
24680
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24683 $as_echo "$ac_header_compiler" >&6; }
24684
24685 # Is the header present?
24686 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24687 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24688 cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h. */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 #include <arpa/inet.h>
24695 _ACEOF
24696 if { (ac_try="$ac_cpp conftest.$ac_ext"
24697 case "(($ac_try" in
24698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699 *) ac_try_echo=$ac_try;;
24700 esac
24701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24702 $as_echo "$ac_try_echo") >&5
24703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24704 ac_status=$?
24705 grep -v '^ *+' conftest.er1 >conftest.err
24706 rm -f conftest.er1
24707 cat conftest.err >&5
24708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } >/dev/null && {
24710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24711 test ! -s conftest.err
24712 }; then
24713 ac_header_preproc=yes
24714 else
24715 $as_echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24717
24718 ac_header_preproc=no
24719 fi
24720
24721 rm -f conftest.err conftest.$ac_ext
24722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24723 $as_echo "$ac_header_preproc" >&6; }
24724
24725 # So? What about this header?
24726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24727 yes:no: )
24728 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24729 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24730 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24731 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24732 ac_header_preproc=yes
24733 ;;
24734 no:yes:* )
24735 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24736 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24737 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24738 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24739 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24740 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24741 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24742 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24743 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24744 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24745 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24746 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24747
24748 ;;
24749 esac
24750 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24751 $as_echo_n "checking for arpa/inet.h... " >&6; }
24752 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24753 $as_echo_n "(cached) " >&6
24754 else
24755 ac_cv_header_arpa_inet_h=$ac_header_preproc
24756 fi
24757 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24758 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24759
24760 fi
24761 if test $ac_cv_header_arpa_inet_h = yes; then
24762 :
24763 else
24764 ok_so_far=no
24765 fi
24766
24767
24768 fi
24769 if test $ok_so_far = yes; then
24770
24771 cat >>confdefs.h <<\_ACEOF
24772 #define HAVE_INET_SOCKETS 1
24773 _ACEOF
24774
24775 fi
24776
24777
24778 for ac_header in sys/ioctl.h
24779 do
24780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24783 $as_echo_n "checking for $ac_header... " >&6; }
24784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24785 $as_echo_n "(cached) " >&6
24786 fi
24787 ac_res=`eval 'as_val=${'$as_ac_Header'}
24788 $as_echo "$as_val"'`
24789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24790 $as_echo "$ac_res" >&6; }
24791 else
24792 # Is the header compilable?
24793 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24794 $as_echo_n "checking $ac_header usability... " >&6; }
24795 cat >conftest.$ac_ext <<_ACEOF
24796 /* confdefs.h. */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h. */
24801 $ac_includes_default
24802 #include <$ac_header>
24803 _ACEOF
24804 rm -f conftest.$ac_objext
24805 if { (ac_try="$ac_compile"
24806 case "(($ac_try" in
24807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24809 esac
24810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24811 $as_echo "$ac_try_echo") >&5
24812 (eval "$ac_compile") 2>conftest.er1
24813 ac_status=$?
24814 grep -v '^ *+' conftest.er1 >conftest.err
24815 rm -f conftest.er1
24816 cat conftest.err >&5
24817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } && {
24819 test -z "$ac_c_werror_flag" ||
24820 test ! -s conftest.err
24821 } && test -s conftest.$ac_objext; then
24822 ac_header_compiler=yes
24823 else
24824 $as_echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ac_header_compiler=no
24828 fi
24829
24830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24832 $as_echo "$ac_header_compiler" >&6; }
24833
24834 # Is the header present?
24835 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24836 $as_echo_n "checking $ac_header presence... " >&6; }
24837 cat >conftest.$ac_ext <<_ACEOF
24838 /* confdefs.h. */
24839 _ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 #include <$ac_header>
24844 _ACEOF
24845 if { (ac_try="$ac_cpp conftest.$ac_ext"
24846 case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24849 esac
24850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24851 $as_echo "$ac_try_echo") >&5
24852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24853 ac_status=$?
24854 grep -v '^ *+' conftest.er1 >conftest.err
24855 rm -f conftest.er1
24856 cat conftest.err >&5
24857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } >/dev/null && {
24859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24860 test ! -s conftest.err
24861 }; then
24862 ac_header_preproc=yes
24863 else
24864 $as_echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24866
24867 ac_header_preproc=no
24868 fi
24869
24870 rm -f conftest.err conftest.$ac_ext
24871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24872 $as_echo "$ac_header_preproc" >&6; }
24873
24874 # So? What about this header?
24875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24876 yes:no: )
24877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24878 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24881 ac_header_preproc=yes
24882 ;;
24883 no:yes:* )
24884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24885 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24887 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24889 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24891 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24895 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24896
24897 ;;
24898 esac
24899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24900 $as_echo_n "checking for $ac_header... " >&6; }
24901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24902 $as_echo_n "(cached) " >&6
24903 else
24904 eval "$as_ac_Header=\$ac_header_preproc"
24905 fi
24906 ac_res=`eval 'as_val=${'$as_ac_Header'}
24907 $as_echo "$as_val"'`
24908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24909 $as_echo "$ac_res" >&6; }
24910
24911 fi
24912 if test `eval 'as_val=${'$as_ac_Header'}
24913 $as_echo "$as_val"'` = yes; then
24914 cat >>confdefs.h <<_ACEOF
24915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24916 _ACEOF
24917
24918 fi
24919
24920 done
24921
24922
24923 if test -f /usr/lpp/X11/bin/smt.exp; then
24924
24925 cat >>confdefs.h <<\_ACEOF
24926 #define HAVE_AIX_SMT_EXP 1
24927 _ACEOF
24928
24929 fi
24930
24931 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24932 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24933 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24934 { $as_echo "$as_me:$LINENO: result: yes" >&5
24935 $as_echo "yes" >&6; }
24936
24937 cat >>confdefs.h <<\_ACEOF
24938 #define HAVE_DEV_PTMX 1
24939 _ACEOF
24940
24941 else
24942 { $as_echo "$as_me:$LINENO: result: no" >&5
24943 $as_echo "no" >&6; }
24944 fi
24945
24946 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24947 $as_echo_n "checking for pid_t... " >&6; }
24948 if test "${ac_cv_type_pid_t+set}" = set; then
24949 $as_echo_n "(cached) " >&6
24950 else
24951 ac_cv_type_pid_t=no
24952 cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h. */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24958 $ac_includes_default
24959 int
24960 main ()
24961 {
24962 if (sizeof (pid_t))
24963 return 0;
24964 ;
24965 return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24973 esac
24974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24975 $as_echo "$ac_try_echo") >&5
24976 (eval "$ac_compile") 2>conftest.er1
24977 ac_status=$?
24978 grep -v '^ *+' conftest.er1 >conftest.err
24979 rm -f conftest.er1
24980 cat conftest.err >&5
24981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } && {
24983 test -z "$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 } && test -s conftest.$ac_objext; then
24986 cat >conftest.$ac_ext <<_ACEOF
24987 /* confdefs.h. */
24988 _ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h. */
24992 $ac_includes_default
24993 int
24994 main ()
24995 {
24996 if (sizeof ((pid_t)))
24997 return 0;
24998 ;
24999 return 0;
25000 }
25001 _ACEOF
25002 rm -f conftest.$ac_objext
25003 if { (ac_try="$ac_compile"
25004 case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25007 esac
25008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25009 $as_echo "$ac_try_echo") >&5
25010 (eval "$ac_compile") 2>conftest.er1
25011 ac_status=$?
25012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
25015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } && {
25017 test -z "$ac_c_werror_flag" ||
25018 test ! -s conftest.err
25019 } && test -s conftest.$ac_objext; then
25020 :
25021 else
25022 $as_echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 ac_cv_type_pid_t=yes
25026 fi
25027
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 else
25030 $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033
25034 fi
25035
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25037 fi
25038 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25039 $as_echo "$ac_cv_type_pid_t" >&6; }
25040 if test $ac_cv_type_pid_t = yes; then
25041 :
25042 else
25043
25044 cat >>confdefs.h <<_ACEOF
25045 #define pid_t int
25046 _ACEOF
25047
25048 fi
25049
25050
25051 for ac_header in vfork.h
25052 do
25053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25056 $as_echo_n "checking for $ac_header... " >&6; }
25057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25058 $as_echo_n "(cached) " >&6
25059 fi
25060 ac_res=`eval 'as_val=${'$as_ac_Header'}
25061 $as_echo "$as_val"'`
25062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25063 $as_echo "$ac_res" >&6; }
25064 else
25065 # Is the header compilable?
25066 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25067 $as_echo_n "checking $ac_header usability... " >&6; }
25068 cat >conftest.$ac_ext <<_ACEOF
25069 /* confdefs.h. */
25070 _ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25074 $ac_includes_default
25075 #include <$ac_header>
25076 _ACEOF
25077 rm -f conftest.$ac_objext
25078 if { (ac_try="$ac_compile"
25079 case "(($ac_try" in
25080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25081 *) ac_try_echo=$ac_try;;
25082 esac
25083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25084 $as_echo "$ac_try_echo") >&5
25085 (eval "$ac_compile") 2>conftest.er1
25086 ac_status=$?
25087 grep -v '^ *+' conftest.er1 >conftest.err
25088 rm -f conftest.er1
25089 cat conftest.err >&5
25090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } && {
25092 test -z "$ac_c_werror_flag" ||
25093 test ! -s conftest.err
25094 } && test -s conftest.$ac_objext; then
25095 ac_header_compiler=yes
25096 else
25097 $as_echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100 ac_header_compiler=no
25101 fi
25102
25103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25105 $as_echo "$ac_header_compiler" >&6; }
25106
25107 # Is the header present?
25108 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25109 $as_echo_n "checking $ac_header presence... " >&6; }
25110 cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h. */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 #include <$ac_header>
25117 _ACEOF
25118 if { (ac_try="$ac_cpp conftest.$ac_ext"
25119 case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122 esac
25123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25124 $as_echo "$ac_try_echo") >&5
25125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } >/dev/null && {
25132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 }; then
25135 ac_header_preproc=yes
25136 else
25137 $as_echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ac_header_preproc=no
25141 fi
25142
25143 rm -f conftest.err conftest.$ac_ext
25144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25145 $as_echo "$ac_header_preproc" >&6; }
25146
25147 # So? What about this header?
25148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25149 yes:no: )
25150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25151 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25154 ac_header_preproc=yes
25155 ;;
25156 no:yes:* )
25157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25158 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25160 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25162 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25164 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25168 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25169
25170 ;;
25171 esac
25172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25173 $as_echo_n "checking for $ac_header... " >&6; }
25174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25175 $as_echo_n "(cached) " >&6
25176 else
25177 eval "$as_ac_Header=\$ac_header_preproc"
25178 fi
25179 ac_res=`eval 'as_val=${'$as_ac_Header'}
25180 $as_echo "$as_val"'`
25181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25182 $as_echo "$ac_res" >&6; }
25183
25184 fi
25185 if test `eval 'as_val=${'$as_ac_Header'}
25186 $as_echo "$as_val"'` = yes; then
25187 cat >>confdefs.h <<_ACEOF
25188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25189 _ACEOF
25190
25191 fi
25192
25193 done
25194
25195
25196
25197 for ac_func in fork vfork
25198 do
25199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25200 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25201 $as_echo_n "checking for $ac_func... " >&6; }
25202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25203 $as_echo_n "(cached) " >&6
25204 else
25205 cat >conftest.$ac_ext <<_ACEOF
25206 /* confdefs.h. */
25207 _ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h. */
25211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25213 #define $ac_func innocuous_$ac_func
25214
25215 /* System header to define __stub macros and hopefully few prototypes,
25216 which can conflict with char $ac_func (); below.
25217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25218 <limits.h> exists even on freestanding compilers. */
25219
25220 #ifdef __STDC__
25221 # include <limits.h>
25222 #else
25223 # include <assert.h>
25224 #endif
25225
25226 #undef $ac_func
25227
25228 /* Override any GCC internal prototype to avoid an error.
25229 Use char because int might match the return type of a GCC
25230 builtin and then its argument prototype would still apply. */
25231 #ifdef __cplusplus
25232 extern "C"
25233 #endif
25234 char $ac_func ();
25235 /* The GNU C library defines this for functions which it implements
25236 to always fail with ENOSYS. Some functions are actually named
25237 something starting with __ and the normal name is an alias. */
25238 #if defined __stub_$ac_func || defined __stub___$ac_func
25239 choke me
25240 #endif
25241
25242 int
25243 main ()
25244 {
25245 return $ac_func ();
25246 ;
25247 return 0;
25248 }
25249 _ACEOF
25250 rm -f conftest.$ac_objext conftest$ac_exeext
25251 if { (ac_try="$ac_link"
25252 case "(($ac_try" in
25253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25255 esac
25256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25257 $as_echo "$ac_try_echo") >&5
25258 (eval "$ac_link") 2>conftest.er1
25259 ac_status=$?
25260 grep -v '^ *+' conftest.er1 >conftest.err
25261 rm -f conftest.er1
25262 cat conftest.err >&5
25263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); } && {
25265 test -z "$ac_c_werror_flag" ||
25266 test ! -s conftest.err
25267 } && test -s conftest$ac_exeext && {
25268 test "$cross_compiling" = yes ||
25269 $as_test_x conftest$ac_exeext
25270 }; then
25271 eval "$as_ac_var=yes"
25272 else
25273 $as_echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25275
25276 eval "$as_ac_var=no"
25277 fi
25278
25279 rm -rf conftest.dSYM
25280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25281 conftest$ac_exeext conftest.$ac_ext
25282 fi
25283 ac_res=`eval 'as_val=${'$as_ac_var'}
25284 $as_echo "$as_val"'`
25285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25286 $as_echo "$ac_res" >&6; }
25287 if test `eval 'as_val=${'$as_ac_var'}
25288 $as_echo "$as_val"'` = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25291 _ACEOF
25292
25293 fi
25294 done
25295
25296 if test "x$ac_cv_func_fork" = xyes; then
25297 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25298 $as_echo_n "checking for working fork... " >&6; }
25299 if test "${ac_cv_func_fork_works+set}" = set; then
25300 $as_echo_n "(cached) " >&6
25301 else
25302 if test "$cross_compiling" = yes; then
25303 ac_cv_func_fork_works=cross
25304 else
25305 cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h. */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 $ac_includes_default
25312 int
25313 main ()
25314 {
25315
25316 /* By Ruediger Kuhlmann. */
25317 return fork () < 0;
25318
25319 ;
25320 return 0;
25321 }
25322 _ACEOF
25323 rm -f conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327 *) ac_try_echo=$ac_try;;
25328 esac
25329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25330 $as_echo "$ac_try_echo") >&5
25331 (eval "$ac_link") 2>&5
25332 ac_status=$?
25333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25335 { (case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25338 esac
25339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25340 $as_echo "$ac_try_echo") >&5
25341 (eval "$ac_try") 2>&5
25342 ac_status=$?
25343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
25345 ac_cv_func_fork_works=yes
25346 else
25347 $as_echo "$as_me: program exited with status $ac_status" >&5
25348 $as_echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25350
25351 ( exit $ac_status )
25352 ac_cv_func_fork_works=no
25353 fi
25354 rm -rf conftest.dSYM
25355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25356 fi
25357
25358
25359 fi
25360 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25361 $as_echo "$ac_cv_func_fork_works" >&6; }
25362
25363 else
25364 ac_cv_func_fork_works=$ac_cv_func_fork
25365 fi
25366 if test "x$ac_cv_func_fork_works" = xcross; then
25367 case $host in
25368 *-*-amigaos* | *-*-msdosdjgpp*)
25369 # Override, as these systems have only a dummy fork() stub
25370 ac_cv_func_fork_works=no
25371 ;;
25372 *)
25373 ac_cv_func_fork_works=yes
25374 ;;
25375 esac
25376 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25377 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25378 fi
25379 ac_cv_func_vfork_works=$ac_cv_func_vfork
25380 if test "x$ac_cv_func_vfork" = xyes; then
25381 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25382 $as_echo_n "checking for working vfork... " >&6; }
25383 if test "${ac_cv_func_vfork_works+set}" = set; then
25384 $as_echo_n "(cached) " >&6
25385 else
25386 if test "$cross_compiling" = yes; then
25387 ac_cv_func_vfork_works=cross
25388 else
25389 cat >conftest.$ac_ext <<_ACEOF
25390 /* confdefs.h. */
25391 _ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h. */
25395 /* Thanks to Paul Eggert for this test. */
25396 $ac_includes_default
25397 #include <sys/wait.h>
25398 #ifdef HAVE_VFORK_H
25399 # include <vfork.h>
25400 #endif
25401 /* On some sparc systems, changes by the child to local and incoming
25402 argument registers are propagated back to the parent. The compiler
25403 is told about this with #include <vfork.h>, but some compilers
25404 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25405 static variable whose address is put into a register that is
25406 clobbered by the vfork. */
25407 static void
25408 #ifdef __cplusplus
25409 sparc_address_test (int arg)
25410 # else
25411 sparc_address_test (arg) int arg;
25412 #endif
25413 {
25414 static pid_t child;
25415 if (!child) {
25416 child = vfork ();
25417 if (child < 0) {
25418 perror ("vfork");
25419 _exit(2);
25420 }
25421 if (!child) {
25422 arg = getpid();
25423 write(-1, "", 0);
25424 _exit (arg);
25425 }
25426 }
25427 }
25428
25429 int
25430 main ()
25431 {
25432 pid_t parent = getpid ();
25433 pid_t child;
25434
25435 sparc_address_test (0);
25436
25437 child = vfork ();
25438
25439 if (child == 0) {
25440 /* Here is another test for sparc vfork register problems. This
25441 test uses lots of local variables, at least as many local
25442 variables as main has allocated so far including compiler
25443 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25444 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25445 reuse the register of parent for one of the local variables,
25446 since it will think that parent can't possibly be used any more
25447 in this routine. Assigning to the local variable will thus
25448 munge parent in the parent process. */
25449 pid_t
25450 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25451 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25452 /* Convince the compiler that p..p7 are live; otherwise, it might
25453 use the same hardware register for all 8 local variables. */
25454 if (p != p1 || p != p2 || p != p3 || p != p4
25455 || p != p5 || p != p6 || p != p7)
25456 _exit(1);
25457
25458 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25459 from child file descriptors. If the child closes a descriptor
25460 before it execs or exits, this munges the parent's descriptor
25461 as well. Test for this by closing stdout in the child. */
25462 _exit(close(fileno(stdout)) != 0);
25463 } else {
25464 int status;
25465 struct stat st;
25466
25467 while (wait(&status) != child)
25468 ;
25469 return (
25470 /* Was there some problem with vforking? */
25471 child < 0
25472
25473 /* Did the child fail? (This shouldn't happen.) */
25474 || status
25475
25476 /* Did the vfork/compiler bug occur? */
25477 || parent != getpid()
25478
25479 /* Did the file descriptor bug occur? */
25480 || fstat(fileno(stdout), &st) != 0
25481 );
25482 }
25483 }
25484 _ACEOF
25485 rm -f conftest$ac_exeext
25486 if { (ac_try="$ac_link"
25487 case "(($ac_try" in
25488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489 *) ac_try_echo=$ac_try;;
25490 esac
25491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25492 $as_echo "$ac_try_echo") >&5
25493 (eval "$ac_link") 2>&5
25494 ac_status=$?
25495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25497 { (case "(($ac_try" in
25498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499 *) ac_try_echo=$ac_try;;
25500 esac
25501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25502 $as_echo "$ac_try_echo") >&5
25503 (eval "$ac_try") 2>&5
25504 ac_status=$?
25505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; }; then
25507 ac_cv_func_vfork_works=yes
25508 else
25509 $as_echo "$as_me: program exited with status $ac_status" >&5
25510 $as_echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25512
25513 ( exit $ac_status )
25514 ac_cv_func_vfork_works=no
25515 fi
25516 rm -rf conftest.dSYM
25517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25518 fi
25519
25520
25521 fi
25522 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25523 $as_echo "$ac_cv_func_vfork_works" >&6; }
25524
25525 fi;
25526 if test "x$ac_cv_func_fork_works" = xcross; then
25527 ac_cv_func_vfork_works=$ac_cv_func_vfork
25528 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25529 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25530 fi
25531
25532 if test "x$ac_cv_func_vfork_works" = xyes; then
25533
25534 cat >>confdefs.h <<\_ACEOF
25535 #define HAVE_WORKING_VFORK 1
25536 _ACEOF
25537
25538 else
25539
25540 cat >>confdefs.h <<\_ACEOF
25541 #define vfork fork
25542 _ACEOF
25543
25544 fi
25545 if test "x$ac_cv_func_fork_works" = xyes; then
25546
25547 cat >>confdefs.h <<\_ACEOF
25548 #define HAVE_WORKING_FORK 1
25549 _ACEOF
25550
25551 fi
25552
25553
25554 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25555 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25556 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25557 $as_echo_n "(cached) " >&6
25558 else
25559 cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h. */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 #include <langinfo.h>
25566 int
25567 main ()
25568 {
25569 char* cs = nl_langinfo(CODESET);
25570 ;
25571 return 0;
25572 }
25573 _ACEOF
25574 rm -f conftest.$ac_objext conftest$ac_exeext
25575 if { (ac_try="$ac_link"
25576 case "(($ac_try" in
25577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578 *) ac_try_echo=$ac_try;;
25579 esac
25580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25581 $as_echo "$ac_try_echo") >&5
25582 (eval "$ac_link") 2>conftest.er1
25583 ac_status=$?
25584 grep -v '^ *+' conftest.er1 >conftest.err
25585 rm -f conftest.er1
25586 cat conftest.err >&5
25587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } && {
25589 test -z "$ac_c_werror_flag" ||
25590 test ! -s conftest.err
25591 } && test -s conftest$ac_exeext && {
25592 test "$cross_compiling" = yes ||
25593 $as_test_x conftest$ac_exeext
25594 }; then
25595 emacs_cv_langinfo_codeset=yes
25596 else
25597 $as_echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600 emacs_cv_langinfo_codeset=no
25601 fi
25602
25603 rm -rf conftest.dSYM
25604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25605 conftest$ac_exeext conftest.$ac_ext
25606
25607 fi
25608 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25609 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25610 if test $emacs_cv_langinfo_codeset = yes; then
25611
25612 cat >>confdefs.h <<\_ACEOF
25613 #define HAVE_LANGINFO_CODESET 1
25614 _ACEOF
25615
25616 fi
25617
25618 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25619 $as_echo_n "checking for size_t... " >&6; }
25620 if test "${ac_cv_type_size_t+set}" = set; then
25621 $as_echo_n "(cached) " >&6
25622 else
25623 ac_cv_type_size_t=no
25624 cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h. */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25630 $ac_includes_default
25631 int
25632 main ()
25633 {
25634 if (sizeof (size_t))
25635 return 0;
25636 ;
25637 return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest.$ac_objext
25641 if { (ac_try="$ac_compile"
25642 case "(($ac_try" in
25643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644 *) ac_try_echo=$ac_try;;
25645 esac
25646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25647 $as_echo "$ac_try_echo") >&5
25648 (eval "$ac_compile") 2>conftest.er1
25649 ac_status=$?
25650 grep -v '^ *+' conftest.er1 >conftest.err
25651 rm -f conftest.er1
25652 cat conftest.err >&5
25653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } && {
25655 test -z "$ac_c_werror_flag" ||
25656 test ! -s conftest.err
25657 } && test -s conftest.$ac_objext; then
25658 cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h. */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 $ac_includes_default
25665 int
25666 main ()
25667 {
25668 if (sizeof ((size_t)))
25669 return 0;
25670 ;
25671 return 0;
25672 }
25673 _ACEOF
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25679 esac
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25683 ac_status=$?
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.$ac_objext; then
25692 :
25693 else
25694 $as_echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25696
25697 ac_cv_type_size_t=yes
25698 fi
25699
25700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25701 else
25702 $as_echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25704
25705
25706 fi
25707
25708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 fi
25710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25711 $as_echo "$ac_cv_type_size_t" >&6; }
25712 if test $ac_cv_type_size_t = yes; then
25713
25714 cat >>confdefs.h <<_ACEOF
25715 #define HAVE_SIZE_T 1
25716 _ACEOF
25717
25718
25719 fi
25720
25721
25722 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25723 $as_echo_n "checking for mbstate_t... " >&6; }
25724 if test "${ac_cv_type_mbstate_t+set}" = set; then
25725 $as_echo_n "(cached) " >&6
25726 else
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h. */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733 $ac_includes_default
25734 # include <wchar.h>
25735 int
25736 main ()
25737 {
25738 mbstate_t x; return sizeof x;
25739 ;
25740 return 0;
25741 }
25742 _ACEOF
25743 rm -f conftest.$ac_objext
25744 if { (ac_try="$ac_compile"
25745 case "(($ac_try" in
25746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25747 *) ac_try_echo=$ac_try;;
25748 esac
25749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25750 $as_echo "$ac_try_echo") >&5
25751 (eval "$ac_compile") 2>conftest.er1
25752 ac_status=$?
25753 grep -v '^ *+' conftest.er1 >conftest.err
25754 rm -f conftest.er1
25755 cat conftest.err >&5
25756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } && {
25758 test -z "$ac_c_werror_flag" ||
25759 test ! -s conftest.err
25760 } && test -s conftest.$ac_objext; then
25761 ac_cv_type_mbstate_t=yes
25762 else
25763 $as_echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25765
25766 ac_cv_type_mbstate_t=no
25767 fi
25768
25769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25770 fi
25771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25772 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25773 if test $ac_cv_type_mbstate_t = yes; then
25774
25775 cat >>confdefs.h <<\_ACEOF
25776 #define HAVE_MBSTATE_T 1
25777 _ACEOF
25778
25779 else
25780
25781 cat >>confdefs.h <<\_ACEOF
25782 #define mbstate_t int
25783 _ACEOF
25784
25785 fi
25786
25787 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25788 $as_echo_n "checking for C restrict keyword... " >&6; }
25789 if test "${emacs_cv_c_restrict+set}" = set; then
25790 $as_echo_n "(cached) " >&6
25791 else
25792 cat >conftest.$ac_ext <<_ACEOF
25793 /* confdefs.h. */
25794 _ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h. */
25798 void fred (int *restrict x);
25799 int
25800 main ()
25801 {
25802
25803 ;
25804 return 0;
25805 }
25806 _ACEOF
25807 rm -f conftest.$ac_objext
25808 if { (ac_try="$ac_compile"
25809 case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25812 esac
25813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25814 $as_echo "$ac_try_echo") >&5
25815 (eval "$ac_compile") 2>conftest.er1
25816 ac_status=$?
25817 grep -v '^ *+' conftest.er1 >conftest.err
25818 rm -f conftest.er1
25819 cat conftest.err >&5
25820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } && {
25822 test -z "$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25824 } && test -s conftest.$ac_objext; then
25825 emacs_cv_c_restrict=yes
25826 else
25827 $as_echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25829
25830 cat >conftest.$ac_ext <<_ACEOF
25831 /* confdefs.h. */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 void fred (int *__restrict x);
25837 int
25838 main ()
25839 {
25840
25841 ;
25842 return 0;
25843 }
25844 _ACEOF
25845 rm -f conftest.$ac_objext
25846 if { (ac_try="$ac_compile"
25847 case "(($ac_try" in
25848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25849 *) ac_try_echo=$ac_try;;
25850 esac
25851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25852 $as_echo "$ac_try_echo") >&5
25853 (eval "$ac_compile") 2>conftest.er1
25854 ac_status=$?
25855 grep -v '^ *+' conftest.er1 >conftest.err
25856 rm -f conftest.er1
25857 cat conftest.err >&5
25858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } && {
25860 test -z "$ac_c_werror_flag" ||
25861 test ! -s conftest.err
25862 } && test -s conftest.$ac_objext; then
25863 emacs_cv_c_restrict=__restrict
25864 else
25865 $as_echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868 emacs_cv_c_restrict=no
25869 fi
25870
25871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872 fi
25873
25874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25875 fi
25876 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25877 $as_echo "$emacs_cv_c_restrict" >&6; }
25878 case "$emacs_cv_c_restrict" in
25879 yes) emacs_restrict=restrict;;
25880 no) emacs_restrict="";;
25881 *) emacs_restrict="$emacs_cv_c_restrict";;
25882 esac
25883 if test "$emacs_restrict" != __restrict; then
25884
25885 cat >>confdefs.h <<_ACEOF
25886 #define __restrict $emacs_restrict
25887 _ACEOF
25888
25889 fi
25890
25891 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25892 $as_echo_n "checking for C restricted array declarations... " >&6; }
25893 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25894 $as_echo_n "(cached) " >&6
25895 else
25896 cat >conftest.$ac_ext <<_ACEOF
25897 /* confdefs.h. */
25898 _ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h. */
25902 void fred (int x[__restrict]);
25903 int
25904 main ()
25905 {
25906
25907 ;
25908 return 0;
25909 }
25910 _ACEOF
25911 rm -f conftest.$ac_objext
25912 if { (ac_try="$ac_compile"
25913 case "(($ac_try" in
25914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25915 *) ac_try_echo=$ac_try;;
25916 esac
25917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25918 $as_echo "$ac_try_echo") >&5
25919 (eval "$ac_compile") 2>conftest.er1
25920 ac_status=$?
25921 grep -v '^ *+' conftest.er1 >conftest.err
25922 rm -f conftest.er1
25923 cat conftest.err >&5
25924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } && {
25926 test -z "$ac_c_werror_flag" ||
25927 test ! -s conftest.err
25928 } && test -s conftest.$ac_objext; then
25929 emacs_cv_c_restrict_arr=yes
25930 else
25931 $as_echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 emacs_cv_c_restrict_arr=no
25935 fi
25936
25937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25938 fi
25939 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25940 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25941 if test "$emacs_cv_c_restrict_arr" = yes; then
25942
25943 cat >>confdefs.h <<\_ACEOF
25944 #define __restrict_arr __restrict
25945 _ACEOF
25946
25947 fi
25948
25949
25950
25951 # Set up the CFLAGS for real compilation, so we can substitute it.
25952 CFLAGS="$REAL_CFLAGS"
25953 CPPFLAGS="$REAL_CPPFLAGS"
25954
25955 #### Find out which version of Emacs this is.
25956 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25957 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25958 if test x"${version}" = x; then
25959 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25960 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25961 { (exit 1); exit 1; }; }
25962 fi
25963 if test x"${version}" != x"$PACKAGE_VERSION"; then
25964 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25965 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25966 fi
25967
25968 ### Specify what sort of things we'll be editing into Makefile and config.h.
25969 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000 ## Used in lwlib/Makefile.in.
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017 cat >>confdefs.h <<_ACEOF
26018 #define EMACS_CONFIGURATION "${canonical}"
26019 _ACEOF
26020
26021
26022 cat >>confdefs.h <<_ACEOF
26023 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26024 _ACEOF
26025
26026
26027 cat >>confdefs.h <<_ACEOF
26028 #define config_machfile "${machfile}"
26029 _ACEOF
26030
26031
26032 cat >>confdefs.h <<_ACEOF
26033 #define config_opsysfile "${opsysfile}"
26034 _ACEOF
26035
26036
26037 cat >>confdefs.h <<_ACEOF
26038 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26039 _ACEOF
26040
26041
26042 cat >>confdefs.h <<_ACEOF
26043 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
26044 _ACEOF
26045
26046
26047 cat >>confdefs.h <<_ACEOF
26048 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26049 _ACEOF
26050
26051
26052 XMENU_OBJ=
26053 XOBJ=
26054 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26055
26056 cat >>confdefs.h <<\_ACEOF
26057 #define HAVE_X_WINDOWS 1
26058 _ACEOF
26059
26060 XMENU_OBJ=xmenu.o
26061 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26062 fi
26063
26064
26065
26066 WIDGET_OBJ=
26067 MOTIF_LIBW=
26068 if test "${USE_X_TOOLKIT}" != "none" ; then
26069 WIDGET_OBJ=widget.o
26070
26071 cat >>confdefs.h <<\_ACEOF
26072 #define USE_X_TOOLKIT 1
26073 _ACEOF
26074
26075 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26076
26077 cat >>confdefs.h <<\_ACEOF
26078 #define USE_LUCID 1
26079 _ACEOF
26080
26081 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26082
26083 cat >>confdefs.h <<\_ACEOF
26084 #define USE_MOTIF 1
26085 _ACEOF
26086
26087 MOTIF_LIBW=-lXm
26088 case "$opsys" in
26089 gnu-linux)
26090 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26091 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26092 ;;
26093
26094 unixware)
26095 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26096 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26097 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26098 ;;
26099
26100 aix4-2)
26101 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26102 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26103 ;;
26104 esac
26105 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26106 fi
26107 fi
26108
26109
26110 TOOLKIT_LIBW=
26111 case "$USE_X_TOOLKIT" in
26112 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26113 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26114 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26115 esac
26116
26117
26118 ## The X Menu stuff is present in the X10 distribution, but missing
26119 ## from X11. If we have X10, just use the installed library;
26120 ## otherwise, use our own copy.
26121 if test "${HAVE_X11}" = "yes" ; then
26122
26123 cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_X11 1
26125 _ACEOF
26126
26127
26128 if test "$USE_X_TOOLKIT" = "none"; then
26129 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26130 else
26131 OLDXMENU="\${lwlibdir}liblw.a"
26132 fi
26133 LIBXMENU="\$(OLDXMENU)"
26134 else
26135 OLDXMENU=
26136 LIBXMENU="-lXMenu"
26137 fi
26138
26139 if test "$HAVE_GTK" = "yes"; then
26140 OLDXMENU=
26141 LIBXMENU=
26142 fi
26143
26144
26145
26146
26147 if test "${HAVE_MENUS}" = "yes" ; then
26148
26149 cat >>confdefs.h <<\_ACEOF
26150 #define HAVE_MENUS 1
26151 _ACEOF
26152
26153 fi
26154 if test "${GNU_MALLOC}" = "yes" ; then
26155
26156 cat >>confdefs.h <<\_ACEOF
26157 #define GNU_MALLOC 1
26158 _ACEOF
26159
26160 fi
26161 if test "${REL_ALLOC}" = "yes" ; then
26162
26163 cat >>confdefs.h <<\_ACEOF
26164 #define REL_ALLOC 1
26165 _ACEOF
26166
26167 fi
26168
26169
26170 if test "$opsys" = "cygwin"; then
26171 CYGWIN_OBJ="sheap.o"
26172 ## Cygwin differs because of its unexec().
26173 PRE_ALLOC_OBJ=
26174 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26175 else
26176 CYGWIN_OBJ=
26177 PRE_ALLOC_OBJ=lastfile.o
26178 POST_ALLOC_OBJ="\$(vmlimitobj)"
26179 fi
26180
26181
26182
26183
26184
26185
26186
26187
26188 #### Report on what we decided to do.
26189 #### Report GTK as a toolkit, even if it doesn't use Xt.
26190 #### It makes printing result more understandable as using GTK sets
26191 #### toolkit_scroll_bars to yes by default.
26192 if test "${HAVE_GTK}" = "yes"; then
26193 USE_X_TOOLKIT=GTK
26194 fi
26195
26196 echo "
26197 Configured for \`${canonical}'.
26198
26199 Where should the build process find the source code? ${srcdir}
26200 What operating system and machine description files should Emacs use?
26201 \`${opsysfile}' and \`${machfile}'
26202 What compiler should emacs be built with? ${CC} ${CFLAGS}
26203 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26204 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26205 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26206 What window system should Emacs use? ${window_system}
26207 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26208
26209 if test -n "${x_includes}"; then
26210 echo " Where do we find X Windows header files? ${x_includes}"
26211 else
26212 echo " Where do we find X Windows header files? Standard dirs"
26213 fi
26214 if test -n "${x_libraries}"; then
26215 echo " Where do we find X Windows libraries? ${x_libraries}"
26216 else
26217 echo " Where do we find X Windows libraries? Standard dirs"
26218 fi
26219
26220 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26221 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26222 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26223 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26224 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26225 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26226 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26227 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26228 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26229 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26230 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26231
26232 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26233 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26234 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26235 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26236
26237 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26238 echo
26239
26240 if test $USE_XASSERTS = yes; then
26241 echo " Compiling with asserts turned on."
26242 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26243 fi
26244
26245 echo
26246
26247 if test "$HAVE_NS" = "yes"; then
26248 echo
26249 echo "You must run \"make install\" in order to test the built application.
26250 The installed application will go to nextstep/Emacs.app and can be
26251 run or moved from there."
26252 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26253 echo "The application will be fully self-contained."
26254 else
26255 echo "The lisp resources for the application will be installed under ${prefix}.
26256 You may need to run \"make install\" with sudo. The application will fail
26257 to run if these resources are not installed."
26258 fi
26259 echo
26260 fi
26261
26262 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26263 echo "D-Bus integration has been tested for GNU/Linux only."
26264 echo
26265 fi
26266
26267
26268 # Remove any trailing slashes in these variables.
26269 test "${prefix}" != NONE &&
26270 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26271 test "${exec_prefix}" != NONE &&
26272 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26273
26274 # Now get this: Some word that is part of the ${srcdir} directory name
26275 # or the ${configuration} value might, just might, happen to be an
26276 # identifier like `sun4' or `i386' or something, and be predefined by
26277 # the C preprocessor to some helpful value like 1, or maybe the empty
26278 # string. Needless to say consequent macro substitutions are less
26279 # than conducive to the makefile finding the correct directory.
26280 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26281 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26282 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26283
26284 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26285 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26286 ## from Makefile.c can correctly provide the arg `-traditional' to the
26287 ## C preprocessor.
26288
26289 cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h. */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 yes..yes
26296 _ACEOF
26297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26298 $EGREP "yes..yes" >/dev/null 2>&1; then
26299 CPP_NEED_TRADITIONAL=no
26300 else
26301 CPP_NEED_TRADITIONAL=yes
26302 fi
26303 rm -f conftest*
26304
26305
26306 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26307
26308 ac_config_commands="$ac_config_commands default"
26309
26310 cat >confcache <<\_ACEOF
26311 # This file is a shell script that caches the results of configure
26312 # tests run on this system so they can be shared between configure
26313 # scripts and configure runs, see configure's option --config-cache.
26314 # It is not useful on other systems. If it contains results you don't
26315 # want to keep, you may remove or edit it.
26316 #
26317 # config.status only pays attention to the cache file if you give it
26318 # the --recheck option to rerun configure.
26319 #
26320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26322 # following values.
26323
26324 _ACEOF
26325
26326 # The following way of writing the cache mishandles newlines in values,
26327 # but we know of no workaround that is simple, portable, and efficient.
26328 # So, we kill variables containing newlines.
26329 # Ultrix sh set writes to stderr and can't be redirected directly,
26330 # and sets the high bit in the cache file unless we assign to the vars.
26331 (
26332 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26333 eval ac_val=\$$ac_var
26334 case $ac_val in #(
26335 *${as_nl}*)
26336 case $ac_var in #(
26337 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26338 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26339 esac
26340 case $ac_var in #(
26341 _ | IFS | as_nl) ;; #(
26342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26343 *) $as_unset $ac_var ;;
26344 esac ;;
26345 esac
26346 done
26347
26348 (set) 2>&1 |
26349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26350 *${as_nl}ac_space=\ *)
26351 # `set' does not quote correctly, so add quotes (double-quote
26352 # substitution turns \\\\ into \\, and sed turns \\ into \).
26353 sed -n \
26354 "s/'/'\\\\''/g;
26355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26356 ;; #(
26357 *)
26358 # `set' quotes correctly as required by POSIX, so do not add quotes.
26359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26360 ;;
26361 esac |
26362 sort
26363 ) |
26364 sed '
26365 /^ac_cv_env_/b end
26366 t clear
26367 :clear
26368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26369 t end
26370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26371 :end' >>confcache
26372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26373 if test -w "$cache_file"; then
26374 test "x$cache_file" != "x/dev/null" &&
26375 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26376 $as_echo "$as_me: updating cache $cache_file" >&6;}
26377 cat confcache >$cache_file
26378 else
26379 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26380 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26381 fi
26382 fi
26383 rm -f confcache
26384
26385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26386 # Let make expand exec_prefix.
26387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26388
26389 DEFS=-DHAVE_CONFIG_H
26390
26391 ac_libobjs=
26392 ac_ltlibobjs=
26393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26394 # 1. Remove the extension, and $U if already installed.
26395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26396 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26398 # will be set to the directory where LIBOBJS objects are built.
26399 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26400 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26401 done
26402 LIBOBJS=$ac_libobjs
26403
26404 LTLIBOBJS=$ac_ltlibobjs
26405
26406
26407
26408 : ${CONFIG_STATUS=./config.status}
26409 ac_write_fail=0
26410 ac_clean_files_save=$ac_clean_files
26411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26412 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26414 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26415 #! $SHELL
26416 # Generated by $as_me.
26417 # Run this file to recreate the current configuration.
26418 # Compiler output produced by configure, useful for debugging
26419 # configure, is in config.log if it exists.
26420
26421 debug=false
26422 ac_cs_recheck=false
26423 ac_cs_silent=false
26424 SHELL=\${CONFIG_SHELL-$SHELL}
26425 _ACEOF
26426
26427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26428 ## --------------------- ##
26429 ## M4sh Initialization. ##
26430 ## --------------------- ##
26431
26432 # Be more Bourne compatible
26433 DUALCASE=1; export DUALCASE # for MKS sh
26434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26435 emulate sh
26436 NULLCMD=:
26437 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26438 # is contrary to our usage. Disable this feature.
26439 alias -g '${1+"$@"}'='"$@"'
26440 setopt NO_GLOB_SUBST
26441 else
26442 case `(set -o) 2>/dev/null` in
26443 *posix*) set -o posix ;;
26444 esac
26445
26446 fi
26447
26448
26449
26450
26451 # PATH needs CR
26452 # Avoid depending upon Character Ranges.
26453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26456 as_cr_digits='0123456789'
26457 as_cr_alnum=$as_cr_Letters$as_cr_digits
26458
26459 as_nl='
26460 '
26461 export as_nl
26462 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26463 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26466 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26467 as_echo='printf %s\n'
26468 as_echo_n='printf %s'
26469 else
26470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26472 as_echo_n='/usr/ucb/echo -n'
26473 else
26474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26475 as_echo_n_body='eval
26476 arg=$1;
26477 case $arg in
26478 *"$as_nl"*)
26479 expr "X$arg" : "X\\(.*\\)$as_nl";
26480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26481 esac;
26482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26483 '
26484 export as_echo_n_body
26485 as_echo_n='sh -c $as_echo_n_body as_echo'
26486 fi
26487 export as_echo_body
26488 as_echo='sh -c $as_echo_body as_echo'
26489 fi
26490
26491 # The user is always right.
26492 if test "${PATH_SEPARATOR+set}" != set; then
26493 PATH_SEPARATOR=:
26494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26496 PATH_SEPARATOR=';'
26497 }
26498 fi
26499
26500 # Support unset when possible.
26501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26502 as_unset=unset
26503 else
26504 as_unset=false
26505 fi
26506
26507
26508 # IFS
26509 # We need space, tab and new line, in precisely that order. Quoting is
26510 # there to prevent editors from complaining about space-tab.
26511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26512 # splitting by setting IFS to empty value.)
26513 IFS=" "" $as_nl"
26514
26515 # Find who we are. Look in the path if we contain no directory separator.
26516 case $0 in
26517 *[\\/]* ) as_myself=$0 ;;
26518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26519 for as_dir in $PATH
26520 do
26521 IFS=$as_save_IFS
26522 test -z "$as_dir" && as_dir=.
26523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26524 done
26525 IFS=$as_save_IFS
26526
26527 ;;
26528 esac
26529 # We did not find ourselves, most probably we were run as `sh COMMAND'
26530 # in which case we are not to be found in the path.
26531 if test "x$as_myself" = x; then
26532 as_myself=$0
26533 fi
26534 if test ! -f "$as_myself"; then
26535 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26536 { (exit 1); exit 1; }
26537 fi
26538
26539 # Work around bugs in pre-3.0 UWIN ksh.
26540 for as_var in ENV MAIL MAILPATH
26541 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26542 done
26543 PS1='$ '
26544 PS2='> '
26545 PS4='+ '
26546
26547 # NLS nuisances.
26548 LC_ALL=C
26549 export LC_ALL
26550 LANGUAGE=C
26551 export LANGUAGE
26552
26553 # Required to use basename.
26554 if expr a : '\(a\)' >/dev/null 2>&1 &&
26555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26556 as_expr=expr
26557 else
26558 as_expr=false
26559 fi
26560
26561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26562 as_basename=basename
26563 else
26564 as_basename=false
26565 fi
26566
26567
26568 # Name of the executable.
26569 as_me=`$as_basename -- "$0" ||
26570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26571 X"$0" : 'X\(//\)$' \| \
26572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26573 $as_echo X/"$0" |
26574 sed '/^.*\/\([^/][^/]*\)\/*$/{
26575 s//\1/
26576 q
26577 }
26578 /^X\/\(\/\/\)$/{
26579 s//\1/
26580 q
26581 }
26582 /^X\/\(\/\).*/{
26583 s//\1/
26584 q
26585 }
26586 s/.*/./; q'`
26587
26588 # CDPATH.
26589 $as_unset CDPATH
26590
26591
26592
26593 as_lineno_1=$LINENO
26594 as_lineno_2=$LINENO
26595 test "x$as_lineno_1" != "x$as_lineno_2" &&
26596 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26597
26598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26599 # uniformly replaced by the line number. The first 'sed' inserts a
26600 # line-number line after each line using $LINENO; the second 'sed'
26601 # does the real work. The second script uses 'N' to pair each
26602 # line-number line with the line containing $LINENO, and appends
26603 # trailing '-' during substitution so that $LINENO is not a special
26604 # case at line end.
26605 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26606 # scripts with optimization help from Paolo Bonzini. Blame Lee
26607 # E. McMahon (1931-1989) for sed's syntax. :-)
26608 sed -n '
26609 p
26610 /[$]LINENO/=
26611 ' <$as_myself |
26612 sed '
26613 s/[$]LINENO.*/&-/
26614 t lineno
26615 b
26616 :lineno
26617 N
26618 :loop
26619 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26620 t loop
26621 s/-\n.*//
26622 ' >$as_me.lineno &&
26623 chmod +x "$as_me.lineno" ||
26624 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26625 { (exit 1); exit 1; }; }
26626
26627 # Don't try to exec as it changes $[0], causing all sort of problems
26628 # (the dirname of $[0] is not the place where we might find the
26629 # original and so on. Autoconf is especially sensitive to this).
26630 . "./$as_me.lineno"
26631 # Exit status is that of the last command.
26632 exit
26633 }
26634
26635
26636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26637 as_dirname=dirname
26638 else
26639 as_dirname=false
26640 fi
26641
26642 ECHO_C= ECHO_N= ECHO_T=
26643 case `echo -n x` in
26644 -n*)
26645 case `echo 'x\c'` in
26646 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26647 *) ECHO_C='\c';;
26648 esac;;
26649 *)
26650 ECHO_N='-n';;
26651 esac
26652 if expr a : '\(a\)' >/dev/null 2>&1 &&
26653 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26654 as_expr=expr
26655 else
26656 as_expr=false
26657 fi
26658
26659 rm -f conf$$ conf$$.exe conf$$.file
26660 if test -d conf$$.dir; then
26661 rm -f conf$$.dir/conf$$.file
26662 else
26663 rm -f conf$$.dir
26664 mkdir conf$$.dir 2>/dev/null
26665 fi
26666 if (echo >conf$$.file) 2>/dev/null; then
26667 if ln -s conf$$.file conf$$ 2>/dev/null; then
26668 as_ln_s='ln -s'
26669 # ... but there are two gotchas:
26670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26672 # In both cases, we have to default to `cp -p'.
26673 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26674 as_ln_s='cp -p'
26675 elif ln conf$$.file conf$$ 2>/dev/null; then
26676 as_ln_s=ln
26677 else
26678 as_ln_s='cp -p'
26679 fi
26680 else
26681 as_ln_s='cp -p'
26682 fi
26683 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26684 rmdir conf$$.dir 2>/dev/null
26685
26686 if mkdir -p . 2>/dev/null; then
26687 as_mkdir_p=:
26688 else
26689 test -d ./-p && rmdir ./-p
26690 as_mkdir_p=false
26691 fi
26692
26693 if test -x / >/dev/null 2>&1; then
26694 as_test_x='test -x'
26695 else
26696 if ls -dL / >/dev/null 2>&1; then
26697 as_ls_L_option=L
26698 else
26699 as_ls_L_option=
26700 fi
26701 as_test_x='
26702 eval sh -c '\''
26703 if test -d "$1"; then
26704 test -d "$1/.";
26705 else
26706 case $1 in
26707 -*)set "./$1";;
26708 esac;
26709 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26710 ???[sx]*):;;*)false;;esac;fi
26711 '\'' sh
26712 '
26713 fi
26714 as_executable_p=$as_test_x
26715
26716 # Sed expression to map a string onto a valid CPP name.
26717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26718
26719 # Sed expression to map a string onto a valid variable name.
26720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26721
26722
26723 exec 6>&1
26724
26725 # Save the log message, to keep $[0] and so on meaningful, and to
26726 # report actual input values of CONFIG_FILES etc. instead of their
26727 # values after options handling.
26728 ac_log="
26729 This file was extended by emacs $as_me 24.0.50, which was
26730 generated by GNU Autoconf 2.62. Invocation command line was
26731
26732 CONFIG_FILES = $CONFIG_FILES
26733 CONFIG_HEADERS = $CONFIG_HEADERS
26734 CONFIG_LINKS = $CONFIG_LINKS
26735 CONFIG_COMMANDS = $CONFIG_COMMANDS
26736 $ $0 $@
26737
26738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26739 "
26740
26741 _ACEOF
26742
26743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26744 # Files that config.status was made for.
26745 config_files="$ac_config_files"
26746 config_headers="$ac_config_headers"
26747 config_commands="$ac_config_commands"
26748
26749 _ACEOF
26750
26751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26752 ac_cs_usage="\
26753 \`$as_me' instantiates files from templates according to the
26754 current configuration.
26755
26756 Usage: $0 [OPTIONS] [FILE]...
26757
26758 -h, --help print this help, then exit
26759 -V, --version print version number and configuration settings, then exit
26760 -q, --quiet do not print progress messages
26761 -d, --debug don't remove temporary files
26762 --recheck update $as_me by reconfiguring in the same conditions
26763 --file=FILE[:TEMPLATE]
26764 instantiate the configuration file FILE
26765 --header=FILE[:TEMPLATE]
26766 instantiate the configuration header FILE
26767
26768 Configuration files:
26769 $config_files
26770
26771 Configuration headers:
26772 $config_headers
26773
26774 Configuration commands:
26775 $config_commands
26776
26777 Report bugs to <bug-autoconf@gnu.org>."
26778
26779 _ACEOF
26780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26781 ac_cs_version="\\
26782 emacs config.status 24.0.50
26783 configured by $0, generated by GNU Autoconf 2.62,
26784 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26785
26786 Copyright (C) 2008 Free Software Foundation, Inc.
26787 This config.status script is free software; the Free Software Foundation
26788 gives unlimited permission to copy, distribute and modify it."
26789
26790 ac_pwd='$ac_pwd'
26791 srcdir='$srcdir'
26792 INSTALL='$INSTALL'
26793 test -n "\$AWK" || AWK=awk
26794 _ACEOF
26795
26796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26797 # The default lists apply if the user does not specify any file.
26798 ac_need_defaults=:
26799 while test $# != 0
26800 do
26801 case $1 in
26802 --*=*)
26803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26805 ac_shift=:
26806 ;;
26807 *)
26808 ac_option=$1
26809 ac_optarg=$2
26810 ac_shift=shift
26811 ;;
26812 esac
26813
26814 case $ac_option in
26815 # Handling of the options.
26816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26817 ac_cs_recheck=: ;;
26818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26819 $as_echo "$ac_cs_version"; exit ;;
26820 --debug | --debu | --deb | --de | --d | -d )
26821 debug=: ;;
26822 --file | --fil | --fi | --f )
26823 $ac_shift
26824 case $ac_optarg in
26825 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26826 esac
26827 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26828 ac_need_defaults=false;;
26829 --header | --heade | --head | --hea )
26830 $ac_shift
26831 case $ac_optarg in
26832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26833 esac
26834 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26835 ac_need_defaults=false;;
26836 --he | --h)
26837 # Conflict between --help and --header
26838 { $as_echo "$as_me: error: ambiguous option: $1
26839 Try \`$0 --help' for more information." >&2
26840 { (exit 1); exit 1; }; };;
26841 --help | --hel | -h )
26842 $as_echo "$ac_cs_usage"; exit ;;
26843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26845 ac_cs_silent=: ;;
26846
26847 # This is an error.
26848 -*) { $as_echo "$as_me: error: unrecognized option: $1
26849 Try \`$0 --help' for more information." >&2
26850 { (exit 1); exit 1; }; } ;;
26851
26852 *) ac_config_targets="$ac_config_targets $1"
26853 ac_need_defaults=false ;;
26854
26855 esac
26856 shift
26857 done
26858
26859 ac_configure_extra_args=
26860
26861 if $ac_cs_silent; then
26862 exec 6>/dev/null
26863 ac_configure_extra_args="$ac_configure_extra_args --silent"
26864 fi
26865
26866 _ACEOF
26867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26868 if \$ac_cs_recheck; then
26869 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26870 shift
26871 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26872 CONFIG_SHELL='$SHELL'
26873 export CONFIG_SHELL
26874 exec "\$@"
26875 fi
26876
26877 _ACEOF
26878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26879 exec 5>>config.log
26880 {
26881 echo
26882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26883 ## Running $as_me. ##
26884 _ASBOX
26885 $as_echo "$ac_log"
26886 } >&5
26887
26888 _ACEOF
26889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26890 #
26891 # INIT-COMMANDS
26892 #
26893 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26894
26895 _ACEOF
26896
26897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26898
26899 # Handling of arguments.
26900 for ac_config_target in $ac_config_targets
26901 do
26902 case $ac_config_target in
26903 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26905 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26906 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26907 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26908 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26909 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26910 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26911 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26912 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26913 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26914 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26915 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26916
26917 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26918 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26919 { (exit 1); exit 1; }; };;
26920 esac
26921 done
26922
26923
26924 # If the user did not use the arguments to specify the items to instantiate,
26925 # then the envvar interface is used. Set only those that are not.
26926 # We use the long form for the default assignment because of an extremely
26927 # bizarre bug on SunOS 4.1.3.
26928 if $ac_need_defaults; then
26929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26932 fi
26933
26934 # Have a temporary directory for convenience. Make it in the build tree
26935 # simply because there is no reason against having it here, and in addition,
26936 # creating and moving files from /tmp can sometimes cause problems.
26937 # Hook for its removal unless debugging.
26938 # Note that there is a small window in which the directory will not be cleaned:
26939 # after its creation but before its name has been assigned to `$tmp'.
26940 $debug ||
26941 {
26942 tmp=
26943 trap 'exit_status=$?
26944 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26945 ' 0
26946 trap '{ (exit 1); exit 1; }' 1 2 13 15
26947 }
26948 # Create a (secure) tmp directory for tmp files.
26949
26950 {
26951 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26952 test -n "$tmp" && test -d "$tmp"
26953 } ||
26954 {
26955 tmp=./conf$$-$RANDOM
26956 (umask 077 && mkdir "$tmp")
26957 } ||
26958 {
26959 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26960 { (exit 1); exit 1; }
26961 }
26962
26963 # Set up the scripts for CONFIG_FILES section.
26964 # No need to generate them if there are no CONFIG_FILES.
26965 # This happens for instance with `./config.status config.h'.
26966 if test -n "$CONFIG_FILES"; then
26967
26968
26969 ac_cr=' '
26970 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26971 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26972 ac_cs_awk_cr='\\r'
26973 else
26974 ac_cs_awk_cr=$ac_cr
26975 fi
26976
26977 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26978 _ACEOF
26979
26980
26981 {
26982 echo "cat >conf$$subs.awk <<_ACEOF" &&
26983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26984 echo "_ACEOF"
26985 } >conf$$subs.sh ||
26986 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26987 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26988 { (exit 1); exit 1; }; }
26989 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26990 ac_delim='%!_!# '
26991 for ac_last_try in false false false false false :; do
26992 . ./conf$$subs.sh ||
26993 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26994 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26995 { (exit 1); exit 1; }; }
26996
26997 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26998 break
26999 elif $ac_last_try; then
27000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27001 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27002 { (exit 1); exit 1; }; }
27003 else
27004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27005 fi
27006 done
27007 rm -f conf$$subs.sh
27008
27009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27011 _ACEOF
27012 sed -n '
27013 h
27014 s/^/S["/; s/!.*/"]=/
27015 p
27016 g
27017 s/^[^!]*!//
27018 :repl
27019 t repl
27020 s/'"$ac_delim"'$//
27021 t delim
27022 :nl
27023 h
27024 s/\(.\{148\}\).*/\1/
27025 t more1
27026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27027 p
27028 n
27029 b repl
27030 :more1
27031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27032 p
27033 g
27034 s/.\{148\}//
27035 t nl
27036 :delim
27037 h
27038 s/\(.\{148\}\).*/\1/
27039 t more2
27040 s/["\\]/\\&/g; s/^/"/; s/$/"/
27041 p
27042 b
27043 :more2
27044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27045 p
27046 g
27047 s/.\{148\}//
27048 t delim
27049 ' <conf$$subs.awk | sed '
27050 /^[^""]/{
27051 N
27052 s/\n//
27053 }
27054 ' >>$CONFIG_STATUS || ac_write_fail=1
27055 rm -f conf$$subs.awk
27056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27057 _ACAWK
27058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27059 for (key in S) S_is_set[key] = 1
27060 FS = "\a"
27061
27062 }
27063 {
27064 line = $ 0
27065 nfields = split(line, field, "@")
27066 substed = 0
27067 len = length(field[1])
27068 for (i = 2; i < nfields; i++) {
27069 key = field[i]
27070 keylen = length(key)
27071 if (S_is_set[key]) {
27072 value = S[key]
27073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27074 len += length(value) + length(field[++i])
27075 substed = 1
27076 } else
27077 len += 1 + keylen
27078 }
27079
27080 print line
27081 }
27082
27083 _ACAWK
27084 _ACEOF
27085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27088 else
27089 cat
27090 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27091 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27092 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27093 { (exit 1); exit 1; }; }
27094 _ACEOF
27095
27096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27098 # trailing colons and then remove the whole line if VPATH becomes empty
27099 # (actually we leave an empty line to preserve line numbers).
27100 if test "x$srcdir" = x.; then
27101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27102 s/:*\$(srcdir):*/:/
27103 s/:*\${srcdir}:*/:/
27104 s/:*@srcdir@:*/:/
27105 s/^\([^=]*=[ ]*\):*/\1/
27106 s/:*$//
27107 s/^[^=]*=[ ]*$//
27108 }'
27109 fi
27110
27111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27112 fi # test -n "$CONFIG_FILES"
27113
27114 # Set up the scripts for CONFIG_HEADERS section.
27115 # No need to generate them if there are no CONFIG_HEADERS.
27116 # This happens for instance with `./config.status Makefile'.
27117 if test -n "$CONFIG_HEADERS"; then
27118 cat >"$tmp/defines.awk" <<\_ACAWK ||
27119 BEGIN {
27120 _ACEOF
27121
27122 # Transform confdefs.h into an awk script `defines.awk', embedded as
27123 # here-document in config.status, that substitutes the proper values into
27124 # config.h.in to produce config.h.
27125
27126 # Create a delimiter string that does not exist in confdefs.h, to ease
27127 # handling of long lines.
27128 ac_delim='%!_!# '
27129 for ac_last_try in false false :; do
27130 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27131 if test -z "$ac_t"; then
27132 break
27133 elif $ac_last_try; then
27134 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27135 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27136 { (exit 1); exit 1; }; }
27137 else
27138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27139 fi
27140 done
27141
27142 # For the awk script, D is an array of macro values keyed by name,
27143 # likewise P contains macro parameters if any. Preserve backslash
27144 # newline sequences.
27145
27146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27147 sed -n '
27148 s/.\{148\}/&'"$ac_delim"'/g
27149 t rset
27150 :rset
27151 s/^[ ]*#[ ]*define[ ][ ]*/ /
27152 t def
27153 d
27154 :def
27155 s/\\$//
27156 t bsnl
27157 s/["\\]/\\&/g
27158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27159 D["\1"]=" \3"/p
27160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27161 d
27162 :bsnl
27163 s/["\\]/\\&/g
27164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27165 D["\1"]=" \3\\\\\\n"\\/p
27166 t cont
27167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27168 t cont
27169 d
27170 :cont
27171 n
27172 s/.\{148\}/&'"$ac_delim"'/g
27173 t clear
27174 :clear
27175 s/\\$//
27176 t bsnlc
27177 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27178 d
27179 :bsnlc
27180 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27181 b cont
27182 ' <confdefs.h | sed '
27183 s/'"$ac_delim"'/"\\\
27184 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27185
27186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27187 for (key in D) D_is_set[key] = 1
27188 FS = "\a"
27189 }
27190 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27191 line = \$ 0
27192 split(line, arg, " ")
27193 if (arg[1] == "#") {
27194 defundef = arg[2]
27195 mac1 = arg[3]
27196 } else {
27197 defundef = substr(arg[1], 2)
27198 mac1 = arg[2]
27199 }
27200 split(mac1, mac2, "(") #)
27201 macro = mac2[1]
27202 if (D_is_set[macro]) {
27203 # Preserve the white space surrounding the "#".
27204 prefix = substr(line, 1, index(line, defundef) - 1)
27205 print prefix "define", macro P[macro] D[macro]
27206 next
27207 } else {
27208 # Replace #undef with comments. This is necessary, for example,
27209 # in the case of _POSIX_SOURCE, which is predefined and required
27210 # on some systems where configure will not decide to define it.
27211 if (defundef == "undef") {
27212 print "/*", line, "*/"
27213 next
27214 }
27215 }
27216 }
27217 { print }
27218 _ACAWK
27219 _ACEOF
27220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27221 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27222 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27223 { (exit 1); exit 1; }; }
27224 fi # test -n "$CONFIG_HEADERS"
27225
27226
27227 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27228 shift
27229 for ac_tag
27230 do
27231 case $ac_tag in
27232 :[FHLC]) ac_mode=$ac_tag; continue;;
27233 esac
27234 case $ac_mode$ac_tag in
27235 :[FHL]*:*);;
27236 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27237 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27238 { (exit 1); exit 1; }; };;
27239 :[FH]-) ac_tag=-:-;;
27240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27241 esac
27242 ac_save_IFS=$IFS
27243 IFS=:
27244 set x $ac_tag
27245 IFS=$ac_save_IFS
27246 shift
27247 ac_file=$1
27248 shift
27249
27250 case $ac_mode in
27251 :L) ac_source=$1;;
27252 :[FH])
27253 ac_file_inputs=
27254 for ac_f
27255 do
27256 case $ac_f in
27257 -) ac_f="$tmp/stdin";;
27258 *) # Look for the file first in the build tree, then in the source tree
27259 # (if the path is not absolute). The absolute path cannot be DOS-style,
27260 # because $ac_f cannot contain `:'.
27261 test -f "$ac_f" ||
27262 case $ac_f in
27263 [\\/$]*) false;;
27264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27265 esac ||
27266 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27267 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27268 { (exit 1); exit 1; }; };;
27269 esac
27270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27271 ac_file_inputs="$ac_file_inputs '$ac_f'"
27272 done
27273
27274 # Let's still pretend it is `configure' which instantiates (i.e., don't
27275 # use $as_me), people would be surprised to read:
27276 # /* config.h. Generated by config.status. */
27277 configure_input='Generated from '`
27278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27279 `' by configure.'
27280 if test x"$ac_file" != x-; then
27281 configure_input="$ac_file. $configure_input"
27282 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27283 $as_echo "$as_me: creating $ac_file" >&6;}
27284 fi
27285 # Neutralize special characters interpreted by sed in replacement strings.
27286 case $configure_input in #(
27287 *\&* | *\|* | *\\* )
27288 ac_sed_conf_input=`$as_echo "$configure_input" |
27289 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27290 *) ac_sed_conf_input=$configure_input;;
27291 esac
27292
27293 case $ac_tag in
27294 *:-:* | *:-) cat >"$tmp/stdin" \
27295 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27297 { (exit 1); exit 1; }; } ;;
27298 esac
27299 ;;
27300 esac
27301
27302 ac_dir=`$as_dirname -- "$ac_file" ||
27303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27304 X"$ac_file" : 'X\(//\)[^/]' \| \
27305 X"$ac_file" : 'X\(//\)$' \| \
27306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27307 $as_echo X"$ac_file" |
27308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27309 s//\1/
27310 q
27311 }
27312 /^X\(\/\/\)[^/].*/{
27313 s//\1/
27314 q
27315 }
27316 /^X\(\/\/\)$/{
27317 s//\1/
27318 q
27319 }
27320 /^X\(\/\).*/{
27321 s//\1/
27322 q
27323 }
27324 s/.*/./; q'`
27325 { as_dir="$ac_dir"
27326 case $as_dir in #(
27327 -*) as_dir=./$as_dir;;
27328 esac
27329 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27330 as_dirs=
27331 while :; do
27332 case $as_dir in #(
27333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27334 *) as_qdir=$as_dir;;
27335 esac
27336 as_dirs="'$as_qdir' $as_dirs"
27337 as_dir=`$as_dirname -- "$as_dir" ||
27338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27339 X"$as_dir" : 'X\(//\)[^/]' \| \
27340 X"$as_dir" : 'X\(//\)$' \| \
27341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27342 $as_echo X"$as_dir" |
27343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27344 s//\1/
27345 q
27346 }
27347 /^X\(\/\/\)[^/].*/{
27348 s//\1/
27349 q
27350 }
27351 /^X\(\/\/\)$/{
27352 s//\1/
27353 q
27354 }
27355 /^X\(\/\).*/{
27356 s//\1/
27357 q
27358 }
27359 s/.*/./; q'`
27360 test -d "$as_dir" && break
27361 done
27362 test -z "$as_dirs" || eval "mkdir $as_dirs"
27363 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27364 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27365 { (exit 1); exit 1; }; }; }
27366 ac_builddir=.
27367
27368 case "$ac_dir" in
27369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27370 *)
27371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27372 # A ".." for each directory in $ac_dir_suffix.
27373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27374 case $ac_top_builddir_sub in
27375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27377 esac ;;
27378 esac
27379 ac_abs_top_builddir=$ac_pwd
27380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27381 # for backward compatibility:
27382 ac_top_builddir=$ac_top_build_prefix
27383
27384 case $srcdir in
27385 .) # We are building in place.
27386 ac_srcdir=.
27387 ac_top_srcdir=$ac_top_builddir_sub
27388 ac_abs_top_srcdir=$ac_pwd ;;
27389 [\\/]* | ?:[\\/]* ) # Absolute name.
27390 ac_srcdir=$srcdir$ac_dir_suffix;
27391 ac_top_srcdir=$srcdir
27392 ac_abs_top_srcdir=$srcdir ;;
27393 *) # Relative name.
27394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27395 ac_top_srcdir=$ac_top_build_prefix$srcdir
27396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27397 esac
27398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27399
27400
27401 case $ac_mode in
27402 :F)
27403 #
27404 # CONFIG_FILE
27405 #
27406
27407 case $INSTALL in
27408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27410 esac
27411 _ACEOF
27412
27413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27414 # If the template does not know about datarootdir, expand it.
27415 # FIXME: This hack should be removed a few years after 2.60.
27416 ac_datarootdir_hack=; ac_datarootdir_seen=
27417
27418 ac_sed_dataroot='
27419 /datarootdir/ {
27420 p
27421 q
27422 }
27423 /@datadir@/p
27424 /@docdir@/p
27425 /@infodir@/p
27426 /@localedir@/p
27427 /@mandir@/p
27428 '
27429 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27430 *datarootdir*) ac_datarootdir_seen=yes;;
27431 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27432 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27433 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27434 _ACEOF
27435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27436 ac_datarootdir_hack='
27437 s&@datadir@&$datadir&g
27438 s&@docdir@&$docdir&g
27439 s&@infodir@&$infodir&g
27440 s&@localedir@&$localedir&g
27441 s&@mandir@&$mandir&g
27442 s&\\\${datarootdir}&$datarootdir&g' ;;
27443 esac
27444 _ACEOF
27445
27446 # Neutralize VPATH when `$srcdir' = `.'.
27447 # Shell code in configure.ac might set extrasub.
27448 # FIXME: do we really want to maintain this feature?
27449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27450 ac_sed_extra="$ac_vpsub
27451 $extrasub
27452 _ACEOF
27453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27454 :t
27455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27456 s|@configure_input@|$ac_sed_conf_input|;t t
27457 s&@top_builddir@&$ac_top_builddir_sub&;t t
27458 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27459 s&@srcdir@&$ac_srcdir&;t t
27460 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27461 s&@top_srcdir@&$ac_top_srcdir&;t t
27462 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27463 s&@builddir@&$ac_builddir&;t t
27464 s&@abs_builddir@&$ac_abs_builddir&;t t
27465 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27466 s&@INSTALL@&$ac_INSTALL&;t t
27467 $ac_datarootdir_hack
27468 "
27469 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27470 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27471 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27472 { (exit 1); exit 1; }; }
27473
27474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27477 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27478 which seems to be undefined. Please make sure it is defined." >&5
27479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27480 which seems to be undefined. Please make sure it is defined." >&2;}
27481
27482 rm -f "$tmp/stdin"
27483 case $ac_file in
27484 -) cat "$tmp/out" && rm -f "$tmp/out";;
27485 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27486 esac \
27487 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27488 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27489 { (exit 1); exit 1; }; }
27490 ;;
27491 :H)
27492 #
27493 # CONFIG_HEADER
27494 #
27495 if test x"$ac_file" != x-; then
27496 {
27497 $as_echo "/* $configure_input */" \
27498 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27499 } >"$tmp/config.h" \
27500 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27501 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27502 { (exit 1); exit 1; }; }
27503 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27504 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27505 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27506 else
27507 rm -f "$ac_file"
27508 mv "$tmp/config.h" "$ac_file" \
27509 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27510 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27511 { (exit 1); exit 1; }; }
27512 fi
27513 else
27514 $as_echo "/* $configure_input */" \
27515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27516 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27517 $as_echo "$as_me: error: could not create -" >&2;}
27518 { (exit 1); exit 1; }; }
27519 fi
27520 ;;
27521
27522 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27523 $as_echo "$as_me: executing $ac_file commands" >&6;}
27524 ;;
27525 esac
27526
27527
27528 case $ac_file$ac_mode in
27529 "default":C)
27530
27531 ### Make the necessary directories, if they don't exist.
27532 for dir in etc lisp ; do
27533 test -d ${dir} || mkdir ${dir}
27534 done
27535
27536 # Build src/Makefile from ${srcdir}/src/Makefile.c
27537 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27538 # This must be done after src/config.h is built, since we rely on that file.
27539
27540 echo creating src/epaths.h
27541 ${MAKE-make} epaths-force
27542
27543 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27544 # `..' to `. .' unless invoked with -traditional
27545
27546 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27547 CPPFLAGS="$CPPFLAGS -traditional"
27548 fi
27549
27550 echo creating lib-src/Makefile
27551 ( cd lib-src
27552 rm -f junk.c junk1.c junk2.c
27553 sed -e '/start of cpp stuff/q' \
27554 < Makefile.c > junk1.c
27555 sed -e '1,/start of cpp stuff/d'\
27556 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27557 < Makefile.c > junk.c
27558 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27559 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27560 cat junk1.c junk2.c > Makefile.new
27561 rm -f junk.c junk1.c junk2.c
27562 chmod 444 Makefile.new
27563 mv -f Makefile.new Makefile
27564 )
27565
27566 echo creating src/Makefile
27567 ( cd src
27568 rm -f junk.c junk1.c junk2.c
27569 sed -e '/start of cpp stuff/q' \
27570 < Makefile.c > junk1.c
27571 sed -e '1,/start of cpp stuff/d'\
27572 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27573 < Makefile.c > junk.c
27574 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27575 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27576 cat junk1.c junk2.c > Makefile.new
27577 rm -f junk.c junk1.c junk2.c
27578 chmod 444 Makefile.new
27579 mv -f Makefile.new Makefile
27580 )
27581
27582 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27583 echo creating src/.gdbinit
27584 echo source $srcdir/src/.gdbinit > src/.gdbinit
27585 fi
27586
27587 ;;
27588
27589 esac
27590 done # for ac_tag
27591
27592
27593 { (exit 0); exit 0; }
27594 _ACEOF
27595 chmod +x $CONFIG_STATUS
27596 ac_clean_files=$ac_clean_files_save
27597
27598 test $ac_write_fail = 0 ||
27599 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27600 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27601 { (exit 1); exit 1; }; }
27602
27603
27604 # configure is writing to config.log, and then calls config.status.
27605 # config.status does its own redirection, appending to config.log.
27606 # Unfortunately, on DOS this fails, as config.log is still kept open
27607 # by configure, so config.status won't be able to write to it; its
27608 # output is simply discarded. So we exec the FD to /dev/null,
27609 # effectively closing config.log, so it can be properly (re)opened and
27610 # appended to by config.status. When coming back to configure, we
27611 # need to make the FD available again.
27612 if test "$no_create" != yes; then
27613 ac_cs_success=:
27614 ac_config_status_args=
27615 test "$silent" = yes &&
27616 ac_config_status_args="$ac_config_status_args --quiet"
27617 exec 5>/dev/null
27618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27619 exec 5>>config.log
27620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27621 # would make configure fail if this is the last instruction.
27622 $ac_cs_success || { (exit 1); exit 1; }
27623 fi
27624 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27625 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27626 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
27627 fi
27628
27629