(Fclrhash): Return TABLE.
[emacs.git] / configure
blobb2ebd636419e8f79f35061c4504a9ec519693347
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 ## --------------------- ##
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 # Zsh 3.x and 4.x performs 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
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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo Please tell bug-autoconf@gnu.org about your system,
416 echo including any error possibly output before this message.
417 echo This can help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 ALLOCA
700 liblockfile
701 LIBOBJS
702 NEED_SETGID
703 KMEM_GROUP
704 GETLOADAVG_LIBS
705 GETOPT_H
706 GETOPTOBJS
707 version
708 configuration
709 canonical
710 srcdir
711 lispdir
712 locallisppath
713 lisppath
714 x_default_search_path
715 etcdir
716 archlibdir
717 bitmapdir
718 gamedir
719 gameuser
720 c_switch_system
721 c_switch_machine
722 LD_SWITCH_X_SITE
723 LD_SWITCH_X_SITE_AUX
724 C_SWITCH_X_SITE
725 X_TOOLKIT_TYPE
726 machfile
727 opsysfile
728 carbon_appdir
729 LTLIBOBJS'
730 ac_subst_files=''
731 ac_precious_vars='build_alias
732 host_alias
733 target_alias
735 CFLAGS
736 LDFLAGS
737 LIBS
738 CPPFLAGS
740 XMKMF'
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
780 infodir='${datarootdir}/info'
781 htmldir='${docdir}'
782 dvidir='${docdir}'
783 pdfdir='${docdir}'
784 psdir='${docdir}'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
789 ac_prev=
790 ac_dashdash=
791 for ac_option
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\$ac_option
796 ac_prev=
797 continue
800 case $ac_option in
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 *) ac_optarg=yes ;;
803 esac
805 # Accept the important Cygnus configure options, so we can diagnose typos.
807 case $ac_dashdash$ac_option in
809 ac_dashdash=yes ;;
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 ac_prev=bindir ;;
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 bindir=$ac_optarg ;;
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
828 --config-cache | -C)
829 cache_file=config.cache ;;
831 -datadir | --datadir | --datadi | --datad)
832 ac_prev=datadir ;;
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
843 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=no ;;
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
862 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_$ac_feature=\$ac_optarg ;;
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 libdir=$ac_optarg ;;
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 mandir=$ac_optarg ;;
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
949 no_create=yes ;;
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 prefix=$ac_optarg ;;
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
1018 sbindir=$ac_optarg ;;
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
1029 sharedstatedir=$ac_optarg ;;
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
1034 site=$ac_optarg ;;
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1059 -with-* | --with-*)
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=no ;;
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1100 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 esac
1118 done
1120 if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1126 # Be sure to have absolute directory names.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val=\$$ac_var
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1139 done
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1144 build=$build_alias
1145 host=$host_alias
1146 target=$target_alias
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1155 cross_compiling=yes
1159 ac_tool_prefix=
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162 test "$silent" = yes && exec 6>/dev/null
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 echo X"$0" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1193 /^X\(\/\/\)$/{
1194 s//\1/
1197 /^X\(\/\).*/{
1198 s//\1/
1201 s/.*/./; q'`
1202 srcdir=$ac_confdir
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 srcdir=..
1206 else
1207 ac_srcdir_defaulted=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1218 pwd)`
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 srcdir=.
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1226 case $srcdir in
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 esac
1229 for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 done
1237 # Report the --help message.
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1242 cat <<_ACEOF
1243 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1250 Defaults for the options are specified in brackets.
1252 Configuration:
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 [PREFIX]
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1274 For better control, use the options below.
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1296 _ACEOF
1298 cat <<\_ACEOF
1300 Program names:
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1305 X features:
1306 --x-includes=DIR X include files are in DIR
1307 --x-libraries=DIR X library files are in DIR
1309 System types:
1310 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312 _ACEOF
1315 if test -n "$ac_init_help"; then
1316 case $ac_init_help in
1317 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1318 esac
1319 cat <<\_ACEOF
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR]
1325 specify install directory for Emacs.app on Mac OS X
1326 [DIR=/Application]
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode
1329 enable make rules and dependencies not useful (and
1330 sometimes confusing) to the casual installer
1331 --enable-locallisppath=PATH
1332 directories Emacs should search for lisp files
1333 specific to this site
1334 --disable-largefile omit support for large files
1336 Optional Packages:
1337 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1338 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1339 --without-gcc don't use GCC to compile Emacs if GCC is found
1340 --without-pop don't support POP mail retrieval with movemail
1341 --with-kerberos support Kerberos-authenticated POP
1342 --with-kerberos5 support Kerberos version 5 authenticated POP
1343 --with-hesiod support Hesiod to get the POP server host
1344 --without-sound don't compile with sound support
1345 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1346 motif, gtk, no)
1347 --without-xpm don't compile with XPM image support
1348 --without-jpeg don't compile with JPEG image support
1349 --without-tiff don't compile with TIFF image support
1350 --without-gif don't compile with GIF image support
1351 --without-png don't compile with PNG image support
1352 --without-rsvg don't compile with SVG image support
1353 --with-gtk use GTK toolkit
1354 --without-toolkit-scroll-bars
1355 don't use Motif or Xaw3d scroll bars
1356 --without-xaw3d don't use Xaw3d
1357 --without-xim don't use X11 XIM
1358 --with-carbon use Carbon GUI on Mac OS X. **UNSUPPORTED!**
1359 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1360 console
1361 --with-dbus compile with D-Bus support
1362 --with-pkg-config-prog=PATH
1363 Path to pkg-config for finding GTK and librsvg
1364 --with-x use the X Window System
1366 Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CPP C preprocessor
1375 XMKMF Path to xmkmf, Makefile generator for X Window System
1377 Use these variables to override the choices made by `configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 _ACEOF
1381 ac_status=$?
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" || continue
1388 ac_builddir=.
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 emacs configure 23.0.50
1441 generated by GNU Autoconf 2.61
1443 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1450 cat >config.log <<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1454 It was created by emacs $as_me 23.0.50, which was
1455 generated by GNU Autoconf 2.61. Invocation command line was
1457 $ $0 $@
1459 _ACEOF
1460 exec 5>>config.log
1462 cat <<_ASUNAME
1463 ## --------- ##
1464 ## Platform. ##
1465 ## --------- ##
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1484 _ASUNAME
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 echo "PATH: $as_dir"
1492 done
1493 IFS=$as_save_IFS
1495 } >&5
1497 cat >&5 <<_ACEOF
1500 ## ----------- ##
1501 ## Core tests. ##
1502 ## ----------- ##
1504 _ACEOF
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_configure_args=
1513 ac_configure_args0=
1514 ac_configure_args1=
1515 ac_must_keep_next=false
1516 for ac_pass in 1 2
1518 for ac_arg
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1549 esac
1550 done
1551 done
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1563 echo
1565 cat <<\_ASBOX
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1569 _ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1584 esac ;;
1585 esac
1586 done
1587 (set) 2>&1 |
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1590 sed -n \
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 ;; #(
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1597 esac |
1598 sort
1600 echo
1602 cat <<\_ASBOX
1603 ## ----------------- ##
1604 ## Output variables. ##
1605 ## ----------------- ##
1606 _ASBOX
1607 echo
1608 for ac_var in $ac_subst_vars
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1618 if test -n "$ac_subst_files"; then
1619 cat <<\_ASBOX
1620 ## ------------------- ##
1621 ## File substitutions. ##
1622 ## ------------------- ##
1623 _ASBOX
1624 echo
1625 for ac_var in $ac_subst_files
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1636 if test -s confdefs.h; then
1637 cat <<\_ASBOX
1638 ## ----------- ##
1639 ## confdefs.h. ##
1640 ## ----------- ##
1641 _ASBOX
1642 echo
1643 cat confdefs.h
1644 echo
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1654 for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656 done
1657 ac_signal=0
1659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1660 rm -f -r conftest* confdefs.h
1662 # Predefined preprocessor variables.
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_STRING "$PACKAGE_STRING"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686 _ACEOF
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer explicitly selected file to automatically selected ones.
1691 if test -n "$CONFIG_SITE"; then
1692 set x "$CONFIG_SITE"
1693 elif test "x$prefix" != xNONE; then
1694 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695 else
1696 set x "$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1699 shift
1700 for ac_site_file
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704 echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1706 . "$ac_site_file"
1708 done
1710 if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715 echo "$as_me: loading cache $cache_file" >&6;}
1716 case $cache_file in
1717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718 *) . "./$cache_file";;
1719 esac
1721 else
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723 echo "$as_me: creating cache $cache_file" >&6;}
1724 >$cache_file
1727 ac_header_list="$ac_header_list sys/time.h"
1728 ac_header_list="$ac_header_list unistd.h"
1729 ac_func_list="$ac_func_list alarm"
1730 # Check that the precious variables saved in the cache have kept the same
1731 # value.
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1739 set,)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,set)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,);;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753 echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755 echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1770 done
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1814 test "$program_prefix" != NONE &&
1815 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1816 # Use a double $ so make ignores it.
1817 test "$program_suffix" != NONE &&
1818 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1819 # Double any \ or $. echo might interpret backslashes.
1820 # By default was `s,x,x', remove it if useless.
1821 cat <<\_ACEOF >conftest.sed
1822 s/[\\$]/&&/g;s/;s,x,x,$//
1823 _ACEOF
1824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1825 rm -f conftest.sed
1828 lispdir='${datadir}/emacs/${version}/lisp'
1829 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1830 '${datadir}/emacs/site-lisp'
1831 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1832 etcdir='${datadir}/emacs/${version}/etc'
1833 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1834 docdir='${datadir}/emacs/${version}/etc'
1835 gamedir='${localstatedir}/games/emacs'
1837 gameuser=games
1842 # Check whether --with-gcc was given.
1843 if test "${with_gcc+set}" = set; then
1844 withval=$with_gcc;
1845 else
1846 with_gcc=yes
1851 # Check whether --with-pop was given.
1852 if test "${with_pop+set}" = set; then
1853 withval=$with_pop;
1854 else
1855 with_pop=yes
1858 if test "$with_pop" = yes; then
1859 cat >>confdefs.h <<\_ACEOF
1860 #define MAIL_USE_POP 1
1861 _ACEOF
1867 # Check whether --with-kerberos was given.
1868 if test "${with_kerberos+set}" = set; then
1869 withval=$with_kerberos;
1870 else
1871 with_kerberos=no
1874 if test "$with_kerberos" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define KERBEROS 1
1877 _ACEOF
1883 # Check whether --with-kerberos5 was given.
1884 if test "${with_kerberos5+set}" = set; then
1885 withval=$with_kerberos5;
1886 else
1887 with_kerberos5=no
1890 if test "${with_kerberos5}" = yes; then
1891 if test "${with_kerberos}" != yes; then
1892 with_kerberos=yes
1893 cat >>confdefs.h <<\_ACEOF
1894 #define KERBEROS 1
1895 _ACEOF
1899 cat >>confdefs.h <<\_ACEOF
1900 #define KERBEROS5 1
1901 _ACEOF
1906 # Check whether --with-hesiod was given.
1907 if test "${with_hesiod+set}" = set; then
1908 withval=$with_hesiod;
1909 else
1910 with_hesiod=no
1913 if test "$with_hesiod" = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1916 #define HESIOD 1
1917 _ACEOF
1922 # Check whether --with-sound was given.
1923 if test "${with_sound+set}" = set; then
1924 withval=$with_sound;
1925 else
1926 with_sound=yes
1931 # Check whether --with-x-toolkit was given.
1932 if test "${with_x_toolkit+set}" = set; then
1933 withval=$with_x_toolkit; case "${withval}" in
1934 y | ye | yes ) val=gtk ;;
1935 n | no ) val=no ;;
1936 l | lu | luc | luci | lucid ) val=lucid ;;
1937 a | at | ath | athe | athen | athena ) val=athena ;;
1938 m | mo | mot | moti | motif ) val=motif ;;
1939 g | gt | gtk ) val=gtk ;;
1941 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1942 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1943 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1944 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1947 { (exit 1); exit 1; }; }
1949 esac
1950 with_x_toolkit=$val
1956 # Check whether --with-xpm was given.
1957 if test "${with_xpm+set}" = set; then
1958 withval=$with_xpm;
1959 else
1960 with_xpm=yes
1964 # Check whether --with-jpeg was given.
1965 if test "${with_jpeg+set}" = set; then
1966 withval=$with_jpeg;
1967 else
1968 with_jpeg=yes
1972 # Check whether --with-tiff was given.
1973 if test "${with_tiff+set}" = set; then
1974 withval=$with_tiff;
1975 else
1976 with_tiff=yes
1980 # Check whether --with-gif was given.
1981 if test "${with_gif+set}" = set; then
1982 withval=$with_gif;
1983 else
1984 with_gif=yes
1988 # Check whether --with-png was given.
1989 if test "${with_png+set}" = set; then
1990 withval=$with_png;
1991 else
1992 with_png=yes
1996 # Check whether --with-rsvg was given.
1997 if test "${with_rsvg+set}" = set; then
1998 withval=$with_rsvg;
1999 else
2000 with_rsvg=yes
2005 # Check whether --with-gtk was given.
2006 if test "${with_gtk+set}" = set; then
2007 withval=$with_gtk;
2008 else
2009 with_gtk=no
2013 # Check whether --with-toolkit-scroll-bars was given.
2014 if test "${with_toolkit_scroll_bars+set}" = set; then
2015 withval=$with_toolkit_scroll_bars;
2016 else
2017 with_toolkit_scroll_bars=yes
2021 # Check whether --with-xaw3d was given.
2022 if test "${with_xaw3d+set}" = set; then
2023 withval=$with_xaw3d;
2024 else
2025 with_xaw3d=yes
2029 # Check whether --with-xim was given.
2030 if test "${with_xim+set}" = set; then
2031 withval=$with_xim;
2032 else
2033 with_xim=yes
2037 # Check whether --with-carbon was given.
2038 if test "${with_carbon+set}" = set; then
2039 withval=$with_carbon;
2040 else
2041 with_carbon=no
2046 # Check whether --with-gpm was given.
2047 if test "${with_gpm+set}" = set; then
2048 withval=$with_gpm;
2049 else
2050 with_gpm=yes
2054 # Check whether --with-dbus was given.
2055 if test "${with_dbus+set}" = set; then
2056 withval=$with_dbus;
2057 else
2058 with_dbus=no
2064 # Check whether --with-pkg-config-prog was given.
2065 if test "${with_pkg_config_prog+set}" = set; then
2066 withval=$with_pkg_config_prog;
2069 if test "X${with_pkg_config_prog}" != X; then
2070 if test "${with_pkg_config_prog}" != yes; then
2071 PKG_CONFIG="${with_pkg_config_prog}"
2075 # Check whether --enable-carbon-app was given.
2076 if test "${enable_carbon_app+set}" = set; then
2077 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2081 # Check whether --enable-asserts was given.
2082 if test "${enable_asserts+set}" = set; then
2083 enableval=$enable_asserts; USE_XASSERTS=$enableval
2084 else
2085 USE_XASSERTS=no
2089 # Check whether --enable-maintainer-mode was given.
2090 if test "${enable_maintainer_mode+set}" = set; then
2091 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2092 else
2093 USE_MAINTAINER_MODE=no
2096 if test $USE_MAINTAINER_MODE = yes; then
2097 MAINT=
2098 else
2099 MAINT=#
2103 # Check whether --enable-locallisppath was given.
2104 if test "${enable_locallisppath+set}" = set; then
2105 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2106 locallisppath=
2107 elif test "${enableval}" != "yes"; then
2108 locallisppath=${enableval}
2113 #### Make srcdir absolute, if it isn't already. It's important to
2114 #### avoid running the path through pwd unnecessarily, since pwd can
2115 #### give you automounter prefixes, which can go away. We do all this
2116 #### so Emacs can find its files when run uninstalled.
2117 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2118 unset CDPATH
2119 case "${srcdir}" in
2120 /* ) ;;
2122 ## We may be able to use the $PWD environment variable to make this
2123 ## absolute. But sometimes PWD is inaccurate.
2124 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2125 ## but that tested only for a well-formed and valid PWD,
2126 ## it did not object when PWD was well-formed and valid but just wrong.
2127 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2128 then
2129 srcdir="$PWD"
2130 else
2131 srcdir="`(cd ${srcdir}; pwd)`"
2134 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2135 esac
2137 #### Check if the source directory already has a configured system in it.
2138 if test `pwd` != `(cd ${srcdir} && pwd)` \
2139 && test -f "${srcdir}/src/config.h" ; then
2140 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2141 as a build directory right now; it has been configured in its own
2142 right. To configure in another directory as well, you MUST
2143 use GNU make. If you do not have GNU make, then you must
2144 now do \`make distclean' in ${srcdir},
2145 and then run $0 again." >&5
2146 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2147 as a build directory right now; it has been configured in its own
2148 right. To configure in another directory as well, you MUST
2149 use GNU make. If you do not have GNU make, then you must
2150 now do \`make distclean' in ${srcdir},
2151 and then run $0 again." >&2;}
2154 #### Given the configuration name, set machfile and opsysfile to the
2155 #### names of the m/*.h and s/*.h files we should use.
2157 ### Canonicalize the configuration name.
2159 ac_aux_dir=
2160 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2161 if test -f "$ac_dir/install-sh"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/install-sh -c"
2164 break
2165 elif test -f "$ac_dir/install.sh"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/install.sh -c"
2168 break
2169 elif test -f "$ac_dir/shtool"; then
2170 ac_aux_dir=$ac_dir
2171 ac_install_sh="$ac_aux_dir/shtool install -c"
2172 break
2174 done
2175 if test -z "$ac_aux_dir"; then
2176 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2177 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2178 { (exit 1); exit 1; }; }
2181 # These three variables are undocumented and unsupported,
2182 # and are intended to be withdrawn in a future Autoconf release.
2183 # They can cause serious problems if a builder's source tree is in a directory
2184 # whose full name contains unusual characters.
2185 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2186 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2187 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2190 # Make sure we can run config.sub.
2191 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2192 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2193 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2194 { (exit 1); exit 1; }; }
2196 { echo "$as_me:$LINENO: checking build system type" >&5
2197 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2198 if test "${ac_cv_build+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201 ac_build_alias=$build_alias
2202 test "x$ac_build_alias" = x &&
2203 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2204 test "x$ac_build_alias" = x &&
2205 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2206 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2207 { (exit 1); exit 1; }; }
2208 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2214 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2215 echo "${ECHO_T}$ac_cv_build" >&6; }
2216 case $ac_cv_build in
2217 *-*-*) ;;
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2219 echo "$as_me: error: invalid value of canonical build" >&2;}
2220 { (exit 1); exit 1; }; };;
2221 esac
2222 build=$ac_cv_build
2223 ac_save_IFS=$IFS; IFS='-'
2224 set x $ac_cv_build
2225 shift
2226 build_cpu=$1
2227 build_vendor=$2
2228 shift; shift
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2231 build_os=$*
2232 IFS=$ac_save_IFS
2233 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2236 { echo "$as_me:$LINENO: checking host system type" >&5
2237 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2238 if test "${ac_cv_host+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241 if test "x$host_alias" = x; then
2242 ac_cv_host=$ac_cv_build
2243 else
2244 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2245 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2246 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2252 echo "${ECHO_T}$ac_cv_host" >&6; }
2253 case $ac_cv_host in
2254 *-*-*) ;;
2255 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2256 echo "$as_me: error: invalid value of canonical host" >&2;}
2257 { (exit 1); exit 1; }; };;
2258 esac
2259 host=$ac_cv_host
2260 ac_save_IFS=$IFS; IFS='-'
2261 set x $ac_cv_host
2262 shift
2263 host_cpu=$1
2264 host_vendor=$2
2265 shift; shift
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2268 host_os=$*
2269 IFS=$ac_save_IFS
2270 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2273 canonical=$host
2274 configuration=${host_alias-${build_alias-$host}}
2278 ### If you add support for a new configuration, add code to this
2279 ### switch statement to recognize your configuration name and select
2280 ### the appropriate operating system and machine description files.
2282 ### You would hope that you could choose an m/*.h file pretty much
2283 ### based on the machine portion of the configuration name, and an s-
2284 ### file based on the operating system portion. However, it turns out
2285 ### that each m/*.h file is pretty manufacturer-specific - for
2286 ### example hp9000s300.h is a 68000 machine;
2287 ### mips.h, pmax.h are all MIPS
2288 ### machines. So we basically have to have a special case for each
2289 ### configuration name.
2291 ### As far as handling version numbers on operating systems is
2292 ### concerned, make sure things will fail in a fixable way. If
2293 ### /etc/MACHINES doesn't say anything about version numbers, be
2294 ### prepared to handle anything reasonably. If version numbers
2295 ### matter, be sure /etc/MACHINES says something about it.
2297 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2298 ### "System V Release 4"; he writes, "The old convention encouraged
2299 ### confusion between `system' and `release' levels'."
2301 machine='' opsys='' unported=no
2302 case "${canonical}" in
2304 ## FreeBSD ports
2305 *-*-freebsd* )
2306 opsys=freebsd
2307 case "${canonical}" in
2308 alpha*-*-freebsd*) machine=alpha ;;
2309 ia64-*-freebsd*) machine=ia64 ;;
2310 sparc64-*-freebsd*) machine=sparc ;;
2311 powerpc-*-freebsd*) machine=macppc ;;
2312 i[3456]86-*-freebsd*) machine=intel386 ;;
2313 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2314 esac
2317 ## FreeBSD kernel + glibc based userland
2318 *-*-kfreebsd*gnu* )
2319 opsys=gnu-kfreebsd
2320 case "${canonical}" in
2321 alpha*-*-kfreebsd*) machine=alpha ;;
2322 ia64-*-kfreebsd*) machine=ia64 ;;
2323 sparc64-*-kfreebsd*) machine=sparc ;;
2324 powerpc-*-kfreebsd*) machine=macppc ;;
2325 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2326 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2327 esac
2330 ## NetBSD ports
2331 *-*-netbsd* )
2332 opsys=netbsd
2333 if test -f /usr/lib/crti.o; then
2335 cat >>confdefs.h <<\_ACEOF
2336 #define HAVE_CRTIN
2337 _ACEOF
2341 case "${canonical}" in
2342 alpha*-*-netbsd*) machine=alpha ;;
2343 i[3456]86-*-netbsd*) machine=intel386 ;;
2344 m68k-*-netbsd*)
2345 # This is somewhat bogus.
2346 machine=hp9000s300 ;;
2347 mips-*-netbsd*) machine=pmax ;;
2348 mipsel-*-netbsd*) machine=pmax ;;
2349 mipseb-*-netbsd*) machine=pmax ;;
2350 powerpc-*-netbsd*) machine=macppc ;;
2351 sparc*-*-netbsd*) machine=sparc ;;
2352 vax-*-netbsd*) machine=vax ;;
2353 arm-*-netbsd*) machine=arm ;;
2354 x86_64-*-netbsd*) machine=amdx86-64 ;;
2355 hppa-*-netbsd*) machine=hp800 ;;
2356 esac
2359 ## OpenBSD ports
2360 *-*-openbsd* )
2361 opsys=openbsd
2362 case "${canonical}" in
2363 alpha*-*-openbsd*) machine=alpha ;;
2364 arm-*-openbsd*) machine=arm ;;
2365 hppa-*-openbsd*) machine=hp9000s300 ;;
2366 i386-*-openbsd*) machine=intel386 ;;
2367 m68k-*-openbsd*) machine=hp9000s300 ;;
2368 mips64-*-openbsd*) machine=mips64 ;;
2369 powerpc-*-openbsd*) machine=macppc ;;
2370 sparc*-*-openbsd*) machine=sparc ;;
2371 vax-*-openbsd*) machine=vax ;;
2372 x86_64-*-openbsd*) machine=amdx86-64 ;;
2373 esac
2376 ## LynxOS ports
2377 *-*-lynxos* )
2378 opsys=lynxos
2379 case "${canonical}" in
2380 i[3456]86-*-lynxos*) machine=intel386 ;;
2381 powerpc-*-lynxos*) machine=powerpc ;;
2382 esac
2385 ## BSDI ports
2386 *-*-bsdi* )
2387 opsys=bsdi
2388 case "${canonical}" in
2389 i[345]86-*-bsdi*) machine=intel386 ;;
2390 sparc-*-bsdi*) machine=sparc ;;
2391 powerpc-*-bsdi*) machine=macppc ;;
2392 esac
2393 case "${canonical}" in
2394 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2395 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2396 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2397 *-*-bsdi3* ) opsys=bsdos3 ;;
2398 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2399 esac
2402 ## Alpha (DEC) machines.
2403 alpha*-dec-osf* )
2404 machine=alpha opsys=osf1
2405 # This is needed to find X11R6.1 libraries for certain tests.
2406 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2407 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2408 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2409 # due to non-traditional preprocessing with the current compiler
2410 # defaults. OSF 4 can also have that compiler version, and there
2411 # seems always to have been a usable /usr/bin/cpp.
2412 NON_GNU_CPP=/usr/bin/cpp
2413 case "${canonical}" in
2414 alpha*-dec-osf[5-9]*)
2415 opsys=osf5-0 ;;
2416 esac
2419 alpha*-*-linux-gnu* )
2420 machine=alpha opsys=gnu-linux
2423 arm*-*-linux-gnu* )
2424 machine=arm opsys=gnu-linux
2427 ## Apple Darwin / Mac OS X
2428 *-apple-darwin* )
2429 case "${canonical}" in
2430 i[3456]86-* ) machine=intel386 ;;
2431 powerpc-* ) machine=powermac ;;
2432 * ) unported=yes ;;
2433 esac
2434 opsys=darwin
2435 # Define CPP as follows to make autoconf work correctly.
2436 CPP="${CC-cc} -E -no-cpp-precomp"
2437 # Use fink packages if available.
2438 if test -d /sw/include && test -d /sw/lib; then
2439 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2440 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2441 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2445 ## Compaq Nonstop
2446 mips-compaq-nonstopux* )
2447 machine=nonstopux opsys=nonstopux
2450 ## Cubix QBx/386
2451 i[3456]86-cubix-sysv* )
2452 machine=intel386 opsys=usg5-3
2455 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2456 machine=pmax opsys=bsd4-2
2458 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2459 machine=pmax opsys=bsd4-3
2461 mips-dec-ultrix* )
2462 machine=pmax opsys=ultrix4-3
2464 mips-dec-osf* )
2465 machine=pmax opsys=osf1
2467 mips-dec-mach_bsd4.3* )
2468 machine=pmax opsys=mach-bsd4-3
2471 ## HP 9000 series 200 or 300
2472 m68*-hp-bsd* )
2473 machine=hp9000s300 opsys=bsd4-3
2475 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2476 m68*-hp-hpux* )
2477 case "`uname -r`" in
2478 ## Someone's system reports A.B8.05 for this.
2479 ## I wonder what other possibilities there are.
2480 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2481 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2482 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2483 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2484 *) machine=hp9000s300 opsys=hpux ;;
2485 esac
2488 ## HP 9000 series 700 and 800, running HP/UX
2489 hppa*-hp-hpux7* )
2490 machine=hp800 opsys=hpux
2492 hppa*-hp-hpux8* )
2493 machine=hp800 opsys=hpux8
2495 hppa*-hp-hpux9shr* )
2496 machine=hp800 opsys=hpux9shr
2498 hppa*-hp-hpux9* )
2499 machine=hp800 opsys=hpux9
2501 hppa*-hp-hpux10.2* )
2502 machine=hp800 opsys=hpux10-20
2504 hppa*-hp-hpux10* )
2505 machine=hp800 opsys=hpux10
2507 hppa*-hp-hpux1[1-9]* )
2508 machine=hp800 opsys=hpux11
2509 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2512 hppa*-*-linux-gnu* )
2513 machine=hp800 opsys=gnu-linux
2516 ## HP 9000 series 700 and 800, running HP/UX
2517 hppa*-hp-hpux* )
2518 ## Cross-compilation? Nah!
2519 case "`uname -r`" in
2520 ## Someone's system reports A.B8.05 for this.
2521 ## I wonder what other possibilities there are.
2522 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2523 *.08.* ) machine=hp800 opsys=hpux8 ;;
2524 *.09.* ) machine=hp800 opsys=hpux9 ;;
2525 *) machine=hp800 opsys=hpux10 ;;
2526 esac
2528 hppa*-*-nextstep* )
2529 machine=hp800 opsys=nextstep
2532 ## IBM machines
2533 i370-ibm-aix*)
2534 machine=ibm370aix opsys=usg5-3
2536 s390-*-linux-gnu* )
2537 machine=ibms390 opsys=gnu-linux
2539 s390x-*-linux-gnu* )
2540 machine=ibms390x opsys=gnu-linux
2542 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2543 machine=ibmrs6000 opsys=aix3-1
2545 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2546 machine=ibmrs6000 opsys=aix3-2-5
2548 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2549 machine=ibmrs6000 opsys=aix4-1
2551 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2552 machine=ibmrs6000 opsys=aix4-2
2554 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2555 machine=ibmrs6000 opsys=aix4-2
2557 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2558 machine=ibmrs6000 opsys=aix4-2
2560 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2561 machine=ibmrs6000 opsys=aix4
2563 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2564 machine=ibmrs6000 opsys=aix4-1
2566 rs6000-ibm-aix* | powerpc-ibm-aix* )
2567 machine=ibmrs6000 opsys=aix3-2
2570 ## Prime EXL
2571 i[3456]86-prime-sysv* )
2572 machine=i386 opsys=usg5-3
2575 ## ncr machine running svr4.3.
2576 i[3456]86-ncr-sysv4.3 )
2577 machine=ncr386 opsys=usg5-4-3
2580 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2581 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2582 i[3456]86-ncr-sysv* )
2583 machine=ncr386 opsys=usg5-4-2
2586 ## Macintosh PowerPC
2587 powerpc*-*-linux-gnu* )
2588 machine=macppc opsys=gnu-linux
2591 ## Workstations sold by MIPS
2592 ## This is not necessarily all workstations using the MIPS processor -
2593 ## Irises are produced by SGI, and DECstations by DEC.
2595 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2596 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2597 ## it gives for choosing between the alternatives seems to be "Use
2598 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2599 ## the BSD world." I'll assume that these are instructions for
2600 ## handling two odd situations, and that every other situation
2601 ## should use mips.h and usg5-2-2, they being listed first.
2602 mips-mips-usg* )
2603 machine=mips4
2604 ## Fall through to the general code at the bottom to decide on the OS.
2606 mips-mips-riscos4* )
2607 machine=mips4 opsys=bsd4-3
2608 NON_GNU_CC="cc -systype bsd43"
2609 NON_GNU_CPP="cc -systype bsd43 -E"
2611 mips-mips-riscos5* )
2612 machine=mips4 opsys=riscos5
2613 NON_GNU_CC="cc -systype bsd43"
2614 NON_GNU_CPP="cc -systype bsd43 -E"
2616 mips-mips-bsd* )
2617 machine=mips opsys=bsd4-3
2619 mips-mips-* )
2620 machine=mips opsys=usg5-2-2
2623 ## NeXT
2624 m68*-next-* | m68k-*-nextstep* )
2625 machine=m68k opsys=nextstep
2628 ## NEC EWS4800
2629 mips-nec-sysv4*)
2630 machine=ews4800 opsys=ux4800
2633 ## Siemens Nixdorf
2634 mips-siemens-sysv* | mips-sni-sysv*)
2635 machine=mips-siemens opsys=usg5-4
2636 NON_GNU_CC=/usr/ccs/bin/cc
2637 NON_GNU_CPP=/usr/ccs/lib/cpp
2640 ## Silicon Graphics machines
2641 ## Iris 4D
2642 mips-sgi-irix6.5 )
2643 machine=iris4d opsys=irix6-5
2644 # Without defining _LANGUAGE_C, things get masked out in the headers
2645 # so that, for instance, grepping for `free' in stdlib.h fails and
2646 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2647 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2648 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2650 mips-sgi-irix6* )
2651 machine=iris4d opsys=irix6-0
2652 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2653 # but presumably it does no harm.
2654 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2655 # -32 probably isn't necessary in later v.6s -- anyone know which?
2656 NON_GCC_TEST_OPTIONS=-32
2658 mips-sgi-irix5.[01]* )
2659 machine=iris4d opsys=irix5-0
2661 mips-sgi-irix5* | mips-sgi-irix* )
2662 machine=iris4d opsys=irix5-2
2665 ## Suns
2666 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2667 machine=sparc opsys=gnu-linux
2670 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2671 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2672 | rs6000-*-solaris2*)
2673 case "${canonical}" in
2674 i[3456]86-*-* ) machine=intel386 ;;
2675 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2676 powerpcle* ) machine=powerpcle ;;
2677 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2678 sparc* ) machine=sparc ;;
2679 * ) unported=yes ;;
2680 esac
2681 case "${canonical}" in
2682 *-sunos5.3* | *-solaris2.3* )
2683 opsys=sol2-3
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2686 *-sunos5.4* | *-solaris2.4* )
2687 opsys=sol2-4
2688 NON_GNU_CPP=/usr/ccs/lib/cpp
2689 RANLIB="ar -ts"
2691 *-sunos5.5* | *-solaris2.5* )
2692 opsys=sol2-5
2693 NON_GNU_CPP=/usr/ccs/lib/cpp
2694 RANLIB="ar -ts"
2696 *-sunos5.6* | *-solaris2.6* )
2697 opsys=sol2-6
2698 NON_GNU_CPP=/usr/ccs/lib/cpp
2699 RANLIB="ar -ts"
2701 *-sunos5* | *-solaris* )
2702 opsys=sol2-6
2703 emacs_check_sunpro_c=yes
2704 NON_GNU_CPP=/usr/ccs/lib/cpp
2706 * ) opsys=bsd4-2 ;;
2707 esac
2708 ## Watch out for a compiler that we know will not work.
2709 case "${canonical}" in
2710 *-solaris* | *-sunos5* )
2711 if [ "x$CC" = x/usr/ucb/cc ]; then
2712 ## /usr/ucb/cc doesn't work;
2713 ## we should find some other compiler that does work.
2714 unset CC
2717 *) ;;
2718 esac
2720 sparc-*-nextstep* )
2721 machine=sparc opsys=nextstep
2724 ## Tandem Integrity S2
2725 mips-tandem-sysv* )
2726 machine=tandem-s2 opsys=usg5-3
2729 ## Vaxen.
2730 vax-dec-* )
2731 machine=vax
2732 case "${canonical}" in
2733 *-bsd4.1* ) opsys=bsd4-1 ;;
2734 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2735 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2736 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2737 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2738 *-vms* ) opsys=vms ;;
2739 * ) unported=yes
2740 esac
2743 ## IA-64
2744 ia64*-*-linux* )
2745 machine=ia64 opsys=gnu-linux
2748 ## Intel 386 machines where we don't care about the manufacturer
2749 i[3456]86-*-* )
2750 machine=intel386
2751 case "${canonical}" in
2752 *-cygwin ) opsys=cygwin ;;
2753 *-darwin* ) opsys=darwin
2754 CPP="${CC-cc} -E -no-cpp-precomp"
2756 *-xenix* ) opsys=xenix ;;
2757 *-linux-gnu* ) opsys=gnu-linux ;;
2758 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2759 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2760 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2761 *-386bsd* ) opsys=386bsd ;;
2762 *-nextstep* ) opsys=nextstep ;;
2763 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2764 esac
2767 ## m68k Linux-based GNU system
2768 m68k-*-linux-gnu* )
2769 machine=m68k opsys=gnu-linux
2772 ## Mips Linux-based GNU system
2773 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2774 machine=mips opsys=gnu-linux
2777 ## UXP/DS
2778 sparc-fujitsu-sysv4* )
2779 machine=sparc opsys=uxpds
2780 NON_GNU_CPP=/usr/ccs/lib/cpp
2781 RANLIB="ar -ts"
2784 ## AMD x86-64 Linux-based GNU system
2785 x86_64-*-linux-gnu* )
2786 machine=amdx86-64 opsys=gnu-linux
2789 ## Tensilica Xtensa Linux-based GNU system
2790 xtensa-*-linux-gnu* )
2791 machine=xtensa opsys=gnu-linux
2795 unported=yes
2797 esac
2799 ### If the code above didn't choose an operating system, just choose
2800 ### an operating system based on the configuration name. You really
2801 ### only want to use this when you have no idea what the right
2802 ### operating system is; if you know what operating systems a machine
2803 ### runs, it's cleaner to make it explicit in the case statement
2804 ### above.
2805 if test x"${opsys}" = x; then
2806 case "${canonical}" in
2807 *-gnu* ) opsys=gnu ;;
2808 *-bsd4.[01] ) opsys=bsd4-1 ;;
2809 *-bsd4.2 ) opsys=bsd4-2 ;;
2810 *-bsd4.3 ) opsys=bsd4-3 ;;
2811 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2812 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2813 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2814 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2815 *-sysv4.2uw* ) opsys=unixware ;;
2816 *-sysv5uw* ) opsys=unixware ;;
2817 *-sysv5OpenUNIX* ) opsys=unixware ;;
2818 *-sysv4.1* | *-sysvr4.1* )
2819 NON_GNU_CPP=/usr/lib/cpp
2820 opsys=usg5-4 ;;
2821 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2822 if [ x$NON_GNU_CPP = x ]; then
2823 if [ -f /usr/ccs/lib/cpp ]; then
2824 NON_GNU_CPP=/usr/ccs/lib/cpp
2825 else
2826 NON_GNU_CPP=/lib/cpp
2829 opsys=usg5-4-2 ;;
2830 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2832 unported=yes
2834 esac
2839 if test $unported = yes; then
2840 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2841 Check \`etc/MACHINES' for recognized configuration names." >&5
2842 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2843 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2844 { (exit 1); exit 1; }; }
2847 machfile="m/${machine}.h"
2848 opsysfile="s/${opsys}.h"
2851 #### Choose a compiler.
2852 test -n "$CC" && cc_specified=yes
2854 # Save the value of CFLAGS that the user specified.
2855 SPECIFIED_CFLAGS="$CFLAGS"
2857 case ${with_gcc} in
2858 "yes" ) CC="gcc" GCC=yes ;;
2859 "no" ) : ${CC=cc} ;;
2861 esac
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2891 IFS=$as_save_IFS
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897 { echo "$as_me:$LINENO: result: $CC" >&5
2898 echo "${ECHO_T}$CC" >&6; }
2899 else
2900 { echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6; }
2906 if test -z "$ac_cv_prog_CC"; then
2907 ac_ct_CC=$CC
2908 # Extract the first word of "gcc", so it can be a program name with args.
2909 set dummy gcc; ac_word=$2
2910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_CC="gcc"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2938 echo "${ECHO_T}$ac_ct_CC" >&6; }
2939 else
2940 { echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6; }
2944 if test "x$ac_ct_CC" = x; then
2945 CC=""
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2950 whose name does not start with the host triplet. If you think this
2951 configuration is useful to you, please write to autoconf@gnu.org." >&5
2952 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet. If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957 CC=$ac_ct_CC
2959 else
2960 CC="$ac_cv_prog_CC"
2963 if test -z "$CC"; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}cc; ac_word=$2
2967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_CC="${ac_tool_prefix}cc"
2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994 { echo "$as_me:$LINENO: result: $CC" >&5
2995 echo "${ECHO_T}$CC" >&6; }
2996 else
2997 { echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6; }
3004 if test -z "$CC"; then
3005 # Extract the first word of "cc", so it can be a program name with args.
3006 set dummy cc; ac_word=$2
3007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 ac_prog_rejected=no
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3024 ac_prog_rejected=yes
3025 continue
3027 ac_cv_prog_CC="cc"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3033 IFS=$as_save_IFS
3035 if test $ac_prog_rejected = yes; then
3036 # We found a bogon in the path, so make sure we never use it.
3037 set dummy $ac_cv_prog_CC
3038 shift
3039 if test $# != 0; then
3040 # We chose a different compiler from the bogus one.
3041 # However, it has the same basename, so the bogon will be chosen
3042 # first if we set CC to just the basename; use the full file name.
3043 shift
3044 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051 { echo "$as_me:$LINENO: result: $CC" >&5
3052 echo "${ECHO_T}$CC" >&6; }
3053 else
3054 { echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6; }
3060 if test -z "$CC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 for ac_prog in cl.exe
3064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3085 done
3086 done
3087 IFS=$as_save_IFS
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 { echo "$as_me:$LINENO: result: $CC" >&5
3094 echo "${ECHO_T}$CC" >&6; }
3095 else
3096 { echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6; }
3101 test -n "$CC" && break
3102 done
3104 if test -z "$CC"; then
3105 ac_ct_CC=$CC
3106 for ac_prog in cl.exe
3108 # Extract the first word of "$ac_prog", so it can be a program name with args.
3109 set dummy $ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_ac_ct_CC="$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3129 done
3130 done
3131 IFS=$as_save_IFS
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3138 echo "${ECHO_T}$ac_ct_CC" >&6; }
3139 else
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3145 test -n "$ac_ct_CC" && break
3146 done
3148 if test "x$ac_ct_CC" = x; then
3149 CC=""
3150 else
3151 case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3154 whose name does not start with the host triplet. If you think this
3155 configuration is useful to you, please write to autoconf@gnu.org." >&5
3156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3157 whose name does not start with the host triplet. If you think this
3158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3159 ac_tool_warned=yes ;;
3160 esac
3161 CC=$ac_ct_CC
3168 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: no acceptable C compiler found in \$PATH
3171 See \`config.log' for more details." >&2;}
3172 { (exit 1); exit 1; }; }
3174 # Provide some information about the compiler.
3175 echo "$as_me:$LINENO: checking for C compiler version" >&5
3176 ac_compiler=`set X $ac_compile; echo $2`
3177 { (ac_try="$ac_compiler --version >&5"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compiler --version >&5") 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }
3187 { (ac_try="$ac_compiler -v >&5"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compiler -v >&5") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 { (ac_try="$ac_compiler -V >&5"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_compiler -V >&5") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3216 main ()
3220 return 0;
3222 _ACEOF
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3225 # Try to create an executable without -o first, disregard a.out.
3226 # It will help us diagnose broken compilers, and finding out an intuition
3227 # of exeext.
3228 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3229 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3230 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232 # List of possible output files, starting from the most likely.
3233 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3234 # only as a last resort. b.out is created by i960 compilers.
3235 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3237 # The IRIX 6 linker writes into existing files which may not be
3238 # executable, retaining their permissions. Remove them first so a
3239 # subsequent execution test works.
3240 ac_rmfiles=
3241 for ac_file in $ac_files
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3246 esac
3247 done
3248 rm -f $ac_rmfiles
3250 if { (ac_try="$ac_link_default"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_link_default") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; then
3260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3263 # so that the user can short-circuit this test for compilers unknown to
3264 # Autoconf.
3265 for ac_file in $ac_files ''
3267 test -f "$ac_file" || continue
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3271 [ab].out )
3272 # We found the default executable, but exeext='' is most
3273 # certainly right.
3274 break;;
3275 *.* )
3276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277 then :; else
3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 # We set ac_cv_exeext here because the later test for it is not
3281 # safe: cross compilers may not add the suffix if given an `-o'
3282 # argument, so we may need to know it at that point already.
3283 # Even if this section looks crufty: it has the advantage of
3284 # actually working.
3285 break;;
3287 break;;
3288 esac
3289 done
3290 test "$ac_cv_exeext" = no && ac_cv_exeext=
3292 else
3293 ac_file=''
3296 { echo "$as_me:$LINENO: result: $ac_file" >&5
3297 echo "${ECHO_T}$ac_file" >&6; }
3298 if test -z "$ac_file"; then
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: C compiler cannot create executables
3305 See \`config.log' for more details." >&2;}
3306 { (exit 77); exit 77; }; }
3309 ac_exeext=$ac_cv_exeext
3311 # Check that the compiler produces executables we can run. If not, either
3312 # the compiler is broken, or we cross compile.
3313 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3314 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3315 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3316 # If not cross compiling, check that we can run a simple program.
3317 if test "$cross_compiling" != yes; then
3318 if { ac_try='./$ac_file'
3319 { (case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_try") 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 cross_compiling=no
3329 else
3330 if test "$cross_compiling" = maybe; then
3331 cross_compiling=yes
3332 else
3333 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3334 If you meant to cross compile, use \`--host'.
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: cannot run C compiled programs.
3337 If you meant to cross compile, use \`--host'.
3338 See \`config.log' for more details." >&2;}
3339 { (exit 1); exit 1; }; }
3343 { echo "$as_me:$LINENO: result: yes" >&5
3344 echo "${ECHO_T}yes" >&6; }
3346 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3347 ac_clean_files=$ac_clean_files_save
3348 # Check that the compiler produces executables we can run. If not, either
3349 # the compiler is broken, or we cross compile.
3350 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3351 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3352 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3353 echo "${ECHO_T}$cross_compiling" >&6; }
3355 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3356 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3357 if { (ac_try="$ac_link"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_link") 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; then
3367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3369 # work properly (i.e., refer to `conftest.exe'), while it won't with
3370 # `rm'.
3371 for ac_file in conftest.exe conftest conftest.*; do
3372 test -f "$ac_file" || continue
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 break;;
3377 * ) break;;
3378 esac
3379 done
3380 else
3381 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3382 See \`config.log' for more details." >&5
3383 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3384 See \`config.log' for more details." >&2;}
3385 { (exit 1); exit 1; }; }
3388 rm -f conftest$ac_cv_exeext
3389 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3390 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3392 rm -f conftest.$ac_ext
3393 EXEEXT=$ac_cv_exeext
3394 ac_exeext=$EXEEXT
3395 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3396 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3397 if test "${ac_cv_objext+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3408 main ()
3412 return 0;
3414 _ACEOF
3415 rm -f conftest.o conftest.obj
3416 if { (ac_try="$ac_compile"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compile") 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; then
3426 for ac_file in conftest.o conftest.obj conftest.*; do
3427 test -f "$ac_file" || continue;
3428 case $ac_file in
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3431 break;;
3432 esac
3433 done
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3439 See \`config.log' for more details." >&5
3440 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3441 See \`config.log' for more details." >&2;}
3442 { (exit 1); exit 1; }; }
3445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3448 echo "${ECHO_T}$ac_cv_objext" >&6; }
3449 OBJEXT=$ac_cv_objext
3450 ac_objext=$OBJEXT
3451 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3452 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3453 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h. */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3464 main ()
3466 #ifndef __GNUC__
3467 choke me
3468 #endif
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_compile") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } && {
3488 test -z "$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3490 } && test -s conftest.$ac_objext; then
3491 ac_compiler_gnu=yes
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 ac_compiler_gnu=no
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3504 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3505 GCC=`test $ac_compiler_gnu = yes && echo yes`
3506 ac_test_CFLAGS=${CFLAGS+set}
3507 ac_save_CFLAGS=$CFLAGS
3508 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3510 if test "${ac_cv_prog_cc_g+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 ac_save_c_werror_flag=$ac_c_werror_flag
3514 ac_c_werror_flag=yes
3515 ac_cv_prog_cc_g=no
3516 CFLAGS="-g"
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && {
3546 test -z "$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 } && test -s conftest.$ac_objext; then
3549 ac_cv_prog_cc_g=yes
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 CFLAGS=""
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3563 main ()
3567 return 0;
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (ac_try="$ac_compile"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_compile") 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } && {
3584 test -z "$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 } && test -s conftest.$ac_objext; then
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 CFLAGS="-g"
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3602 main ()
3606 return 0;
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compile") 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && {
3623 test -z "$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3625 } && test -s conftest.$ac_objext; then
3626 ac_cv_prog_cc_g=yes
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_c_werror_flag=$ac_save_c_werror_flag
3643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3645 if test "$ac_test_CFLAGS" = set; then
3646 CFLAGS=$ac_save_CFLAGS
3647 elif test $ac_cv_prog_cc_g = yes; then
3648 if test "$GCC" = yes; then
3649 CFLAGS="-g -O2"
3650 else
3651 CFLAGS="-g"
3653 else
3654 if test "$GCC" = yes; then
3655 CFLAGS="-O2"
3656 else
3657 CFLAGS=
3660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3662 if test "${ac_cv_prog_cc_c89+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 ac_cv_prog_cc_c89=no
3666 ac_save_CC=$CC
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #include <stdarg.h>
3674 #include <stdio.h>
3675 #include <sys/types.h>
3676 #include <sys/stat.h>
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3681 char **p;
3682 int i;
3684 return p[i];
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3688 char *s;
3689 va_list v;
3690 va_start (v,p);
3691 s = g (p, va_arg (v,int));
3692 va_end (v);
3693 return s;
3696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
3699 as 'x'. The following induces an error, until -std is added to get
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
3702 that's true only with -std. */
3703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3706 inside strings and character constants. */
3707 #define FOO(x) 'x'
3708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710 int test (int i, double x);
3711 struct s1 {int (*f) (int a);};
3712 struct s2 {int (*f) (double a);};
3713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3714 int argc;
3715 char **argv;
3717 main ()
3719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3721 return 0;
3723 _ACEOF
3724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727 CC="$ac_save_CC $ac_arg"
3728 rm -f conftest.$ac_objext
3729 if { (ac_try="$ac_compile"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_compile") 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } && {
3742 test -z "$ac_c_werror_flag" ||
3743 test ! -s conftest.err
3744 } && test -s conftest.$ac_objext; then
3745 ac_cv_prog_cc_c89=$ac_arg
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3753 rm -f core conftest.err conftest.$ac_objext
3754 test "x$ac_cv_prog_cc_c89" != "xno" && break
3755 done
3756 rm -f conftest.$ac_ext
3757 CC=$ac_save_CC
3760 # AC_CACHE_VAL
3761 case "x$ac_cv_prog_cc_c89" in
3763 { echo "$as_me:$LINENO: result: none needed" >&5
3764 echo "${ECHO_T}none needed" >&6; } ;;
3765 xno)
3766 { echo "$as_me:$LINENO: result: unsupported" >&5
3767 echo "${ECHO_T}unsupported" >&6; } ;;
3769 CC="$CC $ac_cv_prog_cc_c89"
3770 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3771 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3772 esac
3775 ac_ext=c
3776 ac_cpp='$CPP $CPPFLAGS'
3777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 # On Suns, sometimes $CPP names a directory.
3783 if test -n "$CPP" && test -d "$CPP"; then
3784 CPP=
3787 ## If not using gcc, and on Solaris, and no CPP specified, see if
3788 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3789 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3790 test x"$CPP" = x; then
3791 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3792 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3794 if test "${emacs_cv_sunpro_c+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3805 main ()
3807 #ifndef __SUNPRO_C
3808 fail;
3809 #endif
3812 return 0;
3814 _ACEOF
3815 rm -f conftest.$ac_objext conftest$ac_exeext
3816 if { (ac_try="$ac_link"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_link") 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest$ac_exeext &&
3832 $as_test_x conftest$ac_exeext; then
3833 emacs_cv_sunpro_c=yes
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 emacs_cv_sunpro_c=no
3841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3842 conftest$ac_exeext conftest.$ac_ext
3845 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3846 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3848 if test x"$emacs_cv_sunpro_c" = xyes; then
3849 NON_GNU_CPP="$CC -E -Xs"
3853 #### Some systems specify a CPP to use unless we are using GCC.
3854 #### Now that we know whether we are using GCC, we can decide whether
3855 #### to use that one.
3856 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3857 then
3858 CPP="$NON_GNU_CPP"
3861 #### Some systems specify a CC to use unless we are using GCC.
3862 #### Now that we know whether we are using GCC, we can decide whether
3863 #### to use that one.
3864 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3865 test x$cc_specified != xyes
3866 then
3867 CC="$NON_GNU_CC"
3870 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3871 then
3872 CC="$CC $GCC_TEST_OPTIONS"
3875 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3876 then
3877 CC="$CC $NON_GCC_TEST_OPTIONS"
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3887 # On Suns, sometimes $CPP names a directory.
3888 if test -n "$CPP" && test -d "$CPP"; then
3889 CPP=
3891 if test -z "$CPP"; then
3892 if test "${ac_cv_prog_CPP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 # Double quotes because CPP needs to be expanded
3896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3898 ac_preproc_ok=false
3899 for ac_c_preproc_warn_flag in '' yes
3901 # Use a header file that comes with gcc, so configuring glibc
3902 # with a fresh cross-compiler works.
3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904 # <limits.h> exists even on freestanding compilers.
3905 # On the NeXT, cc -E runs the code through the compiler's parser,
3906 # not just through cpp. "Syntax error" is here to catch this case.
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #ifdef __STDC__
3914 # include <limits.h>
3915 #else
3916 # include <assert.h>
3917 #endif
3918 Syntax error
3919 _ACEOF
3920 if { (ac_try="$ac_cpp conftest.$ac_ext"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } >/dev/null && {
3933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 }; then
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 # Broken: fails on valid input.
3942 continue
3945 rm -f conftest.err conftest.$ac_ext
3947 # OK, works on sane cases. Now check whether nonexistent headers
3948 # can be detected and how.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <ac_nonexistent.h>
3956 _ACEOF
3957 if { (ac_try="$ac_cpp conftest.$ac_ext"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } >/dev/null && {
3970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 }; then
3973 # Broken: success on invalid input.
3974 continue
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 # Passes both tests.
3980 ac_preproc_ok=:
3981 break
3984 rm -f conftest.err conftest.$ac_ext
3986 done
3987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988 rm -f conftest.err conftest.$ac_ext
3989 if $ac_preproc_ok; then
3990 break
3993 done
3994 ac_cv_prog_CPP=$CPP
3997 CPP=$ac_cv_prog_CPP
3998 else
3999 ac_cv_prog_CPP=$CPP
4001 { echo "$as_me:$LINENO: result: $CPP" >&5
4002 echo "${ECHO_T}$CPP" >&6; }
4003 ac_preproc_ok=false
4004 for ac_c_preproc_warn_flag in '' yes
4006 # Use a header file that comes with gcc, so configuring glibc
4007 # with a fresh cross-compiler works.
4008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4009 # <limits.h> exists even on freestanding compilers.
4010 # On the NeXT, cc -E runs the code through the compiler's parser,
4011 # not just through cpp. "Syntax error" is here to catch this case.
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 #ifdef __STDC__
4019 # include <limits.h>
4020 #else
4021 # include <assert.h>
4022 #endif
4023 Syntax error
4024 _ACEOF
4025 if { (ac_try="$ac_cpp conftest.$ac_ext"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } >/dev/null && {
4038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4039 test ! -s conftest.err
4040 }; then
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 # Broken: fails on valid input.
4047 continue
4050 rm -f conftest.err conftest.$ac_ext
4052 # OK, works on sane cases. Now check whether nonexistent headers
4053 # can be detected and how.
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 #include <ac_nonexistent.h>
4061 _ACEOF
4062 if { (ac_try="$ac_cpp conftest.$ac_ext"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } >/dev/null && {
4075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4076 test ! -s conftest.err
4077 }; then
4078 # Broken: success on invalid input.
4079 continue
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4089 rm -f conftest.err conftest.$ac_ext
4091 done
4092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093 rm -f conftest.err conftest.$ac_ext
4094 if $ac_preproc_ok; then
4096 else
4097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4098 See \`config.log' for more details." >&5
4099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4100 See \`config.log' for more details." >&2;}
4101 { (exit 1); exit 1; }; }
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4112 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4113 if test "${ac_cv_path_GREP+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 # Extract the first word of "grep ggrep" to use in msg output
4117 if test -z "$GREP"; then
4118 set dummy grep ggrep; ac_prog_name=$2
4119 if test "${ac_cv_path_GREP+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 ac_path_GREP_found=false
4123 # Loop through the user's path and test for each of PROGNAME-LIST
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_prog in grep ggrep; do
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4132 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4133 # Check for GNU ac_path_GREP and select it if it is found.
4134 # Check for GNU $ac_path_GREP
4135 case `"$ac_path_GREP" --version 2>&1` in
4136 *GNU*)
4137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4139 ac_count=0
4140 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4141 while :
4143 cat "conftest.in" "conftest.in" >"conftest.tmp"
4144 mv "conftest.tmp" "conftest.in"
4145 cp "conftest.in" "conftest.nl"
4146 echo 'GREP' >> "conftest.nl"
4147 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149 ac_count=`expr $ac_count + 1`
4150 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4151 # Best one so far, save it but keep looking for a better one
4152 ac_cv_path_GREP="$ac_path_GREP"
4153 ac_path_GREP_max=$ac_count
4155 # 10*(2^10) chars as input seems more than enough
4156 test $ac_count -gt 10 && break
4157 done
4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4162 $ac_path_GREP_found && break 3
4163 done
4164 done
4166 done
4167 IFS=$as_save_IFS
4172 GREP="$ac_cv_path_GREP"
4173 if test -z "$GREP"; then
4174 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4175 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4176 { (exit 1); exit 1; }; }
4179 else
4180 ac_cv_path_GREP=$GREP
4185 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4186 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4187 GREP="$ac_cv_path_GREP"
4190 { echo "$as_me:$LINENO: checking for egrep" >&5
4191 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4192 if test "${ac_cv_path_EGREP+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4196 then ac_cv_path_EGREP="$GREP -E"
4197 else
4198 # Extract the first word of "egrep" to use in msg output
4199 if test -z "$EGREP"; then
4200 set dummy egrep; ac_prog_name=$2
4201 if test "${ac_cv_path_EGREP+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 ac_path_EGREP_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in egrep; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4214 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4215 # Check for GNU ac_path_EGREP and select it if it is found.
4216 # Check for GNU $ac_path_EGREP
4217 case `"$ac_path_EGREP" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4221 ac_count=0
4222 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4223 while :
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 echo 'EGREP' >> "conftest.nl"
4229 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 ac_count=`expr $ac_count + 1`
4232 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_EGREP="$ac_path_EGREP"
4235 ac_path_EGREP_max=$ac_count
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4244 $ac_path_EGREP_found && break 3
4245 done
4246 done
4248 done
4249 IFS=$as_save_IFS
4254 EGREP="$ac_cv_path_EGREP"
4255 if test -z "$EGREP"; then
4256 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4257 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4258 { (exit 1); exit 1; }; }
4261 else
4262 ac_cv_path_EGREP=$EGREP
4268 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4269 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4270 EGREP="$ac_cv_path_EGREP"
4274 { echo "$as_me:$LINENO: checking for AIX" >&5
4275 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 #ifdef _AIX
4284 #endif
4286 _ACEOF
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288 $EGREP "yes" >/dev/null 2>&1; then
4289 { echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6; }
4291 cat >>confdefs.h <<\_ACEOF
4292 #define _ALL_SOURCE 1
4293 _ACEOF
4295 else
4296 { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4299 rm -f conftest*
4303 cat >>confdefs.h <<\_ACEOF
4304 #define _GNU_SOURCE 1
4305 _ACEOF
4309 ### Use -Wno-pointer-sign if the compiler supports it
4310 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4311 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4312 SAVE_CFLAGS="$CFLAGS"
4313 CFLAGS="$CFLAGS -Wno-pointer-sign"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4322 main ()
4326 return 0;
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && {
4343 test -z "$ac_c_werror_flag" ||
4344 test ! -s conftest.err
4345 } && test -s conftest.$ac_objext; then
4346 has_option=yes
4347 else
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 has_option=no
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 if test $has_option = yes; then
4356 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4358 { echo "$as_me:$LINENO: result: $has_option" >&5
4359 echo "${ECHO_T}$has_option" >&6; }
4360 CFLAGS="$SAVE_CFLAGS"
4361 unset has_option
4362 unset SAVE_CFLAGS
4364 #### Some other nice autoconf tests.
4366 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4368 LN_S=$as_ln_s
4369 if test "$LN_S" = "ln -s"; then
4370 { echo "$as_me:$LINENO: result: yes" >&5
4371 echo "${ECHO_T}yes" >&6; }
4372 else
4373 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4374 echo "${ECHO_T}no, using $LN_S" >&6; }
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4383 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4384 # On Suns, sometimes $CPP names a directory.
4385 if test -n "$CPP" && test -d "$CPP"; then
4386 CPP=
4388 if test -z "$CPP"; then
4389 if test "${ac_cv_prog_CPP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 # Double quotes because CPP needs to be expanded
4393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4395 ac_preproc_ok=false
4396 for ac_c_preproc_warn_flag in '' yes
4398 # Use a header file that comes with gcc, so configuring glibc
4399 # with a fresh cross-compiler works.
4400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 # <limits.h> exists even on freestanding compilers.
4402 # On the NeXT, cc -E runs the code through the compiler's parser,
4403 # not just through cpp. "Syntax error" is here to catch this case.
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #ifdef __STDC__
4411 # include <limits.h>
4412 #else
4413 # include <assert.h>
4414 #endif
4415 Syntax error
4416 _ACEOF
4417 if { (ac_try="$ac_cpp conftest.$ac_ext"
4418 case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } >/dev/null && {
4430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4431 test ! -s conftest.err
4432 }; then
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 # Broken: fails on valid input.
4439 continue
4442 rm -f conftest.err conftest.$ac_ext
4444 # OK, works on sane cases. Now check whether nonexistent headers
4445 # can be detected and how.
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h. */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 #include <ac_nonexistent.h>
4453 _ACEOF
4454 if { (ac_try="$ac_cpp conftest.$ac_ext"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null && {
4467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4468 test ! -s conftest.err
4469 }; then
4470 # Broken: success on invalid input.
4471 continue
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 # Passes both tests.
4477 ac_preproc_ok=:
4478 break
4481 rm -f conftest.err conftest.$ac_ext
4483 done
4484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4485 rm -f conftest.err conftest.$ac_ext
4486 if $ac_preproc_ok; then
4487 break
4490 done
4491 ac_cv_prog_CPP=$CPP
4494 CPP=$ac_cv_prog_CPP
4495 else
4496 ac_cv_prog_CPP=$CPP
4498 { echo "$as_me:$LINENO: result: $CPP" >&5
4499 echo "${ECHO_T}$CPP" >&6; }
4500 ac_preproc_ok=false
4501 for ac_c_preproc_warn_flag in '' yes
4503 # Use a header file that comes with gcc, so configuring glibc
4504 # with a fresh cross-compiler works.
4505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506 # <limits.h> exists even on freestanding compilers.
4507 # On the NeXT, cc -E runs the code through the compiler's parser,
4508 # not just through cpp. "Syntax error" is here to catch this case.
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #ifdef __STDC__
4516 # include <limits.h>
4517 #else
4518 # include <assert.h>
4519 #endif
4520 Syntax error
4521 _ACEOF
4522 if { (ac_try="$ac_cpp conftest.$ac_ext"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } >/dev/null && {
4535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4536 test ! -s conftest.err
4537 }; then
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4543 # Broken: fails on valid input.
4544 continue
4547 rm -f conftest.err conftest.$ac_ext
4549 # OK, works on sane cases. Now check whether nonexistent headers
4550 # can be detected and how.
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <ac_nonexistent.h>
4558 _ACEOF
4559 if { (ac_try="$ac_cpp conftest.$ac_ext"
4560 case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } >/dev/null && {
4572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4573 test ! -s conftest.err
4574 }; then
4575 # Broken: success on invalid input.
4576 continue
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 # Passes both tests.
4582 ac_preproc_ok=:
4583 break
4586 rm -f conftest.err conftest.$ac_ext
4588 done
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.err conftest.$ac_ext
4591 if $ac_preproc_ok; then
4593 else
4594 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4595 See \`config.log' for more details." >&5
4596 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4597 See \`config.log' for more details." >&2;}
4598 { (exit 1); exit 1; }; }
4601 ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607 # Find a good install program. We prefer a C program (faster),
4608 # so one script is as good as another. But avoid the broken or
4609 # incompatible versions:
4610 # SysV /etc/install, /usr/sbin/install
4611 # SunOS /usr/etc/install
4612 # IRIX /sbin/install
4613 # AIX /bin/install
4614 # AmigaOS /C/install, which installs bootblocks on floppy discs
4615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4618 # OS/2's system install, which has a completely different semantic
4619 # ./install, which can be erroneously created by make from ./install.sh.
4620 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4621 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4622 if test -z "$INSTALL"; then
4623 if test "${ac_cv_path_install+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 # Account for people who put trailing slashes in PATH elements.
4632 case $as_dir/ in
4633 ./ | .// | /cC/* | \
4634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4635 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4636 /usr/ucb/* ) ;;
4638 # OSF1 and SCO ODT 3.0 have their own names for install.
4639 # Don't use installbsd from OSF since it installs stuff as root
4640 # by default.
4641 for ac_prog in ginstall scoinst install; do
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4644 if test $ac_prog = install &&
4645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4646 # AIX install. It has an incompatible calling convention.
4648 elif test $ac_prog = install &&
4649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4650 # program-specific install script used by HP pwplus--don't use.
4652 else
4653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4654 break 3
4657 done
4658 done
4660 esac
4661 done
4662 IFS=$as_save_IFS
4666 if test "${ac_cv_path_install+set}" = set; then
4667 INSTALL=$ac_cv_path_install
4668 else
4669 # As a last resort, use the slow shell script. Don't cache a
4670 # value for INSTALL within a source directory, because that will
4671 # break other packages using the cache if that directory is
4672 # removed, or if the value is a relative name.
4673 INSTALL=$ac_install_sh
4676 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4677 echo "${ECHO_T}$INSTALL" >&6; }
4679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4680 # It thinks the first close brace ends the variable substitution.
4681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4687 if test "x$RANLIB" = x; then
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_prog_RANLIB+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 if test -n "$RANLIB"; then
4697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4712 IFS=$as_save_IFS
4716 RANLIB=$ac_cv_prog_RANLIB
4717 if test -n "$RANLIB"; then
4718 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4719 echo "${ECHO_T}$RANLIB" >&6; }
4720 else
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4727 if test -z "$ac_cv_prog_RANLIB"; then
4728 ac_ct_RANLIB=$RANLIB
4729 # Extract the first word of "ranlib", so it can be a program name with args.
4730 set dummy ranlib; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 if test -n "$ac_ct_RANLIB"; then
4737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ac_ct_RANLIB="ranlib"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4750 done
4751 done
4752 IFS=$as_save_IFS
4756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4757 if test -n "$ac_ct_RANLIB"; then
4758 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4759 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4760 else
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4765 if test "x$ac_ct_RANLIB" = x; then
4766 RANLIB=":"
4767 else
4768 case $cross_compiling:$ac_tool_warned in
4769 yes:)
4770 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4771 whose name does not start with the host triplet. If you think this
4772 configuration is useful to you, please write to autoconf@gnu.org." >&5
4773 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4774 whose name does not start with the host triplet. If you think this
4775 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4776 ac_tool_warned=yes ;;
4777 esac
4778 RANLIB=$ac_ct_RANLIB
4780 else
4781 RANLIB="$ac_cv_prog_RANLIB"
4785 # Extract the first word of "install-info", so it can be a program name with args.
4786 set dummy install-info; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 case $INSTALL_INFO in
4793 [\\/]* | ?:[\\/]*)
4794 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4813 esac
4815 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4816 if test -n "$INSTALL_INFO"; then
4817 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4818 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4819 else
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4825 # Extract the first word of "install-info", so it can be a program name with args.
4826 set dummy install-info; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 case $INSTALL_INFO in
4833 [\\/]* | ?:[\\/]*)
4834 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in /usr/sbin
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4853 esac
4855 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4856 if test -n "$INSTALL_INFO"; then
4857 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4858 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4859 else
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4865 # Extract the first word of "install-info", so it can be a program name with args.
4866 set dummy install-info; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 case $INSTALL_INFO in
4873 [\\/]* | ?:[\\/]*)
4874 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in /sbin
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4888 done
4889 done
4890 IFS=$as_save_IFS
4892 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4894 esac
4896 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4897 if test -n "$INSTALL_INFO"; then
4898 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4899 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4900 else
4901 { echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6; }
4906 # Extract the first word of "gzip", so it can be a program name with args.
4907 set dummy gzip; ac_word=$2
4908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 case $GZIP_PROG in
4914 [\\/]* | ?:[\\/]*)
4915 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4934 esac
4936 GZIP_PROG=$ac_cv_path_GZIP_PROG
4937 if test -n "$GZIP_PROG"; then
4938 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4939 echo "${ECHO_T}$GZIP_PROG" >&6; }
4940 else
4941 { echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6; }
4948 ## Need makeinfo >= 4.6 (?) to build the manuals.
4949 # Extract the first word of "makeinfo", so it can be a program name with args.
4950 set dummy makeinfo; ac_word=$2
4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 case $MAKEINFO in
4957 [\\/]* | ?:[\\/]*)
4958 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4976 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4978 esac
4980 MAKEINFO=$ac_cv_path_MAKEINFO
4981 if test -n "$MAKEINFO"; then
4982 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4983 echo "${ECHO_T}$MAKEINFO" >&6; }
4984 else
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4990 if test "$MAKEINFO" != "no" && \
4991 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
4992 MAKEINFO=no
4995 if test "$MAKEINFO" = "no"; then
4996 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4997 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4998 { (exit 1); exit 1; }; }
5003 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5004 then
5005 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5008 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5009 then
5010 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5014 late_LDFLAGS=$LDFLAGS
5015 if test "$GCC" = yes; then
5016 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5017 else
5018 LDFLAGS="$LDFLAGS -znocombreloc"
5021 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5022 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5023 cat >conftest.$ac_ext <<_ACEOF
5024 main(){return 0;}
5025 _ACEOF
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (ac_try="$ac_link"
5028 case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_link") 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest$ac_exeext &&
5043 $as_test_x conftest$ac_exeext; then
5044 { echo "$as_me:$LINENO: result: yes" >&5
5045 echo "${ECHO_T}yes" >&6; }
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 LDFLAGS=$late_LDFLAGS
5051 { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5056 conftest$ac_exeext conftest.$ac_ext
5058 #### Extract some information from the operating system and machine files.
5060 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5061 - which libraries the lib-src programs will want, and
5062 - whether the GNU malloc routines are usable..." >&5
5063 echo "$as_me: checking the machine- and system-dependent files to find out
5064 - which libraries the lib-src programs will want, and
5065 - whether the GNU malloc routines are usable..." >&6;}
5067 ### First figure out CFLAGS (which we use for running the compiler here)
5068 ### and REAL_CFLAGS (which we use for real compilation).
5069 ### The two are the same except on a few systems, where they are made
5070 ### different to work around various lossages. For example,
5071 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5072 ### as implying static linking.
5074 ### If the CFLAGS env var is specified, we use that value
5075 ### instead of the default.
5077 ### It's not important that this name contain the PID; you can't run
5078 ### two configures in the same directory and have anything work
5079 ### anyway.
5080 tempcname="conftest.c"
5082 echo '
5083 #include "'${srcdir}'/src/'${opsysfile}'"
5084 #include "'${srcdir}'/src/'${machfile}'"
5085 #ifndef LIBS_MACHINE
5086 #define LIBS_MACHINE
5087 #endif
5088 #ifndef LIBS_SYSTEM
5089 #define LIBS_SYSTEM
5090 #endif
5091 #ifndef C_SWITCH_SYSTEM
5092 #define C_SWITCH_SYSTEM
5093 #endif
5094 #ifndef C_SWITCH_MACHINE
5095 #define C_SWITCH_MACHINE
5096 #endif
5097 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5098 configure___ c_switch_system=C_SWITCH_SYSTEM
5099 configure___ c_switch_machine=C_SWITCH_MACHINE
5101 #ifndef LIB_X11_LIB
5102 #define LIB_X11_LIB -lX11
5103 #endif
5105 #ifndef LIBX11_MACHINE
5106 #define LIBX11_MACHINE
5107 #endif
5109 #ifndef LIBX11_SYSTEM
5110 #define LIBX11_SYSTEM
5111 #endif
5112 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5114 #ifdef UNEXEC
5115 configure___ unexec=UNEXEC
5116 #else
5117 configure___ unexec=unexec.o
5118 #endif
5120 #ifdef SYSTEM_MALLOC
5121 configure___ system_malloc=yes
5122 #else
5123 configure___ system_malloc=no
5124 #endif
5126 #ifdef USE_MMAP_FOR_BUFFERS
5127 configure___ use_mmap_for_buffers=yes
5128 #else
5129 configure___ use_mmap_for_buffers=no
5130 #endif
5132 #ifndef C_DEBUG_SWITCH
5133 #define C_DEBUG_SWITCH -g
5134 #endif
5136 #ifndef C_OPTIMIZE_SWITCH
5137 #ifdef __GNUC__
5138 #define C_OPTIMIZE_SWITCH -O2
5139 #else
5140 #define C_OPTIMIZE_SWITCH -O
5141 #endif
5142 #endif
5144 #ifndef C_WARNINGS_SWITCH
5145 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5146 #endif
5148 #ifndef LD_SWITCH_MACHINE
5149 #define LD_SWITCH_MACHINE
5150 #endif
5152 #ifndef LD_SWITCH_SYSTEM
5153 #define LD_SWITCH_SYSTEM
5154 #endif
5156 #ifndef LD_SWITCH_X_SITE_AUX
5157 #define LD_SWITCH_X_SITE_AUX
5158 #endif
5160 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5161 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5163 #ifdef THIS_IS_CONFIGURE
5165 /* Get the CFLAGS for tests in configure. */
5166 #ifdef __GNUC__
5167 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5168 #else
5169 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5170 #endif
5172 #else /* not THIS_IS_CONFIGURE */
5174 /* Get the CFLAGS for real compilation. */
5175 #ifdef __GNUC__
5176 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5177 #else
5178 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5179 #endif
5181 #endif /* not THIS_IS_CONFIGURE */
5182 ' > ${tempcname}
5184 # The value of CPP is a quoted variable reference, so we need to do this
5185 # to get its actual value...
5186 CPP=`eval "echo $CPP"`
5187 eval `${CPP} -Isrc ${tempcname} \
5188 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5189 if test "x$SPECIFIED_CFLAGS" = x; then
5190 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5191 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5192 else
5193 REAL_CFLAGS="$CFLAGS"
5195 rm ${tempcname}
5197 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5199 ### Make sure subsequent tests use flags consistent with the build flags.
5201 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5202 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5203 else
5204 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5209 # Check whether --enable-largefile was given.
5210 if test "${enable_largefile+set}" = set; then
5211 enableval=$enable_largefile;
5214 if test "$enable_largefile" != no; then
5216 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5217 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5218 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 ac_cv_sys_largefile_CC=no
5222 if test "$GCC" != yes; then
5223 ac_save_CC=$CC
5224 while :; do
5225 # IRIX 6.2 and later do not support large files by default,
5226 # so use the C compiler's -n32 option if that helps.
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <sys/types.h>
5234 /* Check that off_t can represent 2**63 - 1 correctly.
5235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5236 since some C++ compilers masquerading as C compilers
5237 incorrectly reject 9223372036854775807. */
5238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5240 && LARGE_OFF_T % 2147483647 == 1)
5241 ? 1 : -1];
5243 main ()
5247 return 0;
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5267 break
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5275 rm -f core conftest.err conftest.$ac_objext
5276 CC="$CC -n32"
5277 rm -f conftest.$ac_objext
5278 if { (ac_try="$ac_compile"
5279 case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282 esac
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_compile") 2>conftest.er1
5285 ac_status=$?
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
5294 ac_cv_sys_largefile_CC=' -n32'; break
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5302 rm -f core conftest.err conftest.$ac_objext
5303 break
5304 done
5305 CC=$ac_save_CC
5306 rm -f conftest.$ac_ext
5309 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5310 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5311 if test "$ac_cv_sys_largefile_CC" != no; then
5312 CC=$CC$ac_cv_sys_largefile_CC
5315 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5316 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5317 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 while :; do
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <sys/types.h>
5328 /* Check that off_t can represent 2**63 - 1 correctly.
5329 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5330 since some C++ compilers masquerading as C compilers
5331 incorrectly reject 9223372036854775807. */
5332 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5333 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5334 && LARGE_OFF_T % 2147483647 == 1)
5335 ? 1 : -1];
5337 main ()
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5346 case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && {
5358 test -z "$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5360 } && test -s conftest.$ac_objext; then
5361 ac_cv_sys_file_offset_bits=no; break
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 #define _FILE_OFFSET_BITS 64
5377 #include <sys/types.h>
5378 /* Check that off_t can represent 2**63 - 1 correctly.
5379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5380 since some C++ compilers masquerading as C compilers
5381 incorrectly reject 9223372036854775807. */
5382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5384 && LARGE_OFF_T % 2147483647 == 1)
5385 ? 1 : -1];
5387 main ()
5391 return 0;
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compile") 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_c_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
5411 ac_cv_sys_file_offset_bits=64; break
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 ac_cv_sys_file_offset_bits=unknown
5421 break
5422 done
5424 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5425 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5426 case $ac_cv_sys_file_offset_bits in #(
5427 no | unknown) ;;
5429 cat >>confdefs.h <<_ACEOF
5430 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5431 _ACEOF
5433 esac
5434 rm -f conftest*
5435 if test $ac_cv_sys_file_offset_bits = unknown; then
5436 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5437 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5438 if test "${ac_cv_sys_large_files+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441 while :; do
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 #include <sys/types.h>
5449 /* Check that off_t can represent 2**63 - 1 correctly.
5450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5451 since some C++ compilers masquerading as C compilers
5452 incorrectly reject 9223372036854775807. */
5453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5455 && LARGE_OFF_T % 2147483647 == 1)
5456 ? 1 : -1];
5458 main ()
5462 return 0;
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_cv_sys_large_files=no; break
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 #define _LARGE_FILES 1
5498 #include <sys/types.h>
5499 /* Check that off_t can represent 2**63 - 1 correctly.
5500 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5501 since some C++ compilers masquerading as C compilers
5502 incorrectly reject 9223372036854775807. */
5503 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5505 && LARGE_OFF_T % 2147483647 == 1)
5506 ? 1 : -1];
5508 main ()
5512 return 0;
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (ac_try="$ac_compile"
5517 case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_compile") 2>conftest.er1
5523 ac_status=$?
5524 grep -v '^ *+' conftest.er1 >conftest.err
5525 rm -f conftest.er1
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && {
5529 test -z "$ac_c_werror_flag" ||
5530 test ! -s conftest.err
5531 } && test -s conftest.$ac_objext; then
5532 ac_cv_sys_large_files=1; break
5533 else
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 ac_cv_sys_large_files=unknown
5542 break
5543 done
5545 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5546 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5547 case $ac_cv_sys_large_files in #(
5548 no | unknown) ;;
5550 cat >>confdefs.h <<_ACEOF
5551 #define _LARGE_FILES $ac_cv_sys_large_files
5552 _ACEOF
5554 esac
5555 rm -f conftest*
5561 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5562 ### be located in either /usr/lib64 or /usr/lib.
5563 case "${canonical}" in
5564 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5565 if test -d /usr/lib64; then
5567 cat >>confdefs.h <<\_ACEOF
5568 #define HAVE_LIB64_DIR 1
5569 _ACEOF
5572 esac
5577 if test "${with_sound}" != "no"; then
5578 # Sound support for GNU/Linux and the free BSDs.
5579 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5580 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5581 if test "${ac_cv_header_stdc+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <stdlib.h>
5591 #include <stdarg.h>
5592 #include <string.h>
5593 #include <float.h>
5596 main ()
5600 return 0;
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (ac_try="$ac_compile"
5605 case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_compile") 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest.$ac_objext; then
5620 ac_cv_header_stdc=yes
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 ac_cv_header_stdc=no
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 if test $ac_cv_header_stdc = yes; then
5631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <string.h>
5640 _ACEOF
5641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5642 $EGREP "memchr" >/dev/null 2>&1; then
5644 else
5645 ac_cv_header_stdc=no
5647 rm -f conftest*
5651 if test $ac_cv_header_stdc = yes; then
5652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <stdlib.h>
5661 _ACEOF
5662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "free" >/dev/null 2>&1; then
5665 else
5666 ac_cv_header_stdc=no
5668 rm -f conftest*
5672 if test $ac_cv_header_stdc = yes; then
5673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5674 if test "$cross_compiling" = yes; then
5676 else
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683 #include <ctype.h>
5684 #include <stdlib.h>
5685 #if ((' ' & 0x0FF) == 0x020)
5686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5688 #else
5689 # define ISLOWER(c) \
5690 (('a' <= (c) && (c) <= 'i') \
5691 || ('j' <= (c) && (c) <= 'r') \
5692 || ('s' <= (c) && (c) <= 'z'))
5693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5694 #endif
5696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5698 main ()
5700 int i;
5701 for (i = 0; i < 256; i++)
5702 if (XOR (islower (i), ISLOWER (i))
5703 || toupper (i) != TOUPPER (i))
5704 return 2;
5705 return 0;
5707 _ACEOF
5708 rm -f conftest$ac_exeext
5709 if { (ac_try="$ac_link"
5710 case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_link") 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5719 { (case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_try") 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5729 else
5730 echo "$as_me: program exited with status $ac_status" >&5
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 ( exit $ac_status )
5735 ac_cv_header_stdc=no
5737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5744 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5745 if test $ac_cv_header_stdc = yes; then
5747 cat >>confdefs.h <<\_ACEOF
5748 #define STDC_HEADERS 1
5749 _ACEOF
5753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5764 inttypes.h stdint.h unistd.h
5766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 $ac_includes_default
5780 #include <$ac_header>
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 eval "$as_ac_Header=yes"
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 eval "$as_ac_Header=no"
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_res=`eval echo '${'$as_ac_Header'}'`
5810 { echo "$as_me:$LINENO: result: $ac_res" >&5
5811 echo "${ECHO_T}$ac_res" >&6; }
5812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5813 cat >>confdefs.h <<_ACEOF
5814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5815 _ACEOF
5819 done
5825 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_res=`eval echo '${'$as_ac_Header'}'`
5835 { echo "$as_me:$LINENO: result: $ac_res" >&5
5836 echo "${ECHO_T}$ac_res" >&6; }
5837 else
5838 # Is the header compilable?
5839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5848 #include <$ac_header>
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5852 case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compile") 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && {
5864 test -z "$ac_c_werror_flag" ||
5865 test ! -s conftest.err
5866 } && test -s conftest.$ac_objext; then
5867 ac_header_compiler=yes
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 ac_header_compiler=no
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5877 echo "${ECHO_T}$ac_header_compiler" >&6; }
5879 # Is the header present?
5880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <$ac_header>
5889 _ACEOF
5890 if { (ac_try="$ac_cpp conftest.$ac_ext"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } >/dev/null && {
5903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 }; then
5906 ac_header_preproc=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_header_preproc=no
5914 rm -f conftest.err conftest.$ac_ext
5915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5916 echo "${ECHO_T}$ac_header_preproc" >&6; }
5918 # So? What about this header?
5919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5920 yes:no: )
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5925 ac_header_preproc=yes
5927 no:yes:* )
5928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5942 esac
5943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 eval "$as_ac_Header=\$ac_header_preproc"
5950 ac_res=`eval echo '${'$as_ac_Header'}'`
5951 { echo "$as_me:$LINENO: result: $ac_res" >&5
5952 echo "${ECHO_T}$ac_res" >&6; }
5955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5956 cat >>confdefs.h <<_ACEOF
5957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958 _ACEOF
5962 done
5964 # Emulation library used on NetBSD.
5965 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5966 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5967 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lossaudio $LIBS"
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5979 /* Override any GCC internal prototype to avoid an error.
5980 Use char because int might match the return type of a GCC
5981 builtin and then its argument prototype would still apply. */
5982 #ifdef __cplusplus
5983 extern "C"
5984 #endif
5985 char _oss_ioctl ();
5987 main ()
5989 return _oss_ioctl ();
5991 return 0;
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (ac_try="$ac_link"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_link") 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && {
6008 test -z "$ac_c_werror_flag" ||
6009 test ! -s conftest.err
6010 } && test -s conftest$ac_exeext &&
6011 $as_test_x conftest$ac_exeext; then
6012 ac_cv_lib_ossaudio__oss_ioctl=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_lib_ossaudio__oss_ioctl=no
6020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6021 conftest$ac_exeext conftest.$ac_ext
6022 LIBS=$ac_check_lib_save_LIBS
6024 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6025 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6026 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6027 LIBSOUND=-lossaudio
6028 else
6029 LIBSOUND=
6034 ALSA_REQUIRED=1.0.0
6035 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6037 succeeded=no
6039 # Extract the first word of "pkg-config", so it can be a program name with args.
6040 set dummy pkg-config; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 case $PKG_CONFIG in
6047 [\\/]* | ?:[\\/]*)
6048 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6062 done
6063 done
6064 IFS=$as_save_IFS
6066 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6068 esac
6070 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6071 if test -n "$PKG_CONFIG"; then
6072 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6073 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6074 else
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6081 if test "$PKG_CONFIG" = "no" ; then
6082 HAVE_ALSA=no
6083 else
6084 PKG_CONFIG_MIN_VERSION=0.9.0
6085 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6086 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6087 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6089 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6090 { echo "$as_me:$LINENO: result: yes" >&5
6091 echo "${ECHO_T}yes" >&6; }
6092 succeeded=yes
6094 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6095 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6096 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6097 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6098 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6100 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6101 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6102 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6103 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6104 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6105 else
6106 { echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6; }
6108 ALSA_CFLAGS=""
6109 ALSA_LIBS=""
6110 ## If we have a custom action on failure, don't print errors, but
6111 ## do set a variable so people can do so.
6112 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6118 else
6119 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6120 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6124 if test $succeeded = yes; then
6125 HAVE_ALSA=yes
6126 else
6127 HAVE_ALSA=no
6130 if test $HAVE_ALSA = yes; then
6131 SAVE_CFLAGS="$CFLAGS"
6132 SAVE_LDFLAGS="$LDFLAGS"
6133 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6134 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <asoundlib.h>
6143 main ()
6145 snd_lib_error_set_handler (0);
6147 return 0;
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (ac_try="$ac_compile"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_compile") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest.$ac_objext; then
6167 emacs_alsa_normal=yes
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 emacs_alsa_normal=no
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 if test "$emacs_alsa_normal" != yes; then
6177 cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h. */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 #include <alsa/asoundlib.h>
6185 main ()
6187 snd_lib_error_set_handler (0);
6189 return 0;
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
6209 emacs_alsa_subdir=yes
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 emacs_alsa_subdir=no
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 if test "$emacs_alsa_subdir" != yes; then
6219 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6220 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6221 { (exit 1); exit 1; }; }
6223 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6226 CFLAGS="$SAVE_CFLAGS"
6227 LDFLAGS="$SAVE_LDFLAGS"
6228 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6229 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HAVE_ALSA 1
6233 _ACEOF
6264 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6265 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6266 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6267 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6268 sys/utsname.h pwd.h
6270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_res=`eval echo '${'$as_ac_Header'}'`
6278 { echo "$as_me:$LINENO: result: $ac_res" >&5
6279 echo "${ECHO_T}$ac_res" >&6; }
6280 else
6281 # Is the header compilable?
6282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 $ac_includes_default
6291 #include <$ac_header>
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6295 case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 ac_header_compiler=yes
6311 else
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 ac_header_compiler=no
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6320 echo "${ECHO_T}$ac_header_compiler" >&6; }
6322 # Is the header present?
6323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #include <$ac_header>
6332 _ACEOF
6333 if { (ac_try="$ac_cpp conftest.$ac_ext"
6334 case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } >/dev/null && {
6346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6347 test ! -s conftest.err
6348 }; then
6349 ac_header_preproc=yes
6350 else
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 ac_header_preproc=no
6357 rm -f conftest.err conftest.$ac_ext
6358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6359 echo "${ECHO_T}$ac_header_preproc" >&6; }
6361 # So? What about this header?
6362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6363 yes:no: )
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6368 ac_header_preproc=yes
6370 no:yes:* )
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6385 esac
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 eval "$as_ac_Header=\$ac_header_preproc"
6393 ac_res=`eval echo '${'$as_ac_Header'}'`
6394 { echo "$as_me:$LINENO: result: $ac_res" >&5
6395 echo "${ECHO_T}$ac_res" >&6; }
6398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399 cat >>confdefs.h <<_ACEOF
6400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401 _ACEOF
6405 done
6408 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6409 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6410 cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 #include <sys/personality.h>
6418 main ()
6420 personality (PER_LINUX32)
6422 return 0;
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (ac_try="$ac_compile"
6427 case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430 esac
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_compile") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest.$ac_objext; then
6442 emacs_cv_personality_linux32=yes
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 emacs_cv_personality_linux32=no
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6452 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6454 if test $emacs_cv_personality_linux32 = yes; then
6456 cat >>confdefs.h <<\_ACEOF
6457 #define HAVE_PERSONALITY_LINUX32 1
6458 _ACEOF
6463 for ac_header in term.h
6465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <$ac_header>
6478 _ACEOF
6479 if { (ac_try="$ac_cpp conftest.$ac_ext"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } >/dev/null && {
6492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 }; then
6495 eval "$as_ac_Header=yes"
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 eval "$as_ac_Header=no"
6503 rm -f conftest.err conftest.$ac_ext
6505 ac_res=`eval echo '${'$as_ac_Header'}'`
6506 { echo "$as_me:$LINENO: result: $ac_res" >&5
6507 echo "${ECHO_T}$ac_res" >&6; }
6508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6515 done
6517 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6519 if test "${ac_cv_header_stdc+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <stdlib.h>
6529 #include <stdarg.h>
6530 #include <string.h>
6531 #include <float.h>
6534 main ()
6538 return 0;
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (ac_try="$ac_compile"
6543 case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compile") 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } && {
6555 test -z "$ac_c_werror_flag" ||
6556 test ! -s conftest.err
6557 } && test -s conftest.$ac_objext; then
6558 ac_cv_header_stdc=yes
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cv_header_stdc=no
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 if test $ac_cv_header_stdc = yes; then
6569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <string.h>
6578 _ACEOF
6579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6580 $EGREP "memchr" >/dev/null 2>&1; then
6582 else
6583 ac_cv_header_stdc=no
6585 rm -f conftest*
6589 if test $ac_cv_header_stdc = yes; then
6590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h. */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #include <stdlib.h>
6599 _ACEOF
6600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6601 $EGREP "free" >/dev/null 2>&1; then
6603 else
6604 ac_cv_header_stdc=no
6606 rm -f conftest*
6610 if test $ac_cv_header_stdc = yes; then
6611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6612 if test "$cross_compiling" = yes; then
6614 else
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <ctype.h>
6622 #include <stdlib.h>
6623 #if ((' ' & 0x0FF) == 0x020)
6624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6626 #else
6627 # define ISLOWER(c) \
6628 (('a' <= (c) && (c) <= 'i') \
6629 || ('j' <= (c) && (c) <= 'r') \
6630 || ('s' <= (c) && (c) <= 'z'))
6631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6632 #endif
6634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6636 main ()
6638 int i;
6639 for (i = 0; i < 256; i++)
6640 if (XOR (islower (i), ISLOWER (i))
6641 || toupper (i) != TOUPPER (i))
6642 return 2;
6643 return 0;
6645 _ACEOF
6646 rm -f conftest$ac_exeext
6647 if { (ac_try="$ac_link"
6648 case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6651 esac
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_link") 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6657 { (case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660 esac
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_try") 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6667 else
6668 echo "$as_me: program exited with status $ac_status" >&5
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 ( exit $ac_status )
6673 ac_cv_header_stdc=no
6675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6681 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6682 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6683 if test $ac_cv_header_stdc = yes; then
6685 cat >>confdefs.h <<\_ACEOF
6686 #define STDC_HEADERS 1
6687 _ACEOF
6691 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6692 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6693 if test "${ac_cv_header_time+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <sys/types.h>
6703 #include <sys/time.h>
6704 #include <time.h>
6707 main ()
6709 if ((struct tm *) 0)
6710 return 0;
6712 return 0;
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (ac_try="$ac_compile"
6717 case "(($ac_try" in
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6720 esac
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_compile") 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && {
6729 test -z "$ac_c_werror_flag" ||
6730 test ! -s conftest.err
6731 } && test -s conftest.$ac_objext; then
6732 ac_cv_header_time=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ac_cv_header_time=no
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6743 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6744 if test $ac_cv_header_time = yes; then
6746 cat >>confdefs.h <<\_ACEOF
6747 #define TIME_WITH_SYS_TIME 1
6748 _ACEOF
6752 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6753 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6754 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6765 main ()
6767 #ifndef sys_siglist
6768 (void) sys_siglist;
6769 #endif
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (ac_try="$ac_compile"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_compile") 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 } && test -s conftest.$ac_objext; then
6792 ac_cv_have_decl_sys_siglist=yes
6793 else
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 ac_cv_have_decl_sys_siglist=no
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6803 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6804 if test $ac_cv_have_decl_sys_siglist = yes; then
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_DECL_SYS_SIGLIST 1
6808 _ACEOF
6811 else
6812 cat >>confdefs.h <<_ACEOF
6813 #define HAVE_DECL_SYS_SIGLIST 0
6814 _ACEOF
6820 if test $ac_cv_have_decl_sys_siglist != yes; then
6821 # For Tru64, at least:
6822 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6823 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6824 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 $ac_includes_default
6835 main ()
6837 #ifndef __sys_siglist
6838 (void) __sys_siglist;
6839 #endif
6842 return 0;
6844 _ACEOF
6845 rm -f conftest.$ac_objext
6846 if { (ac_try="$ac_compile"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_compile") 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest.$ac_objext; then
6862 ac_cv_have_decl___sys_siglist=yes
6863 else
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 ac_cv_have_decl___sys_siglist=no
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6873 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6874 if test $ac_cv_have_decl___sys_siglist = yes; then
6876 cat >>confdefs.h <<_ACEOF
6877 #define HAVE_DECL___SYS_SIGLIST 1
6878 _ACEOF
6881 else
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_DECL___SYS_SIGLIST 0
6884 _ACEOF
6890 if test $ac_cv_have_decl___sys_siglist = yes; then
6892 cat >>confdefs.h <<\_ACEOF
6893 #define sys_siglist __sys_siglist
6894 _ACEOF
6898 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6899 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6900 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903 cat >conftest.$ac_ext <<_ACEOF
6904 /* confdefs.h. */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 #include <sys/types.h>
6910 #include <sys/wait.h>
6911 #ifndef WEXITSTATUS
6912 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6913 #endif
6914 #ifndef WIFEXITED
6915 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6916 #endif
6919 main ()
6921 int s;
6922 wait (&s);
6923 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6925 return 0;
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (ac_try="$ac_compile"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_compile") 2>conftest.er1
6936 ac_status=$?
6937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest.$ac_objext; then
6945 ac_cv_header_sys_wait_h=yes
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ac_cv_header_sys_wait_h=no
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6956 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6957 if test $ac_cv_header_sys_wait_h = yes; then
6959 cat >>confdefs.h <<\_ACEOF
6960 #define HAVE_SYS_WAIT_H 1
6961 _ACEOF
6966 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6967 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6968 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #ifdef TIME_WITH_SYS_TIME
6978 #include <sys/time.h>
6979 #include <time.h>
6980 #else
6981 #ifdef HAVE_SYS_TIME_H
6982 #include <sys/time.h>
6983 #else
6984 #include <time.h>
6985 #endif
6986 #endif
6987 #ifdef HAVE_UTIME_H
6988 #include <utime.h>
6989 #endif
6991 main ()
6993 static struct utimbuf x; x.actime = x.modtime;
6995 return 0;
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7000 case "(($ac_try" in
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7003 esac
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.$ac_objext; then
7015 emacs_cv_struct_utimbuf=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 emacs_cv_struct_utimbuf=no
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7026 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7027 if test $emacs_cv_struct_utimbuf = yes; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define HAVE_STRUCT_UTIMBUF 1
7031 _ACEOF
7035 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7036 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7037 if test "${ac_cv_type_signal+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <signal.h>
7050 main ()
7052 return *(signal (0, 0)) (0) == 1;
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_type_signal=int
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_type_signal=void
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7085 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7087 cat >>confdefs.h <<_ACEOF
7088 #define RETSIGTYPE $ac_cv_type_signal
7089 _ACEOF
7093 { echo "$as_me:$LINENO: checking for speed_t" >&5
7094 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7095 if test "${emacs_cv_speed_t+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #include <termios.h>
7106 main ()
7108 speed_t x = 1;
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 emacs_cv_speed_t=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 emacs_cv_speed_t=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7141 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7142 if test $emacs_cv_speed_t = yes; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_SPEED_T 1
7146 _ACEOF
7150 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7151 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7152 if test "${emacs_cv_struct_timeval+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #ifdef TIME_WITH_SYS_TIME
7162 #include <sys/time.h>
7163 #include <time.h>
7164 #else
7165 #ifdef HAVE_SYS_TIME_H
7166 #include <sys/time.h>
7167 #else
7168 #include <time.h>
7169 #endif
7170 #endif
7172 main ()
7174 static struct timeval x; x.tv_sec = x.tv_usec;
7176 return 0;
7178 _ACEOF
7179 rm -f conftest.$ac_objext
7180 if { (ac_try="$ac_compile"
7181 case "(($ac_try" in
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7184 esac
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_compile") 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && {
7193 test -z "$ac_c_werror_flag" ||
7194 test ! -s conftest.err
7195 } && test -s conftest.$ac_objext; then
7196 emacs_cv_struct_timeval=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 emacs_cv_struct_timeval=no
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7207 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7208 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7209 if test $emacs_cv_struct_timeval = yes; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_TIMEVAL 1
7213 _ACEOF
7217 { echo "$as_me:$LINENO: checking for struct exception" >&5
7218 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7219 if test "${emacs_cv_struct_exception+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h. */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 #include <math.h>
7230 main ()
7232 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7234 return 0;
7236 _ACEOF
7237 rm -f conftest.$ac_objext
7238 if { (ac_try="$ac_compile"
7239 case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242 esac
7243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_compile") 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && {
7251 test -z "$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 } && test -s conftest.$ac_objext; then
7254 emacs_cv_struct_exception=yes
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 emacs_cv_struct_exception=no
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7265 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7266 HAVE_EXCEPTION=$emacs_cv_struct_exception
7267 if test $emacs_cv_struct_exception != yes; then
7269 cat >>confdefs.h <<\_ACEOF
7270 #define NO_MATHERR 1
7271 _ACEOF
7276 for ac_header in sys/socket.h
7278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 ac_res=`eval echo '${'$as_ac_Header'}'`
7286 { echo "$as_me:$LINENO: result: $ac_res" >&5
7287 echo "${ECHO_T}$ac_res" >&6; }
7288 else
7289 # Is the header compilable?
7290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7299 #include <$ac_header>
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7303 case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306 esac
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_compile") 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.$ac_objext; then
7318 ac_header_compiler=yes
7319 else
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 ac_header_compiler=no
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7328 echo "${ECHO_T}$ac_header_compiler" >&6; }
7330 # Is the header present?
7331 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 #include <$ac_header>
7340 _ACEOF
7341 if { (ac_try="$ac_cpp conftest.$ac_ext"
7342 case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } >/dev/null && {
7354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 }; then
7357 ac_header_preproc=yes
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 ac_header_preproc=no
7365 rm -f conftest.err conftest.$ac_ext
7366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7367 echo "${ECHO_T}$ac_header_preproc" >&6; }
7369 # So? What about this header?
7370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7371 yes:no: )
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7376 ac_header_preproc=yes
7378 no:yes:* )
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7393 esac
7394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 eval "$as_ac_Header=\$ac_header_preproc"
7401 ac_res=`eval echo '${'$as_ac_Header'}'`
7402 { echo "$as_me:$LINENO: result: $ac_res" >&5
7403 echo "${ECHO_T}$ac_res" >&6; }
7406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7407 cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7409 _ACEOF
7413 done
7416 for ac_header in net/if.h
7418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 $ac_includes_default
7431 #if HAVE_SYS_SOCKET_H
7432 #include <sys/socket.h>
7433 #endif
7435 #include <$ac_header>
7436 _ACEOF
7437 rm -f conftest.$ac_objext
7438 if { (ac_try="$ac_compile"
7439 case "(($ac_try" in
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7442 esac
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444 (eval "$ac_compile") 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } && {
7451 test -z "$ac_c_werror_flag" ||
7452 test ! -s conftest.err
7453 } && test -s conftest.$ac_objext; then
7454 eval "$as_ac_Header=yes"
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7459 eval "$as_ac_Header=no"
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 ac_res=`eval echo '${'$as_ac_Header'}'`
7465 { echo "$as_me:$LINENO: result: $ac_res" >&5
7466 echo "${ECHO_T}$ac_res" >&6; }
7467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7468 cat >>confdefs.h <<_ACEOF
7469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470 _ACEOF
7474 done
7477 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7478 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7479 if test "${ac_cv_struct_tm+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h. */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 #include <sys/types.h>
7489 #include <time.h>
7492 main ()
7494 struct tm tm;
7495 int *p = &tm.tm_sec;
7496 return !p;
7498 return 0;
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_cv_struct_tm=time.h
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 ac_cv_struct_tm=sys/time.h
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7529 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7530 if test $ac_cv_struct_tm = sys/time.h; then
7532 cat >>confdefs.h <<\_ACEOF
7533 #define TM_IN_SYS_TIME 1
7534 _ACEOF
7538 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7539 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7540 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 #include <sys/types.h>
7550 #include <$ac_cv_struct_tm>
7554 main ()
7556 static struct tm ac_aggr;
7557 if (ac_aggr.tm_zone)
7558 return 0;
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_compile") 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.$ac_objext; then
7580 ac_cv_member_struct_tm_tm_zone=yes
7581 else
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 #include <sys/types.h>
7592 #include <$ac_cv_struct_tm>
7596 main ()
7598 static struct tm ac_aggr;
7599 if (sizeof ac_aggr.tm_zone)
7600 return 0;
7602 return 0;
7604 _ACEOF
7605 rm -f conftest.$ac_objext
7606 if { (ac_try="$ac_compile"
7607 case "(($ac_try" in
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7610 esac
7611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612 (eval "$ac_compile") 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
7622 ac_cv_member_struct_tm_tm_zone=yes
7623 else
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 ac_cv_member_struct_tm_tm_zone=no
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7636 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7637 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define HAVE_STRUCT_TM_TM_ZONE 1
7641 _ACEOF
7646 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_TM_ZONE 1
7650 _ACEOF
7652 else
7653 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7654 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7655 if test "${ac_cv_have_decl_tzname+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 #include <time.h>
7667 main ()
7669 #ifndef tzname
7670 (void) tzname;
7671 #endif
7674 return 0;
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (ac_try="$ac_compile"
7679 case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_compile") 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest.$ac_objext; then
7694 ac_cv_have_decl_tzname=yes
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_cv_have_decl_tzname=no
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7705 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7706 if test $ac_cv_have_decl_tzname = yes; then
7708 cat >>confdefs.h <<_ACEOF
7709 #define HAVE_DECL_TZNAME 1
7710 _ACEOF
7713 else
7714 cat >>confdefs.h <<_ACEOF
7715 #define HAVE_DECL_TZNAME 0
7716 _ACEOF
7722 { echo "$as_me:$LINENO: checking for tzname" >&5
7723 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7724 if test "${ac_cv_var_tzname+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 #include <time.h>
7734 #if !HAVE_DECL_TZNAME
7735 extern char *tzname[];
7736 #endif
7739 main ()
7741 return tzname[0][0];
7743 return 0;
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7748 case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_link") 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest$ac_exeext &&
7763 $as_test_x conftest$ac_exeext; then
7764 ac_cv_var_tzname=yes
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_var_tzname=no
7772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7773 conftest$ac_exeext conftest.$ac_ext
7775 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7776 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7777 if test $ac_cv_var_tzname = yes; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_TZNAME 1
7781 _ACEOF
7786 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7787 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7788 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 #include <time.h>
7800 main ()
7802 static struct tm ac_aggr;
7803 if (ac_aggr.tm_gmtoff)
7804 return 0;
7806 return 0;
7808 _ACEOF
7809 rm -f conftest.$ac_objext
7810 if { (ac_try="$ac_compile"
7811 case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_compile") 2>conftest.er1
7817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest.$ac_objext; then
7826 ac_cv_member_struct_tm_tm_gmtoff=yes
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <time.h>
7840 main ()
7842 static struct tm ac_aggr;
7843 if (sizeof ac_aggr.tm_gmtoff)
7844 return 0;
7846 return 0;
7848 _ACEOF
7849 rm -f conftest.$ac_objext
7850 if { (ac_try="$ac_compile"
7851 case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_compile") 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && {
7863 test -z "$ac_c_werror_flag" ||
7864 test ! -s conftest.err
7865 } && test -s conftest.$ac_objext; then
7866 ac_cv_member_struct_tm_tm_gmtoff=yes
7867 else
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7871 ac_cv_member_struct_tm_tm_gmtoff=no
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7880 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7881 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_TM_GMTOFF 1
7885 _ACEOF
7889 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7890 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7891 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 $ac_includes_default
7901 #if HAVE_SYS_SOCKET_H
7902 #include <sys/socket.h>
7903 #endif
7904 #if HAVE_NET_IF_H
7905 #include <net/if.h>
7906 #endif
7909 main ()
7911 static struct ifreq ac_aggr;
7912 if (ac_aggr.ifr_flags)
7913 return 0;
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (ac_try="$ac_compile"
7920 case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_compile") 2>conftest.er1
7926 ac_status=$?
7927 grep -v '^ *+' conftest.er1 >conftest.err
7928 rm -f conftest.er1
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest.$ac_objext; then
7935 ac_cv_member_struct_ifreq_ifr_flags=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7947 #if HAVE_SYS_SOCKET_H
7948 #include <sys/socket.h>
7949 #endif
7950 #if HAVE_NET_IF_H
7951 #include <net/if.h>
7952 #endif
7955 main ()
7957 static struct ifreq ac_aggr;
7958 if (sizeof ac_aggr.ifr_flags)
7959 return 0;
7961 return 0;
7963 _ACEOF
7964 rm -f conftest.$ac_objext
7965 if { (ac_try="$ac_compile"
7966 case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_compile") 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } && {
7978 test -z "$ac_c_werror_flag" ||
7979 test ! -s conftest.err
7980 } && test -s conftest.$ac_objext; then
7981 ac_cv_member_struct_ifreq_ifr_flags=yes
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7986 ac_cv_member_struct_ifreq_ifr_flags=no
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7995 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7996 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8000 _ACEOF
8004 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8005 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8006 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 $ac_includes_default
8016 #if HAVE_SYS_SOCKET_H
8017 #include <sys/socket.h>
8018 #endif
8019 #if HAVE_NET_IF_H
8020 #include <net/if.h>
8021 #endif
8024 main ()
8026 static struct ifreq ac_aggr;
8027 if (ac_aggr.ifr_hwaddr)
8028 return 0;
8030 return 0;
8032 _ACEOF
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8035 case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_compile") 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
8050 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8051 else
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h. */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8061 $ac_includes_default
8062 #if HAVE_SYS_SOCKET_H
8063 #include <sys/socket.h>
8064 #endif
8065 #if HAVE_NET_IF_H
8066 #include <net/if.h>
8067 #endif
8070 main ()
8072 static struct ifreq ac_aggr;
8073 if (sizeof ac_aggr.ifr_hwaddr)
8074 return 0;
8076 return 0;
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8081 case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } && {
8093 test -z "$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 } && test -s conftest.$ac_objext; then
8096 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8110 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8111 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8113 cat >>confdefs.h <<_ACEOF
8114 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8115 _ACEOF
8119 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8120 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8121 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #if HAVE_SYS_SOCKET_H
8132 #include <sys/socket.h>
8133 #endif
8134 #if HAVE_NET_IF_H
8135 #include <net/if.h>
8136 #endif
8139 main ()
8141 static struct ifreq ac_aggr;
8142 if (ac_aggr.ifr_netmask)
8143 return 0;
8145 return 0;
8147 _ACEOF
8148 rm -f conftest.$ac_objext
8149 if { (ac_try="$ac_compile"
8150 case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8153 esac
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_compile") 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } && {
8162 test -z "$ac_c_werror_flag" ||
8163 test ! -s conftest.err
8164 } && test -s conftest.$ac_objext; then
8165 ac_cv_member_struct_ifreq_ifr_netmask=yes
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8177 #if HAVE_SYS_SOCKET_H
8178 #include <sys/socket.h>
8179 #endif
8180 #if HAVE_NET_IF_H
8181 #include <net/if.h>
8182 #endif
8185 main ()
8187 static struct ifreq ac_aggr;
8188 if (sizeof ac_aggr.ifr_netmask)
8189 return 0;
8191 return 0;
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_member_struct_ifreq_ifr_netmask=yes
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_cv_member_struct_ifreq_ifr_netmask=no
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8225 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8226 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8230 _ACEOF
8234 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8235 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8236 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h. */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8245 $ac_includes_default
8246 #if HAVE_SYS_SOCKET_H
8247 #include <sys/socket.h>
8248 #endif
8249 #if HAVE_NET_IF_H
8250 #include <net/if.h>
8251 #endif
8254 main ()
8256 static struct ifreq ac_aggr;
8257 if (ac_aggr.ifr_broadaddr)
8258 return 0;
8260 return 0;
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (ac_try="$ac_compile"
8265 case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_compile") 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest.$ac_objext; then
8280 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 #if HAVE_SYS_SOCKET_H
8293 #include <sys/socket.h>
8294 #endif
8295 #if HAVE_NET_IF_H
8296 #include <net/if.h>
8297 #endif
8300 main ()
8302 static struct ifreq ac_aggr;
8303 if (sizeof ac_aggr.ifr_broadaddr)
8304 return 0;
8306 return 0;
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest.$ac_objext; then
8326 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8327 else
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8340 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8341 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8343 cat >>confdefs.h <<_ACEOF
8344 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8345 _ACEOF
8349 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8350 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8351 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 #if HAVE_SYS_SOCKET_H
8362 #include <sys/socket.h>
8363 #endif
8364 #if HAVE_NET_IF_H
8365 #include <net/if.h>
8366 #endif
8369 main ()
8371 static struct ifreq ac_aggr;
8372 if (ac_aggr.ifr_addr)
8373 return 0;
8375 return 0;
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8380 case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_compile") 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && {
8392 test -z "$ac_c_werror_flag" ||
8393 test ! -s conftest.err
8394 } && test -s conftest.$ac_objext; then
8395 ac_cv_member_struct_ifreq_ifr_addr=yes
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 $ac_includes_default
8407 #if HAVE_SYS_SOCKET_H
8408 #include <sys/socket.h>
8409 #endif
8410 #if HAVE_NET_IF_H
8411 #include <net/if.h>
8412 #endif
8415 main ()
8417 static struct ifreq ac_aggr;
8418 if (sizeof ac_aggr.ifr_addr)
8419 return 0;
8421 return 0;
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8426 case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.$ac_objext; then
8441 ac_cv_member_struct_ifreq_ifr_addr=yes
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 ac_cv_member_struct_ifreq_ifr_addr=no
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8455 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8456 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8458 cat >>confdefs.h <<_ACEOF
8459 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8460 _ACEOF
8467 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8468 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8469 if test "$ac_cv_prog_cc_c89" != no; then
8470 { echo "$as_me:$LINENO: result: yes" >&5
8471 echo "${ECHO_T}yes" >&6; }
8473 cat >>confdefs.h <<\_ACEOF
8474 #define PROTOTYPES 1
8475 _ACEOF
8478 cat >>confdefs.h <<\_ACEOF
8479 #define __PROTOTYPES 1
8480 _ACEOF
8482 else
8483 { echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6; }
8487 { echo "$as_me:$LINENO: checking for working volatile" >&5
8488 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8489 if test "${ac_cv_c_volatile+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8500 main ()
8503 volatile int x;
8504 int * volatile y = (int *) 0;
8505 return !x && !y;
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8527 ac_cv_c_volatile=yes
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_c_volatile=no
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8538 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8539 if test $ac_cv_c_volatile = no; then
8541 cat >>confdefs.h <<\_ACEOF
8542 #define volatile
8543 _ACEOF
8547 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8548 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8549 if test "${ac_cv_c_const+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h. */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8560 main ()
8562 /* FIXME: Include the comments suggested by Paul. */
8563 #ifndef __cplusplus
8564 /* Ultrix mips cc rejects this. */
8565 typedef int charset[2];
8566 const charset cs;
8567 /* SunOS 4.1.1 cc rejects this. */
8568 char const *const *pcpcc;
8569 char **ppc;
8570 /* NEC SVR4.0.2 mips cc rejects this. */
8571 struct point {int x, y;};
8572 static struct point const zero = {0,0};
8573 /* AIX XL C 1.02.0.0 rejects this.
8574 It does not let you subtract one const X* pointer from another in
8575 an arm of an if-expression whose if-part is not a constant
8576 expression */
8577 const char *g = "string";
8578 pcpcc = &g + (g ? g-g : 0);
8579 /* HPUX 7.0 cc rejects these. */
8580 ++pcpcc;
8581 ppc = (char**) pcpcc;
8582 pcpcc = (char const *const *) ppc;
8583 { /* SCO 3.2v4 cc rejects this. */
8584 char *t;
8585 char const *s = 0 ? (char *) 0 : (char const *) 0;
8587 *t++ = 0;
8588 if (s) return 0;
8590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8591 int x[] = {25, 17};
8592 const int *foo = &x[0];
8593 ++foo;
8595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8596 typedef const int *iptr;
8597 iptr p = 0;
8598 ++p;
8600 { /* AIX XL C 1.02.0.0 rejects this saying
8601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8602 struct s { int j; const int *ap[3]; };
8603 struct s *b; b->j = 5;
8605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8606 const int foo = 10;
8607 if (!foo) return 0;
8609 return !cs[0] && !zero.x;
8610 #endif
8613 return 0;
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8618 case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_c_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest.$ac_objext; then
8633 ac_cv_c_const=yes
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_cv_c_const=no
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8644 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8645 if test $ac_cv_c_const = no; then
8647 cat >>confdefs.h <<\_ACEOF
8648 #define const
8649 _ACEOF
8653 { echo "$as_me:$LINENO: checking for void * support" >&5
8654 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8655 if test "${emacs_cv_void_star+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8666 main ()
8668 void * foo;
8670 return 0;
8672 _ACEOF
8673 rm -f conftest.$ac_objext
8674 if { (ac_try="$ac_compile"
8675 case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_compile") 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } && {
8687 test -z "$ac_c_werror_flag" ||
8688 test ! -s conftest.err
8689 } && test -s conftest.$ac_objext; then
8690 emacs_cv_void_star=yes
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 emacs_cv_void_star=no
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8701 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8702 if test $emacs_cv_void_star = yes; then
8703 cat >>confdefs.h <<\_ACEOF
8704 #define POINTER_TYPE void
8705 _ACEOF
8707 else
8708 cat >>confdefs.h <<\_ACEOF
8709 #define POINTER_TYPE char
8710 _ACEOF
8718 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8720 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8721 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724 cat >conftest.make <<\_ACEOF
8725 SHELL = /bin/sh
8726 all:
8727 @echo '@@@%%%=$(MAKE)=@@@%%%'
8728 _ACEOF
8729 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8730 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8731 *@@@%%%=?*=@@@%%%*)
8732 eval ac_cv_prog_make_${ac_make}_set=yes;;
8734 eval ac_cv_prog_make_${ac_make}_set=no;;
8735 esac
8736 rm -f conftest.make
8738 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8739 { echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6; }
8741 SET_MAKE=
8742 else
8743 { echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6; }
8745 SET_MAKE="MAKE=${MAKE-make}"
8749 { echo "$as_me:$LINENO: checking for long file names" >&5
8750 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8751 if test "${ac_cv_sys_long_file_names+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 ac_cv_sys_long_file_names=yes
8755 # Test for long file names in all the places we know might matter:
8756 # . the current directory, where building will happen
8757 # $prefix/lib where we will be installing things
8758 # $exec_prefix/lib likewise
8759 # $TMPDIR if set, where it might want to write temporary files
8760 # /tmp where it might want to write temporary files
8761 # /var/tmp likewise
8762 # /usr/tmp likewise
8763 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8764 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8765 # in the usual case where exec_prefix is '${prefix}'.
8766 case $ac_dir in #(
8767 . | /* | ?:[\\/]*) ;; #(
8768 *) continue;;
8769 esac
8770 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8771 ac_xdir=$ac_dir/cf$$
8772 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8773 ac_tf1=$ac_xdir/conftest9012345
8774 ac_tf2=$ac_xdir/conftest9012346
8775 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8776 ac_cv_sys_long_file_names=no
8777 rm -f -r "$ac_xdir" 2>/dev/null
8778 test $ac_cv_sys_long_file_names = no && break
8779 done
8781 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8782 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8783 if test $ac_cv_sys_long_file_names = yes; then
8785 cat >>confdefs.h <<\_ACEOF
8786 #define HAVE_LONG_FILE_NAMES 1
8787 _ACEOF
8792 #### Choose a window system.
8794 { echo "$as_me:$LINENO: checking for X" >&5
8795 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8798 # Check whether --with-x was given.
8799 if test "${with_x+set}" = set; then
8800 withval=$with_x;
8803 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8804 if test "x$with_x" = xno; then
8805 # The user explicitly disabled X.
8806 have_x=disabled
8807 else
8808 case $x_includes,$x_libraries in #(
8809 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8810 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8811 { (exit 1); exit 1; }; };; #(
8812 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 # One or both of the vars are not set, and there is no cached value.
8816 ac_x_includes=no ac_x_libraries=no
8817 rm -f -r conftest.dir
8818 if mkdir conftest.dir; then
8819 cd conftest.dir
8820 cat >Imakefile <<'_ACEOF'
8821 incroot:
8822 @echo incroot='${INCROOT}'
8823 usrlibdir:
8824 @echo usrlibdir='${USRLIBDIR}'
8825 libdir:
8826 @echo libdir='${LIBDIR}'
8827 _ACEOF
8828 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8830 for ac_var in incroot usrlibdir libdir; do
8831 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8832 done
8833 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8834 for ac_extension in a so sl; do
8835 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8836 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8837 ac_im_usrlibdir=$ac_im_libdir; break
8839 done
8840 # Screen out bogus values from the imake configuration. They are
8841 # bogus both because they are the default anyway, and because
8842 # using them would break gcc on systems where it needs fixed includes.
8843 case $ac_im_incroot in
8844 /usr/include) ac_x_includes= ;;
8845 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8846 esac
8847 case $ac_im_usrlibdir in
8848 /usr/lib | /lib) ;;
8849 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8850 esac
8852 cd ..
8853 rm -f -r conftest.dir
8856 # Standard set of common directories for X headers.
8857 # Check X11 before X11Rn because it is often a symlink to the current release.
8858 ac_x_header_dirs='
8859 /usr/X11/include
8860 /usr/X11R6/include
8861 /usr/X11R5/include
8862 /usr/X11R4/include
8864 /usr/include/X11
8865 /usr/include/X11R6
8866 /usr/include/X11R5
8867 /usr/include/X11R4
8869 /usr/local/X11/include
8870 /usr/local/X11R6/include
8871 /usr/local/X11R5/include
8872 /usr/local/X11R4/include
8874 /usr/local/include/X11
8875 /usr/local/include/X11R6
8876 /usr/local/include/X11R5
8877 /usr/local/include/X11R4
8879 /usr/X386/include
8880 /usr/x386/include
8881 /usr/XFree86/include/X11
8883 /usr/include
8884 /usr/local/include
8885 /usr/unsupported/include
8886 /usr/athena/include
8887 /usr/local/x11r5/include
8888 /usr/lpp/Xamples/include
8890 /usr/openwin/include
8891 /usr/openwin/share/include'
8893 if test "$ac_x_includes" = no; then
8894 # Guess where to find include files, by looking for Xlib.h.
8895 # First, try using that file with no special directory specified.
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 #include <X11/Xlib.h>
8903 _ACEOF
8904 if { (ac_try="$ac_cpp conftest.$ac_ext"
8905 case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908 esac
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } >/dev/null && {
8917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 }; then
8920 # We can compile using X headers with no special include directory.
8921 ac_x_includes=
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 for ac_dir in $ac_x_header_dirs; do
8927 if test -r "$ac_dir/X11/Xlib.h"; then
8928 ac_x_includes=$ac_dir
8929 break
8931 done
8934 rm -f conftest.err conftest.$ac_ext
8935 fi # $ac_x_includes = no
8937 if test "$ac_x_libraries" = no; then
8938 # Check for the libraries.
8939 # See if we find them without any special options.
8940 # Don't add to $LIBS permanently.
8941 ac_save_LIBS=$LIBS
8942 LIBS="-lX11 $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 #include <X11/Xlib.h>
8951 main ()
8953 XrmInitialize ()
8955 return 0;
8957 _ACEOF
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8960 case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && {
8972 test -z "$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8974 } && test -s conftest$ac_exeext &&
8975 $as_test_x conftest$ac_exeext; then
8976 LIBS=$ac_save_LIBS
8977 # We can link X programs with no special library path.
8978 ac_x_libraries=
8979 else
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 LIBS=$ac_save_LIBS
8984 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8986 # Don't even attempt the hair of trying to link an X program!
8987 for ac_extension in a so sl; do
8988 if test -r "$ac_dir/libX11.$ac_extension"; then
8989 ac_x_libraries=$ac_dir
8990 break 2
8992 done
8993 done
8996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8997 conftest$ac_exeext conftest.$ac_ext
8998 fi # $ac_x_libraries = no
9000 case $ac_x_includes,$ac_x_libraries in #(
9001 no,* | *,no | *\'*)
9002 # Didn't find X, or a directory has "'" in its name.
9003 ac_cv_have_x="have_x=no";; #(
9005 # Record where we found X for the cache.
9006 ac_cv_have_x="have_x=yes\
9007 ac_x_includes='$ac_x_includes'\
9008 ac_x_libraries='$ac_x_libraries'"
9009 esac
9011 ;; #(
9012 *) have_x=yes;;
9013 esac
9014 eval "$ac_cv_have_x"
9015 fi # $with_x != no
9017 if test "$have_x" != yes; then
9018 { echo "$as_me:$LINENO: result: $have_x" >&5
9019 echo "${ECHO_T}$have_x" >&6; }
9020 no_x=yes
9021 else
9022 # If each of the values was on the command line, it overrides each guess.
9023 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9024 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9025 # Update the cache value to reflect the command line values.
9026 ac_cv_have_x="have_x=yes\
9027 ac_x_includes='$x_includes'\
9028 ac_x_libraries='$x_libraries'"
9029 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9030 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9033 if test "$no_x" = yes; then
9034 window_system=none
9035 else
9036 window_system=x11
9039 if test "${x_libraries}" != NONE; then
9040 if test -n "${x_libraries}"; then
9041 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9042 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9044 x_default_search_path=""
9045 x_search_path=${x_libraries}
9046 if test -z "${x_search_path}"; then
9047 x_search_path=/usr/lib
9049 for x_library in `echo ${x_search_path}: | \
9050 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9051 x_search_path="\
9052 ${x_library}/X11/%L/%T/%N%C%S:\
9053 ${x_library}/X11/%l/%T/%N%C%S:\
9054 ${x_library}/X11/%T/%N%C%S:\
9055 ${x_library}/X11/%L/%T/%N%S:\
9056 ${x_library}/X11/%l/%T/%N%S:\
9057 ${x_library}/X11/%T/%N%S"
9058 if test x"${x_default_search_path}" = x; then
9059 x_default_search_path=${x_search_path}
9060 else
9061 x_default_search_path="${x_search_path}:${x_default_search_path}"
9063 done
9065 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9066 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9069 if test x"${x_includes}" = x; then
9070 bitmapdir=/usr/include/X11/bitmaps
9071 else
9072 # accumulate include directories that have X11 bitmap subdirectories
9073 bmd_acc="dummyval"
9074 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9075 if test -d "${bmd}/X11/bitmaps"; then
9076 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9078 if test -d "${bmd}/bitmaps"; then
9079 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9081 done
9082 if test ${bmd_acc} != "dummyval"; then
9083 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9087 HAVE_CARBON=no
9088 if test "${with_carbon}" != no; then
9089 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9090 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9091 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9092 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9096 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9097 else
9098 # Is the header compilable?
9099 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9100 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
9108 #include <Carbon/Carbon.h>
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9112 case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest.$ac_objext; then
9127 ac_header_compiler=yes
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_header_compiler=no
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9137 echo "${ECHO_T}$ac_header_compiler" >&6; }
9139 # Is the header present?
9140 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9141 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h. */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9148 #include <Carbon/Carbon.h>
9149 _ACEOF
9150 if { (ac_try="$ac_cpp conftest.$ac_ext"
9151 case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } >/dev/null && {
9163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9164 test ! -s conftest.err
9165 }; then
9166 ac_header_preproc=yes
9167 else
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_header_preproc=no
9174 rm -f conftest.err conftest.$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9176 echo "${ECHO_T}$ac_header_preproc" >&6; }
9178 # So? What about this header?
9179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9180 yes:no: )
9181 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9182 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9184 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9185 ac_header_preproc=yes
9187 no:yes:* )
9188 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9189 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9191 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9197 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9199 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9202 esac
9203 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9204 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9205 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9210 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9211 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9214 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9215 HAVE_CARBON=yes
9220 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9221 if test "${with_carbon+set}" != set \
9222 && test "${carbon_appdir_x+set}" != set; then
9223 for var in with_x with_x_toolkit with_gtk with_xim \
9224 with_xpm with_jpeg with_tiff with_gif with_png; do
9225 if eval test \"\${$var+set}\" = set; then
9226 HAVE_CARBON=no
9227 break
9229 done
9232 if test "${HAVE_CARBON}" = yes; then
9233 window_system=mac
9236 case "${window_system}" in
9237 x11 )
9238 HAVE_X_WINDOWS=yes
9239 HAVE_X11=yes
9240 case "${with_x_toolkit}" in
9241 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9242 motif ) USE_X_TOOLKIT=MOTIF ;;
9243 gtk ) with_gtk=yes
9244 USE_X_TOOLKIT=none ;;
9245 no ) USE_X_TOOLKIT=none ;;
9247 if test x"$with_gtk" = xyes; then
9248 USE_X_TOOLKIT=none
9249 else
9250 USE_X_TOOLKIT=maybe
9253 esac
9255 mac | none )
9256 HAVE_X_WINDOWS=no
9257 HAVE_X11=no
9258 USE_X_TOOLKIT=none
9260 esac
9262 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9263 # Extract the first word of "X", so it can be a program name with args.
9264 set dummy X; ac_word=$2
9265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9267 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270 if test -n "$HAVE_XSERVER"; then
9271 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_prog_HAVE_XSERVER="true"
9281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9288 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9291 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9292 if test -n "$HAVE_XSERVER"; then
9293 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9294 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9295 else
9296 { echo "$as_me:$LINENO: result: no" >&5
9297 echo "${ECHO_T}no" >&6; }
9301 if test "$HAVE_XSERVER" = true ||
9302 test -n "$DISPLAY" ||
9303 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9304 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9305 were found. You should install the relevant development files for X
9306 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9307 sure you have development files for image handling, i.e.
9308 tiff, gif, jpeg, png and xpm.
9309 If you are sure you want Emacs compiled without X window support, pass
9310 --without-x
9311 to configure." >&5
9312 echo "$as_me: error: You seem to be running X, but no X development libraries
9313 were found. You should install the relevant development files for X
9314 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9315 sure you have development files for image handling, i.e.
9316 tiff, gif, jpeg, png and xpm.
9317 If you are sure you want Emacs compiled without X window support, pass
9318 --without-x
9319 to configure." >&2;}
9320 { (exit 1); exit 1; }; }
9324 ### If we're using X11, we should use the X menu package.
9325 HAVE_MENUS=no
9326 case ${HAVE_X11} in
9327 yes ) HAVE_MENUS=yes ;;
9328 esac
9330 ### Compute the unexec source name from the object name.
9331 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9333 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9334 # Assume not, until told otherwise.
9335 GNU_MALLOC=yes
9336 doug_lea_malloc=yes
9337 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9338 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9339 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9350 #define malloc_get_state innocuous_malloc_get_state
9352 /* System header to define __stub macros and hopefully few prototypes,
9353 which can conflict with char malloc_get_state (); below.
9354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355 <limits.h> exists even on freestanding compilers. */
9357 #ifdef __STDC__
9358 # include <limits.h>
9359 #else
9360 # include <assert.h>
9361 #endif
9363 #undef malloc_get_state
9365 /* Override any GCC internal prototype to avoid an error.
9366 Use char because int might match the return type of a GCC
9367 builtin and then its argument prototype would still apply. */
9368 #ifdef __cplusplus
9369 extern "C"
9370 #endif
9371 char malloc_get_state ();
9372 /* The GNU C library defines this for functions which it implements
9373 to always fail with ENOSYS. Some functions are actually named
9374 something starting with __ and the normal name is an alias. */
9375 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9376 choke me
9377 #endif
9380 main ()
9382 return malloc_get_state ();
9384 return 0;
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9389 case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392 esac
9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_link") 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && {
9401 test -z "$ac_c_werror_flag" ||
9402 test ! -s conftest.err
9403 } && test -s conftest$ac_exeext &&
9404 $as_test_x conftest$ac_exeext; then
9405 ac_cv_func_malloc_get_state=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_cv_func_malloc_get_state=no
9413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9414 conftest$ac_exeext conftest.$ac_ext
9416 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9417 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9418 if test $ac_cv_func_malloc_get_state = yes; then
9420 else
9421 doug_lea_malloc=no
9424 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9425 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9426 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h. */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9437 #define malloc_set_state innocuous_malloc_set_state
9439 /* System header to define __stub macros and hopefully few prototypes,
9440 which can conflict with char malloc_set_state (); below.
9441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9442 <limits.h> exists even on freestanding compilers. */
9444 #ifdef __STDC__
9445 # include <limits.h>
9446 #else
9447 # include <assert.h>
9448 #endif
9450 #undef malloc_set_state
9452 /* Override any GCC internal prototype to avoid an error.
9453 Use char because int might match the return type of a GCC
9454 builtin and then its argument prototype would still apply. */
9455 #ifdef __cplusplus
9456 extern "C"
9457 #endif
9458 char malloc_set_state ();
9459 /* The GNU C library defines this for functions which it implements
9460 to always fail with ENOSYS. Some functions are actually named
9461 something starting with __ and the normal name is an alias. */
9462 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9463 choke me
9464 #endif
9467 main ()
9469 return malloc_set_state ();
9471 return 0;
9473 _ACEOF
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (ac_try="$ac_link"
9476 case "(($ac_try" in
9477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478 *) ac_try_echo=$ac_try;;
9479 esac
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 (eval "$ac_link") 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } && {
9488 test -z "$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9490 } && test -s conftest$ac_exeext &&
9491 $as_test_x conftest$ac_exeext; then
9492 ac_cv_func_malloc_set_state=yes
9493 else
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 ac_cv_func_malloc_set_state=no
9500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9501 conftest$ac_exeext conftest.$ac_ext
9503 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9504 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9505 if test $ac_cv_func_malloc_set_state = yes; then
9507 else
9508 doug_lea_malloc=no
9511 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9512 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9513 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h. */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 extern void (* __after_morecore_hook)();
9524 main ()
9526 __after_morecore_hook = 0
9528 return 0;
9530 _ACEOF
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9533 case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_link") 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && {
9545 test -z "$ac_c_werror_flag" ||
9546 test ! -s conftest.err
9547 } && test -s conftest$ac_exeext &&
9548 $as_test_x conftest$ac_exeext; then
9549 emacs_cv_var___after_morecore_hook=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 emacs_cv_var___after_morecore_hook=no
9557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558 conftest$ac_exeext conftest.$ac_ext
9560 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9561 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9562 if test $emacs_cv_var___after_morecore_hook = no; then
9563 doug_lea_malloc=no
9565 if test "${system_malloc}" = "yes"; then
9566 GNU_MALLOC=no
9567 GNU_MALLOC_reason="
9568 (The GNU allocators don't work with this system configuration.)"
9570 if test "$doug_lea_malloc" = "yes" ; then
9571 if test "$GNU_MALLOC" = yes ; then
9572 GNU_MALLOC_reason="
9573 (Using Doug Lea's new malloc from the GNU C Library.)"
9576 cat >>confdefs.h <<\_ACEOF
9577 #define DOUG_LEA_MALLOC 1
9578 _ACEOF
9582 if test x"${REL_ALLOC}" = x; then
9583 REL_ALLOC=${GNU_MALLOC}
9589 for ac_header in stdlib.h unistd.h
9591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9601 else
9602 # Is the header compilable?
9603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h. */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 #include <$ac_header>
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9616 case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_compile") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest.$ac_objext; then
9631 ac_header_compiler=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_compiler=no
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9641 echo "${ECHO_T}$ac_header_compiler" >&6; }
9643 # Is the header present?
9644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <$ac_header>
9653 _ACEOF
9654 if { (ac_try="$ac_cpp conftest.$ac_ext"
9655 case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } >/dev/null && {
9667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 }; then
9670 ac_header_preproc=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_header_preproc=no
9678 rm -f conftest.err conftest.$ac_ext
9679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6; }
9682 # So? What about this header?
9683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9684 yes:no: )
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9689 ac_header_preproc=yes
9691 no:yes:* )
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9706 esac
9707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 eval "$as_ac_Header=\$ac_header_preproc"
9714 ac_res=`eval echo '${'$as_ac_Header'}'`
9715 { echo "$as_me:$LINENO: result: $ac_res" >&5
9716 echo "${ECHO_T}$ac_res" >&6; }
9719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9720 cat >>confdefs.h <<_ACEOF
9721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9722 _ACEOF
9726 done
9729 for ac_func in getpagesize
9731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9745 #define $ac_func innocuous_$ac_func
9747 /* System header to define __stub macros and hopefully few prototypes,
9748 which can conflict with char $ac_func (); below.
9749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750 <limits.h> exists even on freestanding compilers. */
9752 #ifdef __STDC__
9753 # include <limits.h>
9754 #else
9755 # include <assert.h>
9756 #endif
9758 #undef $ac_func
9760 /* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 char $ac_func ();
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined __stub_$ac_func || defined __stub___$ac_func
9771 choke me
9772 #endif
9775 main ()
9777 return $ac_func ();
9779 return 0;
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext &&
9799 $as_test_x conftest$ac_exeext; then
9800 eval "$as_ac_var=yes"
9801 else
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9805 eval "$as_ac_var=no"
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809 conftest$ac_exeext conftest.$ac_ext
9811 ac_res=`eval echo '${'$as_ac_var'}'`
9812 { echo "$as_me:$LINENO: result: $ac_res" >&5
9813 echo "${ECHO_T}$ac_res" >&6; }
9814 if test `eval echo '${'$as_ac_var'}'` = yes; then
9815 cat >>confdefs.h <<_ACEOF
9816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9817 _ACEOF
9820 done
9822 { echo "$as_me:$LINENO: checking for working mmap" >&5
9823 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9824 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827 if test "$cross_compiling" = yes; then
9828 ac_cv_func_mmap_fixed_mapped=no
9829 else
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 $ac_includes_default
9837 /* malloc might have been renamed as rpl_malloc. */
9838 #undef malloc
9840 /* Thanks to Mike Haertel and Jim Avera for this test.
9841 Here is a matrix of mmap possibilities:
9842 mmap private not fixed
9843 mmap private fixed at somewhere currently unmapped
9844 mmap private fixed at somewhere already mapped
9845 mmap shared not fixed
9846 mmap shared fixed at somewhere currently unmapped
9847 mmap shared fixed at somewhere already mapped
9848 For private mappings, we should verify that changes cannot be read()
9849 back from the file, nor mmap's back from the file at a different
9850 address. (There have been systems where private was not correctly
9851 implemented like the infamous i386 svr4.0, and systems where the
9852 VM page cache was not coherent with the file system buffer cache
9853 like early versions of FreeBSD and possibly contemporary NetBSD.)
9854 For shared mappings, we should conversely verify that changes get
9855 propagated back to all the places they're supposed to be.
9857 Grep wants private fixed already mapped.
9858 The main things grep needs to know about mmap are:
9859 * does it exist and is it safe to write into the mmap'd area
9860 * how to use it (BSD variants) */
9862 #include <fcntl.h>
9863 #include <sys/mman.h>
9865 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9866 char *malloc ();
9867 #endif
9869 /* This mess was copied from the GNU getpagesize.h. */
9870 #ifndef HAVE_GETPAGESIZE
9871 /* Assume that all systems that can run configure have sys/param.h. */
9872 # ifndef HAVE_SYS_PARAM_H
9873 # define HAVE_SYS_PARAM_H 1
9874 # endif
9876 # ifdef _SC_PAGESIZE
9877 # define getpagesize() sysconf(_SC_PAGESIZE)
9878 # else /* no _SC_PAGESIZE */
9879 # ifdef HAVE_SYS_PARAM_H
9880 # include <sys/param.h>
9881 # ifdef EXEC_PAGESIZE
9882 # define getpagesize() EXEC_PAGESIZE
9883 # else /* no EXEC_PAGESIZE */
9884 # ifdef NBPG
9885 # define getpagesize() NBPG * CLSIZE
9886 # ifndef CLSIZE
9887 # define CLSIZE 1
9888 # endif /* no CLSIZE */
9889 # else /* no NBPG */
9890 # ifdef NBPC
9891 # define getpagesize() NBPC
9892 # else /* no NBPC */
9893 # ifdef PAGESIZE
9894 # define getpagesize() PAGESIZE
9895 # endif /* PAGESIZE */
9896 # endif /* no NBPC */
9897 # endif /* no NBPG */
9898 # endif /* no EXEC_PAGESIZE */
9899 # else /* no HAVE_SYS_PARAM_H */
9900 # define getpagesize() 8192 /* punt totally */
9901 # endif /* no HAVE_SYS_PARAM_H */
9902 # endif /* no _SC_PAGESIZE */
9904 #endif /* no HAVE_GETPAGESIZE */
9907 main ()
9909 char *data, *data2, *data3;
9910 int i, pagesize;
9911 int fd;
9913 pagesize = getpagesize ();
9915 /* First, make a file with some known garbage in it. */
9916 data = (char *) malloc (pagesize);
9917 if (!data)
9918 return 1;
9919 for (i = 0; i < pagesize; ++i)
9920 *(data + i) = rand ();
9921 umask (0);
9922 fd = creat ("conftest.mmap", 0600);
9923 if (fd < 0)
9924 return 1;
9925 if (write (fd, data, pagesize) != pagesize)
9926 return 1;
9927 close (fd);
9929 /* Next, try to mmap the file at a fixed address which already has
9930 something else allocated at it. If we can, also make sure that
9931 we see the same garbage. */
9932 fd = open ("conftest.mmap", O_RDWR);
9933 if (fd < 0)
9934 return 1;
9935 data2 = (char *) malloc (2 * pagesize);
9936 if (!data2)
9937 return 1;
9938 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9939 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9940 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9941 return 1;
9942 for (i = 0; i < pagesize; ++i)
9943 if (*(data + i) != *(data2 + i))
9944 return 1;
9946 /* Finally, make sure that changes to the mapped area do not
9947 percolate back to the file as seen by read(). (This is a bug on
9948 some variants of i386 svr4.0.) */
9949 for (i = 0; i < pagesize; ++i)
9950 *(data2 + i) = *(data2 + i) + 1;
9951 data3 = (char *) malloc (pagesize);
9952 if (!data3)
9953 return 1;
9954 if (read (fd, data3, pagesize) != pagesize)
9955 return 1;
9956 for (i = 0; i < pagesize; ++i)
9957 if (*(data + i) != *(data3 + i))
9958 return 1;
9959 close (fd);
9960 return 0;
9962 _ACEOF
9963 rm -f conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_func_mmap_fixed_mapped=yes
9984 else
9985 echo "$as_me: program exited with status $ac_status" >&5
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 ( exit $ac_status )
9990 ac_cv_func_mmap_fixed_mapped=no
9992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9997 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9998 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9999 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_MMAP 1
10003 _ACEOF
10006 rm -f conftest.mmap
10008 if test $use_mmap_for_buffers = yes; then
10009 REL_ALLOC=no
10012 LIBS="$libsrc_libs $LIBS"
10015 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10016 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-ldnet $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char dnet_ntoa ();
10037 main ()
10039 return dnet_ntoa ();
10041 return 0;
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest$ac_exeext &&
10061 $as_test_x conftest$ac_exeext; then
10062 ac_cv_lib_dnet_dnet_ntoa=yes
10063 else
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_lib_dnet_dnet_ntoa=no
10070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10075 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10076 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10077 cat >>confdefs.h <<_ACEOF
10078 #define HAVE_LIBDNET 1
10079 _ACEOF
10081 LIBS="-ldnet $LIBS"
10086 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10087 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10088 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lXbsd $LIBS"
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h. */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10102 main ()
10104 return main ();
10106 return 0;
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest$ac_exeext &&
10126 $as_test_x conftest$ac_exeext; then
10127 ac_cv_lib_Xbsd_main=yes
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_lib_Xbsd_main=no
10135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10139 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10140 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10141 if test $ac_cv_lib_Xbsd_main = yes; then
10142 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10147 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10148 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10149 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 ac_check_lib_save_LIBS=$LIBS
10153 LIBS="-lpthreads $LIBS"
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 char cma_open ();
10169 main ()
10171 return cma_open ();
10173 return 0;
10175 _ACEOF
10176 rm -f conftest.$ac_objext conftest$ac_exeext
10177 if { (ac_try="$ac_link"
10178 case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10181 esac
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_link") 2>conftest.er1
10184 ac_status=$?
10185 grep -v '^ *+' conftest.er1 >conftest.err
10186 rm -f conftest.er1
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && {
10190 test -z "$ac_c_werror_flag" ||
10191 test ! -s conftest.err
10192 } && test -s conftest$ac_exeext &&
10193 $as_test_x conftest$ac_exeext; then
10194 ac_cv_lib_pthreads_cma_open=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_lib_pthreads_cma_open=no
10202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10207 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10208 if test $ac_cv_lib_pthreads_cma_open = yes; then
10209 cat >>confdefs.h <<_ACEOF
10210 #define HAVE_LIBPTHREADS 1
10211 _ACEOF
10213 LIBS="-lpthreads $LIBS"
10218 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10219 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10220 if test -d /usr/X386/include; then
10221 HAVE_XFREE386=yes
10222 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10223 else
10224 HAVE_XFREE386=no
10226 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10227 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10230 case ${host_os} in
10231 aix*)
10232 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10233 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10234 if test "${gdb_cv_bigtoc+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10238 case $GCC in
10239 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10240 *) gdb_cv_bigtoc=-bbigtoc ;;
10241 esac
10243 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10252 main ()
10254 int i;
10256 return 0;
10258 _ACEOF
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest$ac_exeext &&
10276 $as_test_x conftest$ac_exeext; then
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 gdb_cv_bigtoc=
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10289 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10290 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10292 esac
10294 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10295 # used for the tests that follow. We set them back to REAL_CFLAGS and
10296 # REAL_CPPFLAGS later on.
10298 REAL_CPPFLAGS="$CPPFLAGS"
10300 if test "${HAVE_X11}" = "yes"; then
10301 DEFS="$C_SWITCH_X_SITE $DEFS"
10302 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10303 LIBS="$LIBX $LIBS"
10304 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10305 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10307 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10308 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10309 # but it's more convenient here to set LD_RUN_PATH
10310 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10311 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10312 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10313 export LD_RUN_PATH
10316 if test "${opsys}" = "gnu-linux"; then
10317 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10318 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10327 main ()
10329 XOpenDisplay ("foo");
10331 return 0;
10333 _ACEOF
10334 rm -f conftest.$ac_objext conftest$ac_exeext
10335 if { (ac_try="$ac_link"
10336 case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_link") 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest$ac_exeext &&
10351 $as_test_x conftest$ac_exeext; then
10352 xlinux_first_failure=no
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 xlinux_first_failure=yes
10360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10361 conftest$ac_exeext conftest.$ac_ext
10362 if test "${xlinux_first_failure}" = "yes"; then
10363 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10364 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10365 OLD_CPPFLAGS="$CPPFLAGS"
10366 OLD_LIBS="$LIBS"
10367 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10368 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10369 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10370 LIBS="$LIBS -b i486-linuxaout"
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10379 main ()
10381 XOpenDisplay ("foo");
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest$ac_exeext &&
10403 $as_test_x conftest$ac_exeext; then
10404 xlinux_second_failure=no
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 xlinux_second_failure=yes
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413 conftest$ac_exeext conftest.$ac_ext
10414 if test "${xlinux_second_failure}" = "yes"; then
10415 # If we get the same failure with -b, there is no use adding -b.
10416 # So take it out. This plays safe.
10417 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10418 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10419 CPPFLAGS="$OLD_CPPFLAGS"
10420 LIBS="$OLD_LIBS"
10421 { echo "$as_me:$LINENO: result: no" >&5
10422 echo "${ECHO_T}no" >&6; }
10423 else
10424 { echo "$as_me:$LINENO: result: yes" >&5
10425 echo "${ECHO_T}yes" >&6; }
10427 else
10428 { echo "$as_me:$LINENO: result: no" >&5
10429 echo "${ECHO_T}no" >&6; }
10433 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10434 # header files included from there.
10435 { echo "$as_me:$LINENO: checking for Xkb" >&5
10436 echo $ECHO_N "checking for Xkb... $ECHO_C" >&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 <X11/Xlib.h>
10444 #include <X11/XKBlib.h>
10446 main ()
10448 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10450 return 0;
10452 _ACEOF
10453 rm -f conftest.$ac_objext conftest$ac_exeext
10454 if { (ac_try="$ac_link"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_link") 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && {
10467 test -z "$ac_c_werror_flag" ||
10468 test ! -s conftest.err
10469 } && test -s conftest$ac_exeext &&
10470 $as_test_x conftest$ac_exeext; then
10471 emacs_xkb=yes
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 emacs_xkb=no
10479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10480 conftest$ac_exeext conftest.$ac_ext
10481 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10482 echo "${ECHO_T}$emacs_xkb" >&6; }
10483 if test $emacs_xkb = yes; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define HAVE_XKBGETKEYBOARD 1
10487 _ACEOF
10495 for ac_func in XrmSetDatabase XScreenResourceString \
10496 XScreenNumberOfScreen XSetWMProtocols
10498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10512 #define $ac_func innocuous_$ac_func
10514 /* System header to define __stub macros and hopefully few prototypes,
10515 which can conflict with char $ac_func (); below.
10516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10517 <limits.h> exists even on freestanding compilers. */
10519 #ifdef __STDC__
10520 # include <limits.h>
10521 #else
10522 # include <assert.h>
10523 #endif
10525 #undef $ac_func
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char $ac_func ();
10534 /* The GNU C library defines this for functions which it implements
10535 to always fail with ENOSYS. Some functions are actually named
10536 something starting with __ and the normal name is an alias. */
10537 #if defined __stub_$ac_func || defined __stub___$ac_func
10538 choke me
10539 #endif
10542 main ()
10544 return $ac_func ();
10546 return 0;
10548 _ACEOF
10549 rm -f conftest.$ac_objext conftest$ac_exeext
10550 if { (ac_try="$ac_link"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_link") 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest$ac_exeext &&
10566 $as_test_x conftest$ac_exeext; then
10567 eval "$as_ac_var=yes"
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 eval "$as_ac_var=no"
10575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10576 conftest$ac_exeext conftest.$ac_ext
10578 ac_res=`eval echo '${'$as_ac_var'}'`
10579 { echo "$as_me:$LINENO: result: $ac_res" >&5
10580 echo "${ECHO_T}$ac_res" >&6; }
10581 if test `eval echo '${'$as_ac_var'}'` = yes; then
10582 cat >>confdefs.h <<_ACEOF
10583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10584 _ACEOF
10587 done
10591 if test "${window_system}" = "x11"; then
10592 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10593 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10594 if test "${emacs_cv_x11_version_6+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h. */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 #include <X11/Xlib.h>
10605 main ()
10607 #if XlibSpecificationRelease < 6
10608 fail;
10609 #endif
10612 return 0;
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (ac_try="$ac_link"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_link") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest$ac_exeext &&
10632 $as_test_x conftest$ac_exeext; then
10633 emacs_cv_x11_version_6=yes
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 emacs_cv_x11_version_6=no
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10645 if test $emacs_cv_x11_version_6 = yes; then
10646 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10647 echo "${ECHO_T}6 or newer" >&6; }
10649 cat >>confdefs.h <<\_ACEOF
10650 #define HAVE_X11R6 1
10651 _ACEOF
10653 else
10654 { echo "$as_me:$LINENO: result: before 6" >&5
10655 echo "${ECHO_T}before 6" >&6; }
10660 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10661 HAVE_RSVG=no
10662 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10663 if test "${with_rsvg}" != "no"; then
10664 RSVG_REQUIRED=2.0.0
10665 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10668 succeeded=no
10670 # Extract the first word of "pkg-config", so it can be a program name with args.
10671 set dummy pkg-config; ac_word=$2
10672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10674 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 case $PKG_CONFIG in
10678 [\\/]* | ?:[\\/]*)
10679 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10689 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10693 done
10694 done
10695 IFS=$as_save_IFS
10697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10699 esac
10701 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10702 if test -n "$PKG_CONFIG"; then
10703 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10704 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10705 else
10706 { echo "$as_me:$LINENO: result: no" >&5
10707 echo "${ECHO_T}no" >&6; }
10712 if test "$PKG_CONFIG" = "no" ; then
10714 else
10715 PKG_CONFIG_MIN_VERSION=0.9.0
10716 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10717 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10718 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10720 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10721 { echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6; }
10723 succeeded=yes
10725 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10726 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10727 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10728 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10729 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10731 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10732 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10733 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10734 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10735 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10736 else
10737 { echo "$as_me:$LINENO: result: no" >&5
10738 echo "${ECHO_T}no" >&6; }
10739 RSVG_CFLAGS=""
10740 RSVG_LIBS=""
10741 ## If we have a custom action on failure, don't print errors, but
10742 ## do set a variable so people can do so.
10743 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10749 else
10750 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10751 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10755 if test $succeeded = yes; then
10757 else
10764 if test ".${RSVG_CFLAGS}" != "."; then
10765 HAVE_RSVG=yes
10767 cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_RSVG 1
10769 _ACEOF
10771 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10772 LIBS="$RSVG_LIBS $LIBS"
10778 HAVE_GTK=no
10779 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10780 USE_X_TOOLKIT=none
10782 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10783 test "$USE_X_TOOLKIT" = "maybe"; then
10784 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10785 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10786 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10787 { (exit 1); exit 1; }; };
10789 GLIB_REQUIRED=2.6
10790 GTK_REQUIRED=2.6
10791 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10794 succeeded=no
10796 # Extract the first word of "pkg-config", so it can be a program name with args.
10797 set dummy pkg-config; ac_word=$2
10798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 case $PKG_CONFIG in
10804 [\\/]* | ?:[\\/]*)
10805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10819 done
10820 done
10821 IFS=$as_save_IFS
10823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10825 esac
10827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10828 if test -n "$PKG_CONFIG"; then
10829 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10830 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10831 else
10832 { echo "$as_me:$LINENO: result: no" >&5
10833 echo "${ECHO_T}no" >&6; }
10838 if test "$PKG_CONFIG" = "no" ; then
10839 pkg_check_gtk=no
10840 else
10841 PKG_CONFIG_MIN_VERSION=0.9.0
10842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10843 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10844 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10846 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10847 { echo "$as_me:$LINENO: result: yes" >&5
10848 echo "${ECHO_T}yes" >&6; }
10849 succeeded=yes
10851 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10852 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10853 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10854 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10855 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10857 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10858 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10859 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10860 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10861 echo "${ECHO_T}$GTK_LIBS" >&6; }
10862 else
10863 { echo "$as_me:$LINENO: result: no" >&5
10864 echo "${ECHO_T}no" >&6; }
10865 GTK_CFLAGS=""
10866 GTK_LIBS=""
10867 ## If we have a custom action on failure, don't print errors, but
10868 ## do set a variable so people can do so.
10869 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10875 else
10876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10881 if test $succeeded = yes; then
10882 pkg_check_gtk=yes
10883 else
10884 pkg_check_gtk=no
10887 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10888 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10889 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10890 { (exit 1); exit 1; }; }
10895 if test x"$pkg_check_gtk" = xyes; then
10899 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10900 CFLAGS="$CFLAGS $GTK_CFLAGS"
10901 LIBS="$GTK_LIBS $LIBS"
10902 GTK_COMPILES=no
10904 for ac_func in gtk_main
10906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h. */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10920 #define $ac_func innocuous_$ac_func
10922 /* System header to define __stub macros and hopefully few prototypes,
10923 which can conflict with char $ac_func (); below.
10924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925 <limits.h> exists even on freestanding compilers. */
10927 #ifdef __STDC__
10928 # include <limits.h>
10929 #else
10930 # include <assert.h>
10931 #endif
10933 #undef $ac_func
10935 /* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 char $ac_func ();
10942 /* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945 #if defined __stub_$ac_func || defined __stub___$ac_func
10946 choke me
10947 #endif
10950 main ()
10952 return $ac_func ();
10954 return 0;
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (ac_try="$ac_link"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_link") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest$ac_exeext &&
10974 $as_test_x conftest$ac_exeext; then
10975 eval "$as_ac_var=yes"
10976 else
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 eval "$as_ac_var=no"
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10986 ac_res=`eval echo '${'$as_ac_var'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10989 if test `eval echo '${'$as_ac_var'}'` = yes; then
10990 cat >>confdefs.h <<_ACEOF
10991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10992 _ACEOF
10993 GTK_COMPILES=yes
10995 done
10997 if test "${GTK_COMPILES}" != "yes"; then
10998 if test "$USE_X_TOOLKIT" != "maybe"; then
10999 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11000 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11001 { (exit 1); exit 1; }; };
11003 else
11004 HAVE_GTK=yes
11006 cat >>confdefs.h <<\_ACEOF
11007 #define HAVE_GTK 1
11008 _ACEOF
11010 USE_X_TOOLKIT=none
11016 if test "${HAVE_GTK}" = "yes"; then
11018 if test "$with_toolkit_scroll_bars" != no; then
11019 with_toolkit_scroll_bars=yes
11022 HAVE_GTK_MULTIDISPLAY=no
11024 for ac_func in gdk_display_open
11026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11040 #define $ac_func innocuous_$ac_func
11042 /* System header to define __stub macros and hopefully few prototypes,
11043 which can conflict with char $ac_func (); below.
11044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045 <limits.h> exists even on freestanding compilers. */
11047 #ifdef __STDC__
11048 # include <limits.h>
11049 #else
11050 # include <assert.h>
11051 #endif
11053 #undef $ac_func
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char $ac_func ();
11062 /* The GNU C library defines this for functions which it implements
11063 to always fail with ENOSYS. Some functions are actually named
11064 something starting with __ and the normal name is an alias. */
11065 #if defined __stub_$ac_func || defined __stub___$ac_func
11066 choke me
11067 #endif
11070 main ()
11072 return $ac_func ();
11074 return 0;
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_link") 2>conftest.er1
11085 ac_status=$?
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest$ac_exeext &&
11094 $as_test_x conftest$ac_exeext; then
11095 eval "$as_ac_var=yes"
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 eval "$as_ac_var=no"
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11106 ac_res=`eval echo '${'$as_ac_var'}'`
11107 { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11109 if test `eval echo '${'$as_ac_var'}'` = yes; then
11110 cat >>confdefs.h <<_ACEOF
11111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11112 _ACEOF
11113 HAVE_GTK_MULTIDISPLAY=yes
11115 done
11117 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11119 cat >>confdefs.h <<\_ACEOF
11120 #define HAVE_GTK_MULTIDISPLAY 1
11121 _ACEOF
11125 HAVE_GTK_FILE_SELECTION=no
11127 for ac_func in gtk_file_selection_new
11129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h. */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11143 #define $ac_func innocuous_$ac_func
11145 /* System header to define __stub macros and hopefully few prototypes,
11146 which can conflict with char $ac_func (); below.
11147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11148 <limits.h> exists even on freestanding compilers. */
11150 #ifdef __STDC__
11151 # include <limits.h>
11152 #else
11153 # include <assert.h>
11154 #endif
11156 #undef $ac_func
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char $ac_func ();
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined __stub_$ac_func || defined __stub___$ac_func
11169 choke me
11170 #endif
11173 main ()
11175 return $ac_func ();
11177 return 0;
11179 _ACEOF
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_link") 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && {
11194 test -z "$ac_c_werror_flag" ||
11195 test ! -s conftest.err
11196 } && test -s conftest$ac_exeext &&
11197 $as_test_x conftest$ac_exeext; then
11198 eval "$as_ac_var=yes"
11199 else
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 eval "$as_ac_var=no"
11206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11207 conftest$ac_exeext conftest.$ac_ext
11209 ac_res=`eval echo '${'$as_ac_var'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11212 if test `eval echo '${'$as_ac_var'}'` = yes; then
11213 cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11215 _ACEOF
11216 HAVE_GTK_FILE_SELECTION=yes
11218 done
11221 HAVE_GTK_FILE_CHOOSER=no
11223 for ac_func in gtk_file_chooser_dialog_new
11225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11239 #define $ac_func innocuous_$ac_func
11241 /* System header to define __stub macros and hopefully few prototypes,
11242 which can conflict with char $ac_func (); below.
11243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244 <limits.h> exists even on freestanding compilers. */
11246 #ifdef __STDC__
11247 # include <limits.h>
11248 #else
11249 # include <assert.h>
11250 #endif
11252 #undef $ac_func
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char $ac_func ();
11261 /* The GNU C library defines this for functions which it implements
11262 to always fail with ENOSYS. Some functions are actually named
11263 something starting with __ and the normal name is an alias. */
11264 #if defined __stub_$ac_func || defined __stub___$ac_func
11265 choke me
11266 #endif
11269 main ()
11271 return $ac_func ();
11273 return 0;
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_link") 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } && {
11290 test -z "$ac_c_werror_flag" ||
11291 test ! -s conftest.err
11292 } && test -s conftest$ac_exeext &&
11293 $as_test_x conftest$ac_exeext; then
11294 eval "$as_ac_var=yes"
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 eval "$as_ac_var=no"
11302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11303 conftest$ac_exeext conftest.$ac_ext
11305 ac_res=`eval echo '${'$as_ac_var'}'`
11306 { echo "$as_me:$LINENO: result: $ac_res" >&5
11307 echo "${ECHO_T}$ac_res" >&6; }
11308 if test `eval echo '${'$as_ac_var'}'` = yes; then
11309 cat >>confdefs.h <<_ACEOF
11310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11311 _ACEOF
11312 HAVE_GTK_FILE_CHOOSER=yes
11314 done
11317 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11318 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11320 cat >>confdefs.h <<\_ACEOF
11321 #define HAVE_GTK_FILE_BOTH 1
11322 _ACEOF
11326 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11327 HAVE_GTK_AND_PTHREAD=no
11329 for ac_header in pthread.h
11331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 ac_res=`eval echo '${'$as_ac_Header'}'`
11339 { echo "$as_me:$LINENO: result: $ac_res" >&5
11340 echo "${ECHO_T}$ac_res" >&6; }
11341 else
11342 # Is the header compilable?
11343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11345 cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h. */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351 $ac_includes_default
11352 #include <$ac_header>
11353 _ACEOF
11354 rm -f conftest.$ac_objext
11355 if { (ac_try="$ac_compile"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_compile") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } && {
11368 test -z "$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 } && test -s conftest.$ac_objext; then
11371 ac_header_compiler=yes
11372 else
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_header_compiler=no
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11381 echo "${ECHO_T}$ac_header_compiler" >&6; }
11383 # Is the header present?
11384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h. */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 #include <$ac_header>
11393 _ACEOF
11394 if { (ac_try="$ac_cpp conftest.$ac_ext"
11395 case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11401 ac_status=$?
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } >/dev/null && {
11407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11408 test ! -s conftest.err
11409 }; then
11410 ac_header_preproc=yes
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_header_preproc=no
11418 rm -f conftest.err conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11420 echo "${ECHO_T}$ac_header_preproc" >&6; }
11422 # So? What about this header?
11423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11424 yes:no: )
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11429 ac_header_preproc=yes
11431 no:yes:* )
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11446 esac
11447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 eval "$as_ac_Header=\$ac_header_preproc"
11454 ac_res=`eval echo '${'$as_ac_Header'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462 _ACEOF
11466 done
11468 if test "$ac_cv_header_pthread_h"; then
11469 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11470 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11471 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474 ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-lpthread $LIBS"
11476 cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h. */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char pthread_self ();
11491 main ()
11493 return pthread_self ();
11495 return 0;
11497 _ACEOF
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (ac_try="$ac_link"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest$ac_exeext &&
11515 $as_test_x conftest$ac_exeext; then
11516 ac_cv_lib_pthread_pthread_self=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_cv_lib_pthread_pthread_self=no
11524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11528 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11529 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11530 if test $ac_cv_lib_pthread_pthread_self = yes; then
11531 HAVE_GTK_AND_PTHREAD=yes
11535 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11536 case "${canonical}" in
11537 *-hpux*) ;;
11538 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11539 esac
11541 cat >>confdefs.h <<\_ACEOF
11542 #define HAVE_GTK_AND_PTHREAD 1
11543 _ACEOF
11549 HAVE_DBUS=no
11550 if test "${with_dbus}" = "yes"; then
11552 succeeded=no
11554 # Extract the first word of "pkg-config", so it can be a program name with args.
11555 set dummy pkg-config; ac_word=$2
11556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11558 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561 case $PKG_CONFIG in
11562 [\\/]* | ?:[\\/]*)
11563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11573 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11577 done
11578 done
11579 IFS=$as_save_IFS
11581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11583 esac
11585 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11586 if test -n "$PKG_CONFIG"; then
11587 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11588 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11589 else
11590 { echo "$as_me:$LINENO: result: no" >&5
11591 echo "${ECHO_T}no" >&6; }
11596 if test "$PKG_CONFIG" = "no" ; then
11597 HAVE_DBUS=no
11598 else
11599 PKG_CONFIG_MIN_VERSION=0.9.0
11600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11601 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11602 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11604 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11605 { echo "$as_me:$LINENO: result: yes" >&5
11606 echo "${ECHO_T}yes" >&6; }
11607 succeeded=yes
11609 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11610 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11611 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11612 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11613 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11615 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11616 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11617 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11618 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11619 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11620 else
11621 { echo "$as_me:$LINENO: result: no" >&5
11622 echo "${ECHO_T}no" >&6; }
11623 DBUS_CFLAGS=""
11624 DBUS_LIBS=""
11625 ## If we have a custom action on failure, don't print errors, but
11626 ## do set a variable so people can do so.
11627 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11633 else
11634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11639 if test $succeeded = yes; then
11640 HAVE_DBUS=yes
11641 else
11642 HAVE_DBUS=no
11645 if test "$HAVE_DBUS" = yes; then
11647 cat >>confdefs.h <<\_ACEOF
11648 #define HAVE_DBUS 1
11649 _ACEOF
11654 ### Link with -lXft if available to work around a bug.
11655 HAVE_XFT=maybe
11656 if test "${HAVE_GTK}" = "yes"; then
11658 succeeded=no
11660 # Extract the first word of "pkg-config", so it can be a program name with args.
11661 set dummy pkg-config; ac_word=$2
11662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11664 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667 case $PKG_CONFIG in
11668 [\\/]* | ?:[\\/]*)
11669 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11679 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 break 2
11683 done
11684 done
11685 IFS=$as_save_IFS
11687 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11689 esac
11691 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11692 if test -n "$PKG_CONFIG"; then
11693 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11694 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11695 else
11696 { echo "$as_me:$LINENO: result: no" >&5
11697 echo "${ECHO_T}no" >&6; }
11702 if test "$PKG_CONFIG" = "no" ; then
11703 HAVE_XFT=no
11704 else
11705 PKG_CONFIG_MIN_VERSION=0.9.0
11706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11707 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11708 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11710 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11711 { echo "$as_me:$LINENO: result: yes" >&5
11712 echo "${ECHO_T}yes" >&6; }
11713 succeeded=yes
11715 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11716 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11717 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11718 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11719 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11721 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11722 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11723 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11724 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11725 echo "${ECHO_T}$XFT_LIBS" >&6; }
11726 else
11727 { echo "$as_me:$LINENO: result: no" >&5
11728 echo "${ECHO_T}no" >&6; }
11729 XFT_CFLAGS=""
11730 XFT_LIBS=""
11731 ## If we have a custom action on failure, don't print errors, but
11732 ## do set a variable so people can do so.
11733 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11739 else
11740 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11741 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11745 if test $succeeded = yes; then
11747 else
11748 HAVE_XFT=no
11751 if test "$HAVE_XFT" != no; then
11752 OLD_CFLAGS="$CPPFLAGS"
11753 OLD_CPPFLAGS="$CFLAGS"
11754 OLD_LIBS="$LIBS"
11755 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11756 CFLAGS="$CFLAGS $XFT_CFLAGS"
11757 LIBS="$XFT_LIBS $LIBS"
11758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11759 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11760 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11761 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11765 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11766 else
11767 # Is the header compilable?
11768 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11769 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <X11/Xft/Xft.h>
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest.$ac_objext; then
11796 ac_header_compiler=yes
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_header_compiler=no
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 echo "${ECHO_T}$ac_header_compiler" >&6; }
11808 # Is the header present?
11809 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11810 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h. */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <X11/Xft/Xft.h>
11818 _ACEOF
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } >/dev/null && {
11832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11833 test ! -s conftest.err
11834 }; then
11835 ac_header_preproc=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_preproc=no
11843 rm -f conftest.err conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6; }
11847 # So? What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849 yes:no: )
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc=yes
11856 no:yes:* )
11857 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11871 esac
11872 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11873 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11874 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11879 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11883 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11884 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11885 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11886 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-lXft $XFT_LIBS $LIBS"
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
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 XftFontOpen ();
11906 main ()
11908 return XftFontOpen ();
11910 return 0;
11912 _ACEOF
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918 esac
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext &&
11930 $as_test_x conftest$ac_exeext; then
11931 ac_cv_lib_Xft_XftFontOpen=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_cv_lib_Xft_XftFontOpen=no
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11944 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11945 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11946 HAVE_XFT=yes
11953 if test "${HAVE_XFT}" = "yes"; then
11955 cat >>confdefs.h <<\_ACEOF
11956 #define HAVE_XFT 1
11957 _ACEOF
11960 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11961 else
11962 CFLAGS="$OLD_CPPFLAGS"
11963 CFLAGS="$OLD_CFLAGS"
11964 LIBS="$OLD_LIBS"
11969 HAVE_XAW3D=no
11970 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11971 if test "$with_xaw3d" != no; then
11972 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11973 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11974 if test "${emacs_cv_xaw3d+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11984 #include <X11/Intrinsic.h>
11985 #include <X11/Xaw3d/Simple.h>
11987 main ()
11991 return 0;
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (ac_try="$ac_link"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_link") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest$ac_exeext &&
12011 $as_test_x conftest$ac_exeext; then
12012 emacs_cv_xaw3d=yes
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 emacs_cv_xaw3d=no
12020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021 conftest$ac_exeext conftest.$ac_ext
12024 else
12025 emacs_cv_xaw3d=no
12027 if test $emacs_cv_xaw3d = yes; then
12028 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12029 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12030 USE_X_TOOLKIT=LUCID
12031 HAVE_XAW3D=yes
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_XAW3D 1
12035 _ACEOF
12037 else
12038 { echo "$as_me:$LINENO: result: no" >&5
12039 echo "${ECHO_T}no" >&6; }
12040 { echo "$as_me:$LINENO: checking for libXaw" >&5
12041 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12042 if test "${emacs_cv_xaw+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 #include <X11/Intrinsic.h>
12053 #include <X11/Xaw/Simple.h>
12055 main ()
12059 return 0;
12061 _ACEOF
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (ac_try="$ac_link"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_link") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && {
12076 test -z "$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 } && test -s conftest$ac_exeext &&
12079 $as_test_x conftest$ac_exeext; then
12080 emacs_cv_xaw=yes
12081 else
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 emacs_cv_xaw=no
12088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12089 conftest$ac_exeext conftest.$ac_ext
12092 if test $emacs_cv_xaw = yes; then
12093 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12094 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12095 USE_X_TOOLKIT=LUCID
12096 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12097 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12098 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12099 { (exit 1); exit 1; }; }
12100 else
12101 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12102 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12103 USE_X_TOOLKIT=none
12108 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12110 if test "${USE_X_TOOLKIT}" != "none"; then
12111 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12112 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12113 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h. */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 #include <X11/Intrinsic.h>
12124 main ()
12126 #if XtSpecificationRelease < 6
12127 fail;
12128 #endif
12131 return 0;
12133 _ACEOF
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (ac_try="$ac_link"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_link") 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } && {
12148 test -z "$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12150 } && test -s conftest$ac_exeext &&
12151 $as_test_x conftest$ac_exeext; then
12152 emacs_cv_x11_toolkit_version_6=yes
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 emacs_cv_x11_toolkit_version_6=no
12160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12161 conftest$ac_exeext conftest.$ac_ext
12164 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12165 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12166 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12167 echo "${ECHO_T}6 or newer" >&6; }
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_X11XTR6 1
12171 _ACEOF
12173 else
12174 { echo "$as_me:$LINENO: result: before 6" >&5
12175 echo "${ECHO_T}before 6" >&6; }
12178 OLDLIBS="$LIBS"
12179 if test x$HAVE_X11XTR6 = xyes; then
12180 LIBS="-lXt -lSM -lICE $LIBS"
12181 else
12182 LIBS="-lXt $LIBS"
12185 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12186 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12187 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lXmu $LIBS"
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h. */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char XmuConvertStandardSelection ();
12207 main ()
12209 return XmuConvertStandardSelection ();
12211 return 0;
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest$ac_exeext &&
12231 $as_test_x conftest$ac_exeext; then
12232 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12233 else
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12245 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12246 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_LIBXMU 1
12249 _ACEOF
12251 LIBS="-lXmu $LIBS"
12255 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12258 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12259 if test "${HAVE_X11}" = "yes"; then
12260 if test "${USE_X_TOOLKIT}" != "none"; then
12262 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12263 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lXext $LIBS"
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char XShapeQueryExtension ();
12284 main ()
12286 return XShapeQueryExtension ();
12288 return 0;
12290 _ACEOF
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && {
12305 test -z "$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 } && test -s conftest$ac_exeext &&
12308 $as_test_x conftest$ac_exeext; then
12309 ac_cv_lib_Xext_XShapeQueryExtension=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_lib_Xext_XShapeQueryExtension=no
12317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12322 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12323 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_LIBXEXT 1
12326 _ACEOF
12328 LIBS="-lXext $LIBS"
12335 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12336 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12337 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12338 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #include <Xm/Xm.h>
12349 main ()
12351 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12352 int x = 5;
12353 #else
12354 Motif version prior to 2.1.
12355 #endif
12357 return 0;
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.$ac_objext; then
12377 emacs_cv_motif_version_2_1=yes
12378 else
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 emacs_cv_motif_version_2_1=no
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12388 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12389 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12390 if test $emacs_cv_motif_version_2_1 = yes; then
12391 HAVE_LIBXP=no
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_MOTIF_2_1 1
12395 _ACEOF
12397 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12398 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12399 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-lXp $LIBS"
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char XpCreateContext ();
12419 main ()
12421 return XpCreateContext ();
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (ac_try="$ac_link"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_link") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest$ac_exeext &&
12443 $as_test_x conftest$ac_exeext; then
12444 ac_cv_lib_Xp_XpCreateContext=yes
12445 else
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_cv_lib_Xp_XpCreateContext=no
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453 conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12456 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12457 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12458 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12459 HAVE_LIBXP=yes
12462 if test ${HAVE_LIBXP} = yes; then
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_LIBXP 1
12466 _ACEOF
12469 else
12470 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12471 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12472 if test "${emacs_cv_lesstif+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475 # We put this in CFLAGS temporarily to precede other -I options
12476 # that might be in CFLAGS temporarily.
12477 # We put this in CPPFLAGS where it precedes the other -I options.
12478 OLD_CPPFLAGS=$CPPFLAGS
12479 OLD_CFLAGS=$CFLAGS
12480 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12481 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12490 main ()
12492 int x = 5;
12494 return 0;
12496 _ACEOF
12497 rm -f conftest.$ac_objext
12498 if { (ac_try="$ac_compile"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
12514 emacs_cv_lesstif=yes
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 emacs_cv_lesstif=no
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12525 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12526 if test $emacs_cv_lesstif = yes; then
12527 # Make sure this -I option remains in CPPFLAGS after it is set
12528 # back to REAL_CPPFLAGS.
12529 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12530 # have those other -I options anyway. Ultimately, having this
12531 # directory ultimately in CPPFLAGS will be enough.
12532 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12533 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12534 else
12535 CFLAGS=$OLD_CFLAGS
12536 CPPFLAGS=$OLD_CPPFLAGS
12543 USE_TOOLKIT_SCROLL_BARS=no
12544 if test "${with_toolkit_scroll_bars}" != "no"; then
12545 if test "${USE_X_TOOLKIT}" != "none"; then
12546 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12547 cat >>confdefs.h <<\_ACEOF
12548 #define USE_TOOLKIT_SCROLL_BARS 1
12549 _ACEOF
12551 HAVE_XAW3D=no
12552 USE_TOOLKIT_SCROLL_BARS=yes
12553 elif test "${HAVE_XAW3D}" = "yes"; then
12554 cat >>confdefs.h <<\_ACEOF
12555 #define USE_TOOLKIT_SCROLL_BARS 1
12556 _ACEOF
12558 USE_TOOLKIT_SCROLL_BARS=yes
12560 elif test "${HAVE_GTK}" = "yes"; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define USE_TOOLKIT_SCROLL_BARS 1
12563 _ACEOF
12565 USE_TOOLKIT_SCROLL_BARS=yes
12566 elif test "${HAVE_CARBON}" = "yes"; then
12567 cat >>confdefs.h <<\_ACEOF
12568 #define USE_TOOLKIT_SCROLL_BARS 1
12569 _ACEOF
12571 USE_TOOLKIT_SCROLL_BARS=yes
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12582 #include <X11/Xlib.h>
12583 #include <X11/Xresource.h>
12585 main ()
12587 XIMProc callback;
12589 return 0;
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (ac_try="$ac_compile"
12594 case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_compile") 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && {
12606 test -z "$ac_c_werror_flag" ||
12607 test ! -s conftest.err
12608 } && test -s conftest.$ac_objext; then
12609 HAVE_XIM=yes
12611 cat >>confdefs.h <<\_ACEOF
12612 #define HAVE_XIM 1
12613 _ACEOF
12615 else
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 HAVE_XIM=no
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 if test "${with_xim}" != "no"; then
12627 cat >>confdefs.h <<\_ACEOF
12628 #define USE_XIM 1
12629 _ACEOF
12634 if test "${HAVE_XIM}" != "no"; then
12635 late_CFLAGS=$CFLAGS
12636 if test "$GCC" = yes; then
12637 CFLAGS="$CFLAGS --pedantic-errors"
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 #include <X11/Xlib.h>
12647 #include <X11/Xresource.h>
12649 main ()
12651 Display *display;
12652 XrmDatabase db;
12653 char *res_name;
12654 char *res_class;
12655 XIMProc callback;
12656 XPointer *client_data;
12657 #ifndef __GNUC__
12658 /* If we're not using GCC, it's probably not XFree86, and this is
12659 probably right, but we can't use something like --pedantic-errors. */
12660 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12661 char*, XIMProc, XPointer*);
12662 #endif
12663 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12664 client_data);
12666 return 0;
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (ac_try="$ac_compile"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_compile") 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest.$ac_objext; then
12686 emacs_cv_arg6_star=yes
12687 else
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 if test "$emacs_cv_arg6_star" = yes; then
12697 cat >>confdefs.h <<\_ACEOF
12698 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12699 _ACEOF
12701 else
12702 cat >>confdefs.h <<\_ACEOF
12703 #define XRegisterIMInstantiateCallback_arg6 XPointer
12704 _ACEOF
12707 CFLAGS=$late_CFLAGS
12710 ### Use -lXpm if available, unless `--with-xpm=no'.
12711 HAVE_XPM=no
12712 if test "${HAVE_X11}" = "yes"; then
12713 if test "${with_xpm}" != "no"; then
12714 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12715 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12716 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12717 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12721 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12722 else
12723 # Is the header compilable?
12724 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12725 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 $ac_includes_default
12733 #include <X11/xpm.h>
12734 _ACEOF
12735 rm -f conftest.$ac_objext
12736 if { (ac_try="$ac_compile"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_compile") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest.$ac_objext; then
12752 ac_header_compiler=yes
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ac_header_compiler=no
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12762 echo "${ECHO_T}$ac_header_compiler" >&6; }
12764 # Is the header present?
12765 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12766 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 #include <X11/xpm.h>
12774 _ACEOF
12775 if { (ac_try="$ac_cpp conftest.$ac_ext"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } >/dev/null && {
12788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 }; then
12791 ac_header_preproc=yes
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_header_preproc=no
12799 rm -f conftest.err conftest.$ac_ext
12800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12801 echo "${ECHO_T}$ac_header_preproc" >&6; }
12803 # So? What about this header?
12804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12805 yes:no: )
12806 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12807 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12809 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12810 ac_header_preproc=yes
12812 no:yes:* )
12813 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12814 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12816 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12818 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12820 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12822 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12824 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12827 esac
12828 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12829 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12830 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 else
12833 ac_cv_header_X11_xpm_h=$ac_header_preproc
12835 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12836 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12839 if test $ac_cv_header_X11_xpm_h = yes; then
12840 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12841 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12842 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845 ac_check_lib_save_LIBS=$LIBS
12846 LIBS="-lXpm -lX11 $LIBS"
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char XpmReadFileToPixmap ();
12862 main ()
12864 return XpmReadFileToPixmap ();
12866 return 0;
12868 _ACEOF
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (ac_try="$ac_link"
12871 case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874 esac
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_link") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest$ac_exeext &&
12886 $as_test_x conftest$ac_exeext; then
12887 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12896 conftest$ac_exeext conftest.$ac_ext
12897 LIBS=$ac_check_lib_save_LIBS
12899 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12900 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12901 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12902 HAVE_XPM=yes
12908 if test "${HAVE_XPM}" = "yes"; then
12909 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12910 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h. */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 #include "X11/xpm.h"
12918 #ifndef XpmReturnAllocPixels
12919 no_return_alloc_pixels
12920 #endif
12922 _ACEOF
12923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12924 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12925 HAVE_XPM=no
12926 else
12927 HAVE_XPM=yes
12929 rm -f conftest*
12932 if test "${HAVE_XPM}" = "yes"; then
12933 { echo "$as_me:$LINENO: result: yes" >&5
12934 echo "${ECHO_T}yes" >&6; }
12935 else
12936 { echo "$as_me:$LINENO: result: no" >&5
12937 echo "${ECHO_T}no" >&6; }
12942 if test "${HAVE_XPM}" = "yes"; then
12944 cat >>confdefs.h <<\_ACEOF
12945 #define HAVE_XPM 1
12946 _ACEOF
12951 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12952 HAVE_JPEG=no
12953 if test "${HAVE_X11}" = "yes"; then
12954 if test "${with_jpeg}" != "no"; then
12955 if test "${ac_cv_header_jerror_h+set}" = set; then
12956 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12957 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12958 if test "${ac_cv_header_jerror_h+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12962 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12963 else
12964 # Is the header compilable?
12965 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12966 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 $ac_includes_default
12974 #include <jerror.h>
12975 _ACEOF
12976 rm -f conftest.$ac_objext
12977 if { (ac_try="$ac_compile"
12978 case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_compile") 2>conftest.er1
12984 ac_status=$?
12985 grep -v '^ *+' conftest.er1 >conftest.err
12986 rm -f conftest.er1
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && {
12990 test -z "$ac_c_werror_flag" ||
12991 test ! -s conftest.err
12992 } && test -s conftest.$ac_objext; then
12993 ac_header_compiler=yes
12994 else
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ac_header_compiler=no
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13003 echo "${ECHO_T}$ac_header_compiler" >&6; }
13005 # Is the header present?
13006 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13007 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h. */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 #include <jerror.h>
13015 _ACEOF
13016 if { (ac_try="$ac_cpp conftest.$ac_ext"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } >/dev/null && {
13029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13030 test ! -s conftest.err
13031 }; then
13032 ac_header_preproc=yes
13033 else
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13037 ac_header_preproc=no
13040 rm -f conftest.err conftest.$ac_ext
13041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13042 echo "${ECHO_T}$ac_header_preproc" >&6; }
13044 # So? What about this header?
13045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13046 yes:no: )
13047 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13048 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13050 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13051 ac_header_preproc=yes
13053 no:yes:* )
13054 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13055 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13057 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13059 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13061 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13062 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13063 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13064 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13065 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13068 esac
13069 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13070 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13071 if test "${ac_cv_header_jerror_h+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074 ac_cv_header_jerror_h=$ac_header_preproc
13076 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13077 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13080 if test $ac_cv_header_jerror_h = yes; then
13081 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13082 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13083 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-ljpeg $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 char jpeg_destroy_compress ();
13103 main ()
13105 return jpeg_destroy_compress ();
13107 return 0;
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (ac_try="$ac_link"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_link") 2>conftest.er1
13118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest$ac_exeext &&
13127 $as_test_x conftest$ac_exeext; then
13128 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13140 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13141 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13142 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13143 HAVE_JPEG=yes
13152 if test "${HAVE_JPEG}" = "yes"; then
13153 cat >>confdefs.h <<\_ACEOF
13154 #define HAVE_JPEG 1
13155 _ACEOF
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 #include <jpeglib.h>
13164 version=JPEG_LIB_VERSION
13166 _ACEOF
13167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13168 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13169 cat >>confdefs.h <<\_ACEOF
13170 #define HAVE_JPEG 1
13171 _ACEOF
13173 else
13174 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13175 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13176 HAVE_JPEG=no
13178 rm -f conftest*
13183 ### Use -lpng if available, unless `--with-png=no'.
13184 HAVE_PNG=no
13185 if test "${HAVE_X11}" = "yes"; then
13186 if test "${with_png}" != "no"; then
13187 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13188 # in /usr/include/libpng.
13191 for ac_header in png.h libpng/png.h
13193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_res=`eval echo '${'$as_ac_Header'}'`
13201 { echo "$as_me:$LINENO: result: $ac_res" >&5
13202 echo "${ECHO_T}$ac_res" >&6; }
13203 else
13204 # Is the header compilable?
13205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 #include <$ac_header>
13215 _ACEOF
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_compile") 2>conftest.er1
13224 ac_status=$?
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } && {
13230 test -z "$ac_c_werror_flag" ||
13231 test ! -s conftest.err
13232 } && test -s conftest.$ac_objext; then
13233 ac_header_compiler=yes
13234 else
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13238 ac_header_compiler=no
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13243 echo "${ECHO_T}$ac_header_compiler" >&6; }
13245 # Is the header present?
13246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h. */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13254 #include <$ac_header>
13255 _ACEOF
13256 if { (ac_try="$ac_cpp conftest.$ac_ext"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } >/dev/null && {
13269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13270 test ! -s conftest.err
13271 }; then
13272 ac_header_preproc=yes
13273 else
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_header_preproc=no
13280 rm -f conftest.err conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13282 echo "${ECHO_T}$ac_header_preproc" >&6; }
13284 # So? What about this header?
13285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13286 yes:no: )
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13291 ac_header_preproc=yes
13293 no:yes:* )
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13308 esac
13309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 eval "$as_ac_Header=\$ac_header_preproc"
13316 ac_res=`eval echo '${'$as_ac_Header'}'`
13317 { echo "$as_me:$LINENO: result: $ac_res" >&5
13318 echo "${ECHO_T}$ac_res" >&6; }
13321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324 _ACEOF
13328 done
13330 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13331 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13332 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13333 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336 ac_check_lib_save_LIBS=$LIBS
13337 LIBS="-lpng -lz -lm $LIBS"
13338 cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h. */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13348 #ifdef __cplusplus
13349 extern "C"
13350 #endif
13351 char png_get_channels ();
13353 main ()
13355 return png_get_channels ();
13357 return 0;
13359 _ACEOF
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (ac_try="$ac_link"
13362 case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_link") 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } && {
13374 test -z "$ac_c_werror_flag" ||
13375 test ! -s conftest.err
13376 } && test -s conftest$ac_exeext &&
13377 $as_test_x conftest$ac_exeext; then
13378 ac_cv_lib_png_png_get_channels=yes
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_cv_lib_png_png_get_channels=no
13386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13387 conftest$ac_exeext conftest.$ac_ext
13388 LIBS=$ac_check_lib_save_LIBS
13390 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13391 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13392 if test $ac_cv_lib_png_png_get_channels = yes; then
13393 HAVE_PNG=yes
13399 if test "${HAVE_PNG}" = "yes"; then
13401 cat >>confdefs.h <<\_ACEOF
13402 #define HAVE_PNG 1
13403 _ACEOF
13408 ### Use -ltiff if available, unless `--with-tiff=no'.
13409 HAVE_TIFF=no
13410 if test "${HAVE_X11}" = "yes"; then
13411 if test "${with_tiff}" != "no"; then
13412 if test "${ac_cv_header_tiffio_h+set}" = set; then
13413 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13414 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13415 if test "${ac_cv_header_tiffio_h+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13419 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13420 else
13421 # Is the header compilable?
13422 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13423 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13431 #include <tiffio.h>
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (ac_try="$ac_compile"
13435 case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_compile") 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } && {
13447 test -z "$ac_c_werror_flag" ||
13448 test ! -s conftest.err
13449 } && test -s conftest.$ac_objext; then
13450 ac_header_compiler=yes
13451 else
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13455 ac_header_compiler=no
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13460 echo "${ECHO_T}$ac_header_compiler" >&6; }
13462 # Is the header present?
13463 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13464 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 #include <tiffio.h>
13472 _ACEOF
13473 if { (ac_try="$ac_cpp conftest.$ac_ext"
13474 case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13477 esac
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } >/dev/null && {
13486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 }; then
13489 ac_header_preproc=yes
13490 else
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 ac_header_preproc=no
13497 rm -f conftest.err conftest.$ac_ext
13498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499 echo "${ECHO_T}$ac_header_preproc" >&6; }
13501 # So? What about this header?
13502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503 yes:no: )
13504 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13505 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13507 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13508 ac_header_preproc=yes
13510 no:yes:* )
13511 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13512 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13514 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13516 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13518 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13520 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13522 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13525 esac
13526 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13527 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13528 if test "${ac_cv_header_tiffio_h+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 ac_cv_header_tiffio_h=$ac_header_preproc
13533 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13534 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13537 if test $ac_cv_header_tiffio_h = yes; then
13538 tifflibs="-lz -lm"
13539 # At least one tiff package requires the jpeg library.
13540 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13541 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13542 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13543 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-ltiff $tifflibs $LIBS"
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13555 /* Override any GCC internal prototype to avoid an error.
13556 Use char because int might match the return type of a GCC
13557 builtin and then its argument prototype would still apply. */
13558 #ifdef __cplusplus
13559 extern "C"
13560 #endif
13561 char TIFFGetVersion ();
13563 main ()
13565 return TIFFGetVersion ();
13567 return 0;
13569 _ACEOF
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (ac_try="$ac_link"
13572 case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575 esac
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_link") 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } && {
13584 test -z "$ac_c_werror_flag" ||
13585 test ! -s conftest.err
13586 } && test -s conftest$ac_exeext &&
13587 $as_test_x conftest$ac_exeext; then
13588 ac_cv_lib_tiff_TIFFGetVersion=yes
13589 else
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 ac_cv_lib_tiff_TIFFGetVersion=no
13596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13600 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13601 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13602 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13603 HAVE_TIFF=yes
13611 if test "${HAVE_TIFF}" = "yes"; then
13613 cat >>confdefs.h <<\_ACEOF
13614 #define HAVE_TIFF 1
13615 _ACEOF
13620 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13621 HAVE_GIF=no
13622 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13623 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13624 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13625 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13626 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13630 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13631 else
13632 # Is the header compilable?
13633 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13634 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 $ac_includes_default
13642 #include <gif_lib.h>
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (ac_try="$ac_compile"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compile") 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest.$ac_objext; then
13661 ac_header_compiler=yes
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 ac_header_compiler=no
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13671 echo "${ECHO_T}$ac_header_compiler" >&6; }
13673 # Is the header present?
13674 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13675 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h. */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 #include <gif_lib.h>
13683 _ACEOF
13684 if { (ac_try="$ac_cpp conftest.$ac_ext"
13685 case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688 esac
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } >/dev/null && {
13697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13698 test ! -s conftest.err
13699 }; then
13700 ac_header_preproc=yes
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_header_preproc=no
13708 rm -f conftest.err conftest.$ac_ext
13709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13710 echo "${ECHO_T}$ac_header_preproc" >&6; }
13712 # So? What about this header?
13713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13714 yes:no: )
13715 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13716 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13718 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13719 ac_header_preproc=yes
13721 no:yes:* )
13722 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13723 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13725 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13727 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13729 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13731 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13732 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13733 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13736 esac
13737 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13738 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13739 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 else
13742 ac_cv_header_gif_lib_h=$ac_header_preproc
13744 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13745 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13748 if test $ac_cv_header_gif_lib_h = yes; then
13749 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13750 # Earlier versions can crash Emacs.
13751 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13752 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13753 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756 ac_check_lib_save_LIBS=$LIBS
13757 LIBS="-lgif $LIBS"
13758 cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h. */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13768 #ifdef __cplusplus
13769 extern "C"
13770 #endif
13771 char EGifPutExtensionLast ();
13773 main ()
13775 return EGifPutExtensionLast ();
13777 return 0;
13779 _ACEOF
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (ac_try="$ac_link"
13782 case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785 esac
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_link") 2>conftest.er1
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } && {
13794 test -z "$ac_c_werror_flag" ||
13795 test ! -s conftest.err
13796 } && test -s conftest$ac_exeext &&
13797 $as_test_x conftest$ac_exeext; then
13798 ac_cv_lib_gif_EGifPutExtensionLast=yes
13799 else
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_cv_lib_gif_EGifPutExtensionLast=no
13806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13811 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13812 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
13813 HAVE_GIF=yes
13814 else
13815 try_libungif=yes
13822 if test "$HAVE_GIF" = yes; then
13823 ac_gif_lib_name="-lgif"
13826 # If gif_lib.h but no libgif, try libungif.
13827 if test x"$try_libungif" = xyes; then
13828 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13829 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13830 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833 ac_check_lib_save_LIBS=$LIBS
13834 LIBS="-lungif $LIBS"
13835 cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h. */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char EGifPutExtensionLast ();
13850 main ()
13852 return EGifPutExtensionLast ();
13854 return 0;
13856 _ACEOF
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (ac_try="$ac_link"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13862 esac
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_link") 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && {
13871 test -z "$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13873 } && test -s conftest$ac_exeext &&
13874 $as_test_x conftest$ac_exeext; then
13875 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13876 else
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_cv_lib_ungif_EGifPutExtensionLast=no
13883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13884 conftest$ac_exeext conftest.$ac_ext
13885 LIBS=$ac_check_lib_save_LIBS
13887 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13888 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13889 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13890 HAVE_GIF=yes
13894 if test "$HAVE_GIF" = yes; then
13896 cat >>confdefs.h <<\_ACEOF
13897 #define LIBGIF -lungif
13898 _ACEOF
13900 ac_gif_lib_name="-lungif"
13904 if test "${HAVE_GIF}" = "yes"; then
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_GIF 1
13908 _ACEOF
13913 if test "${HAVE_X11}" = "yes"; then
13914 MISSING=""
13915 WITH_NO=""
13916 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13917 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13918 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13919 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13920 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13921 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13922 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13923 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13924 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13925 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13927 if test "X${MISSING}" != X; then
13928 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
13929 $MISSING
13930 Maybe some development libraries/packages are missing?
13931 If you don't want to link with them give
13932 $WITH_NO
13933 as options to configure" >&5
13934 echo "$as_me: error: The following required libraries were not found:
13935 $MISSING
13936 Maybe some development libraries/packages are missing?
13937 If you don't want to link with them give
13938 $WITH_NO
13939 as options to configure" >&2;}
13940 { (exit 1); exit 1; }; }
13944 ### Use -lgpm if available, unless `--with-gpm=no'.
13945 HAVE_GPM=no
13946 if test "${with_gpm}" != "no"; then
13947 if test "${ac_cv_header_gpm_h+set}" = set; then
13948 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13949 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13950 if test "${ac_cv_header_gpm_h+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13954 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13955 else
13956 # Is the header compilable?
13957 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13958 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 $ac_includes_default
13966 #include <gpm.h>
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (ac_try="$ac_compile"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_compile") 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest.$ac_objext; then
13985 ac_header_compiler=yes
13986 else
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13990 ac_header_compiler=no
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13995 echo "${ECHO_T}$ac_header_compiler" >&6; }
13997 # Is the header present?
13998 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
13999 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h. */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 #include <gpm.h>
14007 _ACEOF
14008 if { (ac_try="$ac_cpp conftest.$ac_ext"
14009 case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14012 esac
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14015 ac_status=$?
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } >/dev/null && {
14021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14022 test ! -s conftest.err
14023 }; then
14024 ac_header_preproc=yes
14025 else
14026 echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14029 ac_header_preproc=no
14032 rm -f conftest.err conftest.$ac_ext
14033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14034 echo "${ECHO_T}$ac_header_preproc" >&6; }
14036 # So? What about this header?
14037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14038 yes:no: )
14039 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14040 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14042 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14043 ac_header_preproc=yes
14045 no:yes:* )
14046 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14047 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14049 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14050 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14051 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14053 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14054 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14055 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14057 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14060 esac
14061 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14062 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14063 if test "${ac_cv_header_gpm_h+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 ac_cv_header_gpm_h=$ac_header_preproc
14068 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14069 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14072 if test $ac_cv_header_gpm_h = yes; then
14073 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14074 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14075 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078 ac_check_lib_save_LIBS=$LIBS
14079 LIBS="-lgpm $LIBS"
14080 cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h. */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14087 /* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14090 #ifdef __cplusplus
14091 extern "C"
14092 #endif
14093 char Gpm_Open ();
14095 main ()
14097 return Gpm_Open ();
14099 return 0;
14101 _ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (ac_try="$ac_link"
14104 case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107 esac
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_link") 2>conftest.er1
14110 ac_status=$?
14111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && {
14116 test -z "$ac_c_werror_flag" ||
14117 test ! -s conftest.err
14118 } && test -s conftest$ac_exeext &&
14119 $as_test_x conftest$ac_exeext; then
14120 ac_cv_lib_gpm_Gpm_Open=yes
14121 else
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_cv_lib_gpm_Gpm_Open=no
14128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14133 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14134 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14135 HAVE_GPM=yes
14143 if test "${HAVE_GPM}" = "yes"; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_GPM 1
14147 _ACEOF
14151 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14152 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14153 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14154 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14158 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14159 else
14160 # Is the header compilable?
14161 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14162 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 $ac_includes_default
14170 #include <malloc/malloc.h>
14171 _ACEOF
14172 rm -f conftest.$ac_objext
14173 if { (ac_try="$ac_compile"
14174 case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_compile") 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } && {
14186 test -z "$ac_c_werror_flag" ||
14187 test ! -s conftest.err
14188 } && test -s conftest.$ac_objext; then
14189 ac_header_compiler=yes
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_header_compiler=no
14197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14199 echo "${ECHO_T}$ac_header_compiler" >&6; }
14201 # Is the header present?
14202 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14203 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 #include <malloc/malloc.h>
14211 _ACEOF
14212 if { (ac_try="$ac_cpp conftest.$ac_ext"
14213 case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216 esac
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } >/dev/null && {
14225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14226 test ! -s conftest.err
14227 }; then
14228 ac_header_preproc=yes
14229 else
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_header_preproc=no
14236 rm -f conftest.err conftest.$ac_ext
14237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14238 echo "${ECHO_T}$ac_header_preproc" >&6; }
14240 # So? What about this header?
14241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14242 yes:no: )
14243 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14244 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14246 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14247 ac_header_preproc=yes
14249 no:yes:* )
14250 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14251 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14253 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14255 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14257 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14259 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14261 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14264 esac
14265 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14266 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14267 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14272 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14273 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14276 if test $ac_cv_header_malloc_malloc_h = yes; then
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_MALLOC_MALLOC_H 1
14280 _ACEOF
14286 ### Use Mac OS X Carbon API to implement GUI.
14287 if test "${HAVE_CARBON}" = "yes"; then
14289 cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_CARBON 1
14291 _ACEOF
14293 ## Specify the install directory
14294 carbon_appdir=
14295 if test "${carbon_appdir_x}" != ""; then
14296 case ${carbon_appdir_x} in
14297 y | ye | yes) carbon_appdir=/Applications ;;
14298 * ) carbon_appdir=${carbon_appdir_x} ;;
14299 esac
14301 # We also have mouse menus.
14302 HAVE_MENUS=yes
14305 ### Use session management (-lSM -lICE) if available
14306 HAVE_X_SM=no
14307 if test "${HAVE_X11}" = "yes"; then
14308 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14309 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14310 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14315 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14316 else
14317 # Is the header compilable?
14318 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14319 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 $ac_includes_default
14327 #include <X11/SM/SMlib.h>
14328 _ACEOF
14329 rm -f conftest.$ac_objext
14330 if { (ac_try="$ac_compile"
14331 case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14334 esac
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336 (eval "$ac_compile") 2>conftest.er1
14337 ac_status=$?
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest.$ac_objext; then
14346 ac_header_compiler=yes
14347 else
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 ac_header_compiler=no
14354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14356 echo "${ECHO_T}$ac_header_compiler" >&6; }
14358 # Is the header present?
14359 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14360 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14361 cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h. */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 #include <X11/SM/SMlib.h>
14368 _ACEOF
14369 if { (ac_try="$ac_cpp conftest.$ac_ext"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } >/dev/null && {
14382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14383 test ! -s conftest.err
14384 }; then
14385 ac_header_preproc=yes
14386 else
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 ac_header_preproc=no
14393 rm -f conftest.err conftest.$ac_ext
14394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14395 echo "${ECHO_T}$ac_header_preproc" >&6; }
14397 # So? What about this header?
14398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14399 yes:no: )
14400 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14401 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14403 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14404 ac_header_preproc=yes
14406 no:yes:* )
14407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14408 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14410 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14412 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14414 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14416 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14418 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14421 esac
14422 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14423 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14429 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14430 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14433 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14434 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14435 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14436 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 ac_check_lib_save_LIBS=$LIBS
14440 LIBS="-lSM -lICE $LIBS"
14441 cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
14451 #ifdef __cplusplus
14452 extern "C"
14453 #endif
14454 char SmcOpenConnection ();
14456 main ()
14458 return SmcOpenConnection ();
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_link") 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } && {
14477 test -z "$ac_c_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest$ac_exeext &&
14480 $as_test_x conftest$ac_exeext; then
14481 ac_cv_lib_SM_SmcOpenConnection=yes
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_cv_lib_SM_SmcOpenConnection=no
14489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14490 conftest$ac_exeext conftest.$ac_ext
14491 LIBS=$ac_check_lib_save_LIBS
14493 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14494 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14495 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14496 HAVE_X_SM=yes
14503 if test "${HAVE_X_SM}" = "yes"; then
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_X_SM 1
14507 _ACEOF
14509 case "$LIBS" in
14510 *-lSM*) ;;
14511 *) LIBS="-lSM -lICE $LIBS" ;;
14512 esac
14516 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14517 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14518 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14519 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 else
14522 cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h. */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #include <netdb.h>
14530 main ()
14532 return h_errno;
14534 return 0;
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (ac_try="$ac_link"
14539 case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542 esac
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_link") 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } && {
14551 test -z "$ac_c_werror_flag" ||
14552 test ! -s conftest.err
14553 } && test -s conftest$ac_exeext &&
14554 $as_test_x conftest$ac_exeext; then
14555 emacs_cv_netdb_declares_h_errno=yes
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 emacs_cv_netdb_declares_h_errno=no
14563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14564 conftest$ac_exeext conftest.$ac_ext
14566 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14567 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14568 if test $emacs_cv_netdb_declares_h_errno = yes; then
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_H_ERRNO 1
14572 _ACEOF
14576 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14577 # for constant arguments. Useless!
14578 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14579 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14580 if test "${ac_cv_working_alloca_h+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583 cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 #include <alloca.h>
14591 main ()
14593 char *p = (char *) alloca (2 * sizeof (int));
14594 if (p) return 0;
14596 return 0;
14598 _ACEOF
14599 rm -f conftest.$ac_objext conftest$ac_exeext
14600 if { (ac_try="$ac_link"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>conftest.er1
14607 ac_status=$?
14608 grep -v '^ *+' conftest.er1 >conftest.err
14609 rm -f conftest.er1
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } && {
14613 test -z "$ac_c_werror_flag" ||
14614 test ! -s conftest.err
14615 } && test -s conftest$ac_exeext &&
14616 $as_test_x conftest$ac_exeext; then
14617 ac_cv_working_alloca_h=yes
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_cv_working_alloca_h=no
14625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14626 conftest$ac_exeext conftest.$ac_ext
14628 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14629 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14630 if test $ac_cv_working_alloca_h = yes; then
14632 cat >>confdefs.h <<\_ACEOF
14633 #define HAVE_ALLOCA_H 1
14634 _ACEOF
14638 { echo "$as_me:$LINENO: checking for alloca" >&5
14639 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14640 if test "${ac_cv_func_alloca_works+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643 cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h. */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 #ifdef __GNUC__
14650 # define alloca __builtin_alloca
14651 #else
14652 # ifdef _MSC_VER
14653 # include <malloc.h>
14654 # define alloca _alloca
14655 # else
14656 # ifdef HAVE_ALLOCA_H
14657 # include <alloca.h>
14658 # else
14659 # ifdef _AIX
14660 #pragma alloca
14661 # else
14662 # ifndef alloca /* predefined by HP cc +Olibcalls */
14663 char *alloca ();
14664 # endif
14665 # endif
14666 # endif
14667 # endif
14668 #endif
14671 main ()
14673 char *p = (char *) alloca (1);
14674 if (p) return 0;
14676 return 0;
14678 _ACEOF
14679 rm -f conftest.$ac_objext conftest$ac_exeext
14680 if { (ac_try="$ac_link"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_link") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && {
14693 test -z "$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest$ac_exeext &&
14696 $as_test_x conftest$ac_exeext; then
14697 ac_cv_func_alloca_works=yes
14698 else
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 ac_cv_func_alloca_works=no
14705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14706 conftest$ac_exeext conftest.$ac_ext
14708 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14709 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14711 if test $ac_cv_func_alloca_works = yes; then
14713 cat >>confdefs.h <<\_ACEOF
14714 #define HAVE_ALLOCA 1
14715 _ACEOF
14717 else
14718 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14719 # that cause trouble. Some versions do not even contain alloca or
14720 # contain a buggy version. If you still want to use their alloca,
14721 # use ar to extract alloca.o from them instead of compiling alloca.c.
14723 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14725 cat >>confdefs.h <<\_ACEOF
14726 #define C_ALLOCA 1
14727 _ACEOF
14730 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14731 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14732 if test "${ac_cv_os_cray+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #if defined CRAY && ! defined CRAY2
14742 webecray
14743 #else
14744 wenotbecray
14745 #endif
14747 _ACEOF
14748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749 $EGREP "webecray" >/dev/null 2>&1; then
14750 ac_cv_os_cray=yes
14751 else
14752 ac_cv_os_cray=no
14754 rm -f conftest*
14757 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14758 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14759 if test $ac_cv_os_cray = yes; then
14760 for ac_func in _getb67 GETB67 getb67; do
14761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767 cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h. */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14775 #define $ac_func innocuous_$ac_func
14777 /* System header to define __stub macros and hopefully few prototypes,
14778 which can conflict with char $ac_func (); below.
14779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14780 <limits.h> exists even on freestanding compilers. */
14782 #ifdef __STDC__
14783 # include <limits.h>
14784 #else
14785 # include <assert.h>
14786 #endif
14788 #undef $ac_func
14790 /* Override any GCC internal prototype to avoid an error.
14791 Use char because int might match the return type of a GCC
14792 builtin and then its argument prototype would still apply. */
14793 #ifdef __cplusplus
14794 extern "C"
14795 #endif
14796 char $ac_func ();
14797 /* The GNU C library defines this for functions which it implements
14798 to always fail with ENOSYS. Some functions are actually named
14799 something starting with __ and the normal name is an alias. */
14800 #if defined __stub_$ac_func || defined __stub___$ac_func
14801 choke me
14802 #endif
14805 main ()
14807 return $ac_func ();
14809 return 0;
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_link") 2>conftest.er1
14820 ac_status=$?
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest$ac_exeext &&
14829 $as_test_x conftest$ac_exeext; then
14830 eval "$as_ac_var=yes"
14831 else
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 eval "$as_ac_var=no"
14838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14839 conftest$ac_exeext conftest.$ac_ext
14841 ac_res=`eval echo '${'$as_ac_var'}'`
14842 { echo "$as_me:$LINENO: result: $ac_res" >&5
14843 echo "${ECHO_T}$ac_res" >&6; }
14844 if test `eval echo '${'$as_ac_var'}'` = yes; then
14846 cat >>confdefs.h <<_ACEOF
14847 #define CRAY_STACKSEG_END $ac_func
14848 _ACEOF
14850 break
14853 done
14856 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14857 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14858 if test "${ac_cv_c_stack_direction+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 if test "$cross_compiling" = yes; then
14862 ac_cv_c_stack_direction=0
14863 else
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 $ac_includes_default
14872 find_stack_direction ()
14874 static char *addr = 0;
14875 auto char dummy;
14876 if (addr == 0)
14878 addr = &dummy;
14879 return find_stack_direction ();
14881 else
14882 return (&dummy > addr) ? 1 : -1;
14886 main ()
14888 return find_stack_direction () < 0;
14890 _ACEOF
14891 rm -f conftest$ac_exeext
14892 if { (ac_try="$ac_link"
14893 case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14896 esac
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_link") 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14902 { (case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_try") 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_c_stack_direction=1
14912 else
14913 echo "$as_me: program exited with status $ac_status" >&5
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 ( exit $ac_status )
14918 ac_cv_c_stack_direction=-1
14920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14925 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14926 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14928 cat >>confdefs.h <<_ACEOF
14929 #define STACK_DIRECTION $ac_cv_c_stack_direction
14930 _ACEOF
14936 if test x"$ac_cv_func_alloca_works" != xyes; then
14937 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
14938 echo "$as_me: error: a system implementation of alloca is required " >&2;}
14939 { (exit 1); exit 1; }; }
14942 # fmod, logb, and frexp are found in -lm on most systems.
14943 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14945 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14946 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14947 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950 ac_check_lib_save_LIBS=$LIBS
14951 LIBS="-lm $LIBS"
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14959 /* Override any GCC internal prototype to avoid an error.
14960 Use char because int might match the return type of a GCC
14961 builtin and then its argument prototype would still apply. */
14962 #ifdef __cplusplus
14963 extern "C"
14964 #endif
14965 char sqrt ();
14967 main ()
14969 return sqrt ();
14971 return 0;
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (ac_try="$ac_link"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_link") 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } && {
14988 test -z "$ac_c_werror_flag" ||
14989 test ! -s conftest.err
14990 } && test -s conftest$ac_exeext &&
14991 $as_test_x conftest$ac_exeext; then
14992 ac_cv_lib_m_sqrt=yes
14993 else
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_cv_lib_m_sqrt=no
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
15004 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15005 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15006 if test $ac_cv_lib_m_sqrt = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_LIBM 1
15009 _ACEOF
15011 LIBS="-lm $LIBS"
15016 # Check for mail-locking functions in a "mail" library. Probably this should
15017 # have the same check as for liblockfile below.
15019 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15020 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15021 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024 ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lmail $LIBS"
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h. */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15033 /* Override any GCC internal prototype to avoid an error.
15034 Use char because int might match the return type of a GCC
15035 builtin and then its argument prototype would still apply. */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 char maillock ();
15041 main ()
15043 return maillock ();
15045 return 0;
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest$ac_exeext &&
15065 $as_test_x conftest$ac_exeext; then
15066 ac_cv_lib_mail_maillock=yes
15067 else
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_lib_mail_maillock=no
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15078 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15079 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15080 if test $ac_cv_lib_mail_maillock = yes; then
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_LIBMAIL 1
15083 _ACEOF
15085 LIBS="-lmail $LIBS"
15090 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15091 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15092 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095 ac_check_lib_save_LIBS=$LIBS
15096 LIBS="-llockfile $LIBS"
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15104 /* Override any GCC internal prototype to avoid an error.
15105 Use char because int might match the return type of a GCC
15106 builtin and then its argument prototype would still apply. */
15107 #ifdef __cplusplus
15108 extern "C"
15109 #endif
15110 char maillock ();
15112 main ()
15114 return maillock ();
15116 return 0;
15118 _ACEOF
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (ac_try="$ac_link"
15121 case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124 esac
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest$ac_exeext &&
15136 $as_test_x conftest$ac_exeext; then
15137 ac_cv_lib_lockfile_maillock=yes
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_lib_lockfile_maillock=no
15145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15146 conftest$ac_exeext conftest.$ac_ext
15147 LIBS=$ac_check_lib_save_LIBS
15149 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15150 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15151 if test $ac_cv_lib_lockfile_maillock = yes; then
15152 cat >>confdefs.h <<_ACEOF
15153 #define HAVE_LIBLOCKFILE 1
15154 _ACEOF
15156 LIBS="-llockfile $LIBS"
15160 # If we have the shared liblockfile, assume we must use it for mail
15161 # locking (e.g. Debian). If we couldn't link against liblockfile
15162 # (no liblockfile.a installed), ensure that we don't need to.
15163 if test "$ac_cv_lib_lockfile_maillock" = no; then
15164 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15165 set dummy liblockfile.so; ac_word=$2
15166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15168 if test "${ac_cv_prog_liblockfile+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171 if test -n "$liblockfile"; then
15172 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15173 else
15174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15175 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15176 for as_dir in $as_dummy
15178 IFS=$as_save_IFS
15179 test -z "$as_dir" && as_dir=.
15180 for ac_exec_ext in '' $ac_executable_extensions; do
15181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15182 ac_cv_prog_liblockfile="yes"
15183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15184 break 2
15186 done
15187 done
15188 IFS=$as_save_IFS
15190 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15193 liblockfile=$ac_cv_prog_liblockfile
15194 if test -n "$liblockfile"; then
15195 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15196 echo "${ECHO_T}$liblockfile" >&6; }
15197 else
15198 { echo "$as_me:$LINENO: result: no" >&5
15199 echo "${ECHO_T}no" >&6; }
15203 if test $ac_cv_prog_liblockfile = yes; then
15204 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15205 This probably means that movemail could lose mail.
15206 There may be a \`development' package to install containing liblockfile." >&5
15207 echo "$as_me: error: Shared liblockfile found but can't link against it.
15208 This probably means that movemail could lose mail.
15209 There may be a \`development' package to install containing liblockfile." >&2;}
15210 { (exit 1); exit 1; }; }
15211 else :
15215 for ac_func in touchlock
15217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h. */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15231 #define $ac_func innocuous_$ac_func
15233 /* System header to define __stub macros and hopefully few prototypes,
15234 which can conflict with char $ac_func (); below.
15235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15236 <limits.h> exists even on freestanding compilers. */
15238 #ifdef __STDC__
15239 # include <limits.h>
15240 #else
15241 # include <assert.h>
15242 #endif
15244 #undef $ac_func
15246 /* Override any GCC internal prototype to avoid an error.
15247 Use char because int might match the return type of a GCC
15248 builtin and then its argument prototype would still apply. */
15249 #ifdef __cplusplus
15250 extern "C"
15251 #endif
15252 char $ac_func ();
15253 /* The GNU C library defines this for functions which it implements
15254 to always fail with ENOSYS. Some functions are actually named
15255 something starting with __ and the normal name is an alias. */
15256 #if defined __stub_$ac_func || defined __stub___$ac_func
15257 choke me
15258 #endif
15261 main ()
15263 return $ac_func ();
15265 return 0;
15267 _ACEOF
15268 rm -f conftest.$ac_objext conftest$ac_exeext
15269 if { (ac_try="$ac_link"
15270 case "(($ac_try" in
15271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15273 esac
15274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15275 (eval "$ac_link") 2>conftest.er1
15276 ac_status=$?
15277 grep -v '^ *+' conftest.er1 >conftest.err
15278 rm -f conftest.er1
15279 cat conftest.err >&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } && {
15282 test -z "$ac_c_werror_flag" ||
15283 test ! -s conftest.err
15284 } && test -s conftest$ac_exeext &&
15285 $as_test_x conftest$ac_exeext; then
15286 eval "$as_ac_var=yes"
15287 else
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 eval "$as_ac_var=no"
15294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15295 conftest$ac_exeext conftest.$ac_ext
15297 ac_res=`eval echo '${'$as_ac_var'}'`
15298 { echo "$as_me:$LINENO: result: $ac_res" >&5
15299 echo "${ECHO_T}$ac_res" >&6; }
15300 if test `eval echo '${'$as_ac_var'}'` = yes; then
15301 cat >>confdefs.h <<_ACEOF
15302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15303 _ACEOF
15306 done
15309 for ac_header in maillock.h
15311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 ac_res=`eval echo '${'$as_ac_Header'}'`
15319 { echo "$as_me:$LINENO: result: $ac_res" >&5
15320 echo "${ECHO_T}$ac_res" >&6; }
15321 else
15322 # Is the header compilable?
15323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15325 cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h. */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15331 $ac_includes_default
15332 #include <$ac_header>
15333 _ACEOF
15334 rm -f conftest.$ac_objext
15335 if { (ac_try="$ac_compile"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_compile") 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && {
15348 test -z "$ac_c_werror_flag" ||
15349 test ! -s conftest.err
15350 } && test -s conftest.$ac_objext; then
15351 ac_header_compiler=yes
15352 else
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 ac_header_compiler=no
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15361 echo "${ECHO_T}$ac_header_compiler" >&6; }
15363 # Is the header present?
15364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h. */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 #include <$ac_header>
15373 _ACEOF
15374 if { (ac_try="$ac_cpp conftest.$ac_ext"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } >/dev/null && {
15387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15388 test ! -s conftest.err
15389 }; then
15390 ac_header_preproc=yes
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_header_preproc=no
15398 rm -f conftest.err conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15400 echo "${ECHO_T}$ac_header_preproc" >&6; }
15402 # So? What about this header?
15403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15404 yes:no: )
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15409 ac_header_preproc=yes
15411 no:yes:* )
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15426 esac
15427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432 eval "$as_ac_Header=\$ac_header_preproc"
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435 { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15440 cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15442 _ACEOF
15446 done
15517 for ac_func in gethostname getdomainname dup2 \
15518 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15519 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15520 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15521 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15522 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15523 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15524 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15525 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h. */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15541 #define $ac_func innocuous_$ac_func
15543 /* System header to define __stub macros and hopefully few prototypes,
15544 which can conflict with char $ac_func (); below.
15545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15546 <limits.h> exists even on freestanding compilers. */
15548 #ifdef __STDC__
15549 # include <limits.h>
15550 #else
15551 # include <assert.h>
15552 #endif
15554 #undef $ac_func
15556 /* Override any GCC internal prototype to avoid an error.
15557 Use char because int might match the return type of a GCC
15558 builtin and then its argument prototype would still apply. */
15559 #ifdef __cplusplus
15560 extern "C"
15561 #endif
15562 char $ac_func ();
15563 /* The GNU C library defines this for functions which it implements
15564 to always fail with ENOSYS. Some functions are actually named
15565 something starting with __ and the normal name is an alias. */
15566 #if defined __stub_$ac_func || defined __stub___$ac_func
15567 choke me
15568 #endif
15571 main ()
15573 return $ac_func ();
15575 return 0;
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 eval "$as_ac_var=yes"
15597 else
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 eval "$as_ac_var=no"
15604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15605 conftest$ac_exeext conftest.$ac_ext
15607 ac_res=`eval echo '${'$as_ac_var'}'`
15608 { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15610 if test `eval echo '${'$as_ac_var'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15613 _ACEOF
15616 done
15620 for ac_header in sys/un.h
15622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 ac_res=`eval echo '${'$as_ac_Header'}'`
15630 { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15632 else
15633 # Is the header compilable?
15634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 $ac_includes_default
15643 #include <$ac_header>
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15650 esac
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15653 ac_status=$?
15654 grep -v '^ *+' conftest.er1 >conftest.err
15655 rm -f conftest.er1
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } && {
15659 test -z "$ac_c_werror_flag" ||
15660 test ! -s conftest.err
15661 } && test -s conftest.$ac_objext; then
15662 ac_header_compiler=yes
15663 else
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 ac_header_compiler=no
15670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15672 echo "${ECHO_T}$ac_header_compiler" >&6; }
15674 # Is the header present?
15675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 #include <$ac_header>
15684 _ACEOF
15685 if { (ac_try="$ac_cpp conftest.$ac_ext"
15686 case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15692 ac_status=$?
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } >/dev/null && {
15698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15699 test ! -s conftest.err
15700 }; then
15701 ac_header_preproc=yes
15702 else
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 ac_header_preproc=no
15709 rm -f conftest.err conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15711 echo "${ECHO_T}$ac_header_preproc" >&6; }
15713 # So? What about this header?
15714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15715 yes:no: )
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15720 ac_header_preproc=yes
15722 no:yes:* )
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15730 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15737 esac
15738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743 eval "$as_ac_Header=\$ac_header_preproc"
15745 ac_res=`eval echo '${'$as_ac_Header'}'`
15746 { echo "$as_me:$LINENO: result: $ac_res" >&5
15747 echo "${ECHO_T}$ac_res" >&6; }
15750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15751 cat >>confdefs.h <<_ACEOF
15752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15753 _ACEOF
15757 done
15764 for ac_header in $ac_header_list
15766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 ac_res=`eval echo '${'$as_ac_Header'}'`
15774 { echo "$as_me:$LINENO: result: $ac_res" >&5
15775 echo "${ECHO_T}$ac_res" >&6; }
15776 else
15777 # Is the header compilable?
15778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h. */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 $ac_includes_default
15787 #include <$ac_header>
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (ac_try="$ac_compile"
15791 case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_compile") 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } && {
15803 test -z "$ac_c_werror_flag" ||
15804 test ! -s conftest.err
15805 } && test -s conftest.$ac_objext; then
15806 ac_header_compiler=yes
15807 else
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_header_compiler=no
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15816 echo "${ECHO_T}$ac_header_compiler" >&6; }
15818 # Is the header present?
15819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 #include <$ac_header>
15828 _ACEOF
15829 if { (ac_try="$ac_cpp conftest.$ac_ext"
15830 case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } >/dev/null && {
15842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15843 test ! -s conftest.err
15844 }; then
15845 ac_header_preproc=yes
15846 else
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_header_preproc=no
15853 rm -f conftest.err conftest.$ac_ext
15854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855 echo "${ECHO_T}$ac_header_preproc" >&6; }
15857 # So? What about this header?
15858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859 yes:no: )
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864 ac_header_preproc=yes
15866 no:yes:* )
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15881 esac
15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 eval "$as_ac_Header=\$ac_header_preproc"
15889 ac_res=`eval echo '${'$as_ac_Header'}'`
15890 { echo "$as_me:$LINENO: result: $ac_res" >&5
15891 echo "${ECHO_T}$ac_res" >&6; }
15894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15897 _ACEOF
15901 done
15911 for ac_func in $ac_func_list
15913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15927 #define $ac_func innocuous_$ac_func
15929 /* System header to define __stub macros and hopefully few prototypes,
15930 which can conflict with char $ac_func (); below.
15931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15932 <limits.h> exists even on freestanding compilers. */
15934 #ifdef __STDC__
15935 # include <limits.h>
15936 #else
15937 # include <assert.h>
15938 #endif
15940 #undef $ac_func
15942 /* Override any GCC internal prototype to avoid an error.
15943 Use char because int might match the return type of a GCC
15944 builtin and then its argument prototype would still apply. */
15945 #ifdef __cplusplus
15946 extern "C"
15947 #endif
15948 char $ac_func ();
15949 /* The GNU C library defines this for functions which it implements
15950 to always fail with ENOSYS. Some functions are actually named
15951 something starting with __ and the normal name is an alias. */
15952 #if defined __stub_$ac_func || defined __stub___$ac_func
15953 choke me
15954 #endif
15957 main ()
15959 return $ac_func ();
15961 return 0;
15963 _ACEOF
15964 rm -f conftest.$ac_objext conftest$ac_exeext
15965 if { (ac_try="$ac_link"
15966 case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_link") 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest$ac_exeext &&
15981 $as_test_x conftest$ac_exeext; then
15982 eval "$as_ac_var=yes"
15983 else
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15987 eval "$as_ac_var=no"
15990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15991 conftest$ac_exeext conftest.$ac_ext
15993 ac_res=`eval echo '${'$as_ac_var'}'`
15994 { echo "$as_me:$LINENO: result: $ac_res" >&5
15995 echo "${ECHO_T}$ac_res" >&6; }
15996 if test `eval echo '${'$as_ac_var'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15999 _ACEOF
16002 done
16020 { echo "$as_me:$LINENO: checking for working mktime" >&5
16021 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16022 if test "${ac_cv_func_working_mktime+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025 if test "$cross_compiling" = yes; then
16026 ac_cv_func_working_mktime=no
16027 else
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 /* Test program from Paul Eggert and Tony Leneis. */
16035 #ifdef TIME_WITH_SYS_TIME
16036 # include <sys/time.h>
16037 # include <time.h>
16038 #else
16039 # ifdef HAVE_SYS_TIME_H
16040 # include <sys/time.h>
16041 # else
16042 # include <time.h>
16043 # endif
16044 #endif
16046 #include <stdlib.h>
16048 #ifdef HAVE_UNISTD_H
16049 # include <unistd.h>
16050 #endif
16052 #ifndef HAVE_ALARM
16053 # define alarm(X) /* empty */
16054 #endif
16056 /* Work around redefinition to rpl_putenv by other config tests. */
16057 #undef putenv
16059 static time_t time_t_max;
16060 static time_t time_t_min;
16062 /* Values we'll use to set the TZ environment variable. */
16063 static char *tz_strings[] = {
16064 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16065 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16067 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16069 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16070 Based on a problem report from Andreas Jaeger. */
16071 static int
16072 spring_forward_gap ()
16074 /* glibc (up to about 1998-10-07) failed this test. */
16075 struct tm tm;
16077 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16078 instead of "TZ=America/Vancouver" in order to detect the bug even
16079 on systems that don't support the Olson extension, or don't have the
16080 full zoneinfo tables installed. */
16081 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16083 tm.tm_year = 98;
16084 tm.tm_mon = 3;
16085 tm.tm_mday = 5;
16086 tm.tm_hour = 2;
16087 tm.tm_min = 0;
16088 tm.tm_sec = 0;
16089 tm.tm_isdst = -1;
16090 return mktime (&tm) != (time_t) -1;
16093 static int
16094 mktime_test1 (now)
16095 time_t now;
16097 struct tm *lt;
16098 return ! (lt = localtime (&now)) || mktime (lt) == now;
16101 static int
16102 mktime_test (now)
16103 time_t now;
16105 return (mktime_test1 (now)
16106 && mktime_test1 ((time_t) (time_t_max - now))
16107 && mktime_test1 ((time_t) (time_t_min + now)));
16110 static int
16111 irix_6_4_bug ()
16113 /* Based on code from Ariel Faigon. */
16114 struct tm tm;
16115 tm.tm_year = 96;
16116 tm.tm_mon = 3;
16117 tm.tm_mday = 0;
16118 tm.tm_hour = 0;
16119 tm.tm_min = 0;
16120 tm.tm_sec = 0;
16121 tm.tm_isdst = -1;
16122 mktime (&tm);
16123 return tm.tm_mon == 2 && tm.tm_mday == 31;
16126 static int
16127 bigtime_test (j)
16128 int j;
16130 struct tm tm;
16131 time_t now;
16132 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16133 now = mktime (&tm);
16134 if (now != (time_t) -1)
16136 struct tm *lt = localtime (&now);
16137 if (! (lt
16138 && lt->tm_year == tm.tm_year
16139 && lt->tm_mon == tm.tm_mon
16140 && lt->tm_mday == tm.tm_mday
16141 && lt->tm_hour == tm.tm_hour
16142 && lt->tm_min == tm.tm_min
16143 && lt->tm_sec == tm.tm_sec
16144 && lt->tm_yday == tm.tm_yday
16145 && lt->tm_wday == tm.tm_wday
16146 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16147 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16148 return 0;
16150 return 1;
16153 static int
16154 year_2050_test ()
16156 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16157 ignoring leap seconds. */
16158 unsigned long int answer = 2527315200UL;
16160 struct tm tm;
16161 time_t t;
16162 tm.tm_year = 2050 - 1900;
16163 tm.tm_mon = 2 - 1;
16164 tm.tm_mday = 1;
16165 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16166 tm.tm_isdst = -1;
16168 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16169 instead of "TZ=America/Vancouver" in order to detect the bug even
16170 on systems that don't support the Olson extension, or don't have the
16171 full zoneinfo tables installed. */
16172 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16174 t = mktime (&tm);
16176 /* Check that the result is either a failure, or close enough
16177 to the correct answer that we can assume the discrepancy is
16178 due to leap seconds. */
16179 return (t == (time_t) -1
16180 || (0 < t && answer - 120 <= t && t <= answer + 120));
16184 main ()
16186 time_t t, delta;
16187 int i, j;
16189 /* This test makes some buggy mktime implementations loop.
16190 Give up after 60 seconds; a mktime slower than that
16191 isn't worth using anyway. */
16192 alarm (60);
16194 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16195 continue;
16196 time_t_max--;
16197 if ((time_t) -1 < 0)
16198 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16199 continue;
16200 delta = time_t_max / 997; /* a suitable prime number */
16201 for (i = 0; i < N_STRINGS; i++)
16203 if (tz_strings[i])
16204 putenv (tz_strings[i]);
16206 for (t = 0; t <= time_t_max - delta; t += delta)
16207 if (! mktime_test (t))
16208 return 1;
16209 if (! (mktime_test ((time_t) 1)
16210 && mktime_test ((time_t) (60 * 60))
16211 && mktime_test ((time_t) (60 * 60 * 24))))
16212 return 1;
16214 for (j = 1; 0 < j; j *= 2)
16215 if (! bigtime_test (j))
16216 return 1;
16217 if (! bigtime_test (j - 1))
16218 return 1;
16220 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16222 _ACEOF
16223 rm -f conftest$ac_exeext
16224 if { (ac_try="$ac_link"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_link") 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16234 { (case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_try") 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_func_working_mktime=yes
16244 else
16245 echo "$as_me: program exited with status $ac_status" >&5
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ( exit $ac_status )
16250 ac_cv_func_working_mktime=no
16252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16257 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16258 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16259 if test $ac_cv_func_working_mktime = no; then
16260 case " $LIBOBJS " in
16261 *" mktime.$ac_objext "* ) ;;
16262 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16264 esac
16268 if test "$ac_cv_func_working_mktime" = no; then
16270 cat >>confdefs.h <<\_ACEOF
16271 #define BROKEN_MKTIME 1
16272 _ACEOF
16276 ac_have_func=no # yes means we've found a way to get the load average.
16278 # Make sure getloadavg.c is where it belongs, at configure-time.
16279 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16280 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16281 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16282 { (exit 1); exit 1; }; }
16284 ac_save_LIBS=$LIBS
16286 # Check for getloadavg, but be sure not to touch the cache variable.
16287 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16288 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16289 if test "${ac_cv_func_getloadavg+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292 cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h. */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16300 #define getloadavg innocuous_getloadavg
16302 /* System header to define __stub macros and hopefully few prototypes,
16303 which can conflict with char getloadavg (); below.
16304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305 <limits.h> exists even on freestanding compilers. */
16307 #ifdef __STDC__
16308 # include <limits.h>
16309 #else
16310 # include <assert.h>
16311 #endif
16313 #undef getloadavg
16315 /* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
16318 #ifdef __cplusplus
16319 extern "C"
16320 #endif
16321 char getloadavg ();
16322 /* The GNU C library defines this for functions which it implements
16323 to always fail with ENOSYS. Some functions are actually named
16324 something starting with __ and the normal name is an alias. */
16325 #if defined __stub_getloadavg || defined __stub___getloadavg
16326 choke me
16327 #endif
16330 main ()
16332 return getloadavg ();
16334 return 0;
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_link") 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } && {
16351 test -z "$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 } && test -s conftest$ac_exeext &&
16354 $as_test_x conftest$ac_exeext; then
16355 ac_cv_func_getloadavg=yes
16356 else
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_cv_func_getloadavg=no
16363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16364 conftest$ac_exeext conftest.$ac_ext
16366 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16367 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16368 if test $ac_cv_func_getloadavg = yes; then
16369 exit 0
16370 else
16371 exit 1
16373 ) && ac_have_func=yes
16375 # On HPUX9, an unprivileged user can get load averages through this function.
16377 for ac_func in pstat_getdynamic
16379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385 cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h. */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16393 #define $ac_func innocuous_$ac_func
16395 /* System header to define __stub macros and hopefully few prototypes,
16396 which can conflict with char $ac_func (); below.
16397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16398 <limits.h> exists even on freestanding compilers. */
16400 #ifdef __STDC__
16401 # include <limits.h>
16402 #else
16403 # include <assert.h>
16404 #endif
16406 #undef $ac_func
16408 /* Override any GCC internal prototype to avoid an error.
16409 Use char because int might match the return type of a GCC
16410 builtin and then its argument prototype would still apply. */
16411 #ifdef __cplusplus
16412 extern "C"
16413 #endif
16414 char $ac_func ();
16415 /* The GNU C library defines this for functions which it implements
16416 to always fail with ENOSYS. Some functions are actually named
16417 something starting with __ and the normal name is an alias. */
16418 #if defined __stub_$ac_func || defined __stub___$ac_func
16419 choke me
16420 #endif
16423 main ()
16425 return $ac_func ();
16427 return 0;
16429 _ACEOF
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (ac_try="$ac_link"
16432 case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16435 esac
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_link") 2>conftest.er1
16438 ac_status=$?
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } && {
16444 test -z "$ac_c_werror_flag" ||
16445 test ! -s conftest.err
16446 } && test -s conftest$ac_exeext &&
16447 $as_test_x conftest$ac_exeext; then
16448 eval "$as_ac_var=yes"
16449 else
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 eval "$as_ac_var=no"
16456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16457 conftest$ac_exeext conftest.$ac_ext
16459 ac_res=`eval echo '${'$as_ac_var'}'`
16460 { echo "$as_me:$LINENO: result: $ac_res" >&5
16461 echo "${ECHO_T}$ac_res" >&6; }
16462 if test `eval echo '${'$as_ac_var'}'` = yes; then
16463 cat >>confdefs.h <<_ACEOF
16464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16465 _ACEOF
16468 done
16471 # Solaris has libkstat which does not require root.
16473 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16474 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16475 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478 ac_check_lib_save_LIBS=$LIBS
16479 LIBS="-lkstat $LIBS"
16480 cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h. */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16487 /* Override any GCC internal prototype to avoid an error.
16488 Use char because int might match the return type of a GCC
16489 builtin and then its argument prototype would still apply. */
16490 #ifdef __cplusplus
16491 extern "C"
16492 #endif
16493 char kstat_open ();
16495 main ()
16497 return kstat_open ();
16499 return 0;
16501 _ACEOF
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (ac_try="$ac_link"
16504 case "(($ac_try" in
16505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506 *) ac_try_echo=$ac_try;;
16507 esac
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509 (eval "$ac_link") 2>conftest.er1
16510 ac_status=$?
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } && {
16516 test -z "$ac_c_werror_flag" ||
16517 test ! -s conftest.err
16518 } && test -s conftest$ac_exeext &&
16519 $as_test_x conftest$ac_exeext; then
16520 ac_cv_lib_kstat_kstat_open=yes
16521 else
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16525 ac_cv_lib_kstat_kstat_open=no
16528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16529 conftest$ac_exeext conftest.$ac_ext
16530 LIBS=$ac_check_lib_save_LIBS
16532 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16533 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16534 if test $ac_cv_lib_kstat_kstat_open = yes; then
16535 cat >>confdefs.h <<_ACEOF
16536 #define HAVE_LIBKSTAT 1
16537 _ACEOF
16539 LIBS="-lkstat $LIBS"
16543 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16545 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16546 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16547 # to get the right answer into the cache.
16548 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16549 if test $ac_have_func = no; then
16550 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16551 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16552 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555 ac_check_lib_save_LIBS=$LIBS
16556 LIBS="-lelf $LIBS"
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h. */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16564 /* Override any GCC internal prototype to avoid an error.
16565 Use char because int might match the return type of a GCC
16566 builtin and then its argument prototype would still apply. */
16567 #ifdef __cplusplus
16568 extern "C"
16569 #endif
16570 char elf_begin ();
16572 main ()
16574 return elf_begin ();
16576 return 0;
16578 _ACEOF
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (ac_try="$ac_link"
16581 case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_link") 2>conftest.er1
16587 ac_status=$?
16588 grep -v '^ *+' conftest.er1 >conftest.err
16589 rm -f conftest.er1
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && {
16593 test -z "$ac_c_werror_flag" ||
16594 test ! -s conftest.err
16595 } && test -s conftest$ac_exeext &&
16596 $as_test_x conftest$ac_exeext; then
16597 ac_cv_lib_elf_elf_begin=yes
16598 else
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ac_cv_lib_elf_elf_begin=no
16605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16606 conftest$ac_exeext conftest.$ac_ext
16607 LIBS=$ac_check_lib_save_LIBS
16609 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16610 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16611 if test $ac_cv_lib_elf_elf_begin = yes; then
16612 LIBS="-lelf $LIBS"
16616 if test $ac_have_func = no; then
16617 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16618 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16619 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622 ac_check_lib_save_LIBS=$LIBS
16623 LIBS="-lkvm $LIBS"
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16631 /* Override any GCC internal prototype to avoid an error.
16632 Use char because int might match the return type of a GCC
16633 builtin and then its argument prototype would still apply. */
16634 #ifdef __cplusplus
16635 extern "C"
16636 #endif
16637 char kvm_open ();
16639 main ()
16641 return kvm_open ();
16643 return 0;
16645 _ACEOF
16646 rm -f conftest.$ac_objext conftest$ac_exeext
16647 if { (ac_try="$ac_link"
16648 case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_link") 2>conftest.er1
16654 ac_status=$?
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && {
16660 test -z "$ac_c_werror_flag" ||
16661 test ! -s conftest.err
16662 } && test -s conftest$ac_exeext &&
16663 $as_test_x conftest$ac_exeext; then
16664 ac_cv_lib_kvm_kvm_open=yes
16665 else
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_lib_kvm_kvm_open=no
16672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16673 conftest$ac_exeext conftest.$ac_ext
16674 LIBS=$ac_check_lib_save_LIBS
16676 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16677 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16678 if test $ac_cv_lib_kvm_kvm_open = yes; then
16679 LIBS="-lkvm $LIBS"
16682 # Check for the 4.4BSD definition of getloadavg.
16683 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16684 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16685 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688 ac_check_lib_save_LIBS=$LIBS
16689 LIBS="-lutil $LIBS"
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16697 /* Override any GCC internal prototype to avoid an error.
16698 Use char because int might match the return type of a GCC
16699 builtin and then its argument prototype would still apply. */
16700 #ifdef __cplusplus
16701 extern "C"
16702 #endif
16703 char getloadavg ();
16705 main ()
16707 return getloadavg ();
16709 return 0;
16711 _ACEOF
16712 rm -f conftest.$ac_objext conftest$ac_exeext
16713 if { (ac_try="$ac_link"
16714 case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_link") 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } && {
16726 test -z "$ac_c_werror_flag" ||
16727 test ! -s conftest.err
16728 } && test -s conftest$ac_exeext &&
16729 $as_test_x conftest$ac_exeext; then
16730 ac_cv_lib_util_getloadavg=yes
16731 else
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16735 ac_cv_lib_util_getloadavg=no
16738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16739 conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16742 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16743 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16744 if test $ac_cv_lib_util_getloadavg = yes; then
16745 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16750 if test $ac_have_func = no; then
16751 # There is a commonly available library for RS/6000 AIX.
16752 # Since it is not a standard part of AIX, it might be installed locally.
16753 ac_getloadavg_LIBS=$LIBS
16754 LIBS="-L/usr/local/lib $LIBS"
16755 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16756 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16757 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760 ac_check_lib_save_LIBS=$LIBS
16761 LIBS="-lgetloadavg $LIBS"
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16769 /* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16772 #ifdef __cplusplus
16773 extern "C"
16774 #endif
16775 char getloadavg ();
16777 main ()
16779 return getloadavg ();
16781 return 0;
16783 _ACEOF
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (ac_try="$ac_link"
16786 case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_link") 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest$ac_exeext &&
16801 $as_test_x conftest$ac_exeext; then
16802 ac_cv_lib_getloadavg_getloadavg=yes
16803 else
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_cv_lib_getloadavg_getloadavg=no
16810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16815 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16816 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16817 LIBS="-lgetloadavg $LIBS"
16818 else
16819 LIBS=$ac_getloadavg_LIBS
16824 # Make sure it is really in the library, if we think we found it,
16825 # otherwise set up the replacement function.
16827 for ac_func in getloadavg
16829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 else
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16843 #define $ac_func innocuous_$ac_func
16845 /* System header to define __stub macros and hopefully few prototypes,
16846 which can conflict with char $ac_func (); below.
16847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16848 <limits.h> exists even on freestanding compilers. */
16850 #ifdef __STDC__
16851 # include <limits.h>
16852 #else
16853 # include <assert.h>
16854 #endif
16856 #undef $ac_func
16858 /* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16861 #ifdef __cplusplus
16862 extern "C"
16863 #endif
16864 char $ac_func ();
16865 /* The GNU C library defines this for functions which it implements
16866 to always fail with ENOSYS. Some functions are actually named
16867 something starting with __ and the normal name is an alias. */
16868 #if defined __stub_$ac_func || defined __stub___$ac_func
16869 choke me
16870 #endif
16873 main ()
16875 return $ac_func ();
16877 return 0;
16879 _ACEOF
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest$ac_exeext &&
16897 $as_test_x conftest$ac_exeext; then
16898 eval "$as_ac_var=yes"
16899 else
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 eval "$as_ac_var=no"
16906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16907 conftest$ac_exeext conftest.$ac_ext
16909 ac_res=`eval echo '${'$as_ac_var'}'`
16910 { echo "$as_me:$LINENO: result: $ac_res" >&5
16911 echo "${ECHO_T}$ac_res" >&6; }
16912 if test `eval echo '${'$as_ac_var'}'` = yes; then
16913 cat >>confdefs.h <<_ACEOF
16914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16915 _ACEOF
16917 else
16918 case " $LIBOBJS " in
16919 *" getloadavg.$ac_objext "* ) ;;
16920 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16922 esac
16925 cat >>confdefs.h <<\_ACEOF
16926 #define C_GETLOADAVG 1
16927 _ACEOF
16929 # Figure out what our getloadavg.c needs.
16930 ac_have_func=no
16931 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16932 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16933 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16934 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16938 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16939 else
16940 # Is the header compilable?
16941 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16942 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949 $ac_includes_default
16950 #include <sys/dg_sys_info.h>
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (ac_try="$ac_compile"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_compile") 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } && {
16966 test -z "$ac_c_werror_flag" ||
16967 test ! -s conftest.err
16968 } && test -s conftest.$ac_objext; then
16969 ac_header_compiler=yes
16970 else
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 ac_header_compiler=no
16977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16979 echo "${ECHO_T}$ac_header_compiler" >&6; }
16981 # Is the header present?
16982 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16983 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 #include <sys/dg_sys_info.h>
16991 _ACEOF
16992 if { (ac_try="$ac_cpp conftest.$ac_ext"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } >/dev/null && {
17005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17006 test ! -s conftest.err
17007 }; then
17008 ac_header_preproc=yes
17009 else
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_header_preproc=no
17016 rm -f conftest.err conftest.$ac_ext
17017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17018 echo "${ECHO_T}$ac_header_preproc" >&6; }
17020 # So? What about this header?
17021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17022 yes:no: )
17023 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17024 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17026 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17027 ac_header_preproc=yes
17029 no:yes:* )
17030 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17031 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17033 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17035 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17037 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17039 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17040 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17041 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17044 esac
17045 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17046 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17047 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 else
17050 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17052 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17053 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17056 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17057 ac_have_func=yes
17059 cat >>confdefs.h <<\_ACEOF
17060 #define DGUX 1
17061 _ACEOF
17064 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17065 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17066 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069 ac_check_lib_save_LIBS=$LIBS
17070 LIBS="-ldgc $LIBS"
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17078 /* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17081 #ifdef __cplusplus
17082 extern "C"
17083 #endif
17084 char dg_sys_info ();
17086 main ()
17088 return dg_sys_info ();
17090 return 0;
17092 _ACEOF
17093 rm -f conftest.$ac_objext conftest$ac_exeext
17094 if { (ac_try="$ac_link"
17095 case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_link") 2>conftest.er1
17101 ac_status=$?
17102 grep -v '^ *+' conftest.er1 >conftest.err
17103 rm -f conftest.er1
17104 cat conftest.err >&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); } && {
17107 test -z "$ac_c_werror_flag" ||
17108 test ! -s conftest.err
17109 } && test -s conftest$ac_exeext &&
17110 $as_test_x conftest$ac_exeext; then
17111 ac_cv_lib_dgc_dg_sys_info=yes
17112 else
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_lib_dgc_dg_sys_info=no
17119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17120 conftest$ac_exeext conftest.$ac_ext
17121 LIBS=$ac_check_lib_save_LIBS
17123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17124 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17125 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17126 cat >>confdefs.h <<_ACEOF
17127 #define HAVE_LIBDGC 1
17128 _ACEOF
17130 LIBS="-ldgc $LIBS"
17138 if test "${ac_cv_header_locale_h+set}" = set; then
17139 { echo "$as_me:$LINENO: checking for locale.h" >&5
17140 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17141 if test "${ac_cv_header_locale_h+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17145 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17146 else
17147 # Is the header compilable?
17148 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17149 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17150 cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h. */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 $ac_includes_default
17157 #include <locale.h>
17158 _ACEOF
17159 rm -f conftest.$ac_objext
17160 if { (ac_try="$ac_compile"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_compile") 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest.$ac_objext; then
17176 ac_header_compiler=yes
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_header_compiler=no
17184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17186 echo "${ECHO_T}$ac_header_compiler" >&6; }
17188 # Is the header present?
17189 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17190 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <locale.h>
17198 _ACEOF
17199 if { (ac_try="$ac_cpp conftest.$ac_ext"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } >/dev/null && {
17212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 }; then
17215 ac_header_preproc=yes
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 ac_header_preproc=no
17223 rm -f conftest.err conftest.$ac_ext
17224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17225 echo "${ECHO_T}$ac_header_preproc" >&6; }
17227 # So? What about this header?
17228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17229 yes:no: )
17230 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17231 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17232 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17233 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17234 ac_header_preproc=yes
17236 no:yes:* )
17237 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17238 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17240 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17242 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17244 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17245 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17246 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17248 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17251 esac
17252 { echo "$as_me:$LINENO: checking for locale.h" >&5
17253 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17254 if test "${ac_cv_header_locale_h+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 else
17257 ac_cv_header_locale_h=$ac_header_preproc
17259 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17260 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17266 for ac_func in setlocale
17268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 else
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h. */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17282 #define $ac_func innocuous_$ac_func
17284 /* System header to define __stub macros and hopefully few prototypes,
17285 which can conflict with char $ac_func (); below.
17286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17287 <limits.h> exists even on freestanding compilers. */
17289 #ifdef __STDC__
17290 # include <limits.h>
17291 #else
17292 # include <assert.h>
17293 #endif
17295 #undef $ac_func
17297 /* Override any GCC internal prototype to avoid an error.
17298 Use char because int might match the return type of a GCC
17299 builtin and then its argument prototype would still apply. */
17300 #ifdef __cplusplus
17301 extern "C"
17302 #endif
17303 char $ac_func ();
17304 /* The GNU C library defines this for functions which it implements
17305 to always fail with ENOSYS. Some functions are actually named
17306 something starting with __ and the normal name is an alias. */
17307 #if defined __stub_$ac_func || defined __stub___$ac_func
17308 choke me
17309 #endif
17312 main ()
17314 return $ac_func ();
17316 return 0;
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_link") 2>conftest.er1
17327 ac_status=$?
17328 grep -v '^ *+' conftest.er1 >conftest.err
17329 rm -f conftest.er1
17330 cat conftest.err >&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && {
17333 test -z "$ac_c_werror_flag" ||
17334 test ! -s conftest.err
17335 } && test -s conftest$ac_exeext &&
17336 $as_test_x conftest$ac_exeext; then
17337 eval "$as_ac_var=yes"
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17342 eval "$as_ac_var=no"
17345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17346 conftest$ac_exeext conftest.$ac_ext
17348 ac_res=`eval echo '${'$as_ac_var'}'`
17349 { echo "$as_me:$LINENO: result: $ac_res" >&5
17350 echo "${ECHO_T}$ac_res" >&6; }
17351 if test `eval echo '${'$as_ac_var'}'` = yes; then
17352 cat >>confdefs.h <<_ACEOF
17353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17354 _ACEOF
17357 done
17360 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17361 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17362 # Irix 4.0.5F has the header but not the library.
17363 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17364 ac_have_func=yes
17366 cat >>confdefs.h <<\_ACEOF
17367 #define SVR4 1
17368 _ACEOF
17372 if test $ac_have_func = no; then
17373 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17374 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17375 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17376 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17380 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17381 else
17382 # Is the header compilable?
17383 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17384 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 $ac_includes_default
17392 #include <inq_stats/cpustats.h>
17393 _ACEOF
17394 rm -f conftest.$ac_objext
17395 if { (ac_try="$ac_compile"
17396 case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_compile") 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } && {
17408 test -z "$ac_c_werror_flag" ||
17409 test ! -s conftest.err
17410 } && test -s conftest.$ac_objext; then
17411 ac_header_compiler=yes
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ac_header_compiler=no
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17421 echo "${ECHO_T}$ac_header_compiler" >&6; }
17423 # Is the header present?
17424 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17425 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17426 cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h. */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432 #include <inq_stats/cpustats.h>
17433 _ACEOF
17434 if { (ac_try="$ac_cpp conftest.$ac_ext"
17435 case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17438 esac
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17441 ac_status=$?
17442 grep -v '^ *+' conftest.er1 >conftest.err
17443 rm -f conftest.er1
17444 cat conftest.err >&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } >/dev/null && {
17447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17448 test ! -s conftest.err
17449 }; then
17450 ac_header_preproc=yes
17451 else
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17455 ac_header_preproc=no
17458 rm -f conftest.err conftest.$ac_ext
17459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17460 echo "${ECHO_T}$ac_header_preproc" >&6; }
17462 # So? What about this header?
17463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17464 yes:no: )
17465 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17466 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17468 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17469 ac_header_preproc=yes
17471 no:yes:* )
17472 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17473 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17475 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17477 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17479 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17480 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17481 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17483 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17486 esac
17487 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17488 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17489 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17494 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17495 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17498 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17499 ac_have_func=yes
17501 cat >>confdefs.h <<\_ACEOF
17502 #define UMAX 1
17503 _ACEOF
17506 cat >>confdefs.h <<\_ACEOF
17507 #define UMAX4_3 1
17508 _ACEOF
17515 if test $ac_have_func = no; then
17516 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17517 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17518 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17519 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17523 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17524 else
17525 # Is the header compilable?
17526 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17527 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 $ac_includes_default
17535 #include <sys/cpustats.h>
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (ac_try="$ac_compile"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_compile") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } && {
17551 test -z "$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 } && test -s conftest.$ac_objext; then
17554 ac_header_compiler=yes
17555 else
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_header_compiler=no
17562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17564 echo "${ECHO_T}$ac_header_compiler" >&6; }
17566 # Is the header present?
17567 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17568 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 #include <sys/cpustats.h>
17576 _ACEOF
17577 if { (ac_try="$ac_cpp conftest.$ac_ext"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17584 ac_status=$?
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } >/dev/null && {
17590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17591 test ! -s conftest.err
17592 }; then
17593 ac_header_preproc=yes
17594 else
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_header_preproc=no
17601 rm -f conftest.err conftest.$ac_ext
17602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17603 echo "${ECHO_T}$ac_header_preproc" >&6; }
17605 # So? What about this header?
17606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17607 yes:no: )
17608 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17609 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17610 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17611 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17612 ac_header_preproc=yes
17614 no:yes:* )
17615 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17616 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17618 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17620 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17622 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17624 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17625 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17626 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17629 esac
17630 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17631 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17632 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17637 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17638 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17641 if test $ac_cv_header_sys_cpustats_h = yes; then
17642 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17643 #define UMAX 1
17644 _ACEOF
17651 if test $ac_have_func = no; then
17653 for ac_header in mach/mach.h
17655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 ac_res=`eval echo '${'$as_ac_Header'}'`
17663 { echo "$as_me:$LINENO: result: $ac_res" >&5
17664 echo "${ECHO_T}$ac_res" >&6; }
17665 else
17666 # Is the header compilable?
17667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h. */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 $ac_includes_default
17676 #include <$ac_header>
17677 _ACEOF
17678 rm -f conftest.$ac_objext
17679 if { (ac_try="$ac_compile"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_compile") 2>conftest.er1
17686 ac_status=$?
17687 grep -v '^ *+' conftest.er1 >conftest.err
17688 rm -f conftest.er1
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } && {
17692 test -z "$ac_c_werror_flag" ||
17693 test ! -s conftest.err
17694 } && test -s conftest.$ac_objext; then
17695 ac_header_compiler=yes
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_header_compiler=no
17703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17705 echo "${ECHO_T}$ac_header_compiler" >&6; }
17707 # Is the header present?
17708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17710 cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h. */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 #include <$ac_header>
17717 _ACEOF
17718 if { (ac_try="$ac_cpp conftest.$ac_ext"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722 esac
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } >/dev/null && {
17731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 }; then
17734 ac_header_preproc=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_header_preproc=no
17742 rm -f conftest.err conftest.$ac_ext
17743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17744 echo "${ECHO_T}$ac_header_preproc" >&6; }
17746 # So? What about this header?
17747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17748 yes:no: )
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17753 ac_header_preproc=yes
17755 no:yes:* )
17756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17770 esac
17771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776 eval "$as_ac_Header=\$ac_header_preproc"
17778 ac_res=`eval echo '${'$as_ac_Header'}'`
17779 { echo "$as_me:$LINENO: result: $ac_res" >&5
17780 echo "${ECHO_T}$ac_res" >&6; }
17783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17784 cat >>confdefs.h <<_ACEOF
17785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17786 _ACEOF
17790 done
17795 for ac_header in nlist.h
17797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 ac_res=`eval echo '${'$as_ac_Header'}'`
17805 { echo "$as_me:$LINENO: result: $ac_res" >&5
17806 echo "${ECHO_T}$ac_res" >&6; }
17807 else
17808 # Is the header compilable?
17809 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17811 cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h. */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 $ac_includes_default
17818 #include <$ac_header>
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (ac_try="$ac_compile"
17822 case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_compile") 2>conftest.er1
17828 ac_status=$?
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } && {
17834 test -z "$ac_c_werror_flag" ||
17835 test ! -s conftest.err
17836 } && test -s conftest.$ac_objext; then
17837 ac_header_compiler=yes
17838 else
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 ac_header_compiler=no
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17847 echo "${ECHO_T}$ac_header_compiler" >&6; }
17849 # Is the header present?
17850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17852 cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h. */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17858 #include <$ac_header>
17859 _ACEOF
17860 if { (ac_try="$ac_cpp conftest.$ac_ext"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } >/dev/null && {
17873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 }; then
17876 ac_header_preproc=yes
17877 else
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_header_preproc=no
17884 rm -f conftest.err conftest.$ac_ext
17885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17886 echo "${ECHO_T}$ac_header_preproc" >&6; }
17888 # So? What about this header?
17889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17890 yes:no: )
17891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17895 ac_header_preproc=yes
17897 no:yes:* )
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17912 esac
17913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918 eval "$as_ac_Header=\$ac_header_preproc"
17920 ac_res=`eval echo '${'$as_ac_Header'}'`
17921 { echo "$as_me:$LINENO: result: $ac_res" >&5
17922 echo "${ECHO_T}$ac_res" >&6; }
17925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17926 cat >>confdefs.h <<_ACEOF
17927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17928 _ACEOF
17929 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17930 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17931 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 #include <nlist.h>
17943 main ()
17945 static struct nlist ac_aggr;
17946 if (ac_aggr.n_un.n_name)
17947 return 0;
17949 return 0;
17951 _ACEOF
17952 rm -f conftest.$ac_objext
17953 if { (ac_try="$ac_compile"
17954 case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_compile") 2>conftest.er1
17960 ac_status=$?
17961 grep -v '^ *+' conftest.er1 >conftest.err
17962 rm -f conftest.er1
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest.$ac_objext; then
17969 ac_cv_member_struct_nlist_n_un_n_name=yes
17970 else
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980 #include <nlist.h>
17983 main ()
17985 static struct nlist ac_aggr;
17986 if (sizeof ac_aggr.n_un.n_name)
17987 return 0;
17989 return 0;
17991 _ACEOF
17992 rm -f conftest.$ac_objext
17993 if { (ac_try="$ac_compile"
17994 case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_compile") 2>conftest.er1
18000 ac_status=$?
18001 grep -v '^ *+' conftest.er1 >conftest.err
18002 rm -f conftest.er1
18003 cat conftest.err >&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } && {
18006 test -z "$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18008 } && test -s conftest.$ac_objext; then
18009 ac_cv_member_struct_nlist_n_un_n_name=yes
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_member_struct_nlist_n_un_n_name=no
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18023 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18024 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18028 _ACEOF
18031 cat >>confdefs.h <<\_ACEOF
18032 #define NLIST_NAME_UNION 1
18033 _ACEOF
18040 done
18043 done
18046 # Some definitions of getloadavg require that the program be installed setgid.
18047 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18048 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18049 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18059 #ifdef LDAV_PRIVILEGED
18060 Yowza Am I SETGID yet
18061 #endif
18062 _ACEOF
18063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18064 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18065 ac_cv_func_getloadavg_setgid=yes
18066 else
18067 ac_cv_func_getloadavg_setgid=no
18069 rm -f conftest*
18072 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18073 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18074 if test $ac_cv_func_getloadavg_setgid = yes; then
18075 NEED_SETGID=true
18077 cat >>confdefs.h <<\_ACEOF
18078 #define GETLOADAVG_PRIVILEGED 1
18079 _ACEOF
18081 else
18082 NEED_SETGID=false
18085 if test $ac_cv_func_getloadavg_setgid = yes; then
18086 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18087 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18088 if test "${ac_cv_group_kmem+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18092 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18093 # If we got an error (system does not support symlinks), try without -L.
18094 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18095 ac_cv_group_kmem=`echo $ac_ls_output \
18096 | sed -ne 's/[ ][ ]*/ /g;
18097 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18098 / /s/.* //;p;'`
18101 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18102 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18103 KMEM_GROUP=$ac_cv_group_kmem
18105 if test "x$ac_save_LIBS" = x; then
18106 GETLOADAVG_LIBS=$LIBS
18107 else
18108 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18110 LIBS=$ac_save_LIBS
18114 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18115 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18116 if test "${ac_cv_sys_largefile_source+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119 while :; do
18120 cat >conftest.$ac_ext <<_ACEOF
18121 /* confdefs.h. */
18122 _ACEOF
18123 cat confdefs.h >>conftest.$ac_ext
18124 cat >>conftest.$ac_ext <<_ACEOF
18125 /* end confdefs.h. */
18126 #include <stdio.h>
18128 main ()
18130 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18132 return 0;
18134 _ACEOF
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_link") 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } && {
18149 test -z "$ac_c_werror_flag" ||
18150 test ! -s conftest.err
18151 } && test -s conftest$ac_exeext &&
18152 $as_test_x conftest$ac_exeext; then
18153 ac_cv_sys_largefile_source=no; break
18154 else
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162 conftest$ac_exeext conftest.$ac_ext
18163 cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h. */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169 #define _LARGEFILE_SOURCE 1
18170 #include <stdio.h>
18172 main ()
18174 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18176 return 0;
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_link") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest$ac_exeext &&
18196 $as_test_x conftest$ac_exeext; then
18197 ac_cv_sys_largefile_source=1; break
18198 else
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18206 conftest$ac_exeext conftest.$ac_ext
18207 ac_cv_sys_largefile_source=unknown
18208 break
18209 done
18211 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18212 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18213 case $ac_cv_sys_largefile_source in #(
18214 no | unknown) ;;
18216 cat >>confdefs.h <<_ACEOF
18217 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18218 _ACEOF
18220 esac
18221 rm -f conftest*
18223 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18224 # in glibc 2.1.3, but that breaks too many other things.
18225 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18226 if test $ac_cv_sys_largefile_source != unknown; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_FSEEKO 1
18230 _ACEOF
18235 # Configure getopt.
18236 # getopt.m4 serial 10
18238 # The getopt module assume you want GNU getopt, with getopt_long etc,
18239 # rather than vanilla POSIX getopt. This means your your code should
18240 # always include <getopt.h> for the getopt prototypes.
18252 # Prerequisites of lib/getopt*.
18257 GETOPT_H=
18259 for ac_header in getopt.h
18261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 ac_res=`eval echo '${'$as_ac_Header'}'`
18269 { echo "$as_me:$LINENO: result: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18271 else
18272 # Is the header compilable?
18273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <$ac_header>
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_header_compiler=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_compiler=no
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18311 echo "${ECHO_T}$ac_header_compiler" >&6; }
18313 # Is the header present?
18314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <$ac_header>
18323 _ACEOF
18324 if { (ac_try="$ac_cpp conftest.$ac_ext"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } >/dev/null && {
18337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 }; then
18340 ac_header_preproc=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_preproc=no
18348 rm -f conftest.err conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18350 echo "${ECHO_T}$ac_header_preproc" >&6; }
18352 # So? What about this header?
18353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18354 yes:no: )
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18359 ac_header_preproc=yes
18361 no:yes:* )
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18376 esac
18377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382 eval "$as_ac_Header=\$ac_header_preproc"
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18392 _ACEOF
18394 else
18395 GETOPT_H=getopt.h
18398 done
18400 if test -z "$GETOPT_H"; then
18402 for ac_func in getopt_long_only
18404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410 cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h. */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18418 #define $ac_func innocuous_$ac_func
18420 /* System header to define __stub macros and hopefully few prototypes,
18421 which can conflict with char $ac_func (); below.
18422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18423 <limits.h> exists even on freestanding compilers. */
18425 #ifdef __STDC__
18426 # include <limits.h>
18427 #else
18428 # include <assert.h>
18429 #endif
18431 #undef $ac_func
18433 /* Override any GCC internal prototype to avoid an error.
18434 Use char because int might match the return type of a GCC
18435 builtin and then its argument prototype would still apply. */
18436 #ifdef __cplusplus
18437 extern "C"
18438 #endif
18439 char $ac_func ();
18440 /* The GNU C library defines this for functions which it implements
18441 to always fail with ENOSYS. Some functions are actually named
18442 something starting with __ and the normal name is an alias. */
18443 #if defined __stub_$ac_func || defined __stub___$ac_func
18444 choke me
18445 #endif
18448 main ()
18450 return $ac_func ();
18452 return 0;
18454 _ACEOF
18455 rm -f conftest.$ac_objext conftest$ac_exeext
18456 if { (ac_try="$ac_link"
18457 case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_link") 2>conftest.er1
18463 ac_status=$?
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } && {
18469 test -z "$ac_c_werror_flag" ||
18470 test ! -s conftest.err
18471 } && test -s conftest$ac_exeext &&
18472 $as_test_x conftest$ac_exeext; then
18473 eval "$as_ac_var=yes"
18474 else
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 eval "$as_ac_var=no"
18481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18482 conftest$ac_exeext conftest.$ac_ext
18484 ac_res=`eval echo '${'$as_ac_var'}'`
18485 { echo "$as_me:$LINENO: result: $ac_res" >&5
18486 echo "${ECHO_T}$ac_res" >&6; }
18487 if test `eval echo '${'$as_ac_var'}'` = yes; then
18488 cat >>confdefs.h <<_ACEOF
18489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18490 _ACEOF
18492 else
18493 GETOPT_H=getopt.h
18495 done
18499 if test -z "$GETOPT_H"; then
18500 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18501 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18502 if test "${ac_cv_have_decl_optreset+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505 cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h. */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 #include <getopt.h>
18514 main ()
18516 #ifndef optreset
18517 (void) optreset;
18518 #endif
18521 return 0;
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18532 ac_status=$?
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest.$ac_objext; then
18541 ac_cv_have_decl_optreset=yes
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_have_decl_optreset=no
18549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18552 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18553 if test $ac_cv_have_decl_optreset = yes; then
18554 GETOPT_H=getopt.h
18559 if test -z "$GETOPT_H"; then
18560 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18561 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18562 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565 if test "$cross_compiling" = yes; then
18566 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18567 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18568 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h. */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577 #include <getopt.h>
18580 main ()
18582 #ifndef getopt_clip
18583 (void) getopt_clip;
18584 #endif
18587 return 0;
18589 _ACEOF
18590 rm -f conftest.$ac_objext
18591 if { (ac_try="$ac_compile"
18592 case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_compile") 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest.$ac_objext; then
18607 ac_cv_have_decl_getopt_clip=yes
18608 else
18609 echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18612 ac_cv_have_decl_getopt_clip=no
18615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18617 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18618 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18619 if test $ac_cv_have_decl_getopt_clip = yes; then
18620 gl_cv_func_gnu_getopt=no
18621 else
18622 gl_cv_func_gnu_getopt=yes
18625 else
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 #include <getopt.h>
18634 main ()
18637 char *myargv[3];
18638 myargv[0] = "conftest";
18639 myargv[1] = "-+";
18640 myargv[2] = 0;
18641 return getopt (2, myargv, "+a") != '?';
18644 return 0;
18646 _ACEOF
18647 rm -f conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 gl_cv_func_gnu_getopt=yes
18668 else
18669 echo "$as_me: program exited with status $ac_status" >&5
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 ( exit $ac_status )
18674 gl_cv_func_gnu_getopt=no
18676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18681 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18682 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18683 if test "$gl_cv_func_gnu_getopt" = "no"; then
18684 GETOPT_H=getopt.h
18690 if test -n "$GETOPT_H"; then
18693 GETOPT_H=getopt.h
18695 cat >>confdefs.h <<\_ACEOF
18696 #define __GETOPT_PREFIX rpl_
18697 _ACEOF
18702 GETOPTOBJS='getopt.o getopt1.o'
18709 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18710 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18711 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714 # Use it with a single arg.
18715 cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h. */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 $ac_includes_default
18723 main ()
18725 getpgrp (0);
18727 return 0;
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18738 ac_status=$?
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest.$ac_objext; then
18747 ac_cv_func_getpgrp_void=no
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_cv_func_getpgrp_void=yes
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18759 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18760 if test $ac_cv_func_getpgrp_void = yes; then
18762 cat >>confdefs.h <<\_ACEOF
18763 #define GETPGRP_VOID 1
18764 _ACEOF
18770 for ac_func in strftime
18772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18786 #define $ac_func innocuous_$ac_func
18788 /* System header to define __stub macros and hopefully few prototypes,
18789 which can conflict with char $ac_func (); below.
18790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 <limits.h> exists even on freestanding compilers. */
18793 #ifdef __STDC__
18794 # include <limits.h>
18795 #else
18796 # include <assert.h>
18797 #endif
18799 #undef $ac_func
18801 /* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
18804 #ifdef __cplusplus
18805 extern "C"
18806 #endif
18807 char $ac_func ();
18808 /* The GNU C library defines this for functions which it implements
18809 to always fail with ENOSYS. Some functions are actually named
18810 something starting with __ and the normal name is an alias. */
18811 #if defined __stub_$ac_func || defined __stub___$ac_func
18812 choke me
18813 #endif
18816 main ()
18818 return $ac_func ();
18820 return 0;
18822 _ACEOF
18823 rm -f conftest.$ac_objext conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
18831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest$ac_exeext &&
18840 $as_test_x conftest$ac_exeext; then
18841 eval "$as_ac_var=yes"
18842 else
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 eval "$as_ac_var=no"
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18852 ac_res=`eval echo '${'$as_ac_var'}'`
18853 { echo "$as_me:$LINENO: result: $ac_res" >&5
18854 echo "${ECHO_T}$ac_res" >&6; }
18855 if test `eval echo '${'$as_ac_var'}'` = yes; then
18856 cat >>confdefs.h <<_ACEOF
18857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18858 _ACEOF
18860 else
18861 # strftime is in -lintl on SCO UNIX.
18862 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18863 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18864 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867 ac_check_lib_save_LIBS=$LIBS
18868 LIBS="-lintl $LIBS"
18869 cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h. */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18876 /* Override any GCC internal prototype to avoid an error.
18877 Use char because int might match the return type of a GCC
18878 builtin and then its argument prototype would still apply. */
18879 #ifdef __cplusplus
18880 extern "C"
18881 #endif
18882 char strftime ();
18884 main ()
18886 return strftime ();
18888 return 0;
18890 _ACEOF
18891 rm -f conftest.$ac_objext conftest$ac_exeext
18892 if { (ac_try="$ac_link"
18893 case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18896 esac
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_link") 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } && {
18905 test -z "$ac_c_werror_flag" ||
18906 test ! -s conftest.err
18907 } && test -s conftest$ac_exeext &&
18908 $as_test_x conftest$ac_exeext; then
18909 ac_cv_lib_intl_strftime=yes
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_cv_lib_intl_strftime=no
18917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18918 conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18921 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18922 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18923 if test $ac_cv_lib_intl_strftime = yes; then
18924 cat >>confdefs.h <<\_ACEOF
18925 #define HAVE_STRFTIME 1
18926 _ACEOF
18928 LIBS="-lintl $LIBS"
18932 done
18935 # UNIX98 PTYs.
18937 for ac_func in grantpt
18939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 else
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h. */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18953 #define $ac_func innocuous_$ac_func
18955 /* System header to define __stub macros and hopefully few prototypes,
18956 which can conflict with char $ac_func (); below.
18957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18958 <limits.h> exists even on freestanding compilers. */
18960 #ifdef __STDC__
18961 # include <limits.h>
18962 #else
18963 # include <assert.h>
18964 #endif
18966 #undef $ac_func
18968 /* Override any GCC internal prototype to avoid an error.
18969 Use char because int might match the return type of a GCC
18970 builtin and then its argument prototype would still apply. */
18971 #ifdef __cplusplus
18972 extern "C"
18973 #endif
18974 char $ac_func ();
18975 /* The GNU C library defines this for functions which it implements
18976 to always fail with ENOSYS. Some functions are actually named
18977 something starting with __ and the normal name is an alias. */
18978 #if defined __stub_$ac_func || defined __stub___$ac_func
18979 choke me
18980 #endif
18983 main ()
18985 return $ac_func ();
18987 return 0;
18989 _ACEOF
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (ac_try="$ac_link"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_link") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest$ac_exeext &&
19007 $as_test_x conftest$ac_exeext; then
19008 eval "$as_ac_var=yes"
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 eval "$as_ac_var=no"
19016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19017 conftest$ac_exeext conftest.$ac_ext
19019 ac_res=`eval echo '${'$as_ac_var'}'`
19020 { echo "$as_me:$LINENO: result: $ac_res" >&5
19021 echo "${ECHO_T}$ac_res" >&6; }
19022 if test `eval echo '${'$as_ac_var'}'` = yes; then
19023 cat >>confdefs.h <<_ACEOF
19024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19025 _ACEOF
19028 done
19031 # PTY-related GNU extensions.
19033 for ac_func in getpt
19035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h. */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19049 #define $ac_func innocuous_$ac_func
19051 /* System header to define __stub macros and hopefully few prototypes,
19052 which can conflict with char $ac_func (); below.
19053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19054 <limits.h> exists even on freestanding compilers. */
19056 #ifdef __STDC__
19057 # include <limits.h>
19058 #else
19059 # include <assert.h>
19060 #endif
19062 #undef $ac_func
19064 /* Override any GCC internal prototype to avoid an error.
19065 Use char because int might match the return type of a GCC
19066 builtin and then its argument prototype would still apply. */
19067 #ifdef __cplusplus
19068 extern "C"
19069 #endif
19070 char $ac_func ();
19071 /* The GNU C library defines this for functions which it implements
19072 to always fail with ENOSYS. Some functions are actually named
19073 something starting with __ and the normal name is an alias. */
19074 #if defined __stub_$ac_func || defined __stub___$ac_func
19075 choke me
19076 #endif
19079 main ()
19081 return $ac_func ();
19083 return 0;
19085 _ACEOF
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (ac_try="$ac_link"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_link") 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && {
19100 test -z "$ac_c_werror_flag" ||
19101 test ! -s conftest.err
19102 } && test -s conftest$ac_exeext &&
19103 $as_test_x conftest$ac_exeext; then
19104 eval "$as_ac_var=yes"
19105 else
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19109 eval "$as_ac_var=no"
19112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19113 conftest$ac_exeext conftest.$ac_ext
19115 ac_res=`eval echo '${'$as_ac_var'}'`
19116 { echo "$as_me:$LINENO: result: $ac_res" >&5
19117 echo "${ECHO_T}$ac_res" >&6; }
19118 if test `eval echo '${'$as_ac_var'}'` = yes; then
19119 cat >>confdefs.h <<_ACEOF
19120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19121 _ACEOF
19124 done
19127 # Check this now, so that we will NOT find the above functions in ncurses.
19128 # That is because we have not set up to link ncurses in lib-src.
19129 # It's better to believe a function is not available
19130 # than to expect to find it in ncurses.
19132 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19133 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19134 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137 ac_check_lib_save_LIBS=$LIBS
19138 LIBS="-lncurses $LIBS"
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19146 /* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19149 #ifdef __cplusplus
19150 extern "C"
19151 #endif
19152 char tparm ();
19154 main ()
19156 return tparm ();
19158 return 0;
19160 _ACEOF
19161 rm -f conftest.$ac_objext conftest$ac_exeext
19162 if { (ac_try="$ac_link"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_link") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } && {
19175 test -z "$ac_c_werror_flag" ||
19176 test ! -s conftest.err
19177 } && test -s conftest$ac_exeext &&
19178 $as_test_x conftest$ac_exeext; then
19179 ac_cv_lib_ncurses_tparm=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_cv_lib_ncurses_tparm=no
19187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19188 conftest$ac_exeext conftest.$ac_ext
19189 LIBS=$ac_check_lib_save_LIBS
19191 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19192 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19193 if test $ac_cv_lib_ncurses_tparm = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define HAVE_LIBNCURSES 1
19196 _ACEOF
19198 LIBS="-lncurses $LIBS"
19203 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19205 resolv=no
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <netinet/in.h>
19213 #include <arpa/nameser.h>
19214 #include <resolv.h>
19216 main ()
19218 return res_init();
19220 return 0;
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (ac_try="$ac_link"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } && {
19237 test -z "$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19239 } && test -s conftest$ac_exeext &&
19240 $as_test_x conftest$ac_exeext; then
19241 have_res_init=yes
19242 else
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19246 have_res_init=no
19249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19250 conftest$ac_exeext conftest.$ac_ext
19251 if test "$have_res_init" = no; then
19252 OLIBS="$LIBS"
19253 LIBS="$LIBS -lresolv"
19254 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19255 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <netinet/in.h>
19263 #include <arpa/nameser.h>
19264 #include <resolv.h>
19266 main ()
19268 return res_init();
19270 return 0;
19272 _ACEOF
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_link") 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } && {
19287 test -z "$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 } && test -s conftest$ac_exeext &&
19290 $as_test_x conftest$ac_exeext; then
19291 have_res_init=yes
19292 else
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 have_res_init=no
19299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19300 conftest$ac_exeext conftest.$ac_ext
19301 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19302 echo "${ECHO_T}$have_res_init" >&6; }
19303 if test "$have_res_init" = yes ; then
19304 resolv=yes
19306 LIBS="$OLIBS"
19309 if test "$have_res_init" = yes; then
19311 cat >>confdefs.h <<\_ACEOF
19312 #define HAVE_RES_INIT 1
19313 _ACEOF
19317 # Do we need the Hesiod library to provide the support routines?
19318 if test "$with_hesiod" = yes ; then
19319 # Don't set $LIBS here -- see comments above.
19320 { echo "$as_me:$LINENO: checking for res_send" >&5
19321 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19322 if test "${ac_cv_func_res_send+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h. */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19331 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19333 #define res_send innocuous_res_send
19335 /* System header to define __stub macros and hopefully few prototypes,
19336 which can conflict with char res_send (); below.
19337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19338 <limits.h> exists even on freestanding compilers. */
19340 #ifdef __STDC__
19341 # include <limits.h>
19342 #else
19343 # include <assert.h>
19344 #endif
19346 #undef res_send
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char res_send ();
19355 /* The GNU C library defines this for functions which it implements
19356 to always fail with ENOSYS. Some functions are actually named
19357 something starting with __ and the normal name is an alias. */
19358 #if defined __stub_res_send || defined __stub___res_send
19359 choke me
19360 #endif
19363 main ()
19365 return res_send ();
19367 return 0;
19369 _ACEOF
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (ac_try="$ac_link"
19372 case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_link") 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } && {
19384 test -z "$ac_c_werror_flag" ||
19385 test ! -s conftest.err
19386 } && test -s conftest$ac_exeext &&
19387 $as_test_x conftest$ac_exeext; then
19388 ac_cv_func_res_send=yes
19389 else
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_cv_func_res_send=no
19396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19397 conftest$ac_exeext conftest.$ac_ext
19399 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19400 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19401 if test $ac_cv_func_res_send = yes; then
19403 else
19404 { echo "$as_me:$LINENO: checking for __res_send" >&5
19405 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19406 if test "${ac_cv_func___res_send+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19417 #define __res_send innocuous___res_send
19419 /* System header to define __stub macros and hopefully few prototypes,
19420 which can conflict with char __res_send (); below.
19421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422 <limits.h> exists even on freestanding compilers. */
19424 #ifdef __STDC__
19425 # include <limits.h>
19426 #else
19427 # include <assert.h>
19428 #endif
19430 #undef __res_send
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 char __res_send ();
19439 /* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
19442 #if defined __stub___res_send || defined __stub_____res_send
19443 choke me
19444 #endif
19447 main ()
19449 return __res_send ();
19451 return 0;
19453 _ACEOF
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (ac_try="$ac_link"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_link") 2>conftest.er1
19462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_c_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest$ac_exeext &&
19471 $as_test_x conftest$ac_exeext; then
19472 ac_cv_func___res_send=yes
19473 else
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19477 ac_cv_func___res_send=no
19480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19481 conftest$ac_exeext conftest.$ac_ext
19483 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19484 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19485 if test $ac_cv_func___res_send = yes; then
19487 else
19488 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19489 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19490 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493 ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lresolv $LIBS"
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19502 /* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19505 #ifdef __cplusplus
19506 extern "C"
19507 #endif
19508 char res_send ();
19510 main ()
19512 return res_send ();
19514 return 0;
19516 _ACEOF
19517 rm -f conftest.$ac_objext conftest$ac_exeext
19518 if { (ac_try="$ac_link"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest$ac_exeext &&
19534 $as_test_x conftest$ac_exeext; then
19535 ac_cv_lib_resolv_res_send=yes
19536 else
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19540 ac_cv_lib_resolv_res_send=no
19543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19544 conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19547 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19548 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19549 if test $ac_cv_lib_resolv_res_send = yes; then
19550 resolv=yes
19551 else
19552 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19553 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19554 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lresolv $LIBS"
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 char __res_send ();
19574 main ()
19576 return __res_send ();
19578 return 0;
19580 _ACEOF
19581 rm -f conftest.$ac_objext conftest$ac_exeext
19582 if { (ac_try="$ac_link"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_link") 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest$ac_exeext &&
19598 $as_test_x conftest$ac_exeext; then
19599 ac_cv_lib_resolv___res_send=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_lib_resolv___res_send=no
19607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19611 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19612 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19613 if test $ac_cv_lib_resolv___res_send = yes; then
19614 resolv=yes
19623 if test "$resolv" = yes ; then
19624 RESOLVLIB=-lresolv
19625 else
19626 RESOLVLIB=
19628 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19629 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19630 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19641 #define hes_getmailhost innocuous_hes_getmailhost
19643 /* System header to define __stub macros and hopefully few prototypes,
19644 which can conflict with char hes_getmailhost (); below.
19645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19646 <limits.h> exists even on freestanding compilers. */
19648 #ifdef __STDC__
19649 # include <limits.h>
19650 #else
19651 # include <assert.h>
19652 #endif
19654 #undef hes_getmailhost
19656 /* Override any GCC internal prototype to avoid an error.
19657 Use char because int might match the return type of a GCC
19658 builtin and then its argument prototype would still apply. */
19659 #ifdef __cplusplus
19660 extern "C"
19661 #endif
19662 char hes_getmailhost ();
19663 /* The GNU C library defines this for functions which it implements
19664 to always fail with ENOSYS. Some functions are actually named
19665 something starting with __ and the normal name is an alias. */
19666 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19667 choke me
19668 #endif
19671 main ()
19673 return hes_getmailhost ();
19675 return 0;
19677 _ACEOF
19678 rm -f conftest.$ac_objext conftest$ac_exeext
19679 if { (ac_try="$ac_link"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_link") 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest$ac_exeext &&
19695 $as_test_x conftest$ac_exeext; then
19696 ac_cv_func_hes_getmailhost=yes
19697 else
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 ac_cv_func_hes_getmailhost=no
19704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19705 conftest$ac_exeext conftest.$ac_ext
19707 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19708 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19709 if test $ac_cv_func_hes_getmailhost = yes; then
19711 else
19712 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19713 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19714 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lhesiod $RESOLVLIB $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char hes_getmailhost ();
19734 main ()
19736 return hes_getmailhost ();
19738 return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 ac_cv_lib_hesiod_hes_getmailhost=yes
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_lib_hesiod_hes_getmailhost=no
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19771 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19772 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19773 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_LIBHESIOD 1
19777 _ACEOF
19779 else
19787 # Do we need libresolv (due to res_init or Hesiod)?
19788 if test "$resolv" = yes ; then
19790 cat >>confdefs.h <<\_ACEOF
19791 #define HAVE_LIBRESOLV 1
19792 _ACEOF
19796 # These tell us which Kerberos-related libraries to use.
19797 if test "${with_kerberos+set}" = set; then
19799 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19800 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19801 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 else
19804 ac_check_lib_save_LIBS=$LIBS
19805 LIBS="-lcom_err $LIBS"
19806 cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h. */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19816 #ifdef __cplusplus
19817 extern "C"
19818 #endif
19819 char com_err ();
19821 main ()
19823 return com_err ();
19825 return 0;
19827 _ACEOF
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest$ac_exeext &&
19845 $as_test_x conftest$ac_exeext; then
19846 ac_cv_lib_com_err_com_err=yes
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ac_cv_lib_com_err_com_err=no
19854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LIBS=$ac_check_lib_save_LIBS
19858 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19859 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19860 if test $ac_cv_lib_com_err_com_err = yes; then
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_LIBCOM_ERR 1
19863 _ACEOF
19865 LIBS="-lcom_err $LIBS"
19870 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19871 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19872 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875 ac_check_lib_save_LIBS=$LIBS
19876 LIBS="-lk5crypto $LIBS"
19877 cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h. */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19884 /* Override any GCC internal prototype to avoid an error.
19885 Use char because int might match the return type of a GCC
19886 builtin and then its argument prototype would still apply. */
19887 #ifdef __cplusplus
19888 extern "C"
19889 #endif
19890 char mit_des_cbc_encrypt ();
19892 main ()
19894 return mit_des_cbc_encrypt ();
19896 return 0;
19898 _ACEOF
19899 rm -f conftest.$ac_objext conftest$ac_exeext
19900 if { (ac_try="$ac_link"
19901 case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_link") 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest$ac_exeext &&
19916 $as_test_x conftest$ac_exeext; then
19917 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19918 else
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19926 conftest$ac_exeext conftest.$ac_ext
19927 LIBS=$ac_check_lib_save_LIBS
19929 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19930 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19931 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19932 cat >>confdefs.h <<_ACEOF
19933 #define HAVE_LIBK5CRYPTO 1
19934 _ACEOF
19936 LIBS="-lk5crypto $LIBS"
19941 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19942 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19943 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946 ac_check_lib_save_LIBS=$LIBS
19947 LIBS="-lcrypto $LIBS"
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h. */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19955 /* Override any GCC internal prototype to avoid an error.
19956 Use char because int might match the return type of a GCC
19957 builtin and then its argument prototype would still apply. */
19958 #ifdef __cplusplus
19959 extern "C"
19960 #endif
19961 char mit_des_cbc_encrypt ();
19963 main ()
19965 return mit_des_cbc_encrypt ();
19967 return 0;
19969 _ACEOF
19970 rm -f conftest.$ac_objext conftest$ac_exeext
19971 if { (ac_try="$ac_link"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_link") 2>conftest.er1
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest$ac_exeext &&
19987 $as_test_x conftest$ac_exeext; then
19988 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19989 else
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19997 conftest$ac_exeext conftest.$ac_ext
19998 LIBS=$ac_check_lib_save_LIBS
20000 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20001 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20002 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define HAVE_LIBCRYPTO 1
20005 _ACEOF
20007 LIBS="-lcrypto $LIBS"
20012 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20013 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20014 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lkrb5 $LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h. */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20026 /* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 char krb5_init_context ();
20034 main ()
20036 return krb5_init_context ();
20038 return 0;
20040 _ACEOF
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_link") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext &&
20058 $as_test_x conftest$ac_exeext; then
20059 ac_cv_lib_krb5_krb5_init_context=yes
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_cv_lib_krb5_krb5_init_context=no
20067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20068 conftest$ac_exeext conftest.$ac_ext
20069 LIBS=$ac_check_lib_save_LIBS
20071 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20072 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20073 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_LIBKRB5 1
20076 _ACEOF
20078 LIBS="-lkrb5 $LIBS"
20082 if test "${with_kerberos5+set}" != set; then
20084 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20085 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20086 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089 ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-ldes425 $LIBS"
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char des_cbc_encrypt ();
20106 main ()
20108 return des_cbc_encrypt ();
20110 return 0;
20112 _ACEOF
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (ac_try="$ac_link"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest$ac_exeext &&
20130 $as_test_x conftest$ac_exeext; then
20131 ac_cv_lib_des425_des_cbc_encrypt=yes
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_cv_lib_des425_des_cbc_encrypt=no
20139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20140 conftest$ac_exeext conftest.$ac_ext
20141 LIBS=$ac_check_lib_save_LIBS
20143 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20144 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20145 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_LIBDES425 1
20148 _ACEOF
20150 LIBS="-ldes425 $LIBS"
20152 else
20154 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20155 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20156 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159 ac_check_lib_save_LIBS=$LIBS
20160 LIBS="-ldes $LIBS"
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20168 /* Override any GCC internal prototype to avoid an error.
20169 Use char because int might match the return type of a GCC
20170 builtin and then its argument prototype would still apply. */
20171 #ifdef __cplusplus
20172 extern "C"
20173 #endif
20174 char des_cbc_encrypt ();
20176 main ()
20178 return des_cbc_encrypt ();
20180 return 0;
20182 _ACEOF
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (ac_try="$ac_link"
20185 case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20188 esac
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_link") 2>conftest.er1
20191 ac_status=$?
20192 grep -v '^ *+' conftest.er1 >conftest.err
20193 rm -f conftest.er1
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && {
20197 test -z "$ac_c_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest$ac_exeext &&
20200 $as_test_x conftest$ac_exeext; then
20201 ac_cv_lib_des_des_cbc_encrypt=yes
20202 else
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_cv_lib_des_des_cbc_encrypt=no
20209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20210 conftest$ac_exeext conftest.$ac_ext
20211 LIBS=$ac_check_lib_save_LIBS
20213 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20214 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20215 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_LIBDES 1
20218 _ACEOF
20220 LIBS="-ldes $LIBS"
20227 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20228 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20229 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lkrb4 $LIBS"
20234 cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h. */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20241 /* Override any GCC internal prototype to avoid an error.
20242 Use char because int might match the return type of a GCC
20243 builtin and then its argument prototype would still apply. */
20244 #ifdef __cplusplus
20245 extern "C"
20246 #endif
20247 char krb_get_cred ();
20249 main ()
20251 return krb_get_cred ();
20253 return 0;
20255 _ACEOF
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (ac_try="$ac_link"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_link") 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest$ac_exeext &&
20273 $as_test_x conftest$ac_exeext; then
20274 ac_cv_lib_krb4_krb_get_cred=yes
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 ac_cv_lib_krb4_krb_get_cred=no
20282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20283 conftest$ac_exeext conftest.$ac_ext
20284 LIBS=$ac_check_lib_save_LIBS
20286 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20287 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20288 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20289 cat >>confdefs.h <<_ACEOF
20290 #define HAVE_LIBKRB4 1
20291 _ACEOF
20293 LIBS="-lkrb4 $LIBS"
20295 else
20297 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20298 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20299 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 else
20302 ac_check_lib_save_LIBS=$LIBS
20303 LIBS="-lkrb $LIBS"
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20311 /* Override any GCC internal prototype to avoid an error.
20312 Use char because int might match the return type of a GCC
20313 builtin and then its argument prototype would still apply. */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 char krb_get_cred ();
20319 main ()
20321 return krb_get_cred ();
20323 return 0;
20325 _ACEOF
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (ac_try="$ac_link"
20328 case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20331 esac
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_link") 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && {
20340 test -z "$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 } && test -s conftest$ac_exeext &&
20343 $as_test_x conftest$ac_exeext; then
20344 ac_cv_lib_krb_krb_get_cred=yes
20345 else
20346 echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20349 ac_cv_lib_krb_krb_get_cred=no
20352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20353 conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20356 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20357 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20358 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20359 cat >>confdefs.h <<_ACEOF
20360 #define HAVE_LIBKRB 1
20361 _ACEOF
20363 LIBS="-lkrb $LIBS"
20371 if test "${with_kerberos5+set}" = set; then
20373 for ac_header in krb5.h
20375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 ac_res=`eval echo '${'$as_ac_Header'}'`
20383 { echo "$as_me:$LINENO: result: $ac_res" >&5
20384 echo "${ECHO_T}$ac_res" >&6; }
20385 else
20386 # Is the header compilable?
20387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 $ac_includes_default
20396 #include <$ac_header>
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (ac_try="$ac_compile"
20400 case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_compile") 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest.$ac_objext; then
20415 ac_header_compiler=yes
20416 else
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 ac_header_compiler=no
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20425 echo "${ECHO_T}$ac_header_compiler" >&6; }
20427 # Is the header present?
20428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 #include <$ac_header>
20437 _ACEOF
20438 if { (ac_try="$ac_cpp conftest.$ac_ext"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } >/dev/null && {
20451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 }; then
20454 ac_header_preproc=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_header_preproc=no
20462 rm -f conftest.err conftest.$ac_ext
20463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20464 echo "${ECHO_T}$ac_header_preproc" >&6; }
20466 # So? What about this header?
20467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20468 yes:no: )
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20473 ac_header_preproc=yes
20475 no:yes:* )
20476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20490 esac
20491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 eval "$as_ac_Header=\$ac_header_preproc"
20498 ac_res=`eval echo '${'$as_ac_Header'}'`
20499 { echo "$as_me:$LINENO: result: $ac_res" >&5
20500 echo "${ECHO_T}$ac_res" >&6; }
20503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20504 cat >>confdefs.h <<_ACEOF
20505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20506 _ACEOF
20510 done
20512 else
20514 for ac_header in des.h
20516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 ac_res=`eval echo '${'$as_ac_Header'}'`
20524 { echo "$as_me:$LINENO: result: $ac_res" >&5
20525 echo "${ECHO_T}$ac_res" >&6; }
20526 else
20527 # Is the header compilable?
20528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 $ac_includes_default
20537 #include <$ac_header>
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (ac_try="$ac_compile"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_compile") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest.$ac_objext; then
20556 ac_header_compiler=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ac_header_compiler=no
20564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20566 echo "${ECHO_T}$ac_header_compiler" >&6; }
20568 # Is the header present?
20569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20571 cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h. */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20577 #include <$ac_header>
20578 _ACEOF
20579 if { (ac_try="$ac_cpp conftest.$ac_ext"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } >/dev/null && {
20592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 }; then
20595 ac_header_preproc=yes
20596 else
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_header_preproc=no
20603 rm -f conftest.err conftest.$ac_ext
20604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20605 echo "${ECHO_T}$ac_header_preproc" >&6; }
20607 # So? What about this header?
20608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20609 yes:no: )
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20614 ac_header_preproc=yes
20616 no:yes:* )
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20631 esac
20632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637 eval "$as_ac_Header=\$ac_header_preproc"
20639 ac_res=`eval echo '${'$as_ac_Header'}'`
20640 { echo "$as_me:$LINENO: result: $ac_res" >&5
20641 echo "${ECHO_T}$ac_res" >&6; }
20644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20645 cat >>confdefs.h <<_ACEOF
20646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20647 _ACEOF
20649 else
20651 for ac_header in kerberosIV/des.h
20653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661 { echo "$as_me:$LINENO: result: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20663 else
20664 # Is the header compilable?
20665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 $ac_includes_default
20674 #include <$ac_header>
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_compile") 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest.$ac_objext; then
20693 ac_header_compiler=yes
20694 else
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_header_compiler=no
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20703 echo "${ECHO_T}$ac_header_compiler" >&6; }
20705 # Is the header present?
20706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h. */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 #include <$ac_header>
20715 _ACEOF
20716 if { (ac_try="$ac_cpp conftest.$ac_ext"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } >/dev/null && {
20729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 }; then
20732 ac_header_preproc=yes
20733 else
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ac_header_preproc=no
20740 rm -f conftest.err conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20742 echo "${ECHO_T}$ac_header_preproc" >&6; }
20744 # So? What about this header?
20745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20746 yes:no: )
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20751 ac_header_preproc=yes
20753 no:yes:* )
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20768 esac
20769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774 eval "$as_ac_Header=\$ac_header_preproc"
20776 ac_res=`eval echo '${'$as_ac_Header'}'`
20777 { echo "$as_me:$LINENO: result: $ac_res" >&5
20778 echo "${ECHO_T}$ac_res" >&6; }
20781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20782 cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20784 _ACEOF
20786 else
20788 for ac_header in kerberos/des.h
20790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 ac_res=`eval echo '${'$as_ac_Header'}'`
20798 { echo "$as_me:$LINENO: result: $ac_res" >&5
20799 echo "${ECHO_T}$ac_res" >&6; }
20800 else
20801 # Is the header compilable?
20802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h. */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 $ac_includes_default
20811 #include <$ac_header>
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_compile") 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest.$ac_objext; then
20830 ac_header_compiler=yes
20831 else
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_header_compiler=no
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20840 echo "${ECHO_T}$ac_header_compiler" >&6; }
20842 # Is the header present?
20843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <$ac_header>
20852 _ACEOF
20853 if { (ac_try="$ac_cpp conftest.$ac_ext"
20854 case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20857 esac
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20860 ac_status=$?
20861 grep -v '^ *+' conftest.er1 >conftest.err
20862 rm -f conftest.er1
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } >/dev/null && {
20866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 }; then
20869 ac_header_preproc=yes
20870 else
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ac_header_preproc=no
20877 rm -f conftest.err conftest.$ac_ext
20878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20879 echo "${ECHO_T}$ac_header_preproc" >&6; }
20881 # So? What about this header?
20882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20883 yes:no: )
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20888 ac_header_preproc=yes
20890 no:yes:* )
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20905 esac
20906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 eval "$as_ac_Header=\$ac_header_preproc"
20913 ac_res=`eval echo '${'$as_ac_Header'}'`
20914 { echo "$as_me:$LINENO: result: $ac_res" >&5
20915 echo "${ECHO_T}$ac_res" >&6; }
20918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20921 _ACEOF
20925 done
20929 done
20933 done
20936 for ac_header in krb.h
20938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20945 ac_res=`eval echo '${'$as_ac_Header'}'`
20946 { echo "$as_me:$LINENO: result: $ac_res" >&5
20947 echo "${ECHO_T}$ac_res" >&6; }
20948 else
20949 # Is the header compilable?
20950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h. */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958 $ac_includes_default
20959 #include <$ac_header>
20960 _ACEOF
20961 rm -f conftest.$ac_objext
20962 if { (ac_try="$ac_compile"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_compile") 2>conftest.er1
20969 ac_status=$?
20970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && {
20975 test -z "$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20977 } && test -s conftest.$ac_objext; then
20978 ac_header_compiler=yes
20979 else
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_header_compiler=no
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20988 echo "${ECHO_T}$ac_header_compiler" >&6; }
20990 # Is the header present?
20991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 #include <$ac_header>
21000 _ACEOF
21001 if { (ac_try="$ac_cpp conftest.$ac_ext"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21008 ac_status=$?
21009 grep -v '^ *+' conftest.er1 >conftest.err
21010 rm -f conftest.er1
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } >/dev/null && {
21014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21015 test ! -s conftest.err
21016 }; then
21017 ac_header_preproc=yes
21018 else
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_header_preproc=no
21025 rm -f conftest.err conftest.$ac_ext
21026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21027 echo "${ECHO_T}$ac_header_preproc" >&6; }
21029 # So? What about this header?
21030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21031 yes:no: )
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21036 ac_header_preproc=yes
21038 no:yes:* )
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21053 esac
21054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 eval "$as_ac_Header=\$ac_header_preproc"
21061 ac_res=`eval echo '${'$as_ac_Header'}'`
21062 { echo "$as_me:$LINENO: result: $ac_res" >&5
21063 echo "${ECHO_T}$ac_res" >&6; }
21066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21067 cat >>confdefs.h <<_ACEOF
21068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21069 _ACEOF
21071 else
21073 for ac_header in kerberosIV/krb.h
21075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 ac_res=`eval echo '${'$as_ac_Header'}'`
21083 { echo "$as_me:$LINENO: result: $ac_res" >&5
21084 echo "${ECHO_T}$ac_res" >&6; }
21085 else
21086 # Is the header compilable?
21087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 $ac_includes_default
21096 #include <$ac_header>
21097 _ACEOF
21098 rm -f conftest.$ac_objext
21099 if { (ac_try="$ac_compile"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_compile") 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } && {
21112 test -z "$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 } && test -s conftest.$ac_objext; then
21115 ac_header_compiler=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 ac_header_compiler=no
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21125 echo "${ECHO_T}$ac_header_compiler" >&6; }
21127 # Is the header present?
21128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 #include <$ac_header>
21137 _ACEOF
21138 if { (ac_try="$ac_cpp conftest.$ac_ext"
21139 case "(($ac_try" in
21140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141 *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21145 ac_status=$?
21146 grep -v '^ *+' conftest.er1 >conftest.err
21147 rm -f conftest.er1
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } >/dev/null && {
21151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21152 test ! -s conftest.err
21153 }; then
21154 ac_header_preproc=yes
21155 else
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_header_preproc=no
21162 rm -f conftest.err conftest.$ac_ext
21163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21164 echo "${ECHO_T}$ac_header_preproc" >&6; }
21166 # So? What about this header?
21167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21168 yes:no: )
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21173 ac_header_preproc=yes
21175 no:yes:* )
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21190 esac
21191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196 eval "$as_ac_Header=\$ac_header_preproc"
21198 ac_res=`eval echo '${'$as_ac_Header'}'`
21199 { echo "$as_me:$LINENO: result: $ac_res" >&5
21200 echo "${ECHO_T}$ac_res" >&6; }
21203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21204 cat >>confdefs.h <<_ACEOF
21205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21206 _ACEOF
21208 else
21210 for ac_header in kerberos/krb.h
21212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 ac_res=`eval echo '${'$as_ac_Header'}'`
21220 { echo "$as_me:$LINENO: result: $ac_res" >&5
21221 echo "${ECHO_T}$ac_res" >&6; }
21222 else
21223 # Is the header compilable?
21224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 #include <$ac_header>
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_header_compiler=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_header_compiler=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21262 echo "${ECHO_T}$ac_header_compiler" >&6; }
21264 # Is the header present?
21265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #include <$ac_header>
21274 _ACEOF
21275 if { (ac_try="$ac_cpp conftest.$ac_ext"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } >/dev/null && {
21288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21290 }; then
21291 ac_header_preproc=yes
21292 else
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 ac_header_preproc=no
21299 rm -f conftest.err conftest.$ac_ext
21300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21301 echo "${ECHO_T}$ac_header_preproc" >&6; }
21303 # So? What about this header?
21304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21305 yes:no: )
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21310 ac_header_preproc=yes
21312 no:yes:* )
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21327 esac
21328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333 eval "$as_ac_Header=\$ac_header_preproc"
21335 ac_res=`eval echo '${'$as_ac_Header'}'`
21336 { echo "$as_me:$LINENO: result: $ac_res" >&5
21337 echo "${ECHO_T}$ac_res" >&6; }
21340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21341 cat >>confdefs.h <<_ACEOF
21342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21343 _ACEOF
21347 done
21351 done
21355 done
21359 for ac_header in com_err.h
21361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 ac_res=`eval echo '${'$as_ac_Header'}'`
21369 { echo "$as_me:$LINENO: result: $ac_res" >&5
21370 echo "${ECHO_T}$ac_res" >&6; }
21371 else
21372 # Is the header compilable?
21373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21375 cat >conftest.$ac_ext <<_ACEOF
21376 /* confdefs.h. */
21377 _ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381 $ac_includes_default
21382 #include <$ac_header>
21383 _ACEOF
21384 rm -f conftest.$ac_objext
21385 if { (ac_try="$ac_compile"
21386 case "(($ac_try" in
21387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388 *) ac_try_echo=$ac_try;;
21389 esac
21390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21391 (eval "$ac_compile") 2>conftest.er1
21392 ac_status=$?
21393 grep -v '^ *+' conftest.er1 >conftest.err
21394 rm -f conftest.er1
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } && {
21398 test -z "$ac_c_werror_flag" ||
21399 test ! -s conftest.err
21400 } && test -s conftest.$ac_objext; then
21401 ac_header_compiler=yes
21402 else
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ac_header_compiler=no
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21411 echo "${ECHO_T}$ac_header_compiler" >&6; }
21413 # Is the header present?
21414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h. */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 #include <$ac_header>
21423 _ACEOF
21424 if { (ac_try="$ac_cpp conftest.$ac_ext"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } >/dev/null && {
21437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 }; then
21440 ac_header_preproc=yes
21441 else
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_header_preproc=no
21448 rm -f conftest.err conftest.$ac_ext
21449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21450 echo "${ECHO_T}$ac_header_preproc" >&6; }
21452 # So? What about this header?
21453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21454 yes:no: )
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21459 ac_header_preproc=yes
21461 no:yes:* )
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21476 esac
21477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482 eval "$as_ac_Header=\$ac_header_preproc"
21484 ac_res=`eval echo '${'$as_ac_Header'}'`
21485 { echo "$as_me:$LINENO: result: $ac_res" >&5
21486 echo "${ECHO_T}$ac_res" >&6; }
21489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21490 cat >>confdefs.h <<_ACEOF
21491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21492 _ACEOF
21496 done
21500 # Solaris requires -lintl if you want strerror (which calls dgettext)
21501 # to return localized messages.
21503 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21504 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21505 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 ac_check_lib_save_LIBS=$LIBS
21509 LIBS="-lintl $LIBS"
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21520 #ifdef __cplusplus
21521 extern "C"
21522 #endif
21523 char dgettext ();
21525 main ()
21527 return dgettext ();
21529 return 0;
21531 _ACEOF
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (ac_try="$ac_link"
21534 case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21537 esac
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539 (eval "$ac_link") 2>conftest.er1
21540 ac_status=$?
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } && {
21546 test -z "$ac_c_werror_flag" ||
21547 test ! -s conftest.err
21548 } && test -s conftest$ac_exeext &&
21549 $as_test_x conftest$ac_exeext; then
21550 ac_cv_lib_intl_dgettext=yes
21551 else
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 ac_cv_lib_intl_dgettext=no
21558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21559 conftest$ac_exeext conftest.$ac_ext
21560 LIBS=$ac_check_lib_save_LIBS
21562 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21563 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21564 if test $ac_cv_lib_intl_dgettext = yes; then
21565 cat >>confdefs.h <<_ACEOF
21566 #define HAVE_LIBINTL 1
21567 _ACEOF
21569 LIBS="-lintl $LIBS"
21574 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21575 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21576 if test "${emacs_cv_localtime_cache+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579 if test x$ac_cv_func_tzset = xyes; then
21580 if test "$cross_compiling" = yes; then
21581 # If we have tzset, assume the worst when cross-compiling.
21582 emacs_cv_localtime_cache=yes
21583 else
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <time.h>
21591 extern char **environ;
21592 unset_TZ ()
21594 char **from, **to;
21595 for (to = from = environ; (*to = *from); from++)
21596 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21597 to++;
21599 char TZ_GMT0[] = "TZ=GMT0";
21600 char TZ_PST8[] = "TZ=PST8";
21601 main()
21603 time_t now = time ((time_t *) 0);
21604 int hour_GMT0, hour_unset;
21605 if (putenv (TZ_GMT0) != 0)
21606 exit (1);
21607 hour_GMT0 = localtime (&now)->tm_hour;
21608 unset_TZ ();
21609 hour_unset = localtime (&now)->tm_hour;
21610 if (putenv (TZ_PST8) != 0)
21611 exit (1);
21612 if (localtime (&now)->tm_hour == hour_GMT0)
21613 exit (1);
21614 unset_TZ ();
21615 if (localtime (&now)->tm_hour != hour_unset)
21616 exit (1);
21617 exit (0);
21619 _ACEOF
21620 rm -f conftest$ac_exeext
21621 if { (ac_try="$ac_link"
21622 case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21625 esac
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627 (eval "$ac_link") 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21631 { (case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_try") 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 emacs_cv_localtime_cache=no
21641 else
21642 echo "$as_me: program exited with status $ac_status" >&5
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 ( exit $ac_status )
21647 emacs_cv_localtime_cache=yes
21649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21653 else
21654 # If we lack tzset, report that localtime does not cache TZ,
21655 # since we can't invalidate the cache if we don't have tzset.
21656 emacs_cv_localtime_cache=no
21659 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21660 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21661 if test $emacs_cv_localtime_cache = yes; then
21663 cat >>confdefs.h <<\_ACEOF
21664 #define LOCALTIME_CACHE 1
21665 _ACEOF
21669 if test "x$HAVE_TIMEVAL" = xyes; then
21671 for ac_func in gettimeofday
21673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21687 #define $ac_func innocuous_$ac_func
21689 /* System header to define __stub macros and hopefully few prototypes,
21690 which can conflict with char $ac_func (); below.
21691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692 <limits.h> exists even on freestanding compilers. */
21694 #ifdef __STDC__
21695 # include <limits.h>
21696 #else
21697 # include <assert.h>
21698 #endif
21700 #undef $ac_func
21702 /* Override any GCC internal prototype to avoid an error.
21703 Use char because int might match the return type of a GCC
21704 builtin and then its argument prototype would still apply. */
21705 #ifdef __cplusplus
21706 extern "C"
21707 #endif
21708 char $ac_func ();
21709 /* The GNU C library defines this for functions which it implements
21710 to always fail with ENOSYS. Some functions are actually named
21711 something starting with __ and the normal name is an alias. */
21712 #if defined __stub_$ac_func || defined __stub___$ac_func
21713 choke me
21714 #endif
21717 main ()
21719 return $ac_func ();
21721 return 0;
21723 _ACEOF
21724 rm -f conftest.$ac_objext conftest$ac_exeext
21725 if { (ac_try="$ac_link"
21726 case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21729 esac
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_link") 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest$ac_exeext &&
21741 $as_test_x conftest$ac_exeext; then
21742 eval "$as_ac_var=yes"
21743 else
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 eval "$as_ac_var=no"
21750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21751 conftest$ac_exeext conftest.$ac_ext
21753 ac_res=`eval echo '${'$as_ac_var'}'`
21754 { echo "$as_me:$LINENO: result: $ac_res" >&5
21755 echo "${ECHO_T}$ac_res" >&6; }
21756 if test `eval echo '${'$as_ac_var'}'` = yes; then
21757 cat >>confdefs.h <<_ACEOF
21758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21759 _ACEOF
21762 done
21764 if test $ac_cv_func_gettimeofday = yes; then
21765 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21766 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21767 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 else
21770 cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h. */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21777 #ifdef TIME_WITH_SYS_TIME
21778 #include <sys/time.h>
21779 #include <time.h>
21780 #else
21781 #ifdef HAVE_SYS_TIME_H
21782 #include <sys/time.h>
21783 #else
21784 #include <time.h>
21785 #endif
21786 #endif
21788 main ()
21790 struct timeval time;
21791 gettimeofday (&time, 0);
21793 return 0;
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21813 emacs_cv_gettimeofday_two_arguments=yes
21814 else
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 emacs_cv_gettimeofday_two_arguments=no
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21824 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21825 if test $emacs_cv_gettimeofday_two_arguments = no; then
21827 cat >>confdefs.h <<\_ACEOF
21828 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21829 _ACEOF
21835 ok_so_far=yes
21836 { echo "$as_me:$LINENO: checking for socket" >&5
21837 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21838 if test "${ac_cv_func_socket+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21849 #define socket innocuous_socket
21851 /* System header to define __stub macros and hopefully few prototypes,
21852 which can conflict with char socket (); below.
21853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854 <limits.h> exists even on freestanding compilers. */
21856 #ifdef __STDC__
21857 # include <limits.h>
21858 #else
21859 # include <assert.h>
21860 #endif
21862 #undef socket
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21867 #ifdef __cplusplus
21868 extern "C"
21869 #endif
21870 char socket ();
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined __stub_socket || defined __stub___socket
21875 choke me
21876 #endif
21879 main ()
21881 return socket ();
21883 return 0;
21885 _ACEOF
21886 rm -f conftest.$ac_objext conftest$ac_exeext
21887 if { (ac_try="$ac_link"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_link") 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest$ac_exeext &&
21903 $as_test_x conftest$ac_exeext; then
21904 ac_cv_func_socket=yes
21905 else
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ac_cv_func_socket=no
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913 conftest$ac_exeext conftest.$ac_ext
21915 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21916 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21917 if test $ac_cv_func_socket = yes; then
21919 else
21920 ok_so_far=no
21923 if test $ok_so_far = yes; then
21924 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21925 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21926 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21927 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21931 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21932 else
21933 # Is the header compilable?
21934 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21935 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21936 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h. */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21943 #include <netinet/in.h>
21944 _ACEOF
21945 rm -f conftest.$ac_objext
21946 if { (ac_try="$ac_compile"
21947 case "(($ac_try" in
21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949 *) ac_try_echo=$ac_try;;
21950 esac
21951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21952 (eval "$ac_compile") 2>conftest.er1
21953 ac_status=$?
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } && {
21959 test -z "$ac_c_werror_flag" ||
21960 test ! -s conftest.err
21961 } && test -s conftest.$ac_objext; then
21962 ac_header_compiler=yes
21963 else
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 ac_header_compiler=no
21970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21972 echo "${ECHO_T}$ac_header_compiler" >&6; }
21974 # Is the header present?
21975 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21976 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21977 cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h. */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21983 #include <netinet/in.h>
21984 _ACEOF
21985 if { (ac_try="$ac_cpp conftest.$ac_ext"
21986 case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } >/dev/null && {
21998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 }; then
22001 ac_header_preproc=yes
22002 else
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_header_preproc=no
22009 rm -f conftest.err conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22011 echo "${ECHO_T}$ac_header_preproc" >&6; }
22013 # So? What about this header?
22014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22015 yes:no: )
22016 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22017 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22019 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22020 ac_header_preproc=yes
22022 no:yes:* )
22023 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22024 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22026 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22028 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22030 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22032 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22034 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22037 esac
22038 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22039 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22040 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043 ac_cv_header_netinet_in_h=$ac_header_preproc
22045 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22046 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22049 if test $ac_cv_header_netinet_in_h = yes; then
22051 else
22052 ok_so_far=no
22057 if test $ok_so_far = yes; then
22058 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22059 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22060 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22061 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22064 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22065 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22066 else
22067 # Is the header compilable?
22068 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22069 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 $ac_includes_default
22077 #include <arpa/inet.h>
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22087 ac_status=$?
22088 grep -v '^ *+' conftest.er1 >conftest.err
22089 rm -f conftest.er1
22090 cat conftest.err >&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest.$ac_objext; then
22096 ac_header_compiler=yes
22097 else
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 ac_header_compiler=no
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22106 echo "${ECHO_T}$ac_header_compiler" >&6; }
22108 # Is the header present?
22109 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22110 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22111 cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h. */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22117 #include <arpa/inet.h>
22118 _ACEOF
22119 if { (ac_try="$ac_cpp conftest.$ac_ext"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22126 ac_status=$?
22127 grep -v '^ *+' conftest.er1 >conftest.err
22128 rm -f conftest.er1
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } >/dev/null && {
22132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 }; then
22135 ac_header_preproc=yes
22136 else
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 ac_header_preproc=no
22143 rm -f conftest.err conftest.$ac_ext
22144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22145 echo "${ECHO_T}$ac_header_preproc" >&6; }
22147 # So? What about this header?
22148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22149 yes:no: )
22150 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22151 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22152 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22153 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22154 ac_header_preproc=yes
22156 no:yes:* )
22157 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22158 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22160 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22162 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22164 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22166 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22167 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22168 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22171 esac
22172 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22173 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22174 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177 ac_cv_header_arpa_inet_h=$ac_header_preproc
22179 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22180 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22183 if test $ac_cv_header_arpa_inet_h = yes; then
22185 else
22186 ok_so_far=no
22191 if test $ok_so_far = yes; then
22193 cat >>confdefs.h <<\_ACEOF
22194 #define HAVE_INET_SOCKETS 1
22195 _ACEOF
22200 for ac_header in sys/ioctl.h
22202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22209 ac_res=`eval echo '${'$as_ac_Header'}'`
22210 { echo "$as_me:$LINENO: result: $ac_res" >&5
22211 echo "${ECHO_T}$ac_res" >&6; }
22212 else
22213 # Is the header compilable?
22214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22216 cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h. */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22222 $ac_includes_default
22223 #include <$ac_header>
22224 _ACEOF
22225 rm -f conftest.$ac_objext
22226 if { (ac_try="$ac_compile"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_compile") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest.$ac_objext; then
22242 ac_header_compiler=yes
22243 else
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22247 ac_header_compiler=no
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22252 echo "${ECHO_T}$ac_header_compiler" >&6; }
22254 # Is the header present?
22255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 #include <$ac_header>
22264 _ACEOF
22265 if { (ac_try="$ac_cpp conftest.$ac_ext"
22266 case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } >/dev/null && {
22278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 }; then
22281 ac_header_preproc=yes
22282 else
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ac_header_preproc=no
22289 rm -f conftest.err conftest.$ac_ext
22290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22291 echo "${ECHO_T}$ac_header_preproc" >&6; }
22293 # So? What about this header?
22294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22295 yes:no: )
22296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22300 ac_header_preproc=yes
22302 no:yes:* )
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22317 esac
22318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323 eval "$as_ac_Header=\$ac_header_preproc"
22325 ac_res=`eval echo '${'$as_ac_Header'}'`
22326 { echo "$as_me:$LINENO: result: $ac_res" >&5
22327 echo "${ECHO_T}$ac_res" >&6; }
22330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22331 cat >>confdefs.h <<_ACEOF
22332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22333 _ACEOF
22337 done
22340 if test -f /usr/lpp/X11/bin/smt.exp; then
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_AIX_SMT_EXP 1
22344 _ACEOF
22348 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22349 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22350 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22351 { echo "$as_me:$LINENO: result: yes" >&5
22352 echo "${ECHO_T}yes" >&6; }
22354 cat >>confdefs.h <<\_ACEOF
22355 #define HAVE_DEV_PTMX 1
22356 _ACEOF
22358 else
22359 { echo "$as_me:$LINENO: result: no" >&5
22360 echo "${ECHO_T}no" >&6; }
22363 { echo "$as_me:$LINENO: checking for pid_t" >&5
22364 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22365 if test "${ac_cv_type_pid_t+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 else
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 $ac_includes_default
22375 typedef pid_t ac__type_new_;
22377 main ()
22379 if ((ac__type_new_ *) 0)
22380 return 0;
22381 if (sizeof (ac__type_new_))
22382 return 0;
22384 return 0;
22386 _ACEOF
22387 rm -f conftest.$ac_objext
22388 if { (ac_try="$ac_compile"
22389 case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_compile") 2>conftest.er1
22395 ac_status=$?
22396 grep -v '^ *+' conftest.er1 >conftest.err
22397 rm -f conftest.er1
22398 cat conftest.err >&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && {
22401 test -z "$ac_c_werror_flag" ||
22402 test ! -s conftest.err
22403 } && test -s conftest.$ac_objext; then
22404 ac_cv_type_pid_t=yes
22405 else
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 ac_cv_type_pid_t=no
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22415 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22416 if test $ac_cv_type_pid_t = yes; then
22418 else
22420 cat >>confdefs.h <<_ACEOF
22421 #define pid_t int
22422 _ACEOF
22427 for ac_header in vfork.h
22429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 ac_res=`eval echo '${'$as_ac_Header'}'`
22437 { echo "$as_me:$LINENO: result: $ac_res" >&5
22438 echo "${ECHO_T}$ac_res" >&6; }
22439 else
22440 # Is the header compilable?
22441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22443 cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h. */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22449 $ac_includes_default
22450 #include <$ac_header>
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_compile") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest.$ac_objext; then
22469 ac_header_compiler=yes
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ac_header_compiler=no
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22479 echo "${ECHO_T}$ac_header_compiler" >&6; }
22481 # Is the header present?
22482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22484 cat >conftest.$ac_ext <<_ACEOF
22485 /* confdefs.h. */
22486 _ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h. */
22490 #include <$ac_header>
22491 _ACEOF
22492 if { (ac_try="$ac_cpp conftest.$ac_ext"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } >/dev/null && {
22505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 }; then
22508 ac_header_preproc=yes
22509 else
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_header_preproc=no
22516 rm -f conftest.err conftest.$ac_ext
22517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22518 echo "${ECHO_T}$ac_header_preproc" >&6; }
22520 # So? What about this header?
22521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22522 yes:no: )
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22527 ac_header_preproc=yes
22529 no:yes:* )
22530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22544 esac
22545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22549 else
22550 eval "$as_ac_Header=\$ac_header_preproc"
22552 ac_res=`eval echo '${'$as_ac_Header'}'`
22553 { echo "$as_me:$LINENO: result: $ac_res" >&5
22554 echo "${ECHO_T}$ac_res" >&6; }
22557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22558 cat >>confdefs.h <<_ACEOF
22559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22560 _ACEOF
22564 done
22568 for ac_func in fork vfork
22570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576 cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h. */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22584 #define $ac_func innocuous_$ac_func
22586 /* System header to define __stub macros and hopefully few prototypes,
22587 which can conflict with char $ac_func (); below.
22588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22589 <limits.h> exists even on freestanding compilers. */
22591 #ifdef __STDC__
22592 # include <limits.h>
22593 #else
22594 # include <assert.h>
22595 #endif
22597 #undef $ac_func
22599 /* Override any GCC internal prototype to avoid an error.
22600 Use char because int might match the return type of a GCC
22601 builtin and then its argument prototype would still apply. */
22602 #ifdef __cplusplus
22603 extern "C"
22604 #endif
22605 char $ac_func ();
22606 /* The GNU C library defines this for functions which it implements
22607 to always fail with ENOSYS. Some functions are actually named
22608 something starting with __ and the normal name is an alias. */
22609 #if defined __stub_$ac_func || defined __stub___$ac_func
22610 choke me
22611 #endif
22614 main ()
22616 return $ac_func ();
22618 return 0;
22620 _ACEOF
22621 rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_link") 2>conftest.er1
22629 ac_status=$?
22630 grep -v '^ *+' conftest.er1 >conftest.err
22631 rm -f conftest.er1
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest$ac_exeext &&
22638 $as_test_x conftest$ac_exeext; then
22639 eval "$as_ac_var=yes"
22640 else
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22644 eval "$as_ac_var=no"
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648 conftest$ac_exeext conftest.$ac_ext
22650 ac_res=`eval echo '${'$as_ac_var'}'`
22651 { echo "$as_me:$LINENO: result: $ac_res" >&5
22652 echo "${ECHO_T}$ac_res" >&6; }
22653 if test `eval echo '${'$as_ac_var'}'` = yes; then
22654 cat >>confdefs.h <<_ACEOF
22655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22656 _ACEOF
22659 done
22661 if test "x$ac_cv_func_fork" = xyes; then
22662 { echo "$as_me:$LINENO: checking for working fork" >&5
22663 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22664 if test "${ac_cv_func_fork_works+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667 if test "$cross_compiling" = yes; then
22668 ac_cv_func_fork_works=cross
22669 else
22670 cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h. */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 $ac_includes_default
22678 main ()
22681 /* By Ruediger Kuhlmann. */
22682 return fork () < 0;
22685 return 0;
22687 _ACEOF
22688 rm -f conftest$ac_exeext
22689 if { (ac_try="$ac_link"
22690 case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22693 esac
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695 (eval "$ac_link") 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22699 { (case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_try") 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 ac_cv_func_fork_works=yes
22709 else
22710 echo "$as_me: program exited with status $ac_status" >&5
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 ( exit $ac_status )
22715 ac_cv_func_fork_works=no
22717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22722 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22723 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22725 else
22726 ac_cv_func_fork_works=$ac_cv_func_fork
22728 if test "x$ac_cv_func_fork_works" = xcross; then
22729 case $host in
22730 *-*-amigaos* | *-*-msdosdjgpp*)
22731 # Override, as these systems have only a dummy fork() stub
22732 ac_cv_func_fork_works=no
22735 ac_cv_func_fork_works=yes
22737 esac
22738 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22739 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22741 ac_cv_func_vfork_works=$ac_cv_func_vfork
22742 if test "x$ac_cv_func_vfork" = xyes; then
22743 { echo "$as_me:$LINENO: checking for working vfork" >&5
22744 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22745 if test "${ac_cv_func_vfork_works+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747 else
22748 if test "$cross_compiling" = yes; then
22749 ac_cv_func_vfork_works=cross
22750 else
22751 cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h. */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 /* Thanks to Paul Eggert for this test. */
22758 $ac_includes_default
22759 #include <sys/wait.h>
22760 #ifdef HAVE_VFORK_H
22761 # include <vfork.h>
22762 #endif
22763 /* On some sparc systems, changes by the child to local and incoming
22764 argument registers are propagated back to the parent. The compiler
22765 is told about this with #include <vfork.h>, but some compilers
22766 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22767 static variable whose address is put into a register that is
22768 clobbered by the vfork. */
22769 static void
22770 #ifdef __cplusplus
22771 sparc_address_test (int arg)
22772 # else
22773 sparc_address_test (arg) int arg;
22774 #endif
22776 static pid_t child;
22777 if (!child) {
22778 child = vfork ();
22779 if (child < 0) {
22780 perror ("vfork");
22781 _exit(2);
22783 if (!child) {
22784 arg = getpid();
22785 write(-1, "", 0);
22786 _exit (arg);
22792 main ()
22794 pid_t parent = getpid ();
22795 pid_t child;
22797 sparc_address_test (0);
22799 child = vfork ();
22801 if (child == 0) {
22802 /* Here is another test for sparc vfork register problems. This
22803 test uses lots of local variables, at least as many local
22804 variables as main has allocated so far including compiler
22805 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22806 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22807 reuse the register of parent for one of the local variables,
22808 since it will think that parent can't possibly be used any more
22809 in this routine. Assigning to the local variable will thus
22810 munge parent in the parent process. */
22811 pid_t
22812 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22813 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22814 /* Convince the compiler that p..p7 are live; otherwise, it might
22815 use the same hardware register for all 8 local variables. */
22816 if (p != p1 || p != p2 || p != p3 || p != p4
22817 || p != p5 || p != p6 || p != p7)
22818 _exit(1);
22820 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22821 from child file descriptors. If the child closes a descriptor
22822 before it execs or exits, this munges the parent's descriptor
22823 as well. Test for this by closing stdout in the child. */
22824 _exit(close(fileno(stdout)) != 0);
22825 } else {
22826 int status;
22827 struct stat st;
22829 while (wait(&status) != child)
22831 return (
22832 /* Was there some problem with vforking? */
22833 child < 0
22835 /* Did the child fail? (This shouldn't happen.) */
22836 || status
22838 /* Did the vfork/compiler bug occur? */
22839 || parent != getpid()
22841 /* Did the file descriptor bug occur? */
22842 || fstat(fileno(stdout), &st) != 0
22846 _ACEOF
22847 rm -f conftest$ac_exeext
22848 if { (ac_try="$ac_link"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_link") 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22858 { (case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_try") 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867 ac_cv_func_vfork_works=yes
22868 else
22869 echo "$as_me: program exited with status $ac_status" >&5
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ( exit $ac_status )
22874 ac_cv_func_vfork_works=no
22876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22882 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22885 if test "x$ac_cv_func_fork_works" = xcross; then
22886 ac_cv_func_vfork_works=$ac_cv_func_vfork
22887 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22888 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22891 if test "x$ac_cv_func_vfork_works" = xyes; then
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_WORKING_VFORK 1
22895 _ACEOF
22897 else
22899 cat >>confdefs.h <<\_ACEOF
22900 #define vfork fork
22901 _ACEOF
22904 if test "x$ac_cv_func_fork_works" = xyes; then
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_WORKING_FORK 1
22908 _ACEOF
22913 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22914 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22915 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 else
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h. */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 #include <langinfo.h>
22926 main ()
22928 char* cs = nl_langinfo(CODESET);
22930 return 0;
22932 _ACEOF
22933 rm -f conftest.$ac_objext conftest$ac_exeext
22934 if { (ac_try="$ac_link"
22935 case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_link") 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest$ac_exeext &&
22950 $as_test_x conftest$ac_exeext; then
22951 emacs_cv_langinfo_codeset=yes
22952 else
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 emacs_cv_langinfo_codeset=no
22959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22960 conftest$ac_exeext conftest.$ac_ext
22963 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22964 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22965 if test $emacs_cv_langinfo_codeset = yes; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_LANGINFO_CODESET 1
22969 _ACEOF
22973 { echo "$as_me:$LINENO: checking for size_t" >&5
22974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22975 if test "${ac_cv_type_size_t+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978 cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h. */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 $ac_includes_default
22985 typedef size_t ac__type_new_;
22987 main ()
22989 if ((ac__type_new_ *) 0)
22990 return 0;
22991 if (sizeof (ac__type_new_))
22992 return 0;
22994 return 0;
22996 _ACEOF
22997 rm -f conftest.$ac_objext
22998 if { (ac_try="$ac_compile"
22999 case "(($ac_try" in
23000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001 *) ac_try_echo=$ac_try;;
23002 esac
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004 (eval "$ac_compile") 2>conftest.er1
23005 ac_status=$?
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && {
23011 test -z "$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 } && test -s conftest.$ac_objext; then
23014 ac_cv_type_size_t=yes
23015 else
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_cv_type_size_t=no
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23025 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23026 if test $ac_cv_type_size_t = yes; then
23028 cat >>confdefs.h <<_ACEOF
23029 #define HAVE_SIZE_T 1
23030 _ACEOF
23036 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23037 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23038 if test "${ac_cv_type_mbstate_t+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h. */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 $ac_includes_default
23048 # include <wchar.h>
23050 main ()
23052 mbstate_t x; return sizeof x;
23054 return 0;
23056 _ACEOF
23057 rm -f conftest.$ac_objext
23058 if { (ac_try="$ac_compile"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_compile") 2>conftest.er1
23065 ac_status=$?
23066 grep -v '^ *+' conftest.er1 >conftest.err
23067 rm -f conftest.er1
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && {
23071 test -z "$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 } && test -s conftest.$ac_objext; then
23074 ac_cv_type_mbstate_t=yes
23075 else
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ac_cv_type_mbstate_t=no
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23085 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23086 if test $ac_cv_type_mbstate_t = yes; then
23088 cat >>confdefs.h <<\_ACEOF
23089 #define HAVE_MBSTATE_T 1
23090 _ACEOF
23092 else
23094 cat >>confdefs.h <<\_ACEOF
23095 #define mbstate_t int
23096 _ACEOF
23100 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23101 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23102 if test "${emacs_cv_c_restrict+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23104 else
23105 cat >conftest.$ac_ext <<_ACEOF
23106 /* confdefs.h. */
23107 _ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h. */
23111 void fred (int *restrict x);
23113 main ()
23117 return 0;
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23128 ac_status=$?
23129 grep -v '^ *+' conftest.er1 >conftest.err
23130 rm -f conftest.er1
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.$ac_objext; then
23137 emacs_cv_c_restrict=yes
23138 else
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h. */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23148 void fred (int *__restrict x);
23150 main ()
23154 return 0;
23156 _ACEOF
23157 rm -f conftest.$ac_objext
23158 if { (ac_try="$ac_compile"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_compile") 2>conftest.er1
23165 ac_status=$?
23166 grep -v '^ *+' conftest.er1 >conftest.err
23167 rm -f conftest.er1
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } && {
23171 test -z "$ac_c_werror_flag" ||
23172 test ! -s conftest.err
23173 } && test -s conftest.$ac_objext; then
23174 emacs_cv_c_restrict=__restrict
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 emacs_cv_c_restrict=no
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23187 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23188 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23189 case "$emacs_cv_c_restrict" in
23190 yes) emacs_restrict=restrict;;
23191 no) emacs_restrict="";;
23192 *) emacs_restrict="$emacs_cv_c_restrict";;
23193 esac
23194 if test "$emacs_restrict" != __restrict; then
23196 cat >>confdefs.h <<_ACEOF
23197 #define __restrict $emacs_restrict
23198 _ACEOF
23202 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23203 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23204 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23206 else
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 void fred (int x[__restrict]);
23215 main ()
23219 return 0;
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23230 ac_status=$?
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 emacs_cv_c_restrict_arr=yes
23240 else
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 emacs_cv_c_restrict_arr=no
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23250 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23251 if test "$emacs_cv_c_restrict_arr" = yes; then
23253 cat >>confdefs.h <<\_ACEOF
23254 #define __restrict_arr __restrict
23255 _ACEOF
23261 # Set up the CFLAGS for real compilation, so we can substitute it.
23262 CFLAGS="$REAL_CFLAGS"
23263 CPPFLAGS="$REAL_CPPFLAGS"
23265 #### Find out which version of Emacs this is.
23266 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23267 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23268 if test x"${version}" = x; then
23269 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23270 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23271 { (exit 1); exit 1; }; }
23274 ### Specify what sort of things we'll be editing into Makefile and config.h.
23275 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23311 cat >>confdefs.h <<_ACEOF
23312 #define EMACS_CONFIGURATION "${canonical}"
23313 _ACEOF
23316 cat >>confdefs.h <<_ACEOF
23317 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23318 _ACEOF
23321 cat >>confdefs.h <<_ACEOF
23322 #define config_machfile "${machfile}"
23323 _ACEOF
23326 cat >>confdefs.h <<_ACEOF
23327 #define config_opsysfile "${opsysfile}"
23328 _ACEOF
23331 cat >>confdefs.h <<_ACEOF
23332 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23333 _ACEOF
23336 cat >>confdefs.h <<_ACEOF
23337 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23338 _ACEOF
23341 cat >>confdefs.h <<_ACEOF
23342 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23343 _ACEOF
23346 cat >>confdefs.h <<_ACEOF
23347 #define UNEXEC_SRC ${UNEXEC_SRC}
23348 _ACEOF
23351 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23353 cat >>confdefs.h <<\_ACEOF
23354 #define HAVE_X_WINDOWS 1
23355 _ACEOF
23358 if test "${USE_X_TOOLKIT}" != "none" ; then
23360 cat >>confdefs.h <<\_ACEOF
23361 #define USE_X_TOOLKIT 1
23362 _ACEOF
23365 if test "${HAVE_X11}" = "yes" ; then
23367 cat >>confdefs.h <<\_ACEOF
23368 #define HAVE_X11 1
23369 _ACEOF
23372 if test "${HAVE_XFREE386}" = "yes" ; then
23374 cat >>confdefs.h <<\_ACEOF
23375 #define HAVE_XFREE386 1
23376 _ACEOF
23379 if test "${HAVE_MENUS}" = "yes" ; then
23381 cat >>confdefs.h <<\_ACEOF
23382 #define HAVE_MENUS 1
23383 _ACEOF
23386 if test "${GNU_MALLOC}" = "yes" ; then
23388 cat >>confdefs.h <<\_ACEOF
23389 #define GNU_MALLOC 1
23390 _ACEOF
23393 if test "${REL_ALLOC}" = "yes" ; then
23395 cat >>confdefs.h <<\_ACEOF
23396 #define REL_ALLOC 1
23397 _ACEOF
23406 #### Report on what we decided to do.
23407 #### Report GTK as a toolkit, even if it doesn't use Xt.
23408 #### It makes printing result more understandable as using GTK sets
23409 #### toolkit_scroll_bars to yes by default.
23410 if test "${HAVE_GTK}" = "yes"; then
23411 USE_X_TOOLKIT=GTK
23414 echo "
23415 Configured for \`${canonical}'.
23417 Where should the build process find the source code? ${srcdir}
23418 What operating system and machine description files should Emacs use?
23419 \`${opsysfile}' and \`${machfile}'
23420 What compiler should emacs be built with? ${CC} ${CFLAGS}
23421 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23422 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23423 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23424 What window system should Emacs use? ${window_system}
23425 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23427 if test -n "${x_includes}"; then
23428 echo " Where do we find X Windows header files? ${x_includes}"
23429 else
23430 echo " Where do we find X Windows header files? Standard dirs"
23432 if test -n "${x_libraries}"; then
23433 echo " Where do we find X Windows libraries? ${x_libraries}"
23434 else
23435 echo " Where do we find X Windows libraries? Standard dirs"
23438 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23439 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23440 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23441 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23442 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23443 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23444 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23445 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23446 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23447 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23448 echo
23450 if test $USE_XASSERTS = yes; then
23451 echo " Compiling with asserts turned on."
23452 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23453 echo
23456 if test "$USE_X_TOOLKIT" = GTK; then
23457 case "$canonical" in
23458 *cygwin*)
23459 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23460 will probably get a crash on startup. If this happens, please use another
23461 toolkit for Emacs. See etc/PROBLEMS for more information."
23463 esac
23467 if test "$HAVE_CARBON" = "yes"; then
23468 echo
23469 echo "Warning: The Mac Carbon port is currently unsupported and has
23470 known problems. It is not recommended for use by non-developers.
23471 Read the emacs-devel archives for more information."
23472 echo
23475 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23476 echo "D-Bus integration has been tested for GNU/Linux only."
23477 echo
23481 # Remove any trailing slashes in these variables.
23482 test "${prefix}" != NONE &&
23483 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23484 test "${exec_prefix}" != NONE &&
23485 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23487 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23488 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23489 ## from Makefile.c can correctly provide the arg `-traditional' to the
23490 ## C preprocessor.
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h. */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 yes..yes
23499 _ACEOF
23500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23501 $EGREP "yes..yes" >/dev/null 2>&1; then
23502 CPP_NEED_TRADITIONAL=no
23503 else
23504 CPP_NEED_TRADITIONAL=yes
23506 rm -f conftest*
23509 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"
23511 ac_config_commands="$ac_config_commands default"
23513 cat >confcache <<\_ACEOF
23514 # This file is a shell script that caches the results of configure
23515 # tests run on this system so they can be shared between configure
23516 # scripts and configure runs, see configure's option --config-cache.
23517 # It is not useful on other systems. If it contains results you don't
23518 # want to keep, you may remove or edit it.
23520 # config.status only pays attention to the cache file if you give it
23521 # the --recheck option to rerun configure.
23523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23525 # following values.
23527 _ACEOF
23529 # The following way of writing the cache mishandles newlines in values,
23530 # but we know of no workaround that is simple, portable, and efficient.
23531 # So, we kill variables containing newlines.
23532 # Ultrix sh set writes to stderr and can't be redirected directly,
23533 # and sets the high bit in the cache file unless we assign to the vars.
23535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23536 eval ac_val=\$$ac_var
23537 case $ac_val in #(
23538 *${as_nl}*)
23539 case $ac_var in #(
23540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23542 esac
23543 case $ac_var in #(
23544 _ | IFS | as_nl) ;; #(
23545 *) $as_unset $ac_var ;;
23546 esac ;;
23547 esac
23548 done
23550 (set) 2>&1 |
23551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23552 *${as_nl}ac_space=\ *)
23553 # `set' does not quote correctly, so add quotes (double-quote
23554 # substitution turns \\\\ into \\, and sed turns \\ into \).
23555 sed -n \
23556 "s/'/'\\\\''/g;
23557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23558 ;; #(
23560 # `set' quotes correctly as required by POSIX, so do not add quotes.
23561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23563 esac |
23564 sort
23566 sed '
23567 /^ac_cv_env_/b end
23568 t clear
23569 :clear
23570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23571 t end
23572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23573 :end' >>confcache
23574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23575 if test -w "$cache_file"; then
23576 test "x$cache_file" != "x/dev/null" &&
23577 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23578 echo "$as_me: updating cache $cache_file" >&6;}
23579 cat confcache >$cache_file
23580 else
23581 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23582 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23585 rm -f confcache
23587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23588 # Let make expand exec_prefix.
23589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23591 DEFS=-DHAVE_CONFIG_H
23593 ac_libobjs=
23594 ac_ltlibobjs=
23595 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23596 # 1. Remove the extension, and $U if already installed.
23597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23598 ac_i=`echo "$ac_i" | sed "$ac_script"`
23599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23600 # will be set to the directory where LIBOBJS objects are built.
23601 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23602 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23603 done
23604 LIBOBJS=$ac_libobjs
23606 LTLIBOBJS=$ac_ltlibobjs
23610 : ${CONFIG_STATUS=./config.status}
23611 ac_clean_files_save=$ac_clean_files
23612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23615 cat >$CONFIG_STATUS <<_ACEOF
23616 #! $SHELL
23617 # Generated by $as_me.
23618 # Run this file to recreate the current configuration.
23619 # Compiler output produced by configure, useful for debugging
23620 # configure, is in config.log if it exists.
23622 debug=false
23623 ac_cs_recheck=false
23624 ac_cs_silent=false
23625 SHELL=\${CONFIG_SHELL-$SHELL}
23626 _ACEOF
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23629 ## --------------------- ##
23630 ## M4sh Initialization. ##
23631 ## --------------------- ##
23633 # Be more Bourne compatible
23634 DUALCASE=1; export DUALCASE # for MKS sh
23635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23636 emulate sh
23637 NULLCMD=:
23638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23639 # is contrary to our usage. Disable this feature.
23640 alias -g '${1+"$@"}'='"$@"'
23641 setopt NO_GLOB_SUBST
23642 else
23643 case `(set -o) 2>/dev/null` in
23644 *posix*) set -o posix ;;
23645 esac
23652 # PATH needs CR
23653 # Avoid depending upon Character Ranges.
23654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23657 as_cr_digits='0123456789'
23658 as_cr_alnum=$as_cr_Letters$as_cr_digits
23660 # The user is always right.
23661 if test "${PATH_SEPARATOR+set}" != set; then
23662 echo "#! /bin/sh" >conf$$.sh
23663 echo "exit 0" >>conf$$.sh
23664 chmod +x conf$$.sh
23665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23666 PATH_SEPARATOR=';'
23667 else
23668 PATH_SEPARATOR=:
23670 rm -f conf$$.sh
23673 # Support unset when possible.
23674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23675 as_unset=unset
23676 else
23677 as_unset=false
23681 # IFS
23682 # We need space, tab and new line, in precisely that order. Quoting is
23683 # there to prevent editors from complaining about space-tab.
23684 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23685 # splitting by setting IFS to empty value.)
23686 as_nl='
23688 IFS=" "" $as_nl"
23690 # Find who we are. Look in the path if we contain no directory separator.
23691 case $0 in
23692 *[\\/]* ) as_myself=$0 ;;
23693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23694 for as_dir in $PATH
23696 IFS=$as_save_IFS
23697 test -z "$as_dir" && as_dir=.
23698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23699 done
23700 IFS=$as_save_IFS
23703 esac
23704 # We did not find ourselves, most probably we were run as `sh COMMAND'
23705 # in which case we are not to be found in the path.
23706 if test "x$as_myself" = x; then
23707 as_myself=$0
23709 if test ! -f "$as_myself"; then
23710 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23711 { (exit 1); exit 1; }
23714 # Work around bugs in pre-3.0 UWIN ksh.
23715 for as_var in ENV MAIL MAILPATH
23716 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23717 done
23718 PS1='$ '
23719 PS2='> '
23720 PS4='+ '
23722 # NLS nuisances.
23723 for as_var in \
23724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23726 LC_TELEPHONE LC_TIME
23728 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23729 eval $as_var=C; export $as_var
23730 else
23731 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23733 done
23735 # Required to use basename.
23736 if expr a : '\(a\)' >/dev/null 2>&1 &&
23737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23738 as_expr=expr
23739 else
23740 as_expr=false
23743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23744 as_basename=basename
23745 else
23746 as_basename=false
23750 # Name of the executable.
23751 as_me=`$as_basename -- "$0" ||
23752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23753 X"$0" : 'X\(//\)$' \| \
23754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23755 echo X/"$0" |
23756 sed '/^.*\/\([^/][^/]*\)\/*$/{
23757 s//\1/
23760 /^X\/\(\/\/\)$/{
23761 s//\1/
23764 /^X\/\(\/\).*/{
23765 s//\1/
23768 s/.*/./; q'`
23770 # CDPATH.
23771 $as_unset CDPATH
23775 as_lineno_1=$LINENO
23776 as_lineno_2=$LINENO
23777 test "x$as_lineno_1" != "x$as_lineno_2" &&
23778 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23781 # uniformly replaced by the line number. The first 'sed' inserts a
23782 # line-number line after each line using $LINENO; the second 'sed'
23783 # does the real work. The second script uses 'N' to pair each
23784 # line-number line with the line containing $LINENO, and appends
23785 # trailing '-' during substitution so that $LINENO is not a special
23786 # case at line end.
23787 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23788 # scripts with optimization help from Paolo Bonzini. Blame Lee
23789 # E. McMahon (1931-1989) for sed's syntax. :-)
23790 sed -n '
23792 /[$]LINENO/=
23793 ' <$as_myself |
23794 sed '
23795 s/[$]LINENO.*/&-/
23796 t lineno
23798 :lineno
23800 :loop
23801 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23802 t loop
23803 s/-\n.*//
23804 ' >$as_me.lineno &&
23805 chmod +x "$as_me.lineno" ||
23806 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23807 { (exit 1); exit 1; }; }
23809 # Don't try to exec as it changes $[0], causing all sort of problems
23810 # (the dirname of $[0] is not the place where we might find the
23811 # original and so on. Autoconf is especially sensitive to this).
23812 . "./$as_me.lineno"
23813 # Exit status is that of the last command.
23814 exit
23818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23819 as_dirname=dirname
23820 else
23821 as_dirname=false
23824 ECHO_C= ECHO_N= ECHO_T=
23825 case `echo -n x` in
23826 -n*)
23827 case `echo 'x\c'` in
23828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23829 *) ECHO_C='\c';;
23830 esac;;
23832 ECHO_N='-n';;
23833 esac
23835 if expr a : '\(a\)' >/dev/null 2>&1 &&
23836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23837 as_expr=expr
23838 else
23839 as_expr=false
23842 rm -f conf$$ conf$$.exe conf$$.file
23843 if test -d conf$$.dir; then
23844 rm -f conf$$.dir/conf$$.file
23845 else
23846 rm -f conf$$.dir
23847 mkdir conf$$.dir
23849 echo >conf$$.file
23850 if ln -s conf$$.file conf$$ 2>/dev/null; then
23851 as_ln_s='ln -s'
23852 # ... but there are two gotchas:
23853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23855 # In both cases, we have to default to `cp -p'.
23856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23857 as_ln_s='cp -p'
23858 elif ln conf$$.file conf$$ 2>/dev/null; then
23859 as_ln_s=ln
23860 else
23861 as_ln_s='cp -p'
23863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23864 rmdir conf$$.dir 2>/dev/null
23866 if mkdir -p . 2>/dev/null; then
23867 as_mkdir_p=:
23868 else
23869 test -d ./-p && rmdir ./-p
23870 as_mkdir_p=false
23873 if test -x / >/dev/null 2>&1; then
23874 as_test_x='test -x'
23875 else
23876 if ls -dL / >/dev/null 2>&1; then
23877 as_ls_L_option=L
23878 else
23879 as_ls_L_option=
23881 as_test_x='
23882 eval sh -c '\''
23883 if test -d "$1"; then
23884 test -d "$1/.";
23885 else
23886 case $1 in
23887 -*)set "./$1";;
23888 esac;
23889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23890 ???[sx]*):;;*)false;;esac;fi
23891 '\'' sh
23894 as_executable_p=$as_test_x
23896 # Sed expression to map a string onto a valid CPP name.
23897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23899 # Sed expression to map a string onto a valid variable name.
23900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23903 exec 6>&1
23905 # Save the log message, to keep $[0] and so on meaningful, and to
23906 # report actual input values of CONFIG_FILES etc. instead of their
23907 # values after options handling.
23908 ac_log="
23909 This file was extended by emacs $as_me 23.0.50, which was
23910 generated by GNU Autoconf 2.61. Invocation command line was
23912 CONFIG_FILES = $CONFIG_FILES
23913 CONFIG_HEADERS = $CONFIG_HEADERS
23914 CONFIG_LINKS = $CONFIG_LINKS
23915 CONFIG_COMMANDS = $CONFIG_COMMANDS
23916 $ $0 $@
23918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23921 _ACEOF
23923 cat >>$CONFIG_STATUS <<_ACEOF
23924 # Files that config.status was made for.
23925 config_files="$ac_config_files"
23926 config_headers="$ac_config_headers"
23927 config_commands="$ac_config_commands"
23929 _ACEOF
23931 cat >>$CONFIG_STATUS <<\_ACEOF
23932 ac_cs_usage="\
23933 \`$as_me' instantiates files from templates according to the
23934 current configuration.
23936 Usage: $0 [OPTIONS] [FILE]...
23938 -h, --help print this help, then exit
23939 -V, --version print version number and configuration settings, then exit
23940 -q, --quiet do not print progress messages
23941 -d, --debug don't remove temporary files
23942 --recheck update $as_me by reconfiguring in the same conditions
23943 --file=FILE[:TEMPLATE]
23944 instantiate the configuration file FILE
23945 --header=FILE[:TEMPLATE]
23946 instantiate the configuration header FILE
23948 Configuration files:
23949 $config_files
23951 Configuration headers:
23952 $config_headers
23954 Configuration commands:
23955 $config_commands
23957 Report bugs to <bug-autoconf@gnu.org>."
23959 _ACEOF
23960 cat >>$CONFIG_STATUS <<_ACEOF
23961 ac_cs_version="\\
23962 emacs config.status 23.0.50
23963 configured by $0, generated by GNU Autoconf 2.61,
23964 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23966 Copyright (C) 2006 Free Software Foundation, Inc.
23967 This config.status script is free software; the Free Software Foundation
23968 gives unlimited permission to copy, distribute and modify it."
23970 ac_pwd='$ac_pwd'
23971 srcdir='$srcdir'
23972 INSTALL='$INSTALL'
23973 _ACEOF
23975 cat >>$CONFIG_STATUS <<\_ACEOF
23976 # If no file are specified by the user, then we need to provide default
23977 # value. By we need to know if files were specified by the user.
23978 ac_need_defaults=:
23979 while test $# != 0
23981 case $1 in
23982 --*=*)
23983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23985 ac_shift=:
23988 ac_option=$1
23989 ac_optarg=$2
23990 ac_shift=shift
23992 esac
23994 case $ac_option in
23995 # Handling of the options.
23996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23997 ac_cs_recheck=: ;;
23998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23999 echo "$ac_cs_version"; exit ;;
24000 --debug | --debu | --deb | --de | --d | -d )
24001 debug=: ;;
24002 --file | --fil | --fi | --f )
24003 $ac_shift
24004 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24005 ac_need_defaults=false;;
24006 --header | --heade | --head | --hea )
24007 $ac_shift
24008 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24009 ac_need_defaults=false;;
24010 --he | --h)
24011 # Conflict between --help and --header
24012 { echo "$as_me: error: ambiguous option: $1
24013 Try \`$0 --help' for more information." >&2
24014 { (exit 1); exit 1; }; };;
24015 --help | --hel | -h )
24016 echo "$ac_cs_usage"; exit ;;
24017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24018 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24019 ac_cs_silent=: ;;
24021 # This is an error.
24022 -*) { echo "$as_me: error: unrecognized option: $1
24023 Try \`$0 --help' for more information." >&2
24024 { (exit 1); exit 1; }; } ;;
24026 *) ac_config_targets="$ac_config_targets $1"
24027 ac_need_defaults=false ;;
24029 esac
24030 shift
24031 done
24033 ac_configure_extra_args=
24035 if $ac_cs_silent; then
24036 exec 6>/dev/null
24037 ac_configure_extra_args="$ac_configure_extra_args --silent"
24040 _ACEOF
24041 cat >>$CONFIG_STATUS <<_ACEOF
24042 if \$ac_cs_recheck; then
24043 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24044 CONFIG_SHELL=$SHELL
24045 export CONFIG_SHELL
24046 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24049 _ACEOF
24050 cat >>$CONFIG_STATUS <<\_ACEOF
24051 exec 5>>config.log
24053 echo
24054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24055 ## Running $as_me. ##
24056 _ASBOX
24057 echo "$ac_log"
24058 } >&5
24060 _ACEOF
24061 cat >>$CONFIG_STATUS <<_ACEOF
24063 # INIT-COMMANDS
24065 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24067 _ACEOF
24069 cat >>$CONFIG_STATUS <<\_ACEOF
24071 # Handling of arguments.
24072 for ac_config_target in $ac_config_targets
24074 case $ac_config_target in
24075 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24077 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24078 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24079 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24080 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24081 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24082 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24083 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24084 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24085 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24086 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24087 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24089 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24091 { (exit 1); exit 1; }; };;
24092 esac
24093 done
24096 # If the user did not use the arguments to specify the items to instantiate,
24097 # then the envvar interface is used. Set only those that are not.
24098 # We use the long form for the default assignment because of an extremely
24099 # bizarre bug on SunOS 4.1.3.
24100 if $ac_need_defaults; then
24101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24102 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24103 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24106 # Have a temporary directory for convenience. Make it in the build tree
24107 # simply because there is no reason against having it here, and in addition,
24108 # creating and moving files from /tmp can sometimes cause problems.
24109 # Hook for its removal unless debugging.
24110 # Note that there is a small window in which the directory will not be cleaned:
24111 # after its creation but before its name has been assigned to `$tmp'.
24112 $debug ||
24114 tmp=
24115 trap 'exit_status=$?
24116 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24118 trap '{ (exit 1); exit 1; }' 1 2 13 15
24120 # Create a (secure) tmp directory for tmp files.
24123 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24124 test -n "$tmp" && test -d "$tmp"
24125 } ||
24127 tmp=./conf$$-$RANDOM
24128 (umask 077 && mkdir "$tmp")
24129 } ||
24131 echo "$me: cannot create a temporary directory in ." >&2
24132 { (exit 1); exit 1; }
24136 # Set up the sed scripts for CONFIG_FILES section.
24139 # No need to generate the scripts if there are no CONFIG_FILES.
24140 # This happens for instance when ./config.status config.h
24141 if test -n "$CONFIG_FILES"; then
24143 _ACEOF
24147 ac_delim='%!_!# '
24148 for ac_last_try in false false false false false :; do
24149 cat >conf$$subs.sed <<_ACEOF
24150 SHELL!$SHELL$ac_delim
24151 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24152 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24153 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24154 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24155 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24156 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24157 exec_prefix!$exec_prefix$ac_delim
24158 prefix!$prefix$ac_delim
24159 program_transform_name!$program_transform_name$ac_delim
24160 bindir!$bindir$ac_delim
24161 sbindir!$sbindir$ac_delim
24162 libexecdir!$libexecdir$ac_delim
24163 datarootdir!$datarootdir$ac_delim
24164 datadir!$datadir$ac_delim
24165 sysconfdir!$sysconfdir$ac_delim
24166 sharedstatedir!$sharedstatedir$ac_delim
24167 localstatedir!$localstatedir$ac_delim
24168 includedir!$includedir$ac_delim
24169 oldincludedir!$oldincludedir$ac_delim
24170 docdir!$docdir$ac_delim
24171 infodir!$infodir$ac_delim
24172 htmldir!$htmldir$ac_delim
24173 dvidir!$dvidir$ac_delim
24174 pdfdir!$pdfdir$ac_delim
24175 psdir!$psdir$ac_delim
24176 libdir!$libdir$ac_delim
24177 localedir!$localedir$ac_delim
24178 mandir!$mandir$ac_delim
24179 DEFS!$DEFS$ac_delim
24180 ECHO_C!$ECHO_C$ac_delim
24181 ECHO_N!$ECHO_N$ac_delim
24182 ECHO_T!$ECHO_T$ac_delim
24183 LIBS!$LIBS$ac_delim
24184 build_alias!$build_alias$ac_delim
24185 host_alias!$host_alias$ac_delim
24186 target_alias!$target_alias$ac_delim
24187 MAINT!$MAINT$ac_delim
24188 build!$build$ac_delim
24189 build_cpu!$build_cpu$ac_delim
24190 build_vendor!$build_vendor$ac_delim
24191 build_os!$build_os$ac_delim
24192 host!$host$ac_delim
24193 host_cpu!$host_cpu$ac_delim
24194 host_vendor!$host_vendor$ac_delim
24195 host_os!$host_os$ac_delim
24196 CC!$CC$ac_delim
24197 CFLAGS!$CFLAGS$ac_delim
24198 LDFLAGS!$LDFLAGS$ac_delim
24199 CPPFLAGS!$CPPFLAGS$ac_delim
24200 ac_ct_CC!$ac_ct_CC$ac_delim
24201 EXEEXT!$EXEEXT$ac_delim
24202 OBJEXT!$OBJEXT$ac_delim
24203 CPP!$CPP$ac_delim
24204 GREP!$GREP$ac_delim
24205 EGREP!$EGREP$ac_delim
24206 LN_S!$LN_S$ac_delim
24207 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24208 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24209 INSTALL_DATA!$INSTALL_DATA$ac_delim
24210 RANLIB!$RANLIB$ac_delim
24211 INSTALL_INFO!$INSTALL_INFO$ac_delim
24212 GZIP_PROG!$GZIP_PROG$ac_delim
24213 MAKEINFO!$MAKEINFO$ac_delim
24214 LIBSOUND!$LIBSOUND$ac_delim
24215 PKG_CONFIG!$PKG_CONFIG$ac_delim
24216 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24217 ALSA_LIBS!$ALSA_LIBS$ac_delim
24218 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24219 SET_MAKE!$SET_MAKE$ac_delim
24220 XMKMF!$XMKMF$ac_delim
24221 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24222 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24223 RSVG_LIBS!$RSVG_LIBS$ac_delim
24224 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24225 GTK_LIBS!$GTK_LIBS$ac_delim
24226 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24227 DBUS_LIBS!$DBUS_LIBS$ac_delim
24228 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24229 XFT_LIBS!$XFT_LIBS$ac_delim
24230 ALLOCA!$ALLOCA$ac_delim
24231 liblockfile!$liblockfile$ac_delim
24232 LIBOBJS!$LIBOBJS$ac_delim
24233 NEED_SETGID!$NEED_SETGID$ac_delim
24234 KMEM_GROUP!$KMEM_GROUP$ac_delim
24235 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24236 GETOPT_H!$GETOPT_H$ac_delim
24237 GETOPTOBJS!$GETOPTOBJS$ac_delim
24238 version!$version$ac_delim
24239 configuration!$configuration$ac_delim
24240 canonical!$canonical$ac_delim
24241 srcdir!$srcdir$ac_delim
24242 lispdir!$lispdir$ac_delim
24243 locallisppath!$locallisppath$ac_delim
24244 lisppath!$lisppath$ac_delim
24245 x_default_search_path!$x_default_search_path$ac_delim
24246 etcdir!$etcdir$ac_delim
24247 _ACEOF
24249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24250 break
24251 elif $ac_last_try; then
24252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24253 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24254 { (exit 1); exit 1; }; }
24255 else
24256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24258 done
24260 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24261 if test -n "$ac_eof"; then
24262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24263 ac_eof=`expr $ac_eof + 1`
24266 cat >>$CONFIG_STATUS <<_ACEOF
24267 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24269 _ACEOF
24270 sed '
24271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24272 s/^/s,@/; s/!/@,|#_!!_#|/
24275 s/'"$ac_delim"'$/,g/; t
24276 s/$/\\/; p
24277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24278 ' >>$CONFIG_STATUS <conf$$subs.sed
24279 rm -f conf$$subs.sed
24280 cat >>$CONFIG_STATUS <<_ACEOF
24281 CEOF$ac_eof
24282 _ACEOF
24285 ac_delim='%!_!# '
24286 for ac_last_try in false false false false false :; do
24287 cat >conf$$subs.sed <<_ACEOF
24288 archlibdir!$archlibdir$ac_delim
24289 bitmapdir!$bitmapdir$ac_delim
24290 gamedir!$gamedir$ac_delim
24291 gameuser!$gameuser$ac_delim
24292 c_switch_system!$c_switch_system$ac_delim
24293 c_switch_machine!$c_switch_machine$ac_delim
24294 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24295 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24296 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24297 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24298 machfile!$machfile$ac_delim
24299 opsysfile!$opsysfile$ac_delim
24300 carbon_appdir!$carbon_appdir$ac_delim
24301 LTLIBOBJS!$LTLIBOBJS$ac_delim
24302 _ACEOF
24304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24305 break
24306 elif $ac_last_try; then
24307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24309 { (exit 1); exit 1; }; }
24310 else
24311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24313 done
24315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24316 if test -n "$ac_eof"; then
24317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24318 ac_eof=`expr $ac_eof + 1`
24321 cat >>$CONFIG_STATUS <<_ACEOF
24322 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24324 _ACEOF
24325 sed '
24326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24327 s/^/s,@/; s/!/@,|#_!!_#|/
24330 s/'"$ac_delim"'$/,g/; t
24331 s/$/\\/; p
24332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24333 ' >>$CONFIG_STATUS <conf$$subs.sed
24334 rm -f conf$$subs.sed
24335 cat >>$CONFIG_STATUS <<_ACEOF
24336 :end
24337 s/|#_!!_#|//g
24338 CEOF$ac_eof
24339 _ACEOF
24342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24344 # trailing colons and then remove the whole line if VPATH becomes empty
24345 # (actually we leave an empty line to preserve line numbers).
24346 if test "x$srcdir" = x.; then
24347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24348 s/:*\$(srcdir):*/:/
24349 s/:*\${srcdir}:*/:/
24350 s/:*@srcdir@:*/:/
24351 s/^\([^=]*=[ ]*\):*/\1/
24352 s/:*$//
24353 s/^[^=]*=[ ]*$//
24357 cat >>$CONFIG_STATUS <<\_ACEOF
24358 fi # test -n "$CONFIG_FILES"
24361 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24363 case $ac_tag in
24364 :[FHLC]) ac_mode=$ac_tag; continue;;
24365 esac
24366 case $ac_mode$ac_tag in
24367 :[FHL]*:*);;
24368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24370 { (exit 1); exit 1; }; };;
24371 :[FH]-) ac_tag=-:-;;
24372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24373 esac
24374 ac_save_IFS=$IFS
24375 IFS=:
24376 set x $ac_tag
24377 IFS=$ac_save_IFS
24378 shift
24379 ac_file=$1
24380 shift
24382 case $ac_mode in
24383 :L) ac_source=$1;;
24384 :[FH])
24385 ac_file_inputs=
24386 for ac_f
24388 case $ac_f in
24389 -) ac_f="$tmp/stdin";;
24390 *) # Look for the file first in the build tree, then in the source tree
24391 # (if the path is not absolute). The absolute path cannot be DOS-style,
24392 # because $ac_f cannot contain `:'.
24393 test -f "$ac_f" ||
24394 case $ac_f in
24395 [\\/$]*) false;;
24396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24397 esac ||
24398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24400 { (exit 1); exit 1; }; };;
24401 esac
24402 ac_file_inputs="$ac_file_inputs $ac_f"
24403 done
24405 # Let's still pretend it is `configure' which instantiates (i.e., don't
24406 # use $as_me), people would be surprised to read:
24407 # /* config.h. Generated by config.status. */
24408 configure_input="Generated from "`IFS=:
24409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24410 if test x"$ac_file" != x-; then
24411 configure_input="$ac_file. $configure_input"
24412 { echo "$as_me:$LINENO: creating $ac_file" >&5
24413 echo "$as_me: creating $ac_file" >&6;}
24416 case $ac_tag in
24417 *:-:* | *:-) cat >"$tmp/stdin";;
24418 esac
24420 esac
24422 ac_dir=`$as_dirname -- "$ac_file" ||
24423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$ac_file" : 'X\(//\)[^/]' \| \
24425 X"$ac_file" : 'X\(//\)$' \| \
24426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24427 echo X"$ac_file" |
24428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24429 s//\1/
24432 /^X\(\/\/\)[^/].*/{
24433 s//\1/
24436 /^X\(\/\/\)$/{
24437 s//\1/
24440 /^X\(\/\).*/{
24441 s//\1/
24444 s/.*/./; q'`
24445 { as_dir="$ac_dir"
24446 case $as_dir in #(
24447 -*) as_dir=./$as_dir;;
24448 esac
24449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24450 as_dirs=
24451 while :; do
24452 case $as_dir in #(
24453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24454 *) as_qdir=$as_dir;;
24455 esac
24456 as_dirs="'$as_qdir' $as_dirs"
24457 as_dir=`$as_dirname -- "$as_dir" ||
24458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24459 X"$as_dir" : 'X\(//\)[^/]' \| \
24460 X"$as_dir" : 'X\(//\)$' \| \
24461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24462 echo X"$as_dir" |
24463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24464 s//\1/
24467 /^X\(\/\/\)[^/].*/{
24468 s//\1/
24471 /^X\(\/\/\)$/{
24472 s//\1/
24475 /^X\(\/\).*/{
24476 s//\1/
24479 s/.*/./; q'`
24480 test -d "$as_dir" && break
24481 done
24482 test -z "$as_dirs" || eval "mkdir $as_dirs"
24483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24485 { (exit 1); exit 1; }; }; }
24486 ac_builddir=.
24488 case "$ac_dir" in
24489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24492 # A ".." for each directory in $ac_dir_suffix.
24493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24494 case $ac_top_builddir_sub in
24495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24497 esac ;;
24498 esac
24499 ac_abs_top_builddir=$ac_pwd
24500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24501 # for backward compatibility:
24502 ac_top_builddir=$ac_top_build_prefix
24504 case $srcdir in
24505 .) # We are building in place.
24506 ac_srcdir=.
24507 ac_top_srcdir=$ac_top_builddir_sub
24508 ac_abs_top_srcdir=$ac_pwd ;;
24509 [\\/]* | ?:[\\/]* ) # Absolute name.
24510 ac_srcdir=$srcdir$ac_dir_suffix;
24511 ac_top_srcdir=$srcdir
24512 ac_abs_top_srcdir=$srcdir ;;
24513 *) # Relative name.
24514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24515 ac_top_srcdir=$ac_top_build_prefix$srcdir
24516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24517 esac
24518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24521 case $ac_mode in
24524 # CONFIG_FILE
24527 case $INSTALL in
24528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24530 esac
24531 _ACEOF
24533 cat >>$CONFIG_STATUS <<\_ACEOF
24534 # If the template does not know about datarootdir, expand it.
24535 # FIXME: This hack should be removed a few years after 2.60.
24536 ac_datarootdir_hack=; ac_datarootdir_seen=
24538 case `sed -n '/datarootdir/ {
24542 /@datadir@/p
24543 /@docdir@/p
24544 /@infodir@/p
24545 /@localedir@/p
24546 /@mandir@/p
24547 ' $ac_file_inputs` in
24548 *datarootdir*) ac_datarootdir_seen=yes;;
24549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24550 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24551 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24552 _ACEOF
24553 cat >>$CONFIG_STATUS <<_ACEOF
24554 ac_datarootdir_hack='
24555 s&@datadir@&$datadir&g
24556 s&@docdir@&$docdir&g
24557 s&@infodir@&$infodir&g
24558 s&@localedir@&$localedir&g
24559 s&@mandir@&$mandir&g
24560 s&\\\${datarootdir}&$datarootdir&g' ;;
24561 esac
24562 _ACEOF
24564 # Neutralize VPATH when `$srcdir' = `.'.
24565 # Shell code in configure.ac might set extrasub.
24566 # FIXME: do we really want to maintain this feature?
24567 cat >>$CONFIG_STATUS <<_ACEOF
24568 sed "$ac_vpsub
24569 $extrasub
24570 _ACEOF
24571 cat >>$CONFIG_STATUS <<\_ACEOF
24573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24574 s&@configure_input@&$configure_input&;t t
24575 s&@top_builddir@&$ac_top_builddir_sub&;t t
24576 s&@srcdir@&$ac_srcdir&;t t
24577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24578 s&@top_srcdir@&$ac_top_srcdir&;t t
24579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24580 s&@builddir@&$ac_builddir&;t t
24581 s&@abs_builddir@&$ac_abs_builddir&;t t
24582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24583 s&@INSTALL@&$ac_INSTALL&;t t
24584 $ac_datarootdir_hack
24585 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24590 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24591 which seems to be undefined. Please make sure it is defined." >&5
24592 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24593 which seems to be undefined. Please make sure it is defined." >&2;}
24595 rm -f "$tmp/stdin"
24596 case $ac_file in
24597 -) cat "$tmp/out"; rm -f "$tmp/out";;
24598 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24599 esac
24603 # CONFIG_HEADER
24605 _ACEOF
24607 # Transform confdefs.h into a sed script `conftest.defines', that
24608 # substitutes the proper values into config.h.in to produce config.h.
24609 rm -f conftest.defines conftest.tail
24610 # First, append a space to every undef/define line, to ease matching.
24611 echo 's/$/ /' >conftest.defines
24612 # Then, protect against being on the right side of a sed subst, or in
24613 # an unquoted here document, in config.status. If some macros were
24614 # called several times there might be several #defines for the same
24615 # symbol, which is useless. But do not sort them, since the last
24616 # AC_DEFINE must be honored.
24617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24618 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24619 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24620 # PARAMS is the parameter list in the macro definition--in most cases, it's
24621 # just an empty string.
24622 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24623 ac_dB='\\)[ (].*,\\1define\\2'
24624 ac_dC=' '
24625 ac_dD=' ,'
24627 uniq confdefs.h |
24628 sed -n '
24629 t rset
24630 :rset
24631 s/^[ ]*#[ ]*define[ ][ ]*//
24632 t ok
24635 s/[\\&,]/\\&/g
24636 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24637 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24638 ' >>conftest.defines
24640 # Remove the space that was appended to ease matching.
24641 # Then replace #undef with comments. This is necessary, for
24642 # example, in the case of _POSIX_SOURCE, which is predefined and required
24643 # on some systems where configure will not decide to define it.
24644 # (The regexp can be short, since the line contains either #define or #undef.)
24645 echo 's/ $//
24646 s,^[ #]*u.*,/* & */,' >>conftest.defines
24648 # Break up conftest.defines:
24649 ac_max_sed_lines=50
24651 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24652 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24653 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24654 # et cetera.
24655 ac_in='$ac_file_inputs'
24656 ac_out='"$tmp/out1"'
24657 ac_nxt='"$tmp/out2"'
24659 while :
24661 # Write a here document:
24662 cat >>$CONFIG_STATUS <<_ACEOF
24663 # First, check the format of the line:
24664 cat >"\$tmp/defines.sed" <<\\CEOF
24665 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24666 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24668 :def
24669 _ACEOF
24670 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24671 echo 'CEOF
24672 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24673 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24674 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24675 grep . conftest.tail >/dev/null || break
24676 rm -f conftest.defines
24677 mv conftest.tail conftest.defines
24678 done
24679 rm -f conftest.defines conftest.tail
24681 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24682 cat >>$CONFIG_STATUS <<\_ACEOF
24683 if test x"$ac_file" != x-; then
24684 echo "/* $configure_input */" >"$tmp/config.h"
24685 cat "$ac_result" >>"$tmp/config.h"
24686 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24687 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24688 echo "$as_me: $ac_file is unchanged" >&6;}
24689 else
24690 rm -f $ac_file
24691 mv "$tmp/config.h" $ac_file
24693 else
24694 echo "/* $configure_input */"
24695 cat "$ac_result"
24697 rm -f "$tmp/out12"
24700 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24701 echo "$as_me: executing $ac_file commands" >&6;}
24703 esac
24706 case $ac_file$ac_mode in
24707 "default":C)
24709 ### Make the necessary directories, if they don't exist.
24710 for dir in etc lisp ; do
24711 test -d ${dir} || mkdir ${dir}
24712 done
24714 # Build src/Makefile from ${srcdir}/src/Makefile.c
24715 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24716 # This must be done after src/config.h is built, since we rely on that file.
24718 # Now get this: Some word that is part of the ${srcdir} directory name
24719 # or the ${configuration} value might, just might, happen to be an
24720 # identifier like `sun4' or `i386' or something, and be predefined by
24721 # the C preprocessor to some helpful value like 1, or maybe the empty
24722 # string. Needless to say consequent macro substitutions are less
24723 # than conducive to the makefile finding the correct directory.
24724 undefs="`echo $top_srcdir $configuration $canonical |
24725 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24726 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24729 echo creating src/epaths.h
24730 ${MAKE-make} epaths-force
24732 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24733 # `..' to `. .' unless invoked with -traditional
24735 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24736 CPPFLAGS="$CPPFLAGS -traditional"
24739 echo creating lib-src/Makefile
24740 ( cd lib-src
24741 rm -f junk.c junk1.c junk2.c
24742 sed -e '/start of cpp stuff/q' \
24743 < Makefile.c > junk1.c
24744 sed -e '1,/start of cpp stuff/d'\
24745 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24746 < Makefile.c > junk.c
24747 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24748 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24749 cat junk1.c junk2.c > Makefile.new
24750 rm -f junk.c junk1.c junk2.c
24751 chmod 444 Makefile.new
24752 mv -f Makefile.new Makefile
24755 echo creating src/Makefile
24756 ( cd src
24757 rm -f junk.c junk1.c junk2.c
24758 sed -e '/start of cpp stuff/q' \
24759 < Makefile.c > junk1.c
24760 sed -e '1,/start of cpp stuff/d'\
24761 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24762 < Makefile.c > junk.c
24763 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24764 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24765 cat junk1.c junk2.c > Makefile.new
24766 rm -f junk.c junk1.c junk2.c
24767 chmod 444 Makefile.new
24768 mv -f Makefile.new Makefile
24771 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24772 echo creating src/.gdbinit
24773 echo source $srcdir/src/.gdbinit > src/.gdbinit
24776 # This is how we know whether to re-run configure in certain cases.
24777 touch src/config.stamp
24781 esac
24782 done # for ac_tag
24785 { (exit 0); exit 0; }
24786 _ACEOF
24787 chmod +x $CONFIG_STATUS
24788 ac_clean_files=$ac_clean_files_save
24791 # configure is writing to config.log, and then calls config.status.
24792 # config.status does its own redirection, appending to config.log.
24793 # Unfortunately, on DOS this fails, as config.log is still kept open
24794 # by configure, so config.status won't be able to write to it; its
24795 # output is simply discarded. So we exec the FD to /dev/null,
24796 # effectively closing config.log, so it can be properly (re)opened and
24797 # appended to by config.status. When coming back to configure, we
24798 # need to make the FD available again.
24799 if test "$no_create" != yes; then
24800 ac_cs_success=:
24801 ac_config_status_args=
24802 test "$silent" = yes &&
24803 ac_config_status_args="$ac_config_status_args --quiet"
24804 exec 5>/dev/null
24805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24806 exec 5>>config.log
24807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24808 # would make configure fail if this is the last instruction.
24809 $ac_cs_success || { (exit 1); exit 1; }