Merge from emacs--rel--22
[emacs.git] / configure
blobfe96275bd427c3431957eb9556c79218ee5544f2
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 No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
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 --with-xpm use -lXpm for displaying XPM images
1348 --with-jpeg use -ljpeg for displaying JPEG images
1349 --with-tiff use -ltiff for displaying TIFF images
1350 --with-gif use -lgif (or -lungif) for displaying GIF images
1351 --with-png use -lpng for displaying PNG images
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1353 --with-rsvg use -lrsvg-2 for displaying SVG images
1354 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1355 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1356 --without-toolkit-scroll-bars
1357 don't use Motif or Xaw3d scroll bars
1358 --without-xaw3d don't use Xaw3d
1359 --without-xim don't use X11 XIM
1360 --without-carbon don't use Carbon GUI on Mac OS X
1361 --with-dbus use D-Bus
1362 --with-x use the X Window System
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1373 XMKMF Path to xmkmf, Makefile generator for X Window System
1375 Use these variables to override the choices made by `configure' or to help
1376 it to find libraries and programs with nonstandard names/locations.
1378 _ACEOF
1379 ac_status=$?
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1386 ac_builddir=.
1388 case "$ac_dir" in
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 esac ;;
1398 esac
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1404 case $srcdir in
1405 .) # We are building in place.
1406 ac_srcdir=.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1413 *) # Relative name.
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 esac
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1428 else
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 fi || ac_status=$?
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1432 done
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1437 cat <<\_ACEOF
1438 emacs configure 23.0.50
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1445 _ACEOF
1446 exit
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by emacs $as_me 23.0.50, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1455 $ $0 $@
1457 _ACEOF
1458 exec 5>>config.log
1460 cat <<_ASUNAME
1461 ## --------- ##
1462 ## Platform. ##
1463 ## --------- ##
1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1482 _ASUNAME
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1490 done
1491 IFS=$as_save_IFS
1493 } >&5
1495 cat >&5 <<_ACEOF
1498 ## ----------- ##
1499 ## Core tests. ##
1500 ## ----------- ##
1502 _ACEOF
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_configure_args=
1511 ac_configure_args0=
1512 ac_configure_args1=
1513 ac_must_keep_next=false
1514 for ac_pass in 1 2
1516 for ac_arg
1518 case $ac_arg in
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1522 continue ;;
1523 *\'*)
1524 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 esac
1526 case $ac_pass in
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1532 else
1533 case $ac_arg in
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 esac
1542 -* ) ac_must_keep_next=true ;;
1543 esac
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 esac
1548 done
1549 done
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1561 echo
1563 cat <<\_ASBOX
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1567 _ASBOX
1568 echo
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1572 eval ac_val=\$$ac_var
1573 case $ac_val in #(
1574 *${as_nl}*)
1575 case $ac_var in #(
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 esac
1579 case $ac_var in #(
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1582 esac ;;
1583 esac
1584 done
1585 (set) 2>&1 |
1586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1588 sed -n \
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 ;; #(
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1595 esac |
1596 sort
1598 echo
1600 cat <<\_ASBOX
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1604 _ASBOX
1605 echo
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1609 case $ac_val in
1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 esac
1612 echo "$ac_var='\''$ac_val'\''"
1613 done | sort
1614 echo
1616 if test -n "$ac_subst_files"; then
1617 cat <<\_ASBOX
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1621 _ASBOX
1622 echo
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1626 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac
1629 echo "$ac_var='\''$ac_val'\''"
1630 done | sort
1631 echo
1634 if test -s confdefs.h; then
1635 cat <<\_ASBOX
1636 ## ----------- ##
1637 ## confdefs.h. ##
1638 ## ----------- ##
1639 _ASBOX
1640 echo
1641 cat confdefs.h
1642 echo
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 done
1655 ac_signal=0
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 _ACEOF
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1693 else
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1697 shift
1698 for ac_site_file
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1704 . "$ac_site_file"
1706 done
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1714 case $cache_file in
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1717 esac
1719 else
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1722 >$cache_file
1725 ac_header_list="$ac_header_list sys/time.h"
1726 ac_header_list="$ac_header_list unistd.h"
1727 ac_func_list="$ac_func_list alarm"
1728 # Check that the precious variables saved in the cache have kept the same
1729 # value.
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1737 set,)
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1741 ,set)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,);;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751 echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753 echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1755 fi;;
1756 esac
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1759 case $ac_new_val in
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1762 esac
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 esac
1768 done
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1812 test "$program_prefix" != NONE &&
1813 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE &&
1816 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1817 # Double any \ or $. echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF >conftest.sed
1820 s/[\\$]/&&/g;s/;s,x,x,$//
1821 _ACEOF
1822 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1823 rm -f conftest.sed
1826 lispdir='${datadir}/emacs/${version}/lisp'
1827 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1828 '${datadir}/emacs/site-lisp'
1829 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1830 etcdir='${datadir}/emacs/${version}/etc'
1831 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1832 docdir='${datadir}/emacs/${version}/etc'
1833 gamedir='${localstatedir}/games/emacs'
1835 gameuser=games
1839 # Check whether --with-gcc was given.
1840 if test "${with_gcc+set}" = set; then
1841 withval=$with_gcc;
1846 # Check whether --with-pop was given.
1847 if test "${with_pop+set}" = set; then
1848 withval=$with_pop; if test "$withval" = yes; then
1849 cat >>confdefs.h <<\_ACEOF
1850 #define MAIL_USE_POP 1
1851 _ACEOF
1853 else :
1855 else
1856 cat >>confdefs.h <<\_ACEOF
1857 #define MAIL_USE_POP 1
1858 _ACEOF
1865 # Check whether --with-kerberos was given.
1866 if test "${with_kerberos+set}" = set; then
1867 withval=$with_kerberos; if test "$withval" = yes; then
1868 cat >>confdefs.h <<\_ACEOF
1869 #define KERBEROS 1
1870 _ACEOF
1878 # Check whether --with-kerberos5 was given.
1879 if test "${with_kerberos5+set}" = set; then
1880 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1881 if test "${with_kerberos+set}" != set; then
1882 with_kerberos=yes
1883 cat >>confdefs.h <<\_ACEOF
1884 #define KERBEROS 1
1885 _ACEOF
1889 cat >>confdefs.h <<\_ACEOF
1890 #define KERBEROS5 1
1891 _ACEOF
1898 # Check whether --with-hesiod was given.
1899 if test "${with_hesiod+set}" = set; then
1900 withval=$with_hesiod; if test "$withval" = yes; then
1902 cat >>confdefs.h <<\_ACEOF
1903 #define HESIOD 1
1904 _ACEOF
1911 # Check whether --with-sound was given.
1912 if test "${with_sound+set}" = set; then
1913 withval=$with_sound;
1918 # Check whether --with-x-toolkit was given.
1919 if test "${with_x_toolkit+set}" = set; then
1920 withval=$with_x_toolkit; case "${withval}" in
1921 y | ye | yes ) val=gtk ;;
1922 n | no ) val=no ;;
1923 l | lu | luc | luci | lucid ) val=lucid ;;
1924 a | at | ath | athe | athen | athena ) val=athena ;;
1925 m | mo | mot | moti | motif ) val=motif ;;
1926 g | gt | gtk ) val=gtk ;;
1928 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1929 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1930 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1931 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1932 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1933 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1934 { (exit 1); exit 1; }; }
1936 esac
1937 with_x_toolkit=$val
1943 # Check whether --with-xpm was given.
1944 if test "${with_xpm+set}" = set; then
1945 withval=$with_xpm;
1949 # Check whether --with-jpeg was given.
1950 if test "${with_jpeg+set}" = set; then
1951 withval=$with_jpeg;
1955 # Check whether --with-tiff was given.
1956 if test "${with_tiff+set}" = set; then
1957 withval=$with_tiff;
1961 # Check whether --with-gif was given.
1962 if test "${with_gif+set}" = set; then
1963 withval=$with_gif;
1967 # Check whether --with-png was given.
1968 if test "${with_png+set}" = set; then
1969 withval=$with_png;
1973 # Check whether --with-gpm was given.
1974 if test "${with_gpm+set}" = set; then
1975 withval=$with_gpm;
1979 # Check whether --with-rsvg was given.
1980 if test "${with_rsvg+set}" = set; then
1981 withval=$with_rsvg;
1985 # Check whether --with-gtk was given.
1986 if test "${with_gtk+set}" = set; then
1987 withval=$with_gtk;
1991 # Check whether --with-pkg-config-prog was given.
1992 if test "${with_pkg_config_prog+set}" = set; then
1993 withval=$with_pkg_config_prog;
1997 # Check whether --with-toolkit-scroll-bars was given.
1998 if test "${with_toolkit_scroll_bars+set}" = set; then
1999 withval=$with_toolkit_scroll_bars;
2003 # Check whether --with-xaw3d was given.
2004 if test "${with_xaw3d+set}" = set; then
2005 withval=$with_xaw3d;
2009 # Check whether --with-xim was given.
2010 if test "${with_xim+set}" = set; then
2011 withval=$with_xim;
2015 # Check whether --with-carbon was given.
2016 if test "${with_carbon+set}" = set; then
2017 withval=$with_carbon;
2021 # Check whether --with-dbus was given.
2022 if test "${with_dbus+set}" = set; then
2023 withval=$with_dbus;
2027 # Check whether --enable-carbon-app was given.
2028 if test "${enable_carbon_app+set}" = set; then
2029 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2033 # Check whether --enable-asserts was given.
2034 if test "${enable_asserts+set}" = set; then
2035 enableval=$enable_asserts; USE_XASSERTS=$enableval
2036 else
2037 USE_XASSERTS=no
2041 # Check whether --enable-maintainer-mode was given.
2042 if test "${enable_maintainer_mode+set}" = set; then
2043 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2044 else
2045 USE_MAINTAINER_MODE=no
2048 if test $USE_MAINTAINER_MODE = yes; then
2049 MAINT=
2050 else
2051 MAINT=#
2055 # Check whether --enable-locallisppath was given.
2056 if test "${enable_locallisppath+set}" = set; then
2057 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2058 locallisppath=
2059 elif test "${enableval}" != "yes"; then
2060 locallisppath=${enableval}
2065 #### Make srcdir absolute, if it isn't already. It's important to
2066 #### avoid running the path through pwd unnecessarily, since pwd can
2067 #### give you automounter prefixes, which can go away. We do all this
2068 #### so Emacs can find its files when run uninstalled.
2069 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2070 unset CDPATH
2071 case "${srcdir}" in
2072 /* ) ;;
2074 ## We may be able to use the $PWD environment variable to make this
2075 ## absolute. But sometimes PWD is inaccurate.
2076 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2077 ## but that tested only for a well-formed and valid PWD,
2078 ## it did not object when PWD was well-formed and valid but just wrong.
2079 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2080 then
2081 srcdir="$PWD"
2082 else
2083 srcdir="`(cd ${srcdir}; pwd)`"
2086 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2087 esac
2089 #### Check if the source directory already has a configured system in it.
2090 if test `pwd` != `(cd ${srcdir} && pwd)` \
2091 && test -f "${srcdir}/src/config.h" ; then
2092 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2093 as a build directory right now; it has been configured in its own
2094 right. To configure in another directory as well, you MUST
2095 use GNU make. If you do not have GNU make, then you must
2096 now do \`make distclean' in ${srcdir},
2097 and then run $0 again." >&5
2098 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2099 as a build directory right now; it has been configured in its own
2100 right. To configure in another directory as well, you MUST
2101 use GNU make. If you do not have GNU make, then you must
2102 now do \`make distclean' in ${srcdir},
2103 and then run $0 again." >&2;}
2106 #### Given the configuration name, set machfile and opsysfile to the
2107 #### names of the m/*.h and s/*.h files we should use.
2109 ### Canonicalize the configuration name.
2111 ac_aux_dir=
2112 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2113 if test -f "$ac_dir/install-sh"; then
2114 ac_aux_dir=$ac_dir
2115 ac_install_sh="$ac_aux_dir/install-sh -c"
2116 break
2117 elif test -f "$ac_dir/install.sh"; then
2118 ac_aux_dir=$ac_dir
2119 ac_install_sh="$ac_aux_dir/install.sh -c"
2120 break
2121 elif test -f "$ac_dir/shtool"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/shtool install -c"
2124 break
2126 done
2127 if test -z "$ac_aux_dir"; then
2128 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2129 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2130 { (exit 1); exit 1; }; }
2133 # These three variables are undocumented and unsupported,
2134 # and are intended to be withdrawn in a future Autoconf release.
2135 # They can cause serious problems if a builder's source tree is in a directory
2136 # whose full name contains unusual characters.
2137 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2138 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2139 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 ac_build_alias=$build_alias
2154 test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2173 esac
2174 build=$ac_cv_build
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_build
2177 shift
2178 build_cpu=$1
2179 build_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 build_os=$*
2184 IFS=$ac_save_IFS
2185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195 else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 case $ac_cv_host in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2210 esac
2211 host=$ac_cv_host
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_host
2214 shift
2215 host_cpu=$1
2216 host_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 host_os=$*
2221 IFS=$ac_save_IFS
2222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225 canonical=$host
2226 configuration=${host_alias-${build_alias-$host}}
2230 ### If you add support for a new configuration, add code to this
2231 ### switch statement to recognize your configuration name and select
2232 ### the appropriate operating system and machine description files.
2234 ### You would hope that you could choose an m/*.h file pretty much
2235 ### based on the machine portion of the configuration name, and an s-
2236 ### file based on the operating system portion. However, it turns out
2237 ### that each m/*.h file is pretty manufacturer-specific - for
2238 ### example hp9000s300.h is a 68000 machine;
2239 ### mips.h, pmax.h are all MIPS
2240 ### machines. So we basically have to have a special case for each
2241 ### configuration name.
2243 ### As far as handling version numbers on operating systems is
2244 ### concerned, make sure things will fail in a fixable way. If
2245 ### /etc/MACHINES doesn't say anything about version numbers, be
2246 ### prepared to handle anything reasonably. If version numbers
2247 ### matter, be sure /etc/MACHINES says something about it.
2249 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2250 ### "System V Release 4"; he writes, "The old convention encouraged
2251 ### confusion between `system' and `release' levels'."
2253 machine='' opsys='' unported=no
2254 case "${canonical}" in
2256 ## FreeBSD ports
2257 *-*-freebsd* )
2258 opsys=freebsd
2259 case "${canonical}" in
2260 alpha*-*-freebsd*) machine=alpha ;;
2261 ia64-*-freebsd*) machine=ia64 ;;
2262 sparc64-*-freebsd*) machine=sparc ;;
2263 powerpc-*-freebsd*) machine=macppc ;;
2264 i[3456]86-*-freebsd*) machine=intel386 ;;
2265 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2266 esac
2269 ## FreeBSD kernel + glibc based userland
2270 *-*-kfreebsd*gnu* )
2271 opsys=gnu-kfreebsd
2272 case "${canonical}" in
2273 alpha*-*-kfreebsd*) machine=alpha ;;
2274 ia64-*-kfreebsd*) machine=ia64 ;;
2275 sparc64-*-kfreebsd*) machine=sparc ;;
2276 powerpc-*-kfreebsd*) machine=macppc ;;
2277 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2278 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2279 esac
2282 ## NetBSD ports
2283 *-*-netbsd* )
2284 opsys=netbsd
2285 if test -f /usr/lib/crti.o; then
2287 cat >>confdefs.h <<\_ACEOF
2288 #define HAVE_CRTIN
2289 _ACEOF
2293 case "${canonical}" in
2294 alpha*-*-netbsd*) machine=alpha ;;
2295 i[3456]86-*-netbsd*) machine=intel386 ;;
2296 m68k-*-netbsd*)
2297 # This is somewhat bogus.
2298 machine=hp9000s300 ;;
2299 mips-*-netbsd*) machine=pmax ;;
2300 mipsel-*-netbsd*) machine=pmax ;;
2301 mipseb-*-netbsd*) machine=pmax ;;
2302 powerpc-*-netbsd*) machine=macppc ;;
2303 sparc*-*-netbsd*) machine=sparc ;;
2304 vax-*-netbsd*) machine=vax ;;
2305 arm-*-netbsd*) machine=arm ;;
2306 x86_64-*-netbsd*) machine=amdx86-64 ;;
2307 hppa-*-netbsd*) machine=hp800 ;;
2308 esac
2311 ## OpenBSD ports
2312 *-*-openbsd* )
2313 opsys=openbsd
2314 case "${canonical}" in
2315 alpha*-*-openbsd*) machine=alpha ;;
2316 arm-*-openbsd*) machine=arm ;;
2317 hppa-*-openbsd*) machine=hp9000s300 ;;
2318 i386-*-openbsd*) machine=intel386 ;;
2319 m68k-*-openbsd*) machine=hp9000s300 ;;
2320 mips64-*-openbsd*) machine=mips64 ;;
2321 powerpc-*-openbsd*) machine=macppc ;;
2322 sparc*-*-openbsd*) machine=sparc ;;
2323 vax-*-openbsd*) machine=vax ;;
2324 x86_64-*-openbsd*) machine=amdx86-64 ;;
2325 esac
2328 ## LynxOS ports
2329 *-*-lynxos* )
2330 opsys=lynxos
2331 case "${canonical}" in
2332 i[3456]86-*-lynxos*) machine=intel386 ;;
2333 powerpc-*-lynxos*) machine=powerpc ;;
2334 esac
2337 ## BSDI ports
2338 *-*-bsdi* )
2339 opsys=bsdi
2340 case "${canonical}" in
2341 i[345]86-*-bsdi*) machine=intel386 ;;
2342 sparc-*-bsdi*) machine=sparc ;;
2343 powerpc-*-bsdi*) machine=macppc ;;
2344 esac
2345 case "${canonical}" in
2346 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2347 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2348 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2349 *-*-bsdi3* ) opsys=bsdos3 ;;
2350 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2351 esac
2354 ## Alpha (DEC) machines.
2355 alpha*-dec-osf* )
2356 machine=alpha opsys=osf1
2357 # This is needed to find X11R6.1 libraries for certain tests.
2358 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2359 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2360 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2361 # due to non-traditional preprocessing with the current compiler
2362 # defaults. OSF 4 can also have that compiler version, and there
2363 # seems always to have been a usable /usr/bin/cpp.
2364 NON_GNU_CPP=/usr/bin/cpp
2365 case "${canonical}" in
2366 alpha*-dec-osf[5-9]*)
2367 opsys=osf5-0 ;;
2368 esac
2371 alpha*-*-linux-gnu* )
2372 machine=alpha opsys=gnu-linux
2375 arm*-*-linux-gnu* )
2376 machine=arm opsys=gnu-linux
2379 ## Apple Darwin / Mac OS X
2380 *-apple-darwin* )
2381 case "${canonical}" in
2382 i[3456]86-* ) machine=intel386 ;;
2383 powerpc-* ) machine=powermac ;;
2384 * ) unported=yes ;;
2385 esac
2386 opsys=darwin
2387 # Define CPP as follows to make autoconf work correctly.
2388 CPP="${CC-cc} -E -no-cpp-precomp"
2389 # Use fink packages if available.
2390 if test -d /sw/include && test -d /sw/lib; then
2391 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2392 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2393 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2397 ## Compaq Nonstop
2398 mips-compaq-nonstopux* )
2399 machine=nonstopux opsys=nonstopux
2402 ## Cubix QBx/386
2403 i[3456]86-cubix-sysv* )
2404 machine=intel386 opsys=usg5-3
2407 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2408 machine=pmax opsys=bsd4-2
2410 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2411 machine=pmax opsys=bsd4-3
2413 mips-dec-ultrix* )
2414 machine=pmax opsys=ultrix4-3
2416 mips-dec-osf* )
2417 machine=pmax opsys=osf1
2419 mips-dec-mach_bsd4.3* )
2420 machine=pmax opsys=mach-bsd4-3
2423 ## HP 9000 series 200 or 300
2424 m68*-hp-bsd* )
2425 machine=hp9000s300 opsys=bsd4-3
2427 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2428 m68*-hp-hpux* )
2429 case "`uname -r`" in
2430 ## Someone's system reports A.B8.05 for this.
2431 ## I wonder what other possibilities there are.
2432 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2433 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2434 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2435 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2436 *) machine=hp9000s300 opsys=hpux ;;
2437 esac
2440 ## HP 9000 series 700 and 800, running HP/UX
2441 hppa*-hp-hpux7* )
2442 machine=hp800 opsys=hpux
2444 hppa*-hp-hpux8* )
2445 machine=hp800 opsys=hpux8
2447 hppa*-hp-hpux9shr* )
2448 machine=hp800 opsys=hpux9shr
2450 hppa*-hp-hpux9* )
2451 machine=hp800 opsys=hpux9
2453 hppa*-hp-hpux10.2* )
2454 machine=hp800 opsys=hpux10-20
2456 hppa*-hp-hpux10* )
2457 machine=hp800 opsys=hpux10
2459 hppa*-hp-hpux1[1-9]* )
2460 machine=hp800 opsys=hpux11
2461 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2464 hppa*-*-linux-gnu* )
2465 machine=hp800 opsys=gnu-linux
2468 ## HP 9000 series 700 and 800, running HP/UX
2469 hppa*-hp-hpux* )
2470 ## Cross-compilation? Nah!
2471 case "`uname -r`" in
2472 ## Someone's system reports A.B8.05 for this.
2473 ## I wonder what other possibilities there are.
2474 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2475 *.08.* ) machine=hp800 opsys=hpux8 ;;
2476 *.09.* ) machine=hp800 opsys=hpux9 ;;
2477 *) machine=hp800 opsys=hpux10 ;;
2478 esac
2480 hppa*-*-nextstep* )
2481 machine=hp800 opsys=nextstep
2484 ## IBM machines
2485 i370-ibm-aix*)
2486 machine=ibm370aix opsys=usg5-3
2488 s390-*-linux-gnu* )
2489 machine=ibms390 opsys=gnu-linux
2491 s390x-*-linux-gnu* )
2492 machine=ibms390x opsys=gnu-linux
2494 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2495 machine=ibmrs6000 opsys=aix3-1
2497 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2498 machine=ibmrs6000 opsys=aix3-2-5
2500 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2501 machine=ibmrs6000 opsys=aix4-1
2503 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2504 machine=ibmrs6000 opsys=aix4-2
2506 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2507 machine=ibmrs6000 opsys=aix4-2
2509 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2510 machine=ibmrs6000 opsys=aix4-2
2512 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2513 machine=ibmrs6000 opsys=aix4
2515 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2516 machine=ibmrs6000 opsys=aix4-1
2518 rs6000-ibm-aix* | powerpc-ibm-aix* )
2519 machine=ibmrs6000 opsys=aix3-2
2522 ## Prime EXL
2523 i[3456]86-prime-sysv* )
2524 machine=i386 opsys=usg5-3
2527 ## ncr machine running svr4.3.
2528 i[3456]86-ncr-sysv4.3 )
2529 machine=ncr386 opsys=usg5-4-3
2532 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2533 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2534 i[3456]86-ncr-sysv* )
2535 machine=ncr386 opsys=usg5-4-2
2538 ## Macintosh PowerPC
2539 powerpc*-*-linux-gnu* )
2540 machine=macppc opsys=gnu-linux
2543 ## Workstations sold by MIPS
2544 ## This is not necessarily all workstations using the MIPS processor -
2545 ## Irises are produced by SGI, and DECstations by DEC.
2547 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2548 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2549 ## it gives for choosing between the alternatives seems to be "Use
2550 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2551 ## the BSD world." I'll assume that these are instructions for
2552 ## handling two odd situations, and that every other situation
2553 ## should use mips.h and usg5-2-2, they being listed first.
2554 mips-mips-usg* )
2555 machine=mips4
2556 ## Fall through to the general code at the bottom to decide on the OS.
2558 mips-mips-riscos4* )
2559 machine=mips4 opsys=bsd4-3
2560 NON_GNU_CC="cc -systype bsd43"
2561 NON_GNU_CPP="cc -systype bsd43 -E"
2563 mips-mips-riscos5* )
2564 machine=mips4 opsys=riscos5
2565 NON_GNU_CC="cc -systype bsd43"
2566 NON_GNU_CPP="cc -systype bsd43 -E"
2568 mips-mips-bsd* )
2569 machine=mips opsys=bsd4-3
2571 mips-mips-* )
2572 machine=mips opsys=usg5-2-2
2575 ## NeXT
2576 m68*-next-* | m68k-*-nextstep* )
2577 machine=m68k opsys=nextstep
2580 ## NEC EWS4800
2581 mips-nec-sysv4*)
2582 machine=ews4800 opsys=ux4800
2585 ## Siemens Nixdorf
2586 mips-siemens-sysv* | mips-sni-sysv*)
2587 machine=mips-siemens opsys=usg5-4
2588 NON_GNU_CC=/usr/ccs/bin/cc
2589 NON_GNU_CPP=/usr/ccs/lib/cpp
2592 ## Silicon Graphics machines
2593 ## Iris 4D
2594 mips-sgi-irix6.5 )
2595 machine=iris4d opsys=irix6-5
2596 # Without defining _LANGUAGE_C, things get masked out in the headers
2597 # so that, for instance, grepping for `free' in stdlib.h fails and
2598 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2599 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2600 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2602 mips-sgi-irix6* )
2603 machine=iris4d opsys=irix6-0
2604 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2605 # but presumably it does no harm.
2606 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2607 # -32 probably isn't necessary in later v.6s -- anyone know which?
2608 NON_GCC_TEST_OPTIONS=-32
2610 mips-sgi-irix5.[01]* )
2611 machine=iris4d opsys=irix5-0
2613 mips-sgi-irix5* | mips-sgi-irix* )
2614 machine=iris4d opsys=irix5-2
2617 ## Suns
2618 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2619 machine=sparc opsys=gnu-linux
2622 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2623 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2624 | rs6000-*-solaris2*)
2625 case "${canonical}" in
2626 i[3456]86-*-* ) machine=intel386 ;;
2627 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2628 powerpcle* ) machine=powerpcle ;;
2629 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2630 sparc* ) machine=sparc ;;
2631 * ) unported=yes ;;
2632 esac
2633 case "${canonical}" in
2634 *-sunos5.3* | *-solaris2.3* )
2635 opsys=sol2-3
2636 NON_GNU_CPP=/usr/ccs/lib/cpp
2638 *-sunos5.4* | *-solaris2.4* )
2639 opsys=sol2-4
2640 NON_GNU_CPP=/usr/ccs/lib/cpp
2641 RANLIB="ar -ts"
2643 *-sunos5.5* | *-solaris2.5* )
2644 opsys=sol2-5
2645 NON_GNU_CPP=/usr/ccs/lib/cpp
2646 RANLIB="ar -ts"
2648 *-sunos5.6* | *-solaris2.6* )
2649 opsys=sol2-6
2650 NON_GNU_CPP=/usr/ccs/lib/cpp
2651 RANLIB="ar -ts"
2653 *-sunos5* | *-solaris* )
2654 opsys=sol2-6
2655 emacs_check_sunpro_c=yes
2656 NON_GNU_CPP=/usr/ccs/lib/cpp
2658 * ) opsys=bsd4-2 ;;
2659 esac
2660 ## Watch out for a compiler that we know will not work.
2661 case "${canonical}" in
2662 *-solaris* | *-sunos5* )
2663 if [ "x$CC" = x/usr/ucb/cc ]; then
2664 ## /usr/ucb/cc doesn't work;
2665 ## we should find some other compiler that does work.
2666 unset CC
2669 *) ;;
2670 esac
2672 sparc-*-nextstep* )
2673 machine=sparc opsys=nextstep
2676 ## Tandem Integrity S2
2677 mips-tandem-sysv* )
2678 machine=tandem-s2 opsys=usg5-3
2681 ## Vaxen.
2682 vax-dec-* )
2683 machine=vax
2684 case "${canonical}" in
2685 *-bsd4.1* ) opsys=bsd4-1 ;;
2686 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2687 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2688 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2689 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2690 *-vms* ) opsys=vms ;;
2691 * ) unported=yes
2692 esac
2695 ## IA-64
2696 ia64*-*-linux* )
2697 machine=ia64 opsys=gnu-linux
2700 ## Intel 386 machines where we don't care about the manufacturer
2701 i[3456]86-*-* )
2702 machine=intel386
2703 case "${canonical}" in
2704 *-cygwin ) opsys=cygwin ;;
2705 *-darwin* ) opsys=darwin
2706 CPP="${CC-cc} -E -no-cpp-precomp"
2708 *-xenix* ) opsys=xenix ;;
2709 *-linux-gnu* ) opsys=gnu-linux ;;
2710 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2711 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2712 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2713 *-386bsd* ) opsys=386bsd ;;
2714 *-nextstep* ) opsys=nextstep ;;
2715 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2716 esac
2719 ## m68k Linux-based GNU system
2720 m68k-*-linux-gnu* )
2721 machine=m68k opsys=gnu-linux
2724 ## Mips Linux-based GNU system
2725 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2726 machine=mips opsys=gnu-linux
2729 ## UXP/DS
2730 sparc-fujitsu-sysv4* )
2731 machine=sparc opsys=uxpds
2732 NON_GNU_CPP=/usr/ccs/lib/cpp
2733 RANLIB="ar -ts"
2736 ## AMD x86-64 Linux-based GNU system
2737 x86_64-*-linux-gnu* )
2738 machine=amdx86-64 opsys=gnu-linux
2741 ## Tensilica Xtensa Linux-based GNU system
2742 xtensa-*-linux-gnu* )
2743 machine=xtensa opsys=gnu-linux
2747 unported=yes
2749 esac
2751 ### If the code above didn't choose an operating system, just choose
2752 ### an operating system based on the configuration name. You really
2753 ### only want to use this when you have no idea what the right
2754 ### operating system is; if you know what operating systems a machine
2755 ### runs, it's cleaner to make it explicit in the case statement
2756 ### above.
2757 if test x"${opsys}" = x; then
2758 case "${canonical}" in
2759 *-gnu* ) opsys=gnu ;;
2760 *-bsd4.[01] ) opsys=bsd4-1 ;;
2761 *-bsd4.2 ) opsys=bsd4-2 ;;
2762 *-bsd4.3 ) opsys=bsd4-3 ;;
2763 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2764 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2765 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2766 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2767 *-sysv4.2uw* ) opsys=unixware ;;
2768 *-sysv5uw* ) opsys=unixware ;;
2769 *-sysv5OpenUNIX* ) opsys=unixware ;;
2770 *-sysv4.1* | *-sysvr4.1* )
2771 NON_GNU_CPP=/usr/lib/cpp
2772 opsys=usg5-4 ;;
2773 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2774 if [ x$NON_GNU_CPP = x ]; then
2775 if [ -f /usr/ccs/lib/cpp ]; then
2776 NON_GNU_CPP=/usr/ccs/lib/cpp
2777 else
2778 NON_GNU_CPP=/lib/cpp
2781 opsys=usg5-4-2 ;;
2782 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2784 unported=yes
2786 esac
2791 if test $unported = yes; then
2792 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2793 Check \`etc/MACHINES' for recognized configuration names." >&5
2794 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2795 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2796 { (exit 1); exit 1; }; }
2799 machfile="m/${machine}.h"
2800 opsysfile="s/${opsys}.h"
2803 #### Choose a compiler.
2804 test -n "$CC" && cc_specified=yes
2806 # Save the value of CFLAGS that the user specified.
2807 SPECIFIED_CFLAGS="$CFLAGS"
2809 case ${with_gcc} in
2810 "yes" ) CC="gcc" GCC=yes ;;
2811 "no" ) : ${CC=cc} ;;
2813 esac
2814 ac_ext=c
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2841 done
2842 done
2843 IFS=$as_save_IFS
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 { echo "$as_me:$LINENO: result: $CC" >&5
2850 echo "${ECHO_T}$CC" >&6; }
2851 else
2852 { echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6; }
2858 if test -z "$ac_cv_prog_CC"; then
2859 ac_ct_CC=$CC
2860 # Extract the first word of "gcc", so it can be a program name with args.
2861 set dummy gcc; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$ac_ct_CC"; then
2868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_ac_ct_CC="gcc"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2881 done
2882 done
2883 IFS=$as_save_IFS
2887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888 if test -n "$ac_ct_CC"; then
2889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890 echo "${ECHO_T}$ac_ct_CC" >&6; }
2891 else
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2896 if test "x$ac_ct_CC" = x; then
2897 CC=""
2898 else
2899 case $cross_compiling:$ac_tool_warned in
2900 yes:)
2901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&5
2904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2905 whose name does not start with the host triplet. If you think this
2906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2907 ac_tool_warned=yes ;;
2908 esac
2909 CC=$ac_ct_CC
2911 else
2912 CC="$ac_cv_prog_CC"
2915 if test -z "$CC"; then
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}cc; ac_word=$2
2919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC="${ac_tool_prefix}cc"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946 { echo "$as_me:$LINENO: result: $CC" >&5
2947 echo "${ECHO_T}$CC" >&6; }
2948 else
2949 { echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6; }
2956 if test -z "$CC"; then
2957 # Extract the first word of "cc", so it can be a program name with args.
2958 set dummy cc; ac_word=$2
2959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 ac_prog_rejected=no
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2976 ac_prog_rejected=yes
2977 continue
2979 ac_cv_prog_CC="cc"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2987 if test $ac_prog_rejected = yes; then
2988 # We found a bogon in the path, so make sure we never use it.
2989 set dummy $ac_cv_prog_CC
2990 shift
2991 if test $# != 0; then
2992 # We chose a different compiler from the bogus one.
2993 # However, it has the same basename, so the bogon will be chosen
2994 # first if we set CC to just the basename; use the full file name.
2995 shift
2996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003 { echo "$as_me:$LINENO: result: $CC" >&5
3004 echo "${ECHO_T}$CC" >&6; }
3005 else
3006 { echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6; }
3012 if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
3014 for ac_prog in cl.exe
3016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { echo "$as_me:$LINENO: result: $CC" >&5
3046 echo "${ECHO_T}$CC" >&6; }
3047 else
3048 { echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6; }
3053 test -n "$CC" && break
3054 done
3056 if test -z "$CC"; then
3057 ac_ct_CC=$CC
3058 for ac_prog in cl.exe
3060 # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_ac_ct_CC="$ac_prog"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3090 echo "${ECHO_T}$ac_ct_CC" >&6; }
3091 else
3092 { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3097 test -n "$ac_ct_CC" && break
3098 done
3100 if test "x$ac_ct_CC" = x; then
3101 CC=""
3102 else
3103 case $cross_compiling:$ac_tool_warned in
3104 yes:)
3105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3106 whose name does not start with the host triplet. If you think this
3107 configuration is useful to you, please write to autoconf@gnu.org." >&5
3108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3109 whose name does not start with the host triplet. If you think this
3110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3111 ac_tool_warned=yes ;;
3112 esac
3113 CC=$ac_ct_CC
3120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3121 See \`config.log' for more details." >&5
3122 echo "$as_me: error: no acceptable C compiler found in \$PATH
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }
3126 # Provide some information about the compiler.
3127 echo "$as_me:$LINENO: checking for C compiler version" >&5
3128 ac_compiler=`set X $ac_compile; echo $2`
3129 { (ac_try="$ac_compiler --version >&5"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compiler --version >&5") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3139 { (ac_try="$ac_compiler -v >&5"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compiler -v >&5") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }
3149 { (ac_try="$ac_compiler -V >&5"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compiler -V >&5") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3168 main ()
3172 return 0;
3174 _ACEOF
3175 ac_clean_files_save=$ac_clean_files
3176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3177 # Try to create an executable without -o first, disregard a.out.
3178 # It will help us diagnose broken compilers, and finding out an intuition
3179 # of exeext.
3180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3184 # List of possible output files, starting from the most likely.
3185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3186 # only as a last resort. b.out is created by i960 compilers.
3187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3189 # The IRIX 6 linker writes into existing files which may not be
3190 # executable, retaining their permissions. Remove them first so a
3191 # subsequent execution test works.
3192 ac_rmfiles=
3193 for ac_file in $ac_files
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3198 esac
3199 done
3200 rm -f $ac_rmfiles
3202 if { (ac_try="$ac_link_default"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_link_default") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; then
3212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3215 # so that the user can short-circuit this test for compilers unknown to
3216 # Autoconf.
3217 for ac_file in $ac_files ''
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3223 [ab].out )
3224 # We found the default executable, but exeext='' is most
3225 # certainly right.
3226 break;;
3227 *.* )
3228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3229 then :; else
3230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 # We set ac_cv_exeext here because the later test for it is not
3233 # safe: cross compilers may not add the suffix if given an `-o'
3234 # argument, so we may need to know it at that point already.
3235 # Even if this section looks crufty: it has the advantage of
3236 # actually working.
3237 break;;
3239 break;;
3240 esac
3241 done
3242 test "$ac_cv_exeext" = no && ac_cv_exeext=
3244 else
3245 ac_file=''
3248 { echo "$as_me:$LINENO: result: $ac_file" >&5
3249 echo "${ECHO_T}$ac_file" >&6; }
3250 if test -z "$ac_file"; then
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3255 See \`config.log' for more details." >&5
3256 echo "$as_me: error: C compiler cannot create executables
3257 See \`config.log' for more details." >&2;}
3258 { (exit 77); exit 77; }; }
3261 ac_exeext=$ac_cv_exeext
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3266 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3267 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3268 # If not cross compiling, check that we can run a simple program.
3269 if test "$cross_compiling" != yes; then
3270 if { ac_try='./$ac_file'
3271 { (case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_try") 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 cross_compiling=no
3281 else
3282 if test "$cross_compiling" = maybe; then
3283 cross_compiling=yes
3284 else
3285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3286 If you meant to cross compile, use \`--host'.
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: cannot run C compiled programs.
3289 If you meant to cross compile, use \`--host'.
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3295 { echo "$as_me:$LINENO: result: yes" >&5
3296 echo "${ECHO_T}yes" >&6; }
3298 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3299 ac_clean_files=$ac_clean_files_save
3300 # Check that the compiler produces executables we can run. If not, either
3301 # the compiler is broken, or we cross compile.
3302 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3304 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3305 echo "${ECHO_T}$cross_compiling" >&6; }
3307 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3309 if { (ac_try="$ac_link"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; then
3319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3321 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 # `rm'.
3323 for ac_file in conftest.exe conftest conftest.*; do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 break;;
3329 * ) break;;
3330 esac
3331 done
3332 else
3333 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3340 rm -f conftest$ac_cv_exeext
3341 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3342 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3344 rm -f conftest.$ac_ext
3345 EXEEXT=$ac_cv_exeext
3346 ac_exeext=$EXEEXT
3347 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3348 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3349 if test "${ac_cv_objext+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3360 main ()
3364 return 0;
3366 _ACEOF
3367 rm -f conftest.o conftest.obj
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compile") 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; then
3378 for ac_file in conftest.o conftest.obj conftest.*; do
3379 test -f "$ac_file" || continue;
3380 case $ac_file in
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3383 break;;
3384 esac
3385 done
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3391 See \`config.log' for more details." >&5
3392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3393 See \`config.log' for more details." >&2;}
3394 { (exit 1); exit 1; }; }
3397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3399 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3400 echo "${ECHO_T}$ac_cv_objext" >&6; }
3401 OBJEXT=$ac_cv_objext
3402 ac_objext=$OBJEXT
3403 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3416 main ()
3418 #ifndef __GNUC__
3419 choke me
3420 #endif
3423 return 0;
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_compiler_gnu=yes
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 ac_compiler_gnu=no
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3457 GCC=`test $ac_compiler_gnu = yes && echo yes`
3458 ac_test_CFLAGS=${CFLAGS+set}
3459 ac_save_CFLAGS=$CFLAGS
3460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_cc_g+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 ac_save_c_werror_flag=$ac_c_werror_flag
3466 ac_c_werror_flag=yes
3467 ac_cv_prog_cc_g=no
3468 CFLAGS="-g"
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3477 main ()
3481 return 0;
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest.$ac_objext; then
3501 ac_cv_prog_cc_g=yes
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 CFLAGS=""
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3515 main ()
3519 return 0;
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } && {
3536 test -z "$ac_c_werror_flag" ||
3537 test ! -s conftest.err
3538 } && test -s conftest.$ac_objext; then
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3545 CFLAGS="-g"
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3554 main ()
3558 return 0;
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compile") 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } && {
3575 test -z "$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3577 } && test -s conftest.$ac_objext; then
3578 ac_cv_prog_cc_g=yes
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_c_werror_flag=$ac_save_c_werror_flag
3595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3597 if test "$ac_test_CFLAGS" = set; then
3598 CFLAGS=$ac_save_CFLAGS
3599 elif test $ac_cv_prog_cc_g = yes; then
3600 if test "$GCC" = yes; then
3601 CFLAGS="-g -O2"
3602 else
3603 CFLAGS="-g"
3605 else
3606 if test "$GCC" = yes; then
3607 CFLAGS="-O2"
3608 else
3609 CFLAGS=
3612 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3613 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3614 if test "${ac_cv_prog_cc_c89+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 ac_cv_prog_cc_c89=no
3618 ac_save_CC=$CC
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625 #include <stdarg.h>
3626 #include <stdio.h>
3627 #include <sys/types.h>
3628 #include <sys/stat.h>
3629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3630 struct buf { int x; };
3631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632 static char *e (p, i)
3633 char **p;
3634 int i;
3636 return p[i];
3638 static char *f (char * (*g) (char **, int), char **p, ...)
3640 char *s;
3641 va_list v;
3642 va_start (v,p);
3643 s = g (p, va_arg (v,int));
3644 va_end (v);
3645 return s;
3648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3649 function prototypes and stuff, but not '\xHH' hex character constants.
3650 These don't provoke an error unfortunately, instead are silently treated
3651 as 'x'. The following induces an error, until -std is added to get
3652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3653 array size at least. It's necessary to write '\x00'==0 to get something
3654 that's true only with -std. */
3655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3658 inside strings and character constants. */
3659 #define FOO(x) 'x'
3660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662 int test (int i, double x);
3663 struct s1 {int (*f) (int a);};
3664 struct s2 {int (*f) (double a);};
3665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3666 int argc;
3667 char **argv;
3669 main ()
3671 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3673 return 0;
3675 _ACEOF
3676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679 CC="$ac_save_CC $ac_arg"
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest.$ac_objext; then
3697 ac_cv_prog_cc_c89=$ac_arg
3698 else
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3705 rm -f core conftest.err conftest.$ac_objext
3706 test "x$ac_cv_prog_cc_c89" != "xno" && break
3707 done
3708 rm -f conftest.$ac_ext
3709 CC=$ac_save_CC
3712 # AC_CACHE_VAL
3713 case "x$ac_cv_prog_cc_c89" in
3715 { echo "$as_me:$LINENO: result: none needed" >&5
3716 echo "${ECHO_T}none needed" >&6; } ;;
3717 xno)
3718 { echo "$as_me:$LINENO: result: unsupported" >&5
3719 echo "${ECHO_T}unsupported" >&6; } ;;
3721 CC="$CC $ac_cv_prog_cc_c89"
3722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3724 esac
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3736 CPP=
3739 ## If not using gcc, and on Solaris, and no CPP specified, see if
3740 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3741 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3742 test x"$CPP" = x; then
3743 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3744 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3746 if test "${emacs_cv_sunpro_c+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3757 main ()
3759 #ifndef __SUNPRO_C
3760 fail;
3761 #endif
3764 return 0;
3766 _ACEOF
3767 rm -f conftest.$ac_objext conftest$ac_exeext
3768 if { (ac_try="$ac_link"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_link") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest$ac_exeext &&
3784 $as_test_x conftest$ac_exeext; then
3785 emacs_cv_sunpro_c=yes
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 emacs_cv_sunpro_c=no
3793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3794 conftest$ac_exeext conftest.$ac_ext
3797 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3798 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3800 if test x"$emacs_cv_sunpro_c" = xyes; then
3801 NON_GNU_CPP="$CC -E -Xs"
3805 #### Some systems specify a CPP to use unless we are using GCC.
3806 #### Now that we know whether we are using GCC, we can decide whether
3807 #### to use that one.
3808 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3809 then
3810 CPP="$NON_GNU_CPP"
3813 #### Some systems specify a CC to use unless we are using GCC.
3814 #### Now that we know whether we are using GCC, we can decide whether
3815 #### to use that one.
3816 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3817 test x$cc_specified != xyes
3818 then
3819 CC="$NON_GNU_CC"
3822 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3823 then
3824 CC="$CC $GCC_TEST_OPTIONS"
3827 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3828 then
3829 CC="$CC $NON_GCC_TEST_OPTIONS"
3832 ac_ext=c
3833 ac_cpp='$CPP $CPPFLAGS'
3834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3838 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3839 # On Suns, sometimes $CPP names a directory.
3840 if test -n "$CPP" && test -d "$CPP"; then
3841 CPP=
3843 if test -z "$CPP"; then
3844 if test "${ac_cv_prog_CPP+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 # Double quotes because CPP needs to be expanded
3848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3850 ac_preproc_ok=false
3851 for ac_c_preproc_warn_flag in '' yes
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error" is here to catch this case.
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #ifdef __STDC__
3866 # include <limits.h>
3867 #else
3868 # include <assert.h>
3869 #endif
3870 Syntax error
3871 _ACEOF
3872 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3887 }; then
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 # Broken: fails on valid input.
3894 continue
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 }; then
3925 # Broken: success on invalid input.
3926 continue
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Passes both tests.
3932 ac_preproc_ok=:
3933 break
3936 rm -f conftest.err conftest.$ac_ext
3938 done
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3942 break
3945 done
3946 ac_cv_prog_CPP=$CPP
3949 CPP=$ac_cv_prog_CPP
3950 else
3951 ac_cv_prog_CPP=$CPP
3953 { echo "$as_me:$LINENO: result: $CPP" >&5
3954 echo "${ECHO_T}$CPP" >&6; }
3955 ac_preproc_ok=false
3956 for ac_c_preproc_warn_flag in '' yes
3958 # Use a header file that comes with gcc, so configuring glibc
3959 # with a fresh cross-compiler works.
3960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961 # <limits.h> exists even on freestanding compilers.
3962 # On the NeXT, cc -E runs the code through the compiler's parser,
3963 # not just through cpp. "Syntax error" is here to catch this case.
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 #ifdef __STDC__
3971 # include <limits.h>
3972 #else
3973 # include <assert.h>
3974 #endif
3975 Syntax error
3976 _ACEOF
3977 if { (ac_try="$ac_cpp conftest.$ac_ext"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } >/dev/null && {
3990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3991 test ! -s conftest.err
3992 }; then
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 # Broken: fails on valid input.
3999 continue
4002 rm -f conftest.err conftest.$ac_ext
4004 # OK, works on sane cases. Now check whether nonexistent headers
4005 # can be detected and how.
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <ac_nonexistent.h>
4013 _ACEOF
4014 if { (ac_try="$ac_cpp conftest.$ac_ext"
4015 case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } >/dev/null && {
4027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 }; then
4030 # Broken: success on invalid input.
4031 continue
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 # Passes both tests.
4037 ac_preproc_ok=:
4038 break
4041 rm -f conftest.err conftest.$ac_ext
4043 done
4044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045 rm -f conftest.err conftest.$ac_ext
4046 if $ac_preproc_ok; then
4048 else
4049 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log' for more details." >&5
4051 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4052 See \`config.log' for more details." >&2;}
4053 { (exit 1); exit 1; }; }
4056 ac_ext=c
4057 ac_cpp='$CPP $CPPFLAGS'
4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4064 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4065 if test "${ac_cv_path_GREP+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 # Extract the first word of "grep ggrep" to use in msg output
4069 if test -z "$GREP"; then
4070 set dummy grep ggrep; ac_prog_name=$2
4071 if test "${ac_cv_path_GREP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 ac_path_GREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in grep ggrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4085 # Check for GNU ac_path_GREP and select it if it is found.
4086 # Check for GNU $ac_path_GREP
4087 case `"$ac_path_GREP" --version 2>&1` in
4088 *GNU*)
4089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4091 ac_count=0
4092 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4093 while :
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 echo 'GREP' >> "conftest.nl"
4099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 ac_count=`expr $ac_count + 1`
4102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_GREP="$ac_path_GREP"
4105 ac_path_GREP_max=$ac_count
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4109 done
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4114 $ac_path_GREP_found && break 3
4115 done
4116 done
4118 done
4119 IFS=$as_save_IFS
4124 GREP="$ac_cv_path_GREP"
4125 if test -z "$GREP"; then
4126 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4127 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4128 { (exit 1); exit 1; }; }
4131 else
4132 ac_cv_path_GREP=$GREP
4137 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4138 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4139 GREP="$ac_cv_path_GREP"
4142 { echo "$as_me:$LINENO: checking for egrep" >&5
4143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4144 if test "${ac_cv_path_EGREP+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148 then ac_cv_path_EGREP="$GREP -E"
4149 else
4150 # Extract the first word of "egrep" to use in msg output
4151 if test -z "$EGREP"; then
4152 set dummy egrep; ac_prog_name=$2
4153 if test "${ac_cv_path_EGREP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 ac_path_EGREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in egrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4167 # Check for GNU ac_path_EGREP and select it if it is found.
4168 # Check for GNU $ac_path_EGREP
4169 case `"$ac_path_EGREP" --version 2>&1` in
4170 *GNU*)
4171 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4173 ac_count=0
4174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4175 while :
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 echo 'EGREP' >> "conftest.nl"
4181 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 ac_count=`expr $ac_count + 1`
4184 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_EGREP="$ac_path_EGREP"
4187 ac_path_EGREP_max=$ac_count
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193 esac
4196 $ac_path_EGREP_found && break 3
4197 done
4198 done
4200 done
4201 IFS=$as_save_IFS
4206 EGREP="$ac_cv_path_EGREP"
4207 if test -z "$EGREP"; then
4208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4210 { (exit 1); exit 1; }; }
4213 else
4214 ac_cv_path_EGREP=$EGREP
4220 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4221 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4222 EGREP="$ac_cv_path_EGREP"
4226 { echo "$as_me:$LINENO: checking for AIX" >&5
4227 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #ifdef _AIX
4236 #endif
4238 _ACEOF
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "yes" >/dev/null 2>&1; then
4241 { echo "$as_me:$LINENO: result: yes" >&5
4242 echo "${ECHO_T}yes" >&6; }
4243 cat >>confdefs.h <<\_ACEOF
4244 #define _ALL_SOURCE 1
4245 _ACEOF
4247 else
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4251 rm -f conftest*
4255 cat >>confdefs.h <<\_ACEOF
4256 #define _GNU_SOURCE 1
4257 _ACEOF
4261 ### Use -Wno-pointer-sign if the compiler supports it
4262 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4263 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4264 SAVE_CFLAGS="$CFLAGS"
4265 CFLAGS="$CFLAGS -Wno-pointer-sign"
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4274 main ()
4278 return 0;
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } && {
4295 test -z "$ac_c_werror_flag" ||
4296 test ! -s conftest.err
4297 } && test -s conftest.$ac_objext; then
4298 has_option=yes
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 has_option=no
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 if test $has_option = yes; then
4308 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4310 { echo "$as_me:$LINENO: result: $has_option" >&5
4311 echo "${ECHO_T}$has_option" >&6; }
4312 CFLAGS="$SAVE_CFLAGS"
4313 unset has_option
4314 unset SAVE_CFLAGS
4316 #### Some other nice autoconf tests.
4318 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4319 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4320 LN_S=$as_ln_s
4321 if test "$LN_S" = "ln -s"; then
4322 { echo "$as_me:$LINENO: result: yes" >&5
4323 echo "${ECHO_T}yes" >&6; }
4324 else
4325 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4326 echo "${ECHO_T}no, using $LN_S" >&6; }
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4335 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4336 # On Suns, sometimes $CPP names a directory.
4337 if test -n "$CPP" && test -d "$CPP"; then
4338 CPP=
4340 if test -z "$CPP"; then
4341 if test "${ac_cv_prog_CPP+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 # Double quotes because CPP needs to be expanded
4345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4347 ac_preproc_ok=false
4348 for ac_c_preproc_warn_flag in '' yes
4350 # Use a header file that comes with gcc, so configuring glibc
4351 # with a fresh cross-compiler works.
4352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4353 # <limits.h> exists even on freestanding compilers.
4354 # On the NeXT, cc -E runs the code through the compiler's parser,
4355 # not just through cpp. "Syntax error" is here to catch this case.
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #ifdef __STDC__
4363 # include <limits.h>
4364 #else
4365 # include <assert.h>
4366 #endif
4367 Syntax error
4368 _ACEOF
4369 if { (ac_try="$ac_cpp conftest.$ac_ext"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } >/dev/null && {
4382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 }; then
4386 else
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 # Broken: fails on valid input.
4391 continue
4394 rm -f conftest.err conftest.$ac_ext
4396 # OK, works on sane cases. Now check whether nonexistent headers
4397 # can be detected and how.
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 #include <ac_nonexistent.h>
4405 _ACEOF
4406 if { (ac_try="$ac_cpp conftest.$ac_ext"
4407 case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410 esac
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4413 ac_status=$?
4414 grep -v '^ *+' conftest.er1 >conftest.err
4415 rm -f conftest.er1
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } >/dev/null && {
4419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4420 test ! -s conftest.err
4421 }; then
4422 # Broken: success on invalid input.
4423 continue
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4428 # Passes both tests.
4429 ac_preproc_ok=:
4430 break
4433 rm -f conftest.err conftest.$ac_ext
4435 done
4436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4437 rm -f conftest.err conftest.$ac_ext
4438 if $ac_preproc_ok; then
4439 break
4442 done
4443 ac_cv_prog_CPP=$CPP
4446 CPP=$ac_cv_prog_CPP
4447 else
4448 ac_cv_prog_CPP=$CPP
4450 { echo "$as_me:$LINENO: result: $CPP" >&5
4451 echo "${ECHO_T}$CPP" >&6; }
4452 ac_preproc_ok=false
4453 for ac_c_preproc_warn_flag in '' yes
4455 # Use a header file that comes with gcc, so configuring glibc
4456 # with a fresh cross-compiler works.
4457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4458 # <limits.h> exists even on freestanding compilers.
4459 # On the NeXT, cc -E runs the code through the compiler's parser,
4460 # not just through cpp. "Syntax error" is here to catch this case.
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #ifdef __STDC__
4468 # include <limits.h>
4469 #else
4470 # include <assert.h>
4471 #endif
4472 Syntax error
4473 _ACEOF
4474 if { (ac_try="$ac_cpp conftest.$ac_ext"
4475 case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478 esac
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } >/dev/null && {
4487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4488 test ! -s conftest.err
4489 }; then
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 # Broken: fails on valid input.
4496 continue
4499 rm -f conftest.err conftest.$ac_ext
4501 # OK, works on sane cases. Now check whether nonexistent headers
4502 # can be detected and how.
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h. */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509 #include <ac_nonexistent.h>
4510 _ACEOF
4511 if { (ac_try="$ac_cpp conftest.$ac_ext"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null && {
4524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4525 test ! -s conftest.err
4526 }; then
4527 # Broken: success on invalid input.
4528 continue
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 # Passes both tests.
4534 ac_preproc_ok=:
4535 break
4538 rm -f conftest.err conftest.$ac_ext
4540 done
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then
4545 else
4546 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4547 See \`config.log' for more details." >&5
4548 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4549 See \`config.log' for more details." >&2;}
4550 { (exit 1); exit 1; }; }
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 # Find a good install program. We prefer a C program (faster),
4560 # so one script is as good as another. But avoid the broken or
4561 # incompatible versions:
4562 # SysV /etc/install, /usr/sbin/install
4563 # SunOS /usr/etc/install
4564 # IRIX /sbin/install
4565 # AIX /bin/install
4566 # AmigaOS /C/install, which installs bootblocks on floppy discs
4567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4570 # OS/2's system install, which has a completely different semantic
4571 # ./install, which can be erroneously created by make from ./install.sh.
4572 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4573 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4574 if test -z "$INSTALL"; then
4575 if test "${ac_cv_path_install+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 # Account for people who put trailing slashes in PATH elements.
4584 case $as_dir/ in
4585 ./ | .// | /cC/* | \
4586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4587 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4588 /usr/ucb/* ) ;;
4590 # OSF1 and SCO ODT 3.0 have their own names for install.
4591 # Don't use installbsd from OSF since it installs stuff as root
4592 # by default.
4593 for ac_prog in ginstall scoinst install; do
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4596 if test $ac_prog = install &&
4597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4598 # AIX install. It has an incompatible calling convention.
4600 elif test $ac_prog = install &&
4601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4602 # program-specific install script used by HP pwplus--don't use.
4604 else
4605 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4606 break 3
4609 done
4610 done
4612 esac
4613 done
4614 IFS=$as_save_IFS
4618 if test "${ac_cv_path_install+set}" = set; then
4619 INSTALL=$ac_cv_path_install
4620 else
4621 # As a last resort, use the slow shell script. Don't cache a
4622 # value for INSTALL within a source directory, because that will
4623 # break other packages using the cache if that directory is
4624 # removed, or if the value is a relative name.
4625 INSTALL=$ac_install_sh
4628 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4629 echo "${ECHO_T}$INSTALL" >&6; }
4631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4632 # It thinks the first close brace ends the variable substitution.
4633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4639 if test "x$RANLIB" = x; then
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_RANLIB+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648 if test -n "$RANLIB"; then
4649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 RANLIB=$ac_cv_prog_RANLIB
4669 if test -n "$RANLIB"; then
4670 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4671 echo "${ECHO_T}$RANLIB" >&6; }
4672 else
4673 { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4679 if test -z "$ac_cv_prog_RANLIB"; then
4680 ac_ct_RANLIB=$RANLIB
4681 # Extract the first word of "ranlib", so it can be a program name with args.
4682 set dummy ranlib; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 if test -n "$ac_ct_RANLIB"; then
4689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_ac_ct_RANLIB="ranlib"
4699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4709 if test -n "$ac_ct_RANLIB"; then
4710 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4711 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4712 else
4713 { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4717 if test "x$ac_ct_RANLIB" = x; then
4718 RANLIB=":"
4719 else
4720 case $cross_compiling:$ac_tool_warned in
4721 yes:)
4722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4723 whose name does not start with the host triplet. If you think this
4724 configuration is useful to you, please write to autoconf@gnu.org." >&5
4725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4726 whose name does not start with the host triplet. If you think this
4727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 RANLIB=$ac_ct_RANLIB
4732 else
4733 RANLIB="$ac_cv_prog_RANLIB"
4737 # Extract the first word of "install-info", so it can be a program name with args.
4738 set dummy install-info; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 case $INSTALL_INFO in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4765 esac
4767 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4768 if test -n "$INSTALL_INFO"; then
4769 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4770 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4771 else
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4777 # Extract the first word of "install-info", so it can be a program name with args.
4778 set dummy install-info; ac_word=$2
4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 case $INSTALL_INFO in
4785 [\\/]* | ?:[\\/]*)
4786 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in /usr/sbin
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4805 esac
4807 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4808 if test -n "$INSTALL_INFO"; then
4809 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4810 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 # Extract the first word of "install-info", so it can be a program name with args.
4818 set dummy install-info; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 case $INSTALL_INFO in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in /sbin
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4840 done
4841 done
4842 IFS=$as_save_IFS
4844 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4846 esac
4848 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4849 if test -n "$INSTALL_INFO"; then
4850 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4851 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4852 else
4853 { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4858 # Extract the first word of "gzip", so it can be a program name with args.
4859 set dummy gzip; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 case $GZIP_PROG in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4881 done
4882 done
4883 IFS=$as_save_IFS
4886 esac
4888 GZIP_PROG=$ac_cv_path_GZIP_PROG
4889 if test -n "$GZIP_PROG"; then
4890 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4891 echo "${ECHO_T}$GZIP_PROG" >&6; }
4892 else
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4900 ## Need makeinfo >= 4.6 (?) to build the manuals.
4901 # Extract the first word of "makeinfo", so it can be a program name with args.
4902 set dummy makeinfo; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 case $MAKEINFO in
4909 [\\/]* | ?:[\\/]*)
4910 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4928 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4930 esac
4932 MAKEINFO=$ac_cv_path_MAKEINFO
4933 if test -n "$MAKEINFO"; then
4934 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4935 echo "${ECHO_T}$MAKEINFO" >&6; }
4936 else
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 if test "$MAKEINFO" != "no" && \
4943 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
4944 MAKEINFO=no
4947 if test "$MAKEINFO" = "no"; then
4948 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4949 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4950 { (exit 1); exit 1; }; }
4955 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4956 then
4957 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4960 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4961 then
4962 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4966 late_LDFLAGS=$LDFLAGS
4967 if test "$GCC" = yes; then
4968 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4969 else
4970 LDFLAGS="$LDFLAGS -znocombreloc"
4973 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4974 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
4975 cat >conftest.$ac_ext <<_ACEOF
4976 main(){return 0;}
4977 _ACEOF
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (ac_try="$ac_link"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_link") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest$ac_exeext &&
4995 $as_test_x conftest$ac_exeext; then
4996 { echo "$as_me:$LINENO: result: yes" >&5
4997 echo "${ECHO_T}yes" >&6; }
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 LDFLAGS=$late_LDFLAGS
5003 { echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6; }
5007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5008 conftest$ac_exeext conftest.$ac_ext
5010 #### Extract some information from the operating system and machine files.
5012 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5013 - which libraries the lib-src programs will want, and
5014 - whether the GNU malloc routines are usable..." >&5
5015 echo "$as_me: checking the machine- and system-dependent files to find out
5016 - which libraries the lib-src programs will want, and
5017 - whether the GNU malloc routines are usable..." >&6;}
5019 ### First figure out CFLAGS (which we use for running the compiler here)
5020 ### and REAL_CFLAGS (which we use for real compilation).
5021 ### The two are the same except on a few systems, where they are made
5022 ### different to work around various lossages. For example,
5023 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5024 ### as implying static linking.
5026 ### If the CFLAGS env var is specified, we use that value
5027 ### instead of the default.
5029 ### It's not important that this name contain the PID; you can't run
5030 ### two configures in the same directory and have anything work
5031 ### anyway.
5032 tempcname="conftest.c"
5034 echo '
5035 #include "'${srcdir}'/src/'${opsysfile}'"
5036 #include "'${srcdir}'/src/'${machfile}'"
5037 #ifndef LIBS_MACHINE
5038 #define LIBS_MACHINE
5039 #endif
5040 #ifndef LIBS_SYSTEM
5041 #define LIBS_SYSTEM
5042 #endif
5043 #ifndef C_SWITCH_SYSTEM
5044 #define C_SWITCH_SYSTEM
5045 #endif
5046 #ifndef C_SWITCH_MACHINE
5047 #define C_SWITCH_MACHINE
5048 #endif
5049 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5050 configure___ c_switch_system=C_SWITCH_SYSTEM
5051 configure___ c_switch_machine=C_SWITCH_MACHINE
5053 #ifndef LIB_X11_LIB
5054 #define LIB_X11_LIB -lX11
5055 #endif
5057 #ifndef LIBX11_MACHINE
5058 #define LIBX11_MACHINE
5059 #endif
5061 #ifndef LIBX11_SYSTEM
5062 #define LIBX11_SYSTEM
5063 #endif
5064 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5066 #ifdef UNEXEC
5067 configure___ unexec=UNEXEC
5068 #else
5069 configure___ unexec=unexec.o
5070 #endif
5072 #ifdef SYSTEM_MALLOC
5073 configure___ system_malloc=yes
5074 #else
5075 configure___ system_malloc=no
5076 #endif
5078 #ifdef USE_MMAP_FOR_BUFFERS
5079 configure___ use_mmap_for_buffers=yes
5080 #else
5081 configure___ use_mmap_for_buffers=no
5082 #endif
5084 #ifndef C_DEBUG_SWITCH
5085 #define C_DEBUG_SWITCH -g
5086 #endif
5088 #ifndef C_OPTIMIZE_SWITCH
5089 #ifdef __GNUC__
5090 #define C_OPTIMIZE_SWITCH -O2
5091 #else
5092 #define C_OPTIMIZE_SWITCH -O
5093 #endif
5094 #endif
5096 #ifndef C_WARNINGS_SWITCH
5097 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5098 #endif
5100 #ifndef LD_SWITCH_MACHINE
5101 #define LD_SWITCH_MACHINE
5102 #endif
5104 #ifndef LD_SWITCH_SYSTEM
5105 #define LD_SWITCH_SYSTEM
5106 #endif
5108 #ifndef LD_SWITCH_X_SITE_AUX
5109 #define LD_SWITCH_X_SITE_AUX
5110 #endif
5112 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5113 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5115 #ifdef THIS_IS_CONFIGURE
5117 /* Get the CFLAGS for tests in configure. */
5118 #ifdef __GNUC__
5119 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5120 #else
5121 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5122 #endif
5124 #else /* not THIS_IS_CONFIGURE */
5126 /* Get the CFLAGS for real compilation. */
5127 #ifdef __GNUC__
5128 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5129 #else
5130 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5131 #endif
5133 #endif /* not THIS_IS_CONFIGURE */
5134 ' > ${tempcname}
5136 # The value of CPP is a quoted variable reference, so we need to do this
5137 # to get its actual value...
5138 CPP=`eval "echo $CPP"`
5139 eval `${CPP} -Isrc ${tempcname} \
5140 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5141 if test "x$SPECIFIED_CFLAGS" = x; then
5142 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5143 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5144 else
5145 REAL_CFLAGS="$CFLAGS"
5147 rm ${tempcname}
5149 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5151 ### Make sure subsequent tests use flags consistent with the build flags.
5153 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5154 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5155 else
5156 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5161 # Check whether --enable-largefile was given.
5162 if test "${enable_largefile+set}" = set; then
5163 enableval=$enable_largefile;
5166 if test "$enable_largefile" != no; then
5168 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5169 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5170 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 ac_cv_sys_largefile_CC=no
5174 if test "$GCC" != yes; then
5175 ac_save_CC=$CC
5176 while :; do
5177 # IRIX 6.2 and later do not support large files by default,
5178 # so use the C compiler's -n32 option if that helps.
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #include <sys/types.h>
5186 /* Check that off_t can represent 2**63 - 1 correctly.
5187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5188 since some C++ compilers masquerading as C compilers
5189 incorrectly reject 9223372036854775807. */
5190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5192 && LARGE_OFF_T % 2147483647 == 1)
5193 ? 1 : -1];
5195 main ()
5199 return 0;
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (ac_try="$ac_compile"
5204 case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_compile") 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest.$ac_objext; then
5219 break
5220 else
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5227 rm -f core conftest.err conftest.$ac_objext
5228 CC="$CC -n32"
5229 rm -f conftest.$ac_objext
5230 if { (ac_try="$ac_compile"
5231 case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_compile") 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_c_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest.$ac_objext; then
5246 ac_cv_sys_largefile_CC=' -n32'; break
5247 else
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5254 rm -f core conftest.err conftest.$ac_objext
5255 break
5256 done
5257 CC=$ac_save_CC
5258 rm -f conftest.$ac_ext
5261 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5262 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5263 if test "$ac_cv_sys_largefile_CC" != no; then
5264 CC=$CC$ac_cv_sys_largefile_CC
5267 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5268 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5269 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 while :; do
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 #include <sys/types.h>
5280 /* Check that off_t can represent 2**63 - 1 correctly.
5281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5282 since some C++ compilers masquerading as C compilers
5283 incorrectly reject 9223372036854775807. */
5284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5286 && LARGE_OFF_T % 2147483647 == 1)
5287 ? 1 : -1];
5289 main ()
5293 return 0;
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5298 case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compile") 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && {
5310 test -z "$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 } && test -s conftest.$ac_objext; then
5313 ac_cv_sys_file_offset_bits=no; break
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #define _FILE_OFFSET_BITS 64
5329 #include <sys/types.h>
5330 /* Check that off_t can represent 2**63 - 1 correctly.
5331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5332 since some C++ compilers masquerading as C compilers
5333 incorrectly reject 9223372036854775807. */
5334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5336 && LARGE_OFF_T % 2147483647 == 1)
5337 ? 1 : -1];
5339 main ()
5343 return 0;
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 ac_cv_sys_file_offset_bits=64; break
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 ac_cv_sys_file_offset_bits=unknown
5373 break
5374 done
5376 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5377 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5378 case $ac_cv_sys_file_offset_bits in #(
5379 no | unknown) ;;
5381 cat >>confdefs.h <<_ACEOF
5382 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5383 _ACEOF
5385 esac
5386 rm -f conftest*
5387 if test $ac_cv_sys_file_offset_bits = unknown; then
5388 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5389 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5390 if test "${ac_cv_sys_large_files+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 while :; do
5394 cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h. */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 #include <sys/types.h>
5401 /* Check that off_t can represent 2**63 - 1 correctly.
5402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5403 since some C++ compilers masquerading as C compilers
5404 incorrectly reject 9223372036854775807. */
5405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5407 && LARGE_OFF_T % 2147483647 == 1)
5408 ? 1 : -1];
5410 main ()
5414 return 0;
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (ac_try="$ac_compile"
5419 case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_compile") 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } && {
5431 test -z "$ac_c_werror_flag" ||
5432 test ! -s conftest.err
5433 } && test -s conftest.$ac_objext; then
5434 ac_cv_sys_large_files=no; break
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #define _LARGE_FILES 1
5450 #include <sys/types.h>
5451 /* Check that off_t can represent 2**63 - 1 correctly.
5452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5453 since some C++ compilers masquerading as C compilers
5454 incorrectly reject 9223372036854775807. */
5455 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5457 && LARGE_OFF_T % 2147483647 == 1)
5458 ? 1 : -1];
5460 main ()
5464 return 0;
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5484 ac_cv_sys_large_files=1; break
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ac_cv_sys_large_files=unknown
5494 break
5495 done
5497 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5498 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5499 case $ac_cv_sys_large_files in #(
5500 no | unknown) ;;
5502 cat >>confdefs.h <<_ACEOF
5503 #define _LARGE_FILES $ac_cv_sys_large_files
5504 _ACEOF
5506 esac
5507 rm -f conftest*
5513 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5514 ### be located in either /usr/lib64 or /usr/lib.
5515 case "${canonical}" in
5516 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5517 if test -d /usr/lib64; then
5519 cat >>confdefs.h <<\_ACEOF
5520 #define HAVE_LIB64_DIR 1
5521 _ACEOF
5524 esac
5529 if test "${with_sound}" != "no"; then
5530 # Sound support for GNU/Linux and the free BSDs.
5531 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5532 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5533 if test "${ac_cv_header_stdc+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #include <stdlib.h>
5543 #include <stdarg.h>
5544 #include <string.h>
5545 #include <float.h>
5548 main ()
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (ac_try="$ac_compile"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compile") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 ac_cv_header_stdc=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_cv_header_stdc=no
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 if test $ac_cv_header_stdc = yes; then
5583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
5592 _ACEOF
5593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5594 $EGREP "memchr" >/dev/null 2>&1; then
5596 else
5597 ac_cv_header_stdc=no
5599 rm -f conftest*
5603 if test $ac_cv_header_stdc = yes; then
5604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <stdlib.h>
5613 _ACEOF
5614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 $EGREP "free" >/dev/null 2>&1; then
5617 else
5618 ac_cv_header_stdc=no
5620 rm -f conftest*
5624 if test $ac_cv_header_stdc = yes; then
5625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5626 if test "$cross_compiling" = yes; then
5628 else
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <ctype.h>
5636 #include <stdlib.h>
5637 #if ((' ' & 0x0FF) == 0x020)
5638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5640 #else
5641 # define ISLOWER(c) \
5642 (('a' <= (c) && (c) <= 'i') \
5643 || ('j' <= (c) && (c) <= 'r') \
5644 || ('s' <= (c) && (c) <= 'z'))
5645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5646 #endif
5648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5650 main ()
5652 int i;
5653 for (i = 0; i < 256; i++)
5654 if (XOR (islower (i), ISLOWER (i))
5655 || toupper (i) != TOUPPER (i))
5656 return 2;
5657 return 0;
5659 _ACEOF
5660 rm -f conftest$ac_exeext
5661 if { (ac_try="$ac_link"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_link") 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5671 { (case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5681 else
5682 echo "$as_me: program exited with status $ac_status" >&5
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 ( exit $ac_status )
5687 ac_cv_header_stdc=no
5689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5695 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5696 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5697 if test $ac_cv_header_stdc = yes; then
5699 cat >>confdefs.h <<\_ACEOF
5700 #define STDC_HEADERS 1
5701 _ACEOF
5705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5716 inttypes.h stdint.h unistd.h
5718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 $ac_includes_default
5732 #include <$ac_header>
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 eval "$as_ac_Header=yes"
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 eval "$as_ac_Header=no"
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 ac_res=`eval echo '${'$as_ac_Header'}'`
5762 { echo "$as_me:$LINENO: result: $ac_res" >&5
5763 echo "${ECHO_T}$ac_res" >&6; }
5764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5765 cat >>confdefs.h <<_ACEOF
5766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5767 _ACEOF
5771 done
5777 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_res=`eval echo '${'$as_ac_Header'}'`
5787 { echo "$as_me:$LINENO: result: $ac_res" >&5
5788 echo "${ECHO_T}$ac_res" >&6; }
5789 else
5790 # Is the header compilable?
5791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5800 #include <$ac_header>
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_header_compiler=yes
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_header_compiler=no
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5829 echo "${ECHO_T}$ac_header_compiler" >&6; }
5831 # Is the header present?
5832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 #include <$ac_header>
5841 _ACEOF
5842 if { (ac_try="$ac_cpp conftest.$ac_ext"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null && {
5855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5857 }; then
5858 ac_header_preproc=yes
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_header_preproc=no
5866 rm -f conftest.err conftest.$ac_ext
5867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5868 echo "${ECHO_T}$ac_header_preproc" >&6; }
5870 # So? What about this header?
5871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5872 yes:no: )
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5877 ac_header_preproc=yes
5879 no:yes:* )
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5894 esac
5895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 eval "$as_ac_Header=\$ac_header_preproc"
5902 ac_res=`eval echo '${'$as_ac_Header'}'`
5903 { echo "$as_me:$LINENO: result: $ac_res" >&5
5904 echo "${ECHO_T}$ac_res" >&6; }
5907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5908 cat >>confdefs.h <<_ACEOF
5909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5910 _ACEOF
5914 done
5916 # Emulation library used on NetBSD.
5917 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5918 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5919 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 ac_check_lib_save_LIBS=$LIBS
5923 LIBS="-lossaudio $LIBS"
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5931 /* Override any GCC internal prototype to avoid an error.
5932 Use char because int might match the return type of a GCC
5933 builtin and then its argument prototype would still apply. */
5934 #ifdef __cplusplus
5935 extern "C"
5936 #endif
5937 char _oss_ioctl ();
5939 main ()
5941 return _oss_ioctl ();
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (ac_try="$ac_link"
5948 case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_link") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest$ac_exeext &&
5963 $as_test_x conftest$ac_exeext; then
5964 ac_cv_lib_ossaudio__oss_ioctl=yes
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_cv_lib_ossaudio__oss_ioctl=no
5972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5973 conftest$ac_exeext conftest.$ac_ext
5974 LIBS=$ac_check_lib_save_LIBS
5976 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5977 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5978 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5979 LIBSOUND=-lossaudio
5980 else
5981 LIBSOUND=
5986 ALSA_REQUIRED=1.0.0
5987 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5988 if test "X${with_pkg_config_prog}" != X; then
5989 PKG_CONFIG="${with_pkg_config_prog}"
5992 succeeded=no
5994 if test -z "$PKG_CONFIG"; then
5995 # Extract the first word of "pkg-config", so it can be a program name with args.
5996 set dummy pkg-config; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 case $PKG_CONFIG in
6003 [\\/]* | ?:[\\/]*)
6004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6018 done
6019 done
6020 IFS=$as_save_IFS
6022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6024 esac
6026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6027 if test -n "$PKG_CONFIG"; then
6028 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6029 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6030 else
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6038 if test "$PKG_CONFIG" = "no" ; then
6039 HAVE_ALSA=no
6040 else
6041 PKG_CONFIG_MIN_VERSION=0.9.0
6042 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6043 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6044 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6046 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6047 { echo "$as_me:$LINENO: result: yes" >&5
6048 echo "${ECHO_T}yes" >&6; }
6049 succeeded=yes
6051 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6052 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6053 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6054 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6055 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6057 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6058 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6059 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6060 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6061 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6062 else
6063 { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 ALSA_CFLAGS=""
6066 ALSA_LIBS=""
6067 ## If we have a custom action on failure, don't print errors, but
6068 ## do set a variable so people can do so.
6069 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6075 else
6076 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6077 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6081 if test $succeeded = yes; then
6082 HAVE_ALSA=yes
6083 else
6084 HAVE_ALSA=no
6087 if test $HAVE_ALSA = yes; then
6088 SAVE_CFLAGS="$CFLAGS"
6089 SAVE_LDFLAGS="$LDFLAGS"
6090 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6091 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 #include <asoundlib.h>
6100 main ()
6102 snd_lib_error_set_handler (0);
6104 return 0;
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6109 case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && {
6121 test -z "$ac_c_werror_flag" ||
6122 test ! -s conftest.err
6123 } && test -s conftest.$ac_objext; then
6124 emacs_alsa_normal=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129 emacs_alsa_normal=no
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 if test "$emacs_alsa_normal" != yes; then
6134 cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h. */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 #include <alsa/asoundlib.h>
6142 main ()
6144 snd_lib_error_set_handler (0);
6146 return 0;
6148 _ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 emacs_alsa_subdir=yes
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 emacs_alsa_subdir=no
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 if test "$emacs_alsa_subdir" != yes; then
6176 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6177 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6178 { (exit 1); exit 1; }; }
6180 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6183 CFLAGS="$SAVE_CFLAGS"
6184 LDFLAGS="$SAVE_LDFLAGS"
6185 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6186 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6188 cat >>confdefs.h <<\_ACEOF
6189 #define HAVE_ALSA 1
6190 _ACEOF
6221 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6222 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6223 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6224 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6225 sys/utsname.h pwd.h
6227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_res=`eval echo '${'$as_ac_Header'}'`
6235 { echo "$as_me:$LINENO: result: $ac_res" >&5
6236 echo "${ECHO_T}$ac_res" >&6; }
6237 else
6238 # Is the header compilable?
6239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6248 #include <$ac_header>
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 ac_header_compiler=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_header_compiler=no
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6277 echo "${ECHO_T}$ac_header_compiler" >&6; }
6279 # Is the header present?
6280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <$ac_header>
6289 _ACEOF
6290 if { (ac_try="$ac_cpp conftest.$ac_ext"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } >/dev/null && {
6303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 }; then
6306 ac_header_preproc=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_header_preproc=no
6314 rm -f conftest.err conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6; }
6318 # So? What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6320 yes:no: )
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6325 ac_header_preproc=yes
6327 no:yes:* )
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6342 esac
6343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 eval "$as_ac_Header=\$ac_header_preproc"
6350 ac_res=`eval echo '${'$as_ac_Header'}'`
6351 { echo "$as_me:$LINENO: result: $ac_res" >&5
6352 echo "${ECHO_T}$ac_res" >&6; }
6355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6356 cat >>confdefs.h <<_ACEOF
6357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358 _ACEOF
6362 done
6365 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6366 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <sys/personality.h>
6375 main ()
6377 personality (PER_LINUX32)
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6384 case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_compile") 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest.$ac_objext; then
6399 emacs_cv_personality_linux32=yes
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 emacs_cv_personality_linux32=no
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6409 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6411 if test $emacs_cv_personality_linux32 = yes; then
6413 cat >>confdefs.h <<\_ACEOF
6414 #define HAVE_PERSONALITY_LINUX32 1
6415 _ACEOF
6420 for ac_header in term.h
6422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #include <$ac_header>
6435 _ACEOF
6436 if { (ac_try="$ac_cpp conftest.$ac_ext"
6437 case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } >/dev/null && {
6449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 }; then
6452 eval "$as_ac_Header=yes"
6453 else
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 eval "$as_ac_Header=no"
6460 rm -f conftest.err conftest.$ac_ext
6462 ac_res=`eval echo '${'$as_ac_Header'}'`
6463 { echo "$as_me:$LINENO: result: $ac_res" >&5
6464 echo "${ECHO_T}$ac_res" >&6; }
6465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6466 cat >>confdefs.h <<_ACEOF
6467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6468 _ACEOF
6472 done
6474 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6476 if test "${ac_cv_header_stdc+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 #include <stdlib.h>
6486 #include <stdarg.h>
6487 #include <string.h>
6488 #include <float.h>
6491 main ()
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (ac_try="$ac_compile"
6500 case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest.$ac_objext; then
6515 ac_cv_header_stdc=yes
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 ac_cv_header_stdc=no
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 if test $ac_cv_header_stdc = yes; then
6526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <string.h>
6535 _ACEOF
6536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6537 $EGREP "memchr" >/dev/null 2>&1; then
6539 else
6540 ac_cv_header_stdc=no
6542 rm -f conftest*
6546 if test $ac_cv_header_stdc = yes; then
6547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 #include <stdlib.h>
6556 _ACEOF
6557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558 $EGREP "free" >/dev/null 2>&1; then
6560 else
6561 ac_cv_header_stdc=no
6563 rm -f conftest*
6567 if test $ac_cv_header_stdc = yes; then
6568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6569 if test "$cross_compiling" = yes; then
6571 else
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 #include <ctype.h>
6579 #include <stdlib.h>
6580 #if ((' ' & 0x0FF) == 0x020)
6581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6583 #else
6584 # define ISLOWER(c) \
6585 (('a' <= (c) && (c) <= 'i') \
6586 || ('j' <= (c) && (c) <= 'r') \
6587 || ('s' <= (c) && (c) <= 'z'))
6588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6589 #endif
6591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6593 main ()
6595 int i;
6596 for (i = 0; i < 256; i++)
6597 if (XOR (islower (i), ISLOWER (i))
6598 || toupper (i) != TOUPPER (i))
6599 return 2;
6600 return 0;
6602 _ACEOF
6603 rm -f conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6605 case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_link") 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6614 { (case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_try") 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6624 else
6625 echo "$as_me: program exited with status $ac_status" >&5
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ( exit $ac_status )
6630 ac_cv_header_stdc=no
6632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6638 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6639 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6640 if test $ac_cv_header_stdc = yes; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define STDC_HEADERS 1
6644 _ACEOF
6648 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6649 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6650 if test "${ac_cv_header_time+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 #include <sys/types.h>
6660 #include <sys/time.h>
6661 #include <time.h>
6664 main ()
6666 if ((struct tm *) 0)
6667 return 0;
6669 return 0;
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6674 case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677 esac
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679 (eval "$ac_compile") 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest.$ac_objext; then
6689 ac_cv_header_time=yes
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cv_header_time=no
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6700 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6701 if test $ac_cv_header_time = yes; then
6703 cat >>confdefs.h <<\_ACEOF
6704 #define TIME_WITH_SYS_TIME 1
6705 _ACEOF
6709 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6710 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6711 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 $ac_includes_default
6722 main ()
6724 #ifndef sys_siglist
6725 (void) sys_siglist;
6726 #endif
6729 return 0;
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (ac_try="$ac_compile"
6734 case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_compile") 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest.$ac_objext; then
6749 ac_cv_have_decl_sys_siglist=yes
6750 else
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ac_cv_have_decl_sys_siglist=no
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6760 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6761 if test $ac_cv_have_decl_sys_siglist = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_DECL_SYS_SIGLIST 1
6765 _ACEOF
6768 else
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_DECL_SYS_SIGLIST 0
6771 _ACEOF
6777 if test $ac_cv_have_decl_sys_siglist != yes; then
6778 # For Tru64, at least:
6779 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6780 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6781 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 $ac_includes_default
6792 main ()
6794 #ifndef __sys_siglist
6795 (void) __sys_siglist;
6796 #endif
6799 return 0;
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (ac_try="$ac_compile"
6804 case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807 esac
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_compile") 2>conftest.er1
6810 ac_status=$?
6811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.$ac_objext; then
6819 ac_cv_have_decl___sys_siglist=yes
6820 else
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_cv_have_decl___sys_siglist=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6830 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6831 if test $ac_cv_have_decl___sys_siglist = yes; then
6833 cat >>confdefs.h <<_ACEOF
6834 #define HAVE_DECL___SYS_SIGLIST 1
6835 _ACEOF
6838 else
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_DECL___SYS_SIGLIST 0
6841 _ACEOF
6847 if test $ac_cv_have_decl___sys_siglist = yes; then
6849 cat >>confdefs.h <<\_ACEOF
6850 #define sys_siglist __sys_siglist
6851 _ACEOF
6855 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6856 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6857 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h. */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 #include <sys/types.h>
6867 #include <sys/wait.h>
6868 #ifndef WEXITSTATUS
6869 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6870 #endif
6871 #ifndef WIFEXITED
6872 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6873 #endif
6876 main ()
6878 int s;
6879 wait (&s);
6880 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_header_sys_wait_h=yes
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_header_sys_wait_h=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6913 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6914 if test $ac_cv_header_sys_wait_h = yes; then
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_SYS_WAIT_H 1
6918 _ACEOF
6923 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6924 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6925 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 #ifdef TIME_WITH_SYS_TIME
6935 #include <sys/time.h>
6936 #include <time.h>
6937 #else
6938 #ifdef HAVE_SYS_TIME_H
6939 #include <sys/time.h>
6940 #else
6941 #include <time.h>
6942 #endif
6943 #endif
6944 #ifdef HAVE_UTIME_H
6945 #include <utime.h>
6946 #endif
6948 main ()
6950 static struct utimbuf x; x.actime = x.modtime;
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 emacs_cv_struct_utimbuf=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 emacs_cv_struct_utimbuf=no
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6983 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
6984 if test $emacs_cv_struct_utimbuf = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_STRUCT_UTIMBUF 1
6988 _ACEOF
6992 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6993 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6994 if test "${ac_cv_type_signal+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <sys/types.h>
7004 #include <signal.h>
7007 main ()
7009 return *(signal (0, 0)) (0) == 1;
7011 return 0;
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (ac_try="$ac_compile"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_compile") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest.$ac_objext; then
7031 ac_cv_type_signal=int
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_type_signal=void
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7042 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7044 cat >>confdefs.h <<_ACEOF
7045 #define RETSIGTYPE $ac_cv_type_signal
7046 _ACEOF
7050 { echo "$as_me:$LINENO: checking for speed_t" >&5
7051 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7052 if test "${emacs_cv_speed_t+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <termios.h>
7063 main ()
7065 speed_t x = 1;
7067 return 0;
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.$ac_objext; then
7087 emacs_cv_speed_t=yes
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 emacs_cv_speed_t=no
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7098 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7099 if test $emacs_cv_speed_t = yes; then
7101 cat >>confdefs.h <<\_ACEOF
7102 #define HAVE_SPEED_T 1
7103 _ACEOF
7107 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7108 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7109 if test "${emacs_cv_struct_timeval+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 #ifdef TIME_WITH_SYS_TIME
7119 #include <sys/time.h>
7120 #include <time.h>
7121 #else
7122 #ifdef HAVE_SYS_TIME_H
7123 #include <sys/time.h>
7124 #else
7125 #include <time.h>
7126 #endif
7127 #endif
7129 main ()
7131 static struct timeval x; x.tv_sec = x.tv_usec;
7133 return 0;
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7138 case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.$ac_objext; then
7153 emacs_cv_struct_timeval=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 emacs_cv_struct_timeval=no
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7164 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7165 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7166 if test $emacs_cv_struct_timeval = yes; then
7168 cat >>confdefs.h <<\_ACEOF
7169 #define HAVE_TIMEVAL 1
7170 _ACEOF
7174 { echo "$as_me:$LINENO: checking for struct exception" >&5
7175 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7176 if test "${emacs_cv_struct_exception+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 #include <math.h>
7187 main ()
7189 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7191 return 0;
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (ac_try="$ac_compile"
7196 case "(($ac_try" in
7197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7199 esac
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 emacs_cv_struct_exception=yes
7212 else
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 emacs_cv_struct_exception=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7222 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7223 HAVE_EXCEPTION=$emacs_cv_struct_exception
7224 if test $emacs_cv_struct_exception != yes; then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define NO_MATHERR 1
7228 _ACEOF
7233 for ac_header in sys/socket.h
7235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 ac_res=`eval echo '${'$as_ac_Header'}'`
7243 { echo "$as_me:$LINENO: result: $ac_res" >&5
7244 echo "${ECHO_T}$ac_res" >&6; }
7245 else
7246 # Is the header compilable?
7247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7256 #include <$ac_header>
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_header_compiler=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_header_compiler=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7285 echo "${ECHO_T}$ac_header_compiler" >&6; }
7287 # Is the header present?
7288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h. */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 #include <$ac_header>
7297 _ACEOF
7298 if { (ac_try="$ac_cpp conftest.$ac_ext"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } >/dev/null && {
7311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 }; then
7314 ac_header_preproc=yes
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 ac_header_preproc=no
7322 rm -f conftest.err conftest.$ac_ext
7323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7324 echo "${ECHO_T}$ac_header_preproc" >&6; }
7326 # So? What about this header?
7327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7328 yes:no: )
7329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7333 ac_header_preproc=yes
7335 no:yes:* )
7336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7350 esac
7351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 eval "$as_ac_Header=\$ac_header_preproc"
7358 ac_res=`eval echo '${'$as_ac_Header'}'`
7359 { echo "$as_me:$LINENO: result: $ac_res" >&5
7360 echo "${ECHO_T}$ac_res" >&6; }
7363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7364 cat >>confdefs.h <<_ACEOF
7365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7366 _ACEOF
7370 done
7373 for ac_header in net/if.h
7375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 #if HAVE_SYS_SOCKET_H
7389 #include <sys/socket.h>
7390 #endif
7392 #include <$ac_header>
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7396 case "(($ac_try" in
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 eval "$as_ac_Header=yes"
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 eval "$as_ac_Header=no"
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 ac_res=`eval echo '${'$as_ac_Header'}'`
7422 { echo "$as_me:$LINENO: result: $ac_res" >&5
7423 echo "${ECHO_T}$ac_res" >&6; }
7424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7425 cat >>confdefs.h <<_ACEOF
7426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7427 _ACEOF
7431 done
7434 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7435 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7436 if test "${ac_cv_struct_tm+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <sys/types.h>
7446 #include <time.h>
7449 main ()
7451 struct tm tm;
7452 int *p = &tm.tm_sec;
7453 return !p;
7455 return 0;
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (ac_try="$ac_compile"
7460 case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7463 esac
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_compile") 2>conftest.er1
7466 ac_status=$?
7467 grep -v '^ *+' conftest.er1 >conftest.err
7468 rm -f conftest.er1
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } && {
7472 test -z "$ac_c_werror_flag" ||
7473 test ! -s conftest.err
7474 } && test -s conftest.$ac_objext; then
7475 ac_cv_struct_tm=time.h
7476 else
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7480 ac_cv_struct_tm=sys/time.h
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7486 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7487 if test $ac_cv_struct_tm = sys/time.h; then
7489 cat >>confdefs.h <<\_ACEOF
7490 #define TM_IN_SYS_TIME 1
7491 _ACEOF
7495 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7496 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7497 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h. */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 #include <sys/types.h>
7507 #include <$ac_cv_struct_tm>
7511 main ()
7513 static struct tm ac_aggr;
7514 if (ac_aggr.tm_zone)
7515 return 0;
7517 return 0;
7519 _ACEOF
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7522 case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest.$ac_objext; then
7537 ac_cv_member_struct_tm_tm_zone=yes
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 #include <sys/types.h>
7549 #include <$ac_cv_struct_tm>
7553 main ()
7555 static struct tm ac_aggr;
7556 if (sizeof ac_aggr.tm_zone)
7557 return 0;
7559 return 0;
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7564 case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7579 ac_cv_member_struct_tm_tm_zone=yes
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_cv_member_struct_tm_tm_zone=no
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7593 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7594 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7596 cat >>confdefs.h <<_ACEOF
7597 #define HAVE_STRUCT_TM_TM_ZONE 1
7598 _ACEOF
7603 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7605 cat >>confdefs.h <<\_ACEOF
7606 #define HAVE_TM_ZONE 1
7607 _ACEOF
7609 else
7610 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7611 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7612 if test "${ac_cv_have_decl_tzname+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <time.h>
7624 main ()
7626 #ifndef tzname
7627 (void) tzname;
7628 #endif
7631 return 0;
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (ac_try="$ac_compile"
7636 case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7651 ac_cv_have_decl_tzname=yes
7652 else
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_have_decl_tzname=no
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7662 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7663 if test $ac_cv_have_decl_tzname = yes; then
7665 cat >>confdefs.h <<_ACEOF
7666 #define HAVE_DECL_TZNAME 1
7667 _ACEOF
7670 else
7671 cat >>confdefs.h <<_ACEOF
7672 #define HAVE_DECL_TZNAME 0
7673 _ACEOF
7679 { echo "$as_me:$LINENO: checking for tzname" >&5
7680 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7681 if test "${ac_cv_var_tzname+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 #include <time.h>
7691 #if !HAVE_DECL_TZNAME
7692 extern char *tzname[];
7693 #endif
7696 main ()
7698 return tzname[0][0];
7700 return 0;
7702 _ACEOF
7703 rm -f conftest.$ac_objext conftest$ac_exeext
7704 if { (ac_try="$ac_link"
7705 case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7708 esac
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_link") 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest$ac_exeext &&
7720 $as_test_x conftest$ac_exeext; then
7721 ac_cv_var_tzname=yes
7722 else
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 ac_cv_var_tzname=no
7729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7730 conftest$ac_exeext conftest.$ac_ext
7732 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7733 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7734 if test $ac_cv_var_tzname = yes; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_TZNAME 1
7738 _ACEOF
7743 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7744 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7745 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <time.h>
7757 main ()
7759 static struct tm ac_aggr;
7760 if (ac_aggr.tm_gmtoff)
7761 return 0;
7763 return 0;
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_compile") 2>conftest.er1
7774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest.$ac_objext; then
7783 ac_cv_member_struct_tm_tm_gmtoff=yes
7784 else
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <time.h>
7797 main ()
7799 static struct tm ac_aggr;
7800 if (sizeof ac_aggr.tm_gmtoff)
7801 return 0;
7803 return 0;
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 ac_cv_member_struct_tm_tm_gmtoff=yes
7824 else
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 ac_cv_member_struct_tm_tm_gmtoff=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7837 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7838 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7840 cat >>confdefs.h <<\_ACEOF
7841 #define HAVE_TM_GMTOFF 1
7842 _ACEOF
7846 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7847 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7848 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 #if HAVE_SYS_SOCKET_H
7859 #include <sys/socket.h>
7860 #endif
7861 #if HAVE_NET_IF_H
7862 #include <net/if.h>
7863 #endif
7866 main ()
7868 static struct ifreq ac_aggr;
7869 if (ac_aggr.ifr_flags)
7870 return 0;
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (ac_try="$ac_compile"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest.$ac_objext; then
7892 ac_cv_member_struct_ifreq_ifr_flags=yes
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7904 #if HAVE_SYS_SOCKET_H
7905 #include <sys/socket.h>
7906 #endif
7907 #if HAVE_NET_IF_H
7908 #include <net/if.h>
7909 #endif
7912 main ()
7914 static struct ifreq ac_aggr;
7915 if (sizeof ac_aggr.ifr_flags)
7916 return 0;
7918 return 0;
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 ac_cv_member_struct_ifreq_ifr_flags=yes
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_cv_member_struct_ifreq_ifr_flags=no
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7952 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7953 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7955 cat >>confdefs.h <<_ACEOF
7956 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7957 _ACEOF
7961 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7962 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
7963 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 $ac_includes_default
7973 #if HAVE_SYS_SOCKET_H
7974 #include <sys/socket.h>
7975 #endif
7976 #if HAVE_NET_IF_H
7977 #include <net/if.h>
7978 #endif
7981 main ()
7983 static struct ifreq ac_aggr;
7984 if (ac_aggr.ifr_hwaddr)
7985 return 0;
7987 return 0;
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (ac_try="$ac_compile"
7992 case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_compile") 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && {
8004 test -z "$ac_c_werror_flag" ||
8005 test ! -s conftest.err
8006 } && test -s conftest.$ac_objext; then
8007 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #if HAVE_SYS_SOCKET_H
8020 #include <sys/socket.h>
8021 #endif
8022 #if HAVE_NET_IF_H
8023 #include <net/if.h>
8024 #endif
8027 main ()
8029 static struct ifreq ac_aggr;
8030 if (sizeof ac_aggr.ifr_hwaddr)
8031 return 0;
8033 return 0;
8035 _ACEOF
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8038 case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8041 esac
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_compile") 2>conftest.er1
8044 ac_status=$?
8045 grep -v '^ *+' conftest.er1 >conftest.err
8046 rm -f conftest.er1
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && {
8050 test -z "$ac_c_werror_flag" ||
8051 test ! -s conftest.err
8052 } && test -s conftest.$ac_objext; then
8053 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8067 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8068 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8070 cat >>confdefs.h <<_ACEOF
8071 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8072 _ACEOF
8076 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8077 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8078 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8088 #if HAVE_SYS_SOCKET_H
8089 #include <sys/socket.h>
8090 #endif
8091 #if HAVE_NET_IF_H
8092 #include <net/if.h>
8093 #endif
8096 main ()
8098 static struct ifreq ac_aggr;
8099 if (ac_aggr.ifr_netmask)
8100 return 0;
8102 return 0;
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.$ac_objext; then
8122 ac_cv_member_struct_ifreq_ifr_netmask=yes
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 $ac_includes_default
8134 #if HAVE_SYS_SOCKET_H
8135 #include <sys/socket.h>
8136 #endif
8137 #if HAVE_NET_IF_H
8138 #include <net/if.h>
8139 #endif
8142 main ()
8144 static struct ifreq ac_aggr;
8145 if (sizeof ac_aggr.ifr_netmask)
8146 return 0;
8148 return 0;
8150 _ACEOF
8151 rm -f conftest.$ac_objext
8152 if { (ac_try="$ac_compile"
8153 case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_compile") 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest.$ac_objext; then
8168 ac_cv_member_struct_ifreq_ifr_netmask=yes
8169 else
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_cv_member_struct_ifreq_ifr_netmask=no
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8182 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8183 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8185 cat >>confdefs.h <<_ACEOF
8186 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8187 _ACEOF
8191 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8192 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8193 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 #if HAVE_SYS_SOCKET_H
8204 #include <sys/socket.h>
8205 #endif
8206 #if HAVE_NET_IF_H
8207 #include <net/if.h>
8208 #endif
8211 main ()
8213 static struct ifreq ac_aggr;
8214 if (ac_aggr.ifr_broadaddr)
8215 return 0;
8217 return 0;
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8222 case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.$ac_objext; then
8237 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8249 #if HAVE_SYS_SOCKET_H
8250 #include <sys/socket.h>
8251 #endif
8252 #if HAVE_NET_IF_H
8253 #include <net/if.h>
8254 #endif
8257 main ()
8259 static struct ifreq ac_aggr;
8260 if (sizeof ac_aggr.ifr_broadaddr)
8261 return 0;
8263 return 0;
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8297 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8298 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8300 cat >>confdefs.h <<_ACEOF
8301 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8302 _ACEOF
8306 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8307 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8308 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 $ac_includes_default
8318 #if HAVE_SYS_SOCKET_H
8319 #include <sys/socket.h>
8320 #endif
8321 #if HAVE_NET_IF_H
8322 #include <net/if.h>
8323 #endif
8326 main ()
8328 static struct ifreq ac_aggr;
8329 if (ac_aggr.ifr_addr)
8330 return 0;
8332 return 0;
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8337 case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340 esac
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest.$ac_objext; then
8352 ac_cv_member_struct_ifreq_ifr_addr=yes
8353 else
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8364 #if HAVE_SYS_SOCKET_H
8365 #include <sys/socket.h>
8366 #endif
8367 #if HAVE_NET_IF_H
8368 #include <net/if.h>
8369 #endif
8372 main ()
8374 static struct ifreq ac_aggr;
8375 if (sizeof ac_aggr.ifr_addr)
8376 return 0;
8378 return 0;
8380 _ACEOF
8381 rm -f conftest.$ac_objext
8382 if { (ac_try="$ac_compile"
8383 case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8386 esac
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_compile") 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && {
8395 test -z "$ac_c_werror_flag" ||
8396 test ! -s conftest.err
8397 } && test -s conftest.$ac_objext; then
8398 ac_cv_member_struct_ifreq_ifr_addr=yes
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_cv_member_struct_ifreq_ifr_addr=no
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8412 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8413 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8415 cat >>confdefs.h <<_ACEOF
8416 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8417 _ACEOF
8424 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8425 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8426 if test "$ac_cv_prog_cc_c89" != no; then
8427 { echo "$as_me:$LINENO: result: yes" >&5
8428 echo "${ECHO_T}yes" >&6; }
8430 cat >>confdefs.h <<\_ACEOF
8431 #define PROTOTYPES 1
8432 _ACEOF
8435 cat >>confdefs.h <<\_ACEOF
8436 #define __PROTOTYPES 1
8437 _ACEOF
8439 else
8440 { echo "$as_me:$LINENO: result: no" >&5
8441 echo "${ECHO_T}no" >&6; }
8444 { echo "$as_me:$LINENO: checking for working volatile" >&5
8445 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8446 if test "${ac_cv_c_volatile+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8457 main ()
8460 volatile int x;
8461 int * volatile y = (int *) 0;
8462 return !x && !y;
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 ac_cv_c_volatile=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_c_volatile=no
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8495 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8496 if test $ac_cv_c_volatile = no; then
8498 cat >>confdefs.h <<\_ACEOF
8499 #define volatile
8500 _ACEOF
8504 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8505 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8506 if test "${ac_cv_c_const+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h. */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8517 main ()
8519 /* FIXME: Include the comments suggested by Paul. */
8520 #ifndef __cplusplus
8521 /* Ultrix mips cc rejects this. */
8522 typedef int charset[2];
8523 const charset cs;
8524 /* SunOS 4.1.1 cc rejects this. */
8525 char const *const *pcpcc;
8526 char **ppc;
8527 /* NEC SVR4.0.2 mips cc rejects this. */
8528 struct point {int x, y;};
8529 static struct point const zero = {0,0};
8530 /* AIX XL C 1.02.0.0 rejects this.
8531 It does not let you subtract one const X* pointer from another in
8532 an arm of an if-expression whose if-part is not a constant
8533 expression */
8534 const char *g = "string";
8535 pcpcc = &g + (g ? g-g : 0);
8536 /* HPUX 7.0 cc rejects these. */
8537 ++pcpcc;
8538 ppc = (char**) pcpcc;
8539 pcpcc = (char const *const *) ppc;
8540 { /* SCO 3.2v4 cc rejects this. */
8541 char *t;
8542 char const *s = 0 ? (char *) 0 : (char const *) 0;
8544 *t++ = 0;
8545 if (s) return 0;
8547 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8548 int x[] = {25, 17};
8549 const int *foo = &x[0];
8550 ++foo;
8552 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8553 typedef const int *iptr;
8554 iptr p = 0;
8555 ++p;
8557 { /* AIX XL C 1.02.0.0 rejects this saying
8558 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8559 struct s { int j; const int *ap[3]; };
8560 struct s *b; b->j = 5;
8562 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8563 const int foo = 10;
8564 if (!foo) return 0;
8566 return !cs[0] && !zero.x;
8567 #endif
8570 return 0;
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
8590 ac_cv_c_const=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_cv_c_const=no
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8601 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8602 if test $ac_cv_c_const = no; then
8604 cat >>confdefs.h <<\_ACEOF
8605 #define const
8606 _ACEOF
8610 { echo "$as_me:$LINENO: checking for void * support" >&5
8611 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8612 if test "${emacs_cv_void_star+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8623 main ()
8625 void * foo;
8627 return 0;
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8632 case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_compile") 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && {
8644 test -z "$ac_c_werror_flag" ||
8645 test ! -s conftest.err
8646 } && test -s conftest.$ac_objext; then
8647 emacs_cv_void_star=yes
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8652 emacs_cv_void_star=no
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8658 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8659 if test $emacs_cv_void_star = yes; then
8660 cat >>confdefs.h <<\_ACEOF
8661 #define POINTER_TYPE void
8662 _ACEOF
8664 else
8665 cat >>confdefs.h <<\_ACEOF
8666 #define POINTER_TYPE char
8667 _ACEOF
8675 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8676 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8677 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8678 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681 cat >conftest.make <<\_ACEOF
8682 SHELL = /bin/sh
8683 all:
8684 @echo '@@@%%%=$(MAKE)=@@@%%%'
8685 _ACEOF
8686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8688 *@@@%%%=?*=@@@%%%*)
8689 eval ac_cv_prog_make_${ac_make}_set=yes;;
8691 eval ac_cv_prog_make_${ac_make}_set=no;;
8692 esac
8693 rm -f conftest.make
8695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8696 { echo "$as_me:$LINENO: result: yes" >&5
8697 echo "${ECHO_T}yes" >&6; }
8698 SET_MAKE=
8699 else
8700 { echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6; }
8702 SET_MAKE="MAKE=${MAKE-make}"
8706 { echo "$as_me:$LINENO: checking for long file names" >&5
8707 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8708 if test "${ac_cv_sys_long_file_names+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 ac_cv_sys_long_file_names=yes
8712 # Test for long file names in all the places we know might matter:
8713 # . the current directory, where building will happen
8714 # $prefix/lib where we will be installing things
8715 # $exec_prefix/lib likewise
8716 # $TMPDIR if set, where it might want to write temporary files
8717 # /tmp where it might want to write temporary files
8718 # /var/tmp likewise
8719 # /usr/tmp likewise
8720 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8721 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8722 # in the usual case where exec_prefix is '${prefix}'.
8723 case $ac_dir in #(
8724 . | /* | ?:[\\/]*) ;; #(
8725 *) continue;;
8726 esac
8727 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8728 ac_xdir=$ac_dir/cf$$
8729 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8730 ac_tf1=$ac_xdir/conftest9012345
8731 ac_tf2=$ac_xdir/conftest9012346
8732 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8733 ac_cv_sys_long_file_names=no
8734 rm -f -r "$ac_xdir" 2>/dev/null
8735 test $ac_cv_sys_long_file_names = no && break
8736 done
8738 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8739 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8740 if test $ac_cv_sys_long_file_names = yes; then
8742 cat >>confdefs.h <<\_ACEOF
8743 #define HAVE_LONG_FILE_NAMES 1
8744 _ACEOF
8749 #### Choose a window system.
8751 { echo "$as_me:$LINENO: checking for X" >&5
8752 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8755 # Check whether --with-x was given.
8756 if test "${with_x+set}" = set; then
8757 withval=$with_x;
8760 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8761 if test "x$with_x" = xno; then
8762 # The user explicitly disabled X.
8763 have_x=disabled
8764 else
8765 case $x_includes,$x_libraries in #(
8766 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8767 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8768 { (exit 1); exit 1; }; };; #(
8769 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772 # One or both of the vars are not set, and there is no cached value.
8773 ac_x_includes=no ac_x_libraries=no
8774 rm -f -r conftest.dir
8775 if mkdir conftest.dir; then
8776 cd conftest.dir
8777 cat >Imakefile <<'_ACEOF'
8778 incroot:
8779 @echo incroot='${INCROOT}'
8780 usrlibdir:
8781 @echo usrlibdir='${USRLIBDIR}'
8782 libdir:
8783 @echo libdir='${LIBDIR}'
8784 _ACEOF
8785 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8787 for ac_var in incroot usrlibdir libdir; do
8788 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8789 done
8790 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8791 for ac_extension in a so sl; do
8792 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8793 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8794 ac_im_usrlibdir=$ac_im_libdir; break
8796 done
8797 # Screen out bogus values from the imake configuration. They are
8798 # bogus both because they are the default anyway, and because
8799 # using them would break gcc on systems where it needs fixed includes.
8800 case $ac_im_incroot in
8801 /usr/include) ac_x_includes= ;;
8802 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8803 esac
8804 case $ac_im_usrlibdir in
8805 /usr/lib | /lib) ;;
8806 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8807 esac
8809 cd ..
8810 rm -f -r conftest.dir
8813 # Standard set of common directories for X headers.
8814 # Check X11 before X11Rn because it is often a symlink to the current release.
8815 ac_x_header_dirs='
8816 /usr/X11/include
8817 /usr/X11R6/include
8818 /usr/X11R5/include
8819 /usr/X11R4/include
8821 /usr/include/X11
8822 /usr/include/X11R6
8823 /usr/include/X11R5
8824 /usr/include/X11R4
8826 /usr/local/X11/include
8827 /usr/local/X11R6/include
8828 /usr/local/X11R5/include
8829 /usr/local/X11R4/include
8831 /usr/local/include/X11
8832 /usr/local/include/X11R6
8833 /usr/local/include/X11R5
8834 /usr/local/include/X11R4
8836 /usr/X386/include
8837 /usr/x386/include
8838 /usr/XFree86/include/X11
8840 /usr/include
8841 /usr/local/include
8842 /usr/unsupported/include
8843 /usr/athena/include
8844 /usr/local/x11r5/include
8845 /usr/lpp/Xamples/include
8847 /usr/openwin/include
8848 /usr/openwin/share/include'
8850 if test "$ac_x_includes" = no; then
8851 # Guess where to find include files, by looking for Xlib.h.
8852 # First, try using that file with no special directory specified.
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 #include <X11/Xlib.h>
8860 _ACEOF
8861 if { (ac_try="$ac_cpp conftest.$ac_ext"
8862 case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } >/dev/null && {
8874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8875 test ! -s conftest.err
8876 }; then
8877 # We can compile using X headers with no special include directory.
8878 ac_x_includes=
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 for ac_dir in $ac_x_header_dirs; do
8884 if test -r "$ac_dir/X11/Xlib.h"; then
8885 ac_x_includes=$ac_dir
8886 break
8888 done
8891 rm -f conftest.err conftest.$ac_ext
8892 fi # $ac_x_includes = no
8894 if test "$ac_x_libraries" = no; then
8895 # Check for the libraries.
8896 # See if we find them without any special options.
8897 # Don't add to $LIBS permanently.
8898 ac_save_LIBS=$LIBS
8899 LIBS="-lX11 $LIBS"
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 #include <X11/Xlib.h>
8908 main ()
8910 XrmInitialize ()
8912 return 0;
8914 _ACEOF
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (ac_try="$ac_link"
8917 case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920 esac
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_link") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest$ac_exeext &&
8932 $as_test_x conftest$ac_exeext; then
8933 LIBS=$ac_save_LIBS
8934 # We can link X programs with no special library path.
8935 ac_x_libraries=
8936 else
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 LIBS=$ac_save_LIBS
8941 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8943 # Don't even attempt the hair of trying to link an X program!
8944 for ac_extension in a so sl; do
8945 if test -r "$ac_dir/libX11.$ac_extension"; then
8946 ac_x_libraries=$ac_dir
8947 break 2
8949 done
8950 done
8953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8954 conftest$ac_exeext conftest.$ac_ext
8955 fi # $ac_x_libraries = no
8957 case $ac_x_includes,$ac_x_libraries in #(
8958 no,* | *,no | *\'*)
8959 # Didn't find X, or a directory has "'" in its name.
8960 ac_cv_have_x="have_x=no";; #(
8962 # Record where we found X for the cache.
8963 ac_cv_have_x="have_x=yes\
8964 ac_x_includes='$ac_x_includes'\
8965 ac_x_libraries='$ac_x_libraries'"
8966 esac
8968 ;; #(
8969 *) have_x=yes;;
8970 esac
8971 eval "$ac_cv_have_x"
8972 fi # $with_x != no
8974 if test "$have_x" != yes; then
8975 { echo "$as_me:$LINENO: result: $have_x" >&5
8976 echo "${ECHO_T}$have_x" >&6; }
8977 no_x=yes
8978 else
8979 # If each of the values was on the command line, it overrides each guess.
8980 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8981 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8982 # Update the cache value to reflect the command line values.
8983 ac_cv_have_x="have_x=yes\
8984 ac_x_includes='$x_includes'\
8985 ac_x_libraries='$x_libraries'"
8986 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8987 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
8990 if test "$no_x" = yes; then
8991 window_system=none
8992 else
8993 window_system=x11
8996 if test "${x_libraries}" != NONE; then
8997 if test -n "${x_libraries}"; then
8998 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8999 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9001 x_default_search_path=""
9002 x_search_path=${x_libraries}
9003 if test -z "${x_search_path}"; then
9004 x_search_path=/usr/lib
9006 for x_library in `echo ${x_search_path}: | \
9007 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9008 x_search_path="\
9009 ${x_library}/X11/%L/%T/%N%C%S:\
9010 ${x_library}/X11/%l/%T/%N%C%S:\
9011 ${x_library}/X11/%T/%N%C%S:\
9012 ${x_library}/X11/%L/%T/%N%S:\
9013 ${x_library}/X11/%l/%T/%N%S:\
9014 ${x_library}/X11/%T/%N%S"
9015 if test x"${x_default_search_path}" = x; then
9016 x_default_search_path=${x_search_path}
9017 else
9018 x_default_search_path="${x_search_path}:${x_default_search_path}"
9020 done
9022 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9023 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9026 if test x"${x_includes}" = x; then
9027 bitmapdir=/usr/include/X11/bitmaps
9028 else
9029 # accumulate include directories that have X11 bitmap subdirectories
9030 bmd_acc="dummyval"
9031 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9032 if test -d "${bmd}/X11/bitmaps"; then
9033 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9035 if test -d "${bmd}/bitmaps"; then
9036 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9038 done
9039 if test ${bmd_acc} != "dummyval"; then
9040 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9044 HAVE_CARBON=no
9045 if test "${with_carbon}" != no; then
9046 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9047 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9048 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9049 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9053 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9054 else
9055 # Is the header compilable?
9056 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9057 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 #include <Carbon/Carbon.h>
9066 _ACEOF
9067 rm -f conftest.$ac_objext
9068 if { (ac_try="$ac_compile"
9069 case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_compile") 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && {
9081 test -z "$ac_c_werror_flag" ||
9082 test ! -s conftest.err
9083 } && test -s conftest.$ac_objext; then
9084 ac_header_compiler=yes
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6; }
9096 # Is the header present?
9097 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9098 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #include <Carbon/Carbon.h>
9106 _ACEOF
9107 if { (ac_try="$ac_cpp conftest.$ac_ext"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } >/dev/null && {
9120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 }; then
9123 ac_header_preproc=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6; }
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137 yes:no: )
9138 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9144 no:yes:* )
9145 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9159 esac
9160 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9161 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9162 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9167 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9168 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9171 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9172 HAVE_CARBON=yes
9177 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9178 if test "${with_carbon+set}" != set \
9179 && test "${carbon_appdir_x+set}" != set; then
9180 for var in with_x with_x_toolkit with_gtk with_xim \
9181 with_xpm with_jpeg with_tiff with_gif with_png; do
9182 if eval test \"\${$var+set}\" = set; then
9183 HAVE_CARBON=no
9184 break
9186 done
9189 if test "${HAVE_CARBON}" = yes; then
9190 window_system=mac
9193 case "${window_system}" in
9194 x11 )
9195 HAVE_X_WINDOWS=yes
9196 HAVE_X11=yes
9197 case "${with_x_toolkit}" in
9198 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9199 motif ) USE_X_TOOLKIT=MOTIF ;;
9200 gtk ) with_gtk=yes
9201 USE_X_TOOLKIT=none ;;
9202 no ) USE_X_TOOLKIT=none ;;
9204 if test x"$with_gtk" = xyes; then
9205 USE_X_TOOLKIT=none
9206 else
9207 USE_X_TOOLKIT=maybe
9210 esac
9212 mac | none )
9213 HAVE_X_WINDOWS=no
9214 HAVE_X11=no
9215 USE_X_TOOLKIT=none
9217 esac
9219 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9220 # Extract the first word of "X", so it can be a program name with args.
9221 set dummy X; ac_word=$2
9222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9224 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 if test -n "$HAVE_XSERVER"; then
9228 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237 ac_cv_prog_HAVE_XSERVER="true"
9238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9241 done
9242 done
9243 IFS=$as_save_IFS
9245 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9248 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9249 if test -n "$HAVE_XSERVER"; then
9250 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9251 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9252 else
9253 { echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6; }
9258 if test "$HAVE_XSERVER" = true ||
9259 test -n "$DISPLAY" ||
9260 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9261 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9262 were found. You should install the relevant development files for X
9263 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9264 sure you have development files for image handling, i.e.
9265 tiff, gif, jpeg, png and xpm.
9266 If you are sure you want Emacs compiled without X window support, pass
9267 --without-x
9268 to configure." >&5
9269 echo "$as_me: error: You seem to be running X, but no X development libraries
9270 were found. You should install the relevant development files for X
9271 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9272 sure you have development files for image handling, i.e.
9273 tiff, gif, jpeg, png and xpm.
9274 If you are sure you want Emacs compiled without X window support, pass
9275 --without-x
9276 to configure." >&2;}
9277 { (exit 1); exit 1; }; }
9281 ### If we're using X11, we should use the X menu package.
9282 HAVE_MENUS=no
9283 case ${HAVE_X11} in
9284 yes ) HAVE_MENUS=yes ;;
9285 esac
9287 ### Compute the unexec source name from the object name.
9288 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9290 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9291 # Assume not, until told otherwise.
9292 GNU_MALLOC=yes
9293 doug_lea_malloc=yes
9294 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9295 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9296 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9307 #define malloc_get_state innocuous_malloc_get_state
9309 /* System header to define __stub macros and hopefully few prototypes,
9310 which can conflict with char malloc_get_state (); below.
9311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312 <limits.h> exists even on freestanding compilers. */
9314 #ifdef __STDC__
9315 # include <limits.h>
9316 #else
9317 # include <assert.h>
9318 #endif
9320 #undef malloc_get_state
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 char malloc_get_state ();
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9333 choke me
9334 #endif
9337 main ()
9339 return malloc_get_state ();
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_link") 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest$ac_exeext &&
9361 $as_test_x conftest$ac_exeext; then
9362 ac_cv_func_malloc_get_state=yes
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_cv_func_malloc_get_state=no
9370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9371 conftest$ac_exeext conftest.$ac_ext
9373 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9374 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9375 if test $ac_cv_func_malloc_get_state = yes; then
9377 else
9378 doug_lea_malloc=no
9381 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9382 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9383 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9394 #define malloc_set_state innocuous_malloc_set_state
9396 /* System header to define __stub macros and hopefully few prototypes,
9397 which can conflict with char malloc_set_state (); below.
9398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399 <limits.h> exists even on freestanding compilers. */
9401 #ifdef __STDC__
9402 # include <limits.h>
9403 #else
9404 # include <assert.h>
9405 #endif
9407 #undef malloc_set_state
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9412 #ifdef __cplusplus
9413 extern "C"
9414 #endif
9415 char malloc_set_state ();
9416 /* The GNU C library defines this for functions which it implements
9417 to always fail with ENOSYS. Some functions are actually named
9418 something starting with __ and the normal name is an alias. */
9419 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9420 choke me
9421 #endif
9424 main ()
9426 return malloc_set_state ();
9428 return 0;
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (ac_try="$ac_link"
9433 case "(($ac_try" in
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_link") 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && {
9445 test -z "$ac_c_werror_flag" ||
9446 test ! -s conftest.err
9447 } && test -s conftest$ac_exeext &&
9448 $as_test_x conftest$ac_exeext; then
9449 ac_cv_func_malloc_set_state=yes
9450 else
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 ac_cv_func_malloc_set_state=no
9457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9458 conftest$ac_exeext conftest.$ac_ext
9460 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9461 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9462 if test $ac_cv_func_malloc_set_state = yes; then
9464 else
9465 doug_lea_malloc=no
9468 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9469 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9470 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 extern void (* __after_morecore_hook)();
9481 main ()
9483 __after_morecore_hook = 0
9485 return 0;
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506 emacs_cv_var___after_morecore_hook=yes
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 emacs_cv_var___after_morecore_hook=no
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515 conftest$ac_exeext conftest.$ac_ext
9517 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9518 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9519 if test $emacs_cv_var___after_morecore_hook = no; then
9520 doug_lea_malloc=no
9522 if test "${system_malloc}" = "yes"; then
9523 GNU_MALLOC=no
9524 GNU_MALLOC_reason="
9525 (The GNU allocators don't work with this system configuration.)"
9527 if test "$doug_lea_malloc" = "yes" ; then
9528 if test "$GNU_MALLOC" = yes ; then
9529 GNU_MALLOC_reason="
9530 (Using Doug Lea's new malloc from the GNU C Library.)"
9533 cat >>confdefs.h <<\_ACEOF
9534 #define DOUG_LEA_MALLOC 1
9535 _ACEOF
9539 if test x"${REL_ALLOC}" = x; then
9540 REL_ALLOC=${GNU_MALLOC}
9546 for ac_header in stdlib.h unistd.h
9548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 ac_res=`eval echo '${'$as_ac_Header'}'`
9556 { echo "$as_me:$LINENO: result: $ac_res" >&5
9557 echo "${ECHO_T}$ac_res" >&6; }
9558 else
9559 # Is the header compilable?
9560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 $ac_includes_default
9569 #include <$ac_header>
9570 _ACEOF
9571 rm -f conftest.$ac_objext
9572 if { (ac_try="$ac_compile"
9573 case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_compile") 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } && {
9585 test -z "$ac_c_werror_flag" ||
9586 test ! -s conftest.err
9587 } && test -s conftest.$ac_objext; then
9588 ac_header_compiler=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_header_compiler=no
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9598 echo "${ECHO_T}$ac_header_compiler" >&6; }
9600 # Is the header present?
9601 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 #include <$ac_header>
9610 _ACEOF
9611 if { (ac_try="$ac_cpp conftest.$ac_ext"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } >/dev/null && {
9624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 }; then
9627 ac_header_preproc=yes
9628 else
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_header_preproc=no
9635 rm -f conftest.err conftest.$ac_ext
9636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9637 echo "${ECHO_T}$ac_header_preproc" >&6; }
9639 # So? What about this header?
9640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9641 yes:no: )
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9646 ac_header_preproc=yes
9648 no:yes:* )
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9663 esac
9664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669 eval "$as_ac_Header=\$ac_header_preproc"
9671 ac_res=`eval echo '${'$as_ac_Header'}'`
9672 { echo "$as_me:$LINENO: result: $ac_res" >&5
9673 echo "${ECHO_T}$ac_res" >&6; }
9676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9677 cat >>confdefs.h <<_ACEOF
9678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9679 _ACEOF
9683 done
9686 for ac_func in getpagesize
9688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define $ac_func innocuous_$ac_func
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char $ac_func (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9709 #ifdef __STDC__
9710 # include <limits.h>
9711 #else
9712 # include <assert.h>
9713 #endif
9715 #undef $ac_func
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char $ac_func ();
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined __stub_$ac_func || defined __stub___$ac_func
9728 choke me
9729 #endif
9732 main ()
9734 return $ac_func ();
9736 return 0;
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9741 case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744 esac
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_link") 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } && {
9753 test -z "$ac_c_werror_flag" ||
9754 test ! -s conftest.err
9755 } && test -s conftest$ac_exeext &&
9756 $as_test_x conftest$ac_exeext; then
9757 eval "$as_ac_var=yes"
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 eval "$as_ac_var=no"
9765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9766 conftest$ac_exeext conftest.$ac_ext
9768 ac_res=`eval echo '${'$as_ac_var'}'`
9769 { echo "$as_me:$LINENO: result: $ac_res" >&5
9770 echo "${ECHO_T}$ac_res" >&6; }
9771 if test `eval echo '${'$as_ac_var'}'` = yes; then
9772 cat >>confdefs.h <<_ACEOF
9773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9774 _ACEOF
9777 done
9779 { echo "$as_me:$LINENO: checking for working mmap" >&5
9780 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9781 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 if test "$cross_compiling" = yes; then
9785 ac_cv_func_mmap_fixed_mapped=no
9786 else
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 /* malloc might have been renamed as rpl_malloc. */
9795 #undef malloc
9797 /* Thanks to Mike Haertel and Jim Avera for this test.
9798 Here is a matrix of mmap possibilities:
9799 mmap private not fixed
9800 mmap private fixed at somewhere currently unmapped
9801 mmap private fixed at somewhere already mapped
9802 mmap shared not fixed
9803 mmap shared fixed at somewhere currently unmapped
9804 mmap shared fixed at somewhere already mapped
9805 For private mappings, we should verify that changes cannot be read()
9806 back from the file, nor mmap's back from the file at a different
9807 address. (There have been systems where private was not correctly
9808 implemented like the infamous i386 svr4.0, and systems where the
9809 VM page cache was not coherent with the file system buffer cache
9810 like early versions of FreeBSD and possibly contemporary NetBSD.)
9811 For shared mappings, we should conversely verify that changes get
9812 propagated back to all the places they're supposed to be.
9814 Grep wants private fixed already mapped.
9815 The main things grep needs to know about mmap are:
9816 * does it exist and is it safe to write into the mmap'd area
9817 * how to use it (BSD variants) */
9819 #include <fcntl.h>
9820 #include <sys/mman.h>
9822 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9823 char *malloc ();
9824 #endif
9826 /* This mess was copied from the GNU getpagesize.h. */
9827 #ifndef HAVE_GETPAGESIZE
9828 /* Assume that all systems that can run configure have sys/param.h. */
9829 # ifndef HAVE_SYS_PARAM_H
9830 # define HAVE_SYS_PARAM_H 1
9831 # endif
9833 # ifdef _SC_PAGESIZE
9834 # define getpagesize() sysconf(_SC_PAGESIZE)
9835 # else /* no _SC_PAGESIZE */
9836 # ifdef HAVE_SYS_PARAM_H
9837 # include <sys/param.h>
9838 # ifdef EXEC_PAGESIZE
9839 # define getpagesize() EXEC_PAGESIZE
9840 # else /* no EXEC_PAGESIZE */
9841 # ifdef NBPG
9842 # define getpagesize() NBPG * CLSIZE
9843 # ifndef CLSIZE
9844 # define CLSIZE 1
9845 # endif /* no CLSIZE */
9846 # else /* no NBPG */
9847 # ifdef NBPC
9848 # define getpagesize() NBPC
9849 # else /* no NBPC */
9850 # ifdef PAGESIZE
9851 # define getpagesize() PAGESIZE
9852 # endif /* PAGESIZE */
9853 # endif /* no NBPC */
9854 # endif /* no NBPG */
9855 # endif /* no EXEC_PAGESIZE */
9856 # else /* no HAVE_SYS_PARAM_H */
9857 # define getpagesize() 8192 /* punt totally */
9858 # endif /* no HAVE_SYS_PARAM_H */
9859 # endif /* no _SC_PAGESIZE */
9861 #endif /* no HAVE_GETPAGESIZE */
9864 main ()
9866 char *data, *data2, *data3;
9867 int i, pagesize;
9868 int fd;
9870 pagesize = getpagesize ();
9872 /* First, make a file with some known garbage in it. */
9873 data = (char *) malloc (pagesize);
9874 if (!data)
9875 return 1;
9876 for (i = 0; i < pagesize; ++i)
9877 *(data + i) = rand ();
9878 umask (0);
9879 fd = creat ("conftest.mmap", 0600);
9880 if (fd < 0)
9881 return 1;
9882 if (write (fd, data, pagesize) != pagesize)
9883 return 1;
9884 close (fd);
9886 /* Next, try to mmap the file at a fixed address which already has
9887 something else allocated at it. If we can, also make sure that
9888 we see the same garbage. */
9889 fd = open ("conftest.mmap", O_RDWR);
9890 if (fd < 0)
9891 return 1;
9892 data2 = (char *) malloc (2 * pagesize);
9893 if (!data2)
9894 return 1;
9895 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9896 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9897 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9898 return 1;
9899 for (i = 0; i < pagesize; ++i)
9900 if (*(data + i) != *(data2 + i))
9901 return 1;
9903 /* Finally, make sure that changes to the mapped area do not
9904 percolate back to the file as seen by read(). (This is a bug on
9905 some variants of i386 svr4.0.) */
9906 for (i = 0; i < pagesize; ++i)
9907 *(data2 + i) = *(data2 + i) + 1;
9908 data3 = (char *) malloc (pagesize);
9909 if (!data3)
9910 return 1;
9911 if (read (fd, data3, pagesize) != pagesize)
9912 return 1;
9913 for (i = 0; i < pagesize; ++i)
9914 if (*(data + i) != *(data3 + i))
9915 return 1;
9916 close (fd);
9917 return 0;
9919 _ACEOF
9920 rm -f conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9922 case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_link") 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_func_mmap_fixed_mapped=yes
9941 else
9942 echo "$as_me: program exited with status $ac_status" >&5
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ( exit $ac_status )
9947 ac_cv_func_mmap_fixed_mapped=no
9949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9954 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9955 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9956 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9958 cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_MMAP 1
9960 _ACEOF
9963 rm -f conftest.mmap
9965 if test $use_mmap_for_buffers = yes; then
9966 REL_ALLOC=no
9969 LIBS="$libsrc_libs $LIBS"
9972 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9973 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
9974 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-ldnet $LIBS"
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char dnet_ntoa ();
9994 main ()
9996 return dnet_ntoa ();
9998 return 0;
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (ac_try="$ac_link"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_link") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest$ac_exeext &&
10018 $as_test_x conftest$ac_exeext; then
10019 ac_cv_lib_dnet_dnet_ntoa=yes
10020 else
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ac_cv_lib_dnet_dnet_ntoa=no
10027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10033 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_LIBDNET 1
10036 _ACEOF
10038 LIBS="-ldnet $LIBS"
10043 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10044 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10045 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048 ac_check_lib_save_LIBS=$LIBS
10049 LIBS="-lXbsd $LIBS"
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10059 main ()
10061 return main ();
10063 return 0;
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext &&
10083 $as_test_x conftest$ac_exeext; then
10084 ac_cv_lib_Xbsd_main=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_lib_Xbsd_main=no
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10097 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10098 if test $ac_cv_lib_Xbsd_main = yes; then
10099 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10104 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10105 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10106 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109 ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-lpthreads $LIBS"
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char cma_open ();
10126 main ()
10128 return cma_open ();
10130 return 0;
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest$ac_exeext &&
10150 $as_test_x conftest$ac_exeext; then
10151 ac_cv_lib_pthreads_cma_open=yes
10152 else
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_cv_lib_pthreads_cma_open=no
10159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10163 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10164 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10165 if test $ac_cv_lib_pthreads_cma_open = yes; then
10166 cat >>confdefs.h <<_ACEOF
10167 #define HAVE_LIBPTHREADS 1
10168 _ACEOF
10170 LIBS="-lpthreads $LIBS"
10175 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10176 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10177 if test -d /usr/X386/include; then
10178 HAVE_XFREE386=yes
10179 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10180 else
10181 HAVE_XFREE386=no
10183 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10184 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10187 case ${host_os} in
10188 aix*)
10189 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10190 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10191 if test "${gdb_cv_bigtoc+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10195 case $GCC in
10196 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10197 *) gdb_cv_bigtoc=-bbigtoc ;;
10198 esac
10200 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10209 main ()
10211 int i;
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext &&
10233 $as_test_x conftest$ac_exeext; then
10235 else
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 gdb_cv_bigtoc=
10242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10243 conftest$ac_exeext conftest.$ac_ext
10246 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10247 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10249 esac
10251 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10252 # used for the tests that follow. We set them back to REAL_CFLAGS and
10253 # REAL_CPPFLAGS later on.
10255 REAL_CPPFLAGS="$CPPFLAGS"
10257 if test "${HAVE_X11}" = "yes"; then
10258 DEFS="$C_SWITCH_X_SITE $DEFS"
10259 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10260 LIBS="$LIBX $LIBS"
10261 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10262 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10264 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10265 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10266 # but it's more convenient here to set LD_RUN_PATH
10267 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10268 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10269 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10270 export LD_RUN_PATH
10273 if test "${opsys}" = "gnu-linux"; then
10274 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10275 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h. */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10284 main ()
10286 XOpenDisplay ("foo");
10288 return 0;
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_link") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest$ac_exeext &&
10308 $as_test_x conftest$ac_exeext; then
10309 xlinux_first_failure=no
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 xlinux_first_failure=yes
10317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10318 conftest$ac_exeext conftest.$ac_ext
10319 if test "${xlinux_first_failure}" = "yes"; then
10320 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10321 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10322 OLD_CPPFLAGS="$CPPFLAGS"
10323 OLD_LIBS="$LIBS"
10324 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10325 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10326 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10327 LIBS="$LIBS -b i486-linuxaout"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h. */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10336 main ()
10338 XOpenDisplay ("foo");
10340 return 0;
10342 _ACEOF
10343 rm -f conftest.$ac_objext conftest$ac_exeext
10344 if { (ac_try="$ac_link"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_link") 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest$ac_exeext &&
10360 $as_test_x conftest$ac_exeext; then
10361 xlinux_second_failure=no
10362 else
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 xlinux_second_failure=yes
10369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10370 conftest$ac_exeext conftest.$ac_ext
10371 if test "${xlinux_second_failure}" = "yes"; then
10372 # If we get the same failure with -b, there is no use adding -b.
10373 # So take it out. This plays safe.
10374 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10375 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10376 CPPFLAGS="$OLD_CPPFLAGS"
10377 LIBS="$OLD_LIBS"
10378 { echo "$as_me:$LINENO: result: no" >&5
10379 echo "${ECHO_T}no" >&6; }
10380 else
10381 { echo "$as_me:$LINENO: result: yes" >&5
10382 echo "${ECHO_T}yes" >&6; }
10384 else
10385 { echo "$as_me:$LINENO: result: no" >&5
10386 echo "${ECHO_T}no" >&6; }
10390 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10391 # header files included from there.
10392 { echo "$as_me:$LINENO: checking for Xkb" >&5
10393 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 #include <X11/Xlib.h>
10401 #include <X11/XKBlib.h>
10403 main ()
10405 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10407 return 0;
10409 _ACEOF
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (ac_try="$ac_link"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_link") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext &&
10427 $as_test_x conftest$ac_exeext; then
10428 emacs_xkb=yes
10429 else
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 emacs_xkb=no
10436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10437 conftest$ac_exeext conftest.$ac_ext
10438 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10439 echo "${ECHO_T}$emacs_xkb" >&6; }
10440 if test $emacs_xkb = yes; then
10442 cat >>confdefs.h <<\_ACEOF
10443 #define HAVE_XKBGETKEYBOARD 1
10444 _ACEOF
10452 for ac_func in XrmSetDatabase XScreenResourceString \
10453 XScreenNumberOfScreen XSetWMProtocols
10455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h. */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10469 #define $ac_func innocuous_$ac_func
10471 /* System header to define __stub macros and hopefully few prototypes,
10472 which can conflict with char $ac_func (); below.
10473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10474 <limits.h> exists even on freestanding compilers. */
10476 #ifdef __STDC__
10477 # include <limits.h>
10478 #else
10479 # include <assert.h>
10480 #endif
10482 #undef $ac_func
10484 /* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
10487 #ifdef __cplusplus
10488 extern "C"
10489 #endif
10490 char $ac_func ();
10491 /* The GNU C library defines this for functions which it implements
10492 to always fail with ENOSYS. Some functions are actually named
10493 something starting with __ and the normal name is an alias. */
10494 #if defined __stub_$ac_func || defined __stub___$ac_func
10495 choke me
10496 #endif
10499 main ()
10501 return $ac_func ();
10503 return 0;
10505 _ACEOF
10506 rm -f conftest.$ac_objext conftest$ac_exeext
10507 if { (ac_try="$ac_link"
10508 case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_link") 2>conftest.er1
10514 ac_status=$?
10515 grep -v '^ *+' conftest.er1 >conftest.err
10516 rm -f conftest.er1
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && {
10520 test -z "$ac_c_werror_flag" ||
10521 test ! -s conftest.err
10522 } && test -s conftest$ac_exeext &&
10523 $as_test_x conftest$ac_exeext; then
10524 eval "$as_ac_var=yes"
10525 else
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 eval "$as_ac_var=no"
10532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10533 conftest$ac_exeext conftest.$ac_ext
10535 ac_res=`eval echo '${'$as_ac_var'}'`
10536 { echo "$as_me:$LINENO: result: $ac_res" >&5
10537 echo "${ECHO_T}$ac_res" >&6; }
10538 if test `eval echo '${'$as_ac_var'}'` = yes; then
10539 cat >>confdefs.h <<_ACEOF
10540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10541 _ACEOF
10544 done
10548 if test "${window_system}" = "x11"; then
10549 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10550 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10551 if test "${emacs_cv_x11_version_6+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 #include <X11/Xlib.h>
10562 main ()
10564 #if XlibSpecificationRelease < 6
10565 fail;
10566 #endif
10569 return 0;
10571 _ACEOF
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_link") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest$ac_exeext &&
10589 $as_test_x conftest$ac_exeext; then
10590 emacs_cv_x11_version_6=yes
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 emacs_cv_x11_version_6=no
10598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10599 conftest$ac_exeext conftest.$ac_ext
10602 if test $emacs_cv_x11_version_6 = yes; then
10603 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10604 echo "${ECHO_T}6 or newer" >&6; }
10606 cat >>confdefs.h <<\_ACEOF
10607 #define HAVE_X11R6 1
10608 _ACEOF
10610 else
10611 { echo "$as_me:$LINENO: result: before 6" >&5
10612 echo "${ECHO_T}before 6" >&6; }
10617 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10618 HAVE_RSVG=no
10619 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10620 if test "${with_rsvg}" != "no"; then
10621 if test "X${with_pkg_config_prog}" != X; then
10622 PKG_CONFIG="${with_pkg_config_prog}"
10625 RSVG_REQUIRED=2.0.0
10626 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10629 succeeded=no
10631 if test -z "$PKG_CONFIG"; then
10632 # Extract the first word of "pkg-config", so it can be a program name with args.
10633 set dummy pkg-config; ac_word=$2
10634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10636 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639 case $PKG_CONFIG in
10640 [\\/]* | ?:[\\/]*)
10641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10655 done
10656 done
10657 IFS=$as_save_IFS
10659 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10661 esac
10663 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10664 if test -n "$PKG_CONFIG"; then
10665 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10666 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10667 else
10668 { echo "$as_me:$LINENO: result: no" >&5
10669 echo "${ECHO_T}no" >&6; }
10675 if test "$PKG_CONFIG" = "no" ; then
10677 else
10678 PKG_CONFIG_MIN_VERSION=0.9.0
10679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10680 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10681 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10683 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10684 { echo "$as_me:$LINENO: result: yes" >&5
10685 echo "${ECHO_T}yes" >&6; }
10686 succeeded=yes
10688 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10689 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10690 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10691 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10692 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10694 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10695 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10696 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10697 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10698 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10699 else
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10702 RSVG_CFLAGS=""
10703 RSVG_LIBS=""
10704 ## If we have a custom action on failure, don't print errors, but
10705 ## do set a variable so people can do so.
10706 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10712 else
10713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10718 if test $succeeded = yes; then
10720 else
10727 if test ".${RSVG_CFLAGS}" != "."; then
10728 HAVE_RSVG=yes
10730 cat >>confdefs.h <<\_ACEOF
10731 #define HAVE_RSVG 1
10732 _ACEOF
10734 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10735 LIBS="$RSVG_LIBS $LIBS"
10741 HAVE_GTK=no
10742 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10743 USE_X_TOOLKIT=none
10745 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10746 test "$USE_X_TOOLKIT" = "maybe"; then
10747 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10748 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10749 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10750 { (exit 1); exit 1; }; };
10752 GLIB_REQUIRED=2.6
10753 GTK_REQUIRED=2.6
10754 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10756 if test "X${with_pkg_config_prog}" != X; then
10757 PKG_CONFIG="${with_pkg_config_prog}"
10760 succeeded=no
10762 if test -z "$PKG_CONFIG"; then
10763 # Extract the first word of "pkg-config", so it can be a program name with args.
10764 set dummy pkg-config; ac_word=$2
10765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 case $PKG_CONFIG in
10771 [\\/]* | ?:[\\/]*)
10772 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10782 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10786 done
10787 done
10788 IFS=$as_save_IFS
10790 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10792 esac
10794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10795 if test -n "$PKG_CONFIG"; then
10796 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10797 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10798 else
10799 { echo "$as_me:$LINENO: result: no" >&5
10800 echo "${ECHO_T}no" >&6; }
10806 if test "$PKG_CONFIG" = "no" ; then
10807 pkg_check_gtk=no
10808 else
10809 PKG_CONFIG_MIN_VERSION=0.9.0
10810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10811 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10812 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10814 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10815 { echo "$as_me:$LINENO: result: yes" >&5
10816 echo "${ECHO_T}yes" >&6; }
10817 succeeded=yes
10819 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10820 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10821 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10822 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10823 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10825 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10826 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10827 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10828 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10829 echo "${ECHO_T}$GTK_LIBS" >&6; }
10830 else
10831 { echo "$as_me:$LINENO: result: no" >&5
10832 echo "${ECHO_T}no" >&6; }
10833 GTK_CFLAGS=""
10834 GTK_LIBS=""
10835 ## If we have a custom action on failure, don't print errors, but
10836 ## do set a variable so people can do so.
10837 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10843 else
10844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10849 if test $succeeded = yes; then
10850 pkg_check_gtk=yes
10851 else
10852 pkg_check_gtk=no
10855 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10856 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10857 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10858 { (exit 1); exit 1; }; }
10863 if test x"$pkg_check_gtk" = xyes; then
10867 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10868 CFLAGS="$CFLAGS $GTK_CFLAGS"
10869 LIBS="$GTK_LIBS $LIBS"
10870 GTK_COMPILES=no
10872 for ac_func in gtk_main
10874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10888 #define $ac_func innocuous_$ac_func
10890 /* System header to define __stub macros and hopefully few prototypes,
10891 which can conflict with char $ac_func (); below.
10892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893 <limits.h> exists even on freestanding compilers. */
10895 #ifdef __STDC__
10896 # include <limits.h>
10897 #else
10898 # include <assert.h>
10899 #endif
10901 #undef $ac_func
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char $ac_func ();
10910 /* The GNU C library defines this for functions which it implements
10911 to always fail with ENOSYS. Some functions are actually named
10912 something starting with __ and the normal name is an alias. */
10913 #if defined __stub_$ac_func || defined __stub___$ac_func
10914 choke me
10915 #endif
10918 main ()
10920 return $ac_func ();
10922 return 0;
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest$ac_exeext &&
10942 $as_test_x conftest$ac_exeext; then
10943 eval "$as_ac_var=yes"
10944 else
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 eval "$as_ac_var=no"
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952 conftest$ac_exeext conftest.$ac_ext
10954 ac_res=`eval echo '${'$as_ac_var'}'`
10955 { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10957 if test `eval echo '${'$as_ac_var'}'` = yes; then
10958 cat >>confdefs.h <<_ACEOF
10959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10960 _ACEOF
10961 GTK_COMPILES=yes
10963 done
10965 if test "${GTK_COMPILES}" != "yes"; then
10966 if test "$USE_X_TOOLKIT" != "maybe"; then
10967 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10968 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10969 { (exit 1); exit 1; }; };
10971 else
10972 HAVE_GTK=yes
10974 cat >>confdefs.h <<\_ACEOF
10975 #define HAVE_GTK 1
10976 _ACEOF
10978 USE_X_TOOLKIT=none
10984 if test "${HAVE_GTK}" = "yes"; then
10986 if test "$with_toolkit_scroll_bars" != no; then
10987 with_toolkit_scroll_bars=yes
10990 HAVE_GTK_MULTIDISPLAY=no
10992 for ac_func in gdk_display_open
10994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11008 #define $ac_func innocuous_$ac_func
11010 /* System header to define __stub macros and hopefully few prototypes,
11011 which can conflict with char $ac_func (); below.
11012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11013 <limits.h> exists even on freestanding compilers. */
11015 #ifdef __STDC__
11016 # include <limits.h>
11017 #else
11018 # include <assert.h>
11019 #endif
11021 #undef $ac_func
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char $ac_func ();
11030 /* The GNU C library defines this for functions which it implements
11031 to always fail with ENOSYS. Some functions are actually named
11032 something starting with __ and the normal name is an alias. */
11033 #if defined __stub_$ac_func || defined __stub___$ac_func
11034 choke me
11035 #endif
11038 main ()
11040 return $ac_func ();
11042 return 0;
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_link") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest$ac_exeext &&
11062 $as_test_x conftest$ac_exeext; then
11063 eval "$as_ac_var=yes"
11064 else
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 eval "$as_ac_var=no"
11071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11072 conftest$ac_exeext conftest.$ac_ext
11074 ac_res=`eval echo '${'$as_ac_var'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11077 if test `eval echo '${'$as_ac_var'}'` = yes; then
11078 cat >>confdefs.h <<_ACEOF
11079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11080 _ACEOF
11081 HAVE_GTK_MULTIDISPLAY=yes
11083 done
11085 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11087 cat >>confdefs.h <<\_ACEOF
11088 #define HAVE_GTK_MULTIDISPLAY 1
11089 _ACEOF
11093 HAVE_GTK_FILE_SELECTION=no
11095 for ac_func in gtk_file_selection_new
11097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111 #define $ac_func innocuous_$ac_func
11113 /* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11118 #ifdef __STDC__
11119 # include <limits.h>
11120 #else
11121 # include <assert.h>
11122 #endif
11124 #undef $ac_func
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char $ac_func ();
11133 /* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136 #if defined __stub_$ac_func || defined __stub___$ac_func
11137 choke me
11138 #endif
11141 main ()
11143 return $ac_func ();
11145 return 0;
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (ac_try="$ac_link"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_link") 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } && {
11162 test -z "$ac_c_werror_flag" ||
11163 test ! -s conftest.err
11164 } && test -s conftest$ac_exeext &&
11165 $as_test_x conftest$ac_exeext; then
11166 eval "$as_ac_var=yes"
11167 else
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 eval "$as_ac_var=no"
11174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11175 conftest$ac_exeext conftest.$ac_ext
11177 ac_res=`eval echo '${'$as_ac_var'}'`
11178 { echo "$as_me:$LINENO: result: $ac_res" >&5
11179 echo "${ECHO_T}$ac_res" >&6; }
11180 if test `eval echo '${'$as_ac_var'}'` = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11183 _ACEOF
11184 HAVE_GTK_FILE_SELECTION=yes
11186 done
11189 HAVE_GTK_FILE_CHOOSER=no
11191 for ac_func in gtk_file_chooser_dialog_new
11193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11207 #define $ac_func innocuous_$ac_func
11209 /* System header to define __stub macros and hopefully few prototypes,
11210 which can conflict with char $ac_func (); below.
11211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11212 <limits.h> exists even on freestanding compilers. */
11214 #ifdef __STDC__
11215 # include <limits.h>
11216 #else
11217 # include <assert.h>
11218 #endif
11220 #undef $ac_func
11222 /* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 char $ac_func ();
11229 /* The GNU C library defines this for functions which it implements
11230 to always fail with ENOSYS. Some functions are actually named
11231 something starting with __ and the normal name is an alias. */
11232 #if defined __stub_$ac_func || defined __stub___$ac_func
11233 choke me
11234 #endif
11237 main ()
11239 return $ac_func ();
11241 return 0;
11243 _ACEOF
11244 rm -f conftest.$ac_objext conftest$ac_exeext
11245 if { (ac_try="$ac_link"
11246 case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249 esac
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_link") 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && {
11258 test -z "$ac_c_werror_flag" ||
11259 test ! -s conftest.err
11260 } && test -s conftest$ac_exeext &&
11261 $as_test_x conftest$ac_exeext; then
11262 eval "$as_ac_var=yes"
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 eval "$as_ac_var=no"
11270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11271 conftest$ac_exeext conftest.$ac_ext
11273 ac_res=`eval echo '${'$as_ac_var'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11276 if test `eval echo '${'$as_ac_var'}'` = yes; then
11277 cat >>confdefs.h <<_ACEOF
11278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11279 _ACEOF
11280 HAVE_GTK_FILE_CHOOSER=yes
11282 done
11285 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11286 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_GTK_FILE_BOTH 1
11290 _ACEOF
11294 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11295 HAVE_GTK_AND_PTHREAD=no
11297 for ac_header in pthread.h
11299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 ac_res=`eval echo '${'$as_ac_Header'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11309 else
11310 # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 #include <$ac_header>
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_header_compiler=yes
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <$ac_header>
11361 _ACEOF
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev/null && {
11375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 }; then
11378 ac_header_preproc=yes
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_preproc=no
11386 rm -f conftest.err conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6; }
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11392 yes:no: )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc=yes
11399 no:yes:* )
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11414 esac
11415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 eval "$as_ac_Header=\$ac_header_preproc"
11422 ac_res=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result: $ac_res" >&5
11424 echo "${ECHO_T}$ac_res" >&6; }
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 _ACEOF
11434 done
11436 if test "$ac_cv_header_pthread_h"; then
11437 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11438 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11439 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442 ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-lpthread $LIBS"
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char pthread_self ();
11459 main ()
11461 return pthread_self ();
11463 return 0;
11465 _ACEOF
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (ac_try="$ac_link"
11468 case "(($ac_try" in
11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470 *) ac_try_echo=$ac_try;;
11471 esac
11472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11473 (eval "$ac_link") 2>conftest.er1
11474 ac_status=$?
11475 grep -v '^ *+' conftest.er1 >conftest.err
11476 rm -f conftest.er1
11477 cat conftest.err >&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } && {
11480 test -z "$ac_c_werror_flag" ||
11481 test ! -s conftest.err
11482 } && test -s conftest$ac_exeext &&
11483 $as_test_x conftest$ac_exeext; then
11484 ac_cv_lib_pthread_pthread_self=yes
11485 else
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 ac_cv_lib_pthread_pthread_self=no
11492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11496 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11497 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11498 if test $ac_cv_lib_pthread_pthread_self = yes; then
11499 HAVE_GTK_AND_PTHREAD=yes
11503 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11504 case "${canonical}" in
11505 *-hpux*) ;;
11506 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11507 esac
11509 cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_GTK_AND_PTHREAD 1
11511 _ACEOF
11517 HAVE_DBUS=no
11518 if test "${with_dbus}" = "yes"; then
11520 succeeded=no
11522 if test -z "$PKG_CONFIG"; then
11523 # Extract the first word of "pkg-config", so it can be a program name with args.
11524 set dummy pkg-config; ac_word=$2
11525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11527 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530 case $PKG_CONFIG in
11531 [\\/]* | ?:[\\/]*)
11532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11546 done
11547 done
11548 IFS=$as_save_IFS
11550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11552 esac
11554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11555 if test -n "$PKG_CONFIG"; then
11556 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11557 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11558 else
11559 { echo "$as_me:$LINENO: result: no" >&5
11560 echo "${ECHO_T}no" >&6; }
11566 if test "$PKG_CONFIG" = "no" ; then
11567 HAVE_DBUS=no
11568 else
11569 PKG_CONFIG_MIN_VERSION=0.9.0
11570 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11571 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11572 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11574 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11575 { echo "$as_me:$LINENO: result: yes" >&5
11576 echo "${ECHO_T}yes" >&6; }
11577 succeeded=yes
11579 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11580 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11581 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11582 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11583 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11585 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11586 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11587 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11588 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11589 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11590 else
11591 { echo "$as_me:$LINENO: result: no" >&5
11592 echo "${ECHO_T}no" >&6; }
11593 DBUS_CFLAGS=""
11594 DBUS_LIBS=""
11595 ## If we have a custom action on failure, don't print errors, but
11596 ## do set a variable so people can do so.
11597 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11603 else
11604 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11605 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11609 if test $succeeded = yes; then
11610 HAVE_DBUS=yes
11611 else
11612 HAVE_DBUS=no
11615 if test "$HAVE_DBUS" = yes; then
11617 cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_DBUS 1
11619 _ACEOF
11624 ### Link with -lXft if available to work around a bug.
11625 HAVE_XFT=maybe
11626 if test "${HAVE_GTK}" = "yes"; then
11627 if test "X${with_pkg_config_prog}" != X; then
11628 PKG_CONFIG="${with_pkg_config_prog}"
11632 succeeded=no
11634 if test -z "$PKG_CONFIG"; then
11635 # Extract the first word of "pkg-config", so it can be a program name with args.
11636 set dummy pkg-config; ac_word=$2
11637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642 case $PKG_CONFIG in
11643 [\\/]* | ?:[\\/]*)
11644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11658 done
11659 done
11660 IFS=$as_save_IFS
11662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11664 esac
11666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11667 if test -n "$PKG_CONFIG"; then
11668 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11669 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11670 else
11671 { echo "$as_me:$LINENO: result: no" >&5
11672 echo "${ECHO_T}no" >&6; }
11678 if test "$PKG_CONFIG" = "no" ; then
11679 HAVE_XFT=no
11680 else
11681 PKG_CONFIG_MIN_VERSION=0.9.0
11682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11683 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11684 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11686 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11687 { echo "$as_me:$LINENO: result: yes" >&5
11688 echo "${ECHO_T}yes" >&6; }
11689 succeeded=yes
11691 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11692 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11693 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11694 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11695 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11697 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11698 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11699 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11700 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11701 echo "${ECHO_T}$XFT_LIBS" >&6; }
11702 else
11703 { echo "$as_me:$LINENO: result: no" >&5
11704 echo "${ECHO_T}no" >&6; }
11705 XFT_CFLAGS=""
11706 XFT_LIBS=""
11707 ## If we have a custom action on failure, don't print errors, but
11708 ## do set a variable so people can do so.
11709 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11715 else
11716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11721 if test $succeeded = yes; then
11723 else
11724 HAVE_XFT=no
11727 if test "$HAVE_XFT" != no; then
11728 OLD_CFLAGS="$CPPFLAGS"
11729 OLD_CPPFLAGS="$CFLAGS"
11730 OLD_LIBS="$LIBS"
11731 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11732 CFLAGS="$CFLAGS $XFT_CFLAGS"
11733 LIBS="$XFT_LIBS $LIBS"
11734 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11735 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11736 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11737 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11741 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11742 else
11743 # Is the header compilable?
11744 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11745 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 $ac_includes_default
11753 #include <X11/Xft/Xft.h>
11754 _ACEOF
11755 rm -f conftest.$ac_objext
11756 if { (ac_try="$ac_compile"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_compile") 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } && {
11769 test -z "$ac_c_werror_flag" ||
11770 test ! -s conftest.err
11771 } && test -s conftest.$ac_objext; then
11772 ac_header_compiler=yes
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_header_compiler=no
11780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11782 echo "${ECHO_T}$ac_header_compiler" >&6; }
11784 # Is the header present?
11785 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11786 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 #include <X11/Xft/Xft.h>
11794 _ACEOF
11795 if { (ac_try="$ac_cpp conftest.$ac_ext"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } >/dev/null && {
11808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11809 test ! -s conftest.err
11810 }; then
11811 ac_header_preproc=yes
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 ac_header_preproc=no
11819 rm -f conftest.err conftest.$ac_ext
11820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 echo "${ECHO_T}$ac_header_preproc" >&6; }
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 yes:no: )
11826 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11827 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11829 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11832 no:yes:* )
11833 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11834 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11836 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11838 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11840 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11842 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11844 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11847 esac
11848 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11849 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11850 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11855 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11856 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11859 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11860 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11861 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11862 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865 ac_check_lib_save_LIBS=$LIBS
11866 LIBS="-lXft $XFT_LIBS $LIBS"
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11874 /* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11877 #ifdef __cplusplus
11878 extern "C"
11879 #endif
11880 char XftFontOpen ();
11882 main ()
11884 return XftFontOpen ();
11886 return 0;
11888 _ACEOF
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (ac_try="$ac_link"
11891 case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11894 esac
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_link") 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } && {
11903 test -z "$ac_c_werror_flag" ||
11904 test ! -s conftest.err
11905 } && test -s conftest$ac_exeext &&
11906 $as_test_x conftest$ac_exeext; then
11907 ac_cv_lib_Xft_XftFontOpen=yes
11908 else
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 ac_cv_lib_Xft_XftFontOpen=no
11915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11916 conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11919 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11920 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11921 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11922 HAVE_XFT=yes
11929 if test "${HAVE_XFT}" = "yes"; then
11931 cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_XFT 1
11933 _ACEOF
11936 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11937 else
11938 CFLAGS="$OLD_CPPFLAGS"
11939 CFLAGS="$OLD_CFLAGS"
11940 LIBS="$OLD_LIBS"
11945 HAVE_XAW3D=no
11946 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11947 if test "$with_xaw3d" != no; then
11948 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11949 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11950 if test "${emacs_cv_xaw3d+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h. */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11960 #include <X11/Intrinsic.h>
11961 #include <X11/Xaw3d/Simple.h>
11963 main ()
11967 return 0;
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext &&
11987 $as_test_x conftest$ac_exeext; then
11988 emacs_cv_xaw3d=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 emacs_cv_xaw3d=no
11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997 conftest$ac_exeext conftest.$ac_ext
12000 else
12001 emacs_cv_xaw3d=no
12003 if test $emacs_cv_xaw3d = yes; then
12004 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12005 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12006 USE_X_TOOLKIT=LUCID
12007 HAVE_XAW3D=yes
12009 cat >>confdefs.h <<\_ACEOF
12010 #define HAVE_XAW3D 1
12011 _ACEOF
12013 else
12014 { echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6; }
12016 { echo "$as_me:$LINENO: checking for libXaw" >&5
12017 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12018 if test "${emacs_cv_xaw+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h. */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12028 #include <X11/Intrinsic.h>
12029 #include <X11/Xaw/Simple.h>
12031 main ()
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest$ac_exeext &&
12055 $as_test_x conftest$ac_exeext; then
12056 emacs_cv_xaw=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 emacs_cv_xaw=no
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12068 if test $emacs_cv_xaw = yes; then
12069 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12070 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12071 USE_X_TOOLKIT=LUCID
12072 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12073 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12074 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12075 { (exit 1); exit 1; }; }
12076 else
12077 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12078 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12079 USE_X_TOOLKIT=none
12084 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12086 if test "${USE_X_TOOLKIT}" != "none"; then
12087 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12088 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12089 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h. */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 #include <X11/Intrinsic.h>
12100 main ()
12102 #if XtSpecificationRelease < 6
12103 fail;
12104 #endif
12107 return 0;
12109 _ACEOF
12110 rm -f conftest.$ac_objext conftest$ac_exeext
12111 if { (ac_try="$ac_link"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_link") 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && {
12124 test -z "$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 } && test -s conftest$ac_exeext &&
12127 $as_test_x conftest$ac_exeext; then
12128 emacs_cv_x11_toolkit_version_6=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 emacs_cv_x11_toolkit_version_6=no
12136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12137 conftest$ac_exeext conftest.$ac_ext
12140 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12141 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12142 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12143 echo "${ECHO_T}6 or newer" >&6; }
12145 cat >>confdefs.h <<\_ACEOF
12146 #define HAVE_X11XTR6 1
12147 _ACEOF
12149 else
12150 { echo "$as_me:$LINENO: result: before 6" >&5
12151 echo "${ECHO_T}before 6" >&6; }
12154 OLDLIBS="$LIBS"
12155 if test x$HAVE_X11XTR6 = xyes; then
12156 LIBS="-lXt -lSM -lICE $LIBS"
12157 else
12158 LIBS="-lXt $LIBS"
12161 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12162 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12163 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166 ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-lXmu $LIBS"
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 char XmuConvertStandardSelection ();
12183 main ()
12185 return XmuConvertStandardSelection ();
12187 return 0;
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_link") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest$ac_exeext &&
12207 $as_test_x conftest$ac_exeext; then
12208 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12217 conftest$ac_exeext conftest.$ac_ext
12218 LIBS=$ac_check_lib_save_LIBS
12220 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12221 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12222 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224 #define HAVE_LIBXMU 1
12225 _ACEOF
12227 LIBS="-lXmu $LIBS"
12231 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12234 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12235 if test "${HAVE_X11}" = "yes"; then
12236 if test "${USE_X_TOOLKIT}" != "none"; then
12238 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12239 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12240 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-lXext $LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char XShapeQueryExtension ();
12260 main ()
12262 return XShapeQueryExtension ();
12264 return 0;
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && {
12281 test -z "$ac_c_werror_flag" ||
12282 test ! -s conftest.err
12283 } && test -s conftest$ac_exeext &&
12284 $as_test_x conftest$ac_exeext; then
12285 ac_cv_lib_Xext_XShapeQueryExtension=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_cv_lib_Xext_XShapeQueryExtension=no
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12297 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12298 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12299 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12300 cat >>confdefs.h <<_ACEOF
12301 #define HAVE_LIBXEXT 1
12302 _ACEOF
12304 LIBS="-lXext $LIBS"
12311 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12312 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12313 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12314 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 #include <Xm/Xm.h>
12325 main ()
12327 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12328 int x = 5;
12329 #else
12330 Motif version prior to 2.1.
12331 #endif
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (ac_try="$ac_compile"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_compile") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest.$ac_objext; then
12353 emacs_cv_motif_version_2_1=yes
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 emacs_cv_motif_version_2_1=no
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12364 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12365 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12366 if test $emacs_cv_motif_version_2_1 = yes; then
12367 HAVE_LIBXP=no
12369 cat >>confdefs.h <<\_ACEOF
12370 #define HAVE_MOTIF_2_1 1
12371 _ACEOF
12373 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12374 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12375 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-lXp $LIBS"
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12387 /* Override any GCC internal prototype to avoid an error.
12388 Use char because int might match the return type of a GCC
12389 builtin and then its argument prototype would still apply. */
12390 #ifdef __cplusplus
12391 extern "C"
12392 #endif
12393 char XpCreateContext ();
12395 main ()
12397 return XpCreateContext ();
12399 return 0;
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (ac_try="$ac_link"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_link") 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest$ac_exeext &&
12419 $as_test_x conftest$ac_exeext; then
12420 ac_cv_lib_Xp_XpCreateContext=yes
12421 else
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 ac_cv_lib_Xp_XpCreateContext=no
12428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12432 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12433 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12434 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12435 HAVE_LIBXP=yes
12438 if test ${HAVE_LIBXP} = yes; then
12440 cat >>confdefs.h <<\_ACEOF
12441 #define HAVE_LIBXP 1
12442 _ACEOF
12445 else
12446 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12447 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12448 if test "${emacs_cv_lesstif+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451 # We put this in CFLAGS temporarily to precede other -I options
12452 # that might be in CFLAGS temporarily.
12453 # We put this in CPPFLAGS where it precedes the other -I options.
12454 OLD_CPPFLAGS=$CPPFLAGS
12455 OLD_CFLAGS=$CFLAGS
12456 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12457 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12458 cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h. */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12464 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12466 main ()
12468 int x = 5;
12470 return 0;
12472 _ACEOF
12473 rm -f conftest.$ac_objext
12474 if { (ac_try="$ac_compile"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_compile") 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && {
12487 test -z "$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest.$ac_objext; then
12490 emacs_cv_lesstif=yes
12491 else
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12495 emacs_cv_lesstif=no
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12501 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12502 if test $emacs_cv_lesstif = yes; then
12503 # Make sure this -I option remains in CPPFLAGS after it is set
12504 # back to REAL_CPPFLAGS.
12505 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12506 # have those other -I options anyway. Ultimately, having this
12507 # directory ultimately in CPPFLAGS will be enough.
12508 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12509 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12510 else
12511 CFLAGS=$OLD_CFLAGS
12512 CPPFLAGS=$OLD_CPPFLAGS
12519 USE_TOOLKIT_SCROLL_BARS=no
12520 if test "${with_toolkit_scroll_bars}" != "no"; then
12521 if test "${USE_X_TOOLKIT}" != "none"; then
12522 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12523 cat >>confdefs.h <<\_ACEOF
12524 #define USE_TOOLKIT_SCROLL_BARS 1
12525 _ACEOF
12527 HAVE_XAW3D=no
12528 USE_TOOLKIT_SCROLL_BARS=yes
12529 elif test "${HAVE_XAW3D}" = "yes"; then
12530 cat >>confdefs.h <<\_ACEOF
12531 #define USE_TOOLKIT_SCROLL_BARS 1
12532 _ACEOF
12534 USE_TOOLKIT_SCROLL_BARS=yes
12536 elif test "${HAVE_GTK}" = "yes"; then
12537 cat >>confdefs.h <<\_ACEOF
12538 #define USE_TOOLKIT_SCROLL_BARS 1
12539 _ACEOF
12541 USE_TOOLKIT_SCROLL_BARS=yes
12542 elif test "${HAVE_CARBON}" = "yes"; then
12543 cat >>confdefs.h <<\_ACEOF
12544 #define USE_TOOLKIT_SCROLL_BARS 1
12545 _ACEOF
12547 USE_TOOLKIT_SCROLL_BARS=yes
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12558 #include <X11/Xlib.h>
12559 #include <X11/Xresource.h>
12561 main ()
12563 XIMProc callback;
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest.$ac_objext; then
12585 HAVE_XIM=yes
12587 cat >>confdefs.h <<\_ACEOF
12588 #define HAVE_XIM 1
12589 _ACEOF
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 HAVE_XIM=no
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12601 if test "${with_xim}" != "no"; then
12603 cat >>confdefs.h <<\_ACEOF
12604 #define USE_XIM 1
12605 _ACEOF
12610 if test "${HAVE_XIM}" != "no"; then
12611 late_CFLAGS=$CFLAGS
12612 if test "$GCC" = yes; then
12613 CFLAGS="$CFLAGS --pedantic-errors"
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12622 #include <X11/Xlib.h>
12623 #include <X11/Xresource.h>
12625 main ()
12627 Display *display;
12628 XrmDatabase db;
12629 char *res_name;
12630 char *res_class;
12631 XIMProc callback;
12632 XPointer *client_data;
12633 #ifndef __GNUC__
12634 /* If we're not using GCC, it's probably not XFree86, and this is
12635 probably right, but we can't use something like --pedantic-errors. */
12636 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12637 char*, XIMProc, XPointer*);
12638 #endif
12639 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12640 client_data);
12642 return 0;
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 emacs_cv_arg6_star=yes
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 if test "$emacs_cv_arg6_star" = yes; then
12673 cat >>confdefs.h <<\_ACEOF
12674 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12675 _ACEOF
12677 else
12678 cat >>confdefs.h <<\_ACEOF
12679 #define XRegisterIMInstantiateCallback_arg6 XPointer
12680 _ACEOF
12683 CFLAGS=$late_CFLAGS
12686 ### Use -lXpm if available, unless `--with-xpm=no'.
12687 HAVE_XPM=no
12688 if test "${HAVE_X11}" = "yes"; then
12689 if test "${with_xpm}" != "no"; then
12690 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12691 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12692 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12693 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12697 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12698 else
12699 # Is the header compilable?
12700 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12701 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12702 cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h. */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 $ac_includes_default
12709 #include <X11/xpm.h>
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (ac_try="$ac_compile"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.$ac_objext; then
12728 ac_header_compiler=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_header_compiler=no
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738 echo "${ECHO_T}$ac_header_compiler" >&6; }
12740 # Is the header present?
12741 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12742 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749 #include <X11/xpm.h>
12750 _ACEOF
12751 if { (ac_try="$ac_cpp conftest.$ac_ext"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } >/dev/null && {
12764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 }; then
12767 ac_header_preproc=yes
12768 else
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_header_preproc=no
12775 rm -f conftest.err conftest.$ac_ext
12776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12777 echo "${ECHO_T}$ac_header_preproc" >&6; }
12779 # So? What about this header?
12780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12781 yes:no: )
12782 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12783 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12785 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12786 ac_header_preproc=yes
12788 no:yes:* )
12789 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12790 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12792 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12794 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12796 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12798 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12800 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12803 esac
12804 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12805 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12806 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809 ac_cv_header_X11_xpm_h=$ac_header_preproc
12811 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12812 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12815 if test $ac_cv_header_X11_xpm_h = yes; then
12816 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12817 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12818 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 ac_check_lib_save_LIBS=$LIBS
12822 LIBS="-lXpm -lX11 $LIBS"
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12830 /* Override any GCC internal prototype to avoid an error.
12831 Use char because int might match the return type of a GCC
12832 builtin and then its argument prototype would still apply. */
12833 #ifdef __cplusplus
12834 extern "C"
12835 #endif
12836 char XpmReadFileToPixmap ();
12838 main ()
12840 return XpmReadFileToPixmap ();
12842 return 0;
12844 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (ac_try="$ac_link"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_link") 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } && {
12859 test -z "$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 } && test -s conftest$ac_exeext &&
12862 $as_test_x conftest$ac_exeext; then
12863 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12864 else
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12872 conftest$ac_exeext conftest.$ac_ext
12873 LIBS=$ac_check_lib_save_LIBS
12875 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12876 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12877 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12878 HAVE_XPM=yes
12884 if test "${HAVE_XPM}" = "yes"; then
12885 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12886 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12887 cat >conftest.$ac_ext <<_ACEOF
12888 /* confdefs.h. */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 #include "X11/xpm.h"
12894 #ifndef XpmReturnAllocPixels
12895 no_return_alloc_pixels
12896 #endif
12898 _ACEOF
12899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12900 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12901 HAVE_XPM=no
12902 else
12903 HAVE_XPM=yes
12905 rm -f conftest*
12908 if test "${HAVE_XPM}" = "yes"; then
12909 { echo "$as_me:$LINENO: result: yes" >&5
12910 echo "${ECHO_T}yes" >&6; }
12911 else
12912 { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12918 if test "${HAVE_XPM}" = "yes"; then
12920 cat >>confdefs.h <<\_ACEOF
12921 #define HAVE_XPM 1
12922 _ACEOF
12927 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12928 HAVE_JPEG=no
12929 if test "${HAVE_X11}" = "yes"; then
12930 if test "${with_jpeg}" != "no"; then
12931 if test "${ac_cv_header_jerror_h+set}" = set; then
12932 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12933 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12934 if test "${ac_cv_header_jerror_h+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12938 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12939 else
12940 # Is the header compilable?
12941 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12942 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12943 cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 $ac_includes_default
12950 #include <jerror.h>
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (ac_try="$ac_compile"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_compile") 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } && {
12966 test -z "$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 } && test -s conftest.$ac_objext; then
12969 ac_header_compiler=yes
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ac_header_compiler=no
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12979 echo "${ECHO_T}$ac_header_compiler" >&6; }
12981 # Is the header present?
12982 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12983 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h. */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990 #include <jerror.h>
12991 _ACEOF
12992 if { (ac_try="$ac_cpp conftest.$ac_ext"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null && {
13005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13006 test ! -s conftest.err
13007 }; then
13008 ac_header_preproc=yes
13009 else
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13013 ac_header_preproc=no
13016 rm -f conftest.err conftest.$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13018 echo "${ECHO_T}$ac_header_preproc" >&6; }
13020 # So? What about this header?
13021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13022 yes:no: )
13023 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13024 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13026 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13027 ac_header_preproc=yes
13029 no:yes:* )
13030 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13031 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13033 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13035 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13037 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13039 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13041 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13044 esac
13045 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13046 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13047 if test "${ac_cv_header_jerror_h+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050 ac_cv_header_jerror_h=$ac_header_preproc
13052 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13053 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13056 if test $ac_cv_header_jerror_h = yes; then
13057 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13058 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13059 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062 ac_check_lib_save_LIBS=$LIBS
13063 LIBS="-ljpeg $LIBS"
13064 cat >conftest.$ac_ext <<_ACEOF
13065 /* confdefs.h. */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13071 /* Override any GCC internal prototype to avoid an error.
13072 Use char because int might match the return type of a GCC
13073 builtin and then its argument prototype would still apply. */
13074 #ifdef __cplusplus
13075 extern "C"
13076 #endif
13077 char jpeg_destroy_compress ();
13079 main ()
13081 return jpeg_destroy_compress ();
13083 return 0;
13085 _ACEOF
13086 rm -f conftest.$ac_objext conftest$ac_exeext
13087 if { (ac_try="$ac_link"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_link") 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest$ac_exeext &&
13103 $as_test_x conftest$ac_exeext; then
13104 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13105 else
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13116 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13117 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13118 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13119 HAVE_JPEG=yes
13128 if test "${HAVE_JPEG}" = "yes"; then
13129 cat >>confdefs.h <<\_ACEOF
13130 #define HAVE_JPEG 1
13131 _ACEOF
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h. */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 #include <jpeglib.h>
13140 version=JPEG_LIB_VERSION
13142 _ACEOF
13143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13144 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13145 cat >>confdefs.h <<\_ACEOF
13146 #define HAVE_JPEG 1
13147 _ACEOF
13149 else
13150 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13151 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13152 HAVE_JPEG=no
13154 rm -f conftest*
13159 ### Use -lpng if available, unless `--with-png=no'.
13160 HAVE_PNG=no
13161 if test "${HAVE_X11}" = "yes"; then
13162 if test "${with_png}" != "no"; then
13163 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13164 # in /usr/include/libpng.
13167 for ac_header in png.h libpng/png.h
13169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 ac_res=`eval echo '${'$as_ac_Header'}'`
13177 { echo "$as_me:$LINENO: result: $ac_res" >&5
13178 echo "${ECHO_T}$ac_res" >&6; }
13179 else
13180 # Is the header compilable?
13181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13190 #include <$ac_header>
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_compile") 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && {
13206 test -z "$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 } && test -s conftest.$ac_objext; then
13209 ac_header_compiler=yes
13210 else
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_header_compiler=no
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13219 echo "${ECHO_T}$ac_header_compiler" >&6; }
13221 # Is the header present?
13222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 #include <$ac_header>
13231 _ACEOF
13232 if { (ac_try="$ac_cpp conftest.$ac_ext"
13233 case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } >/dev/null && {
13245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 }; then
13248 ac_header_preproc=yes
13249 else
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13253 ac_header_preproc=no
13256 rm -f conftest.err conftest.$ac_ext
13257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13258 echo "${ECHO_T}$ac_header_preproc" >&6; }
13260 # So? What about this header?
13261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13262 yes:no: )
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13267 ac_header_preproc=yes
13269 no:yes:* )
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13284 esac
13285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290 eval "$as_ac_Header=\$ac_header_preproc"
13292 ac_res=`eval echo '${'$as_ac_Header'}'`
13293 { echo "$as_me:$LINENO: result: $ac_res" >&5
13294 echo "${ECHO_T}$ac_res" >&6; }
13297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13298 cat >>confdefs.h <<_ACEOF
13299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13300 _ACEOF
13304 done
13306 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13307 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13308 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13309 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 ac_check_lib_save_LIBS=$LIBS
13313 LIBS="-lpng -lz -lm $LIBS"
13314 cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h. */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13321 /* Override any GCC internal prototype to avoid an error.
13322 Use char because int might match the return type of a GCC
13323 builtin and then its argument prototype would still apply. */
13324 #ifdef __cplusplus
13325 extern "C"
13326 #endif
13327 char png_get_channels ();
13329 main ()
13331 return png_get_channels ();
13333 return 0;
13335 _ACEOF
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (ac_try="$ac_link"
13338 case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_link") 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest$ac_exeext &&
13353 $as_test_x conftest$ac_exeext; then
13354 ac_cv_lib_png_png_get_channels=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13359 ac_cv_lib_png_png_get_channels=no
13362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13363 conftest$ac_exeext conftest.$ac_ext
13364 LIBS=$ac_check_lib_save_LIBS
13366 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13367 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13368 if test $ac_cv_lib_png_png_get_channels = yes; then
13369 HAVE_PNG=yes
13375 if test "${HAVE_PNG}" = "yes"; then
13377 cat >>confdefs.h <<\_ACEOF
13378 #define HAVE_PNG 1
13379 _ACEOF
13384 ### Use -ltiff if available, unless `--with-tiff=no'.
13385 HAVE_TIFF=no
13386 if test "${HAVE_X11}" = "yes"; then
13387 if test "${with_tiff}" != "no"; then
13388 if test "${ac_cv_header_tiffio_h+set}" = set; then
13389 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13390 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13391 if test "${ac_cv_header_tiffio_h+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13395 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13396 else
13397 # Is the header compilable?
13398 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13399 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13400 cat >conftest.$ac_ext <<_ACEOF
13401 /* confdefs.h. */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 $ac_includes_default
13407 #include <tiffio.h>
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (ac_try="$ac_compile"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_compile") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest.$ac_objext; then
13426 ac_header_compiler=yes
13427 else
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 ac_header_compiler=no
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13436 echo "${ECHO_T}$ac_header_compiler" >&6; }
13438 # Is the header present?
13439 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13440 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13441 cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h. */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13447 #include <tiffio.h>
13448 _ACEOF
13449 if { (ac_try="$ac_cpp conftest.$ac_ext"
13450 case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13453 esac
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } >/dev/null && {
13462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13463 test ! -s conftest.err
13464 }; then
13465 ac_header_preproc=yes
13466 else
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13470 ac_header_preproc=no
13473 rm -f conftest.err conftest.$ac_ext
13474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13475 echo "${ECHO_T}$ac_header_preproc" >&6; }
13477 # So? What about this header?
13478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13479 yes:no: )
13480 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13481 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13483 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13484 ac_header_preproc=yes
13486 no:yes:* )
13487 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13488 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13490 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13492 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13494 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13496 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13498 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13501 esac
13502 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13503 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13504 if test "${ac_cv_header_tiffio_h+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507 ac_cv_header_tiffio_h=$ac_header_preproc
13509 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13510 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13513 if test $ac_cv_header_tiffio_h = yes; then
13514 tifflibs="-lz -lm"
13515 # At least one tiff package requires the jpeg library.
13516 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13517 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13518 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13519 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522 ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-ltiff $tifflibs $LIBS"
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13531 /* Override any GCC internal prototype to avoid an error.
13532 Use char because int might match the return type of a GCC
13533 builtin and then its argument prototype would still apply. */
13534 #ifdef __cplusplus
13535 extern "C"
13536 #endif
13537 char TIFFGetVersion ();
13539 main ()
13541 return TIFFGetVersion ();
13543 return 0;
13545 _ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (ac_try="$ac_link"
13548 case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551 esac
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_link") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest$ac_exeext &&
13563 $as_test_x conftest$ac_exeext; then
13564 ac_cv_lib_tiff_TIFFGetVersion=yes
13565 else
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13569 ac_cv_lib_tiff_TIFFGetVersion=no
13572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13573 conftest$ac_exeext conftest.$ac_ext
13574 LIBS=$ac_check_lib_save_LIBS
13576 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13577 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13578 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13579 HAVE_TIFF=yes
13587 if test "${HAVE_TIFF}" = "yes"; then
13589 cat >>confdefs.h <<\_ACEOF
13590 #define HAVE_TIFF 1
13591 _ACEOF
13596 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13597 HAVE_GIF=no
13598 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13599 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13600 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13601 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13602 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13606 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13607 else
13608 # Is the header compilable?
13609 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13610 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13611 cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h. */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13617 $ac_includes_default
13618 #include <gif_lib.h>
13619 _ACEOF
13620 rm -f conftest.$ac_objext
13621 if { (ac_try="$ac_compile"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_compile") 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } && {
13634 test -z "$ac_c_werror_flag" ||
13635 test ! -s conftest.err
13636 } && test -s conftest.$ac_objext; then
13637 ac_header_compiler=yes
13638 else
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13642 ac_header_compiler=no
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13647 echo "${ECHO_T}$ac_header_compiler" >&6; }
13649 # Is the header present?
13650 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13651 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13652 cat >conftest.$ac_ext <<_ACEOF
13653 /* confdefs.h. */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13658 #include <gif_lib.h>
13659 _ACEOF
13660 if { (ac_try="$ac_cpp conftest.$ac_ext"
13661 case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13664 esac
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13667 ac_status=$?
13668 grep -v '^ *+' conftest.er1 >conftest.err
13669 rm -f conftest.er1
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } >/dev/null && {
13673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13674 test ! -s conftest.err
13675 }; then
13676 ac_header_preproc=yes
13677 else
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 ac_header_preproc=no
13684 rm -f conftest.err conftest.$ac_ext
13685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13686 echo "${ECHO_T}$ac_header_preproc" >&6; }
13688 # So? What about this header?
13689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13690 yes:no: )
13691 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13692 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13694 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13695 ac_header_preproc=yes
13697 no:yes:* )
13698 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13699 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13700 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13701 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13703 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13705 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13706 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13707 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13709 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13712 esac
13713 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13714 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13715 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718 ac_cv_header_gif_lib_h=$ac_header_preproc
13720 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13721 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13724 if test $ac_cv_header_gif_lib_h = yes; then
13725 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13726 # Earlier versions can crash Emacs.
13727 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13728 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13729 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 ac_check_lib_save_LIBS=$LIBS
13733 LIBS="-lgif $LIBS"
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13744 #ifdef __cplusplus
13745 extern "C"
13746 #endif
13747 char EGifPutExtensionLast ();
13749 main ()
13751 return EGifPutExtensionLast ();
13753 return 0;
13755 _ACEOF
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (ac_try="$ac_link"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_link") 2>conftest.er1
13764 ac_status=$?
13765 grep -v '^ *+' conftest.er1 >conftest.err
13766 rm -f conftest.er1
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && {
13770 test -z "$ac_c_werror_flag" ||
13771 test ! -s conftest.err
13772 } && test -s conftest$ac_exeext &&
13773 $as_test_x conftest$ac_exeext; then
13774 ac_cv_lib_gif_EGifPutExtensionLast=yes
13775 else
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_lib_gif_EGifPutExtensionLast=no
13782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13783 conftest$ac_exeext conftest.$ac_ext
13784 LIBS=$ac_check_lib_save_LIBS
13786 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13787 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13788 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
13789 HAVE_GIF=yes
13790 else
13791 try_libungif=yes
13798 if test "$HAVE_GIF" = yes; then
13799 ac_gif_lib_name="-lgif"
13802 # If gif_lib.h but no libgif, try libungif.
13803 if test x"$try_libungif" = xyes; then
13804 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13805 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13806 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 ac_check_lib_save_LIBS=$LIBS
13810 LIBS="-lungif $LIBS"
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 char EGifPutExtensionLast ();
13826 main ()
13828 return EGifPutExtensionLast ();
13830 return 0;
13832 _ACEOF
13833 rm -f conftest.$ac_objext conftest$ac_exeext
13834 if { (ac_try="$ac_link"
13835 case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_link") 2>conftest.er1
13841 ac_status=$?
13842 grep -v '^ *+' conftest.er1 >conftest.err
13843 rm -f conftest.er1
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } && {
13847 test -z "$ac_c_werror_flag" ||
13848 test ! -s conftest.err
13849 } && test -s conftest$ac_exeext &&
13850 $as_test_x conftest$ac_exeext; then
13851 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13852 else
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13856 ac_cv_lib_ungif_EGifPutExtensionLast=no
13859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS
13863 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13864 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13865 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13866 HAVE_GIF=yes
13870 if test "$HAVE_GIF" = yes; then
13872 cat >>confdefs.h <<\_ACEOF
13873 #define LIBGIF -lungif
13874 _ACEOF
13876 ac_gif_lib_name="-lungif"
13880 if test "${HAVE_GIF}" = "yes"; then
13882 cat >>confdefs.h <<\_ACEOF
13883 #define HAVE_GIF 1
13884 _ACEOF
13889 if test "${HAVE_X11}" = "yes"; then
13890 MISSING=""
13891 WITH_NO=""
13892 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13893 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13894 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13895 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13896 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13897 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13898 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13899 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13900 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13901 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13903 if test "X${MISSING}" != X; then
13904 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
13905 $MISSING
13906 Maybe some development libraries/packages are missing?
13907 If you don't want to link with them give
13908 $WITH_NO
13909 as options to configure" >&5
13910 echo "$as_me: error: The following required libraries were not found:
13911 $MISSING
13912 Maybe some development libraries/packages are missing?
13913 If you don't want to link with them give
13914 $WITH_NO
13915 as options to configure" >&2;}
13916 { (exit 1); exit 1; }; }
13920 ### Use -lgpm if available, unless `--with-gpm=no'.
13921 HAVE_GPM=no
13922 if test "${with_gpm}" != "no"; then
13923 if test "${ac_cv_header_gpm_h+set}" = set; then
13924 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13925 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13926 if test "${ac_cv_header_gpm_h+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13930 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13931 else
13932 # Is the header compilable?
13933 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13934 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 $ac_includes_default
13942 #include <gpm.h>
13943 _ACEOF
13944 rm -f conftest.$ac_objext
13945 if { (ac_try="$ac_compile"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_compile") 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } && {
13958 test -z "$ac_c_werror_flag" ||
13959 test ! -s conftest.err
13960 } && test -s conftest.$ac_objext; then
13961 ac_header_compiler=yes
13962 else
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_header_compiler=no
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13971 echo "${ECHO_T}$ac_header_compiler" >&6; }
13973 # Is the header present?
13974 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
13975 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h. */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <gpm.h>
13983 _ACEOF
13984 if { (ac_try="$ac_cpp conftest.$ac_ext"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988 esac
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } >/dev/null && {
13997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 }; then
14000 ac_header_preproc=yes
14001 else
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_preproc=no
14008 rm -f conftest.err conftest.$ac_ext
14009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14010 echo "${ECHO_T}$ac_header_preproc" >&6; }
14012 # So? What about this header?
14013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14014 yes:no: )
14015 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14016 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14018 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14019 ac_header_preproc=yes
14021 no:yes:* )
14022 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14023 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14025 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14027 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14029 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14031 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14033 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14036 esac
14037 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14038 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14039 if test "${ac_cv_header_gpm_h+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042 ac_cv_header_gpm_h=$ac_header_preproc
14044 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14045 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14048 if test $ac_cv_header_gpm_h = yes; then
14049 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14050 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14051 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054 ac_check_lib_save_LIBS=$LIBS
14055 LIBS="-lgpm $LIBS"
14056 cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h. */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14063 /* Override any GCC internal prototype to avoid an error.
14064 Use char because int might match the return type of a GCC
14065 builtin and then its argument prototype would still apply. */
14066 #ifdef __cplusplus
14067 extern "C"
14068 #endif
14069 char Gpm_Open ();
14071 main ()
14073 return Gpm_Open ();
14075 return 0;
14077 _ACEOF
14078 rm -f conftest.$ac_objext conftest$ac_exeext
14079 if { (ac_try="$ac_link"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_link") 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest$ac_exeext &&
14095 $as_test_x conftest$ac_exeext; then
14096 ac_cv_lib_gpm_Gpm_Open=yes
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_cv_lib_gpm_Gpm_Open=no
14104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14109 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14110 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14111 HAVE_GPM=yes
14119 if test "${HAVE_GPM}" = "yes"; then
14121 cat >>confdefs.h <<\_ACEOF
14122 #define HAVE_GPM 1
14123 _ACEOF
14127 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14128 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14129 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14130 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14134 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14135 else
14136 # Is the header compilable?
14137 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14138 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 $ac_includes_default
14146 #include <malloc/malloc.h>
14147 _ACEOF
14148 rm -f conftest.$ac_objext
14149 if { (ac_try="$ac_compile"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_compile") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest.$ac_objext; then
14165 ac_header_compiler=yes
14166 else
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 ac_header_compiler=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14175 echo "${ECHO_T}$ac_header_compiler" >&6; }
14177 # Is the header present?
14178 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14179 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14180 cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h. */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14186 #include <malloc/malloc.h>
14187 _ACEOF
14188 if { (ac_try="$ac_cpp conftest.$ac_ext"
14189 case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } >/dev/null && {
14201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14202 test ! -s conftest.err
14203 }; then
14204 ac_header_preproc=yes
14205 else
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 ac_header_preproc=no
14212 rm -f conftest.err conftest.$ac_ext
14213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14214 echo "${ECHO_T}$ac_header_preproc" >&6; }
14216 # So? What about this header?
14217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14218 yes:no: )
14219 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14220 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14222 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14223 ac_header_preproc=yes
14225 no:yes:* )
14226 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14227 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14229 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14231 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14233 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14235 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14237 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14240 esac
14241 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14242 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14243 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14248 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14249 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14252 if test $ac_cv_header_malloc_malloc_h = yes; then
14254 cat >>confdefs.h <<\_ACEOF
14255 #define HAVE_MALLOC_MALLOC_H 1
14256 _ACEOF
14262 ### Use Mac OS X Carbon API to implement GUI.
14263 if test "${HAVE_CARBON}" = "yes"; then
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_CARBON 1
14267 _ACEOF
14269 ## Specify the install directory
14270 carbon_appdir=
14271 if test "${carbon_appdir_x}" != ""; then
14272 case ${carbon_appdir_x} in
14273 y | ye | yes) carbon_appdir=/Applications ;;
14274 * ) carbon_appdir=${carbon_appdir_x} ;;
14275 esac
14277 # We also have mouse menus.
14278 HAVE_MENUS=yes
14281 ### Use session management (-lSM -lICE) if available
14282 HAVE_X_SM=no
14283 if test "${HAVE_X11}" = "yes"; then
14284 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14285 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14286 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14287 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14291 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14292 else
14293 # Is the header compilable?
14294 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14295 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h. */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 $ac_includes_default
14303 #include <X11/SM/SMlib.h>
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_compile") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } && {
14319 test -z "$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14321 } && test -s conftest.$ac_objext; then
14322 ac_header_compiler=yes
14323 else
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_header_compiler=no
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14332 echo "${ECHO_T}$ac_header_compiler" >&6; }
14334 # Is the header present?
14335 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14336 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <X11/SM/SMlib.h>
14344 _ACEOF
14345 if { (ac_try="$ac_cpp conftest.$ac_ext"
14346 case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14349 esac
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14352 ac_status=$?
14353 grep -v '^ *+' conftest.er1 >conftest.err
14354 rm -f conftest.er1
14355 cat conftest.err >&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } >/dev/null && {
14358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14359 test ! -s conftest.err
14360 }; then
14361 ac_header_preproc=yes
14362 else
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 ac_header_preproc=no
14369 rm -f conftest.err conftest.$ac_ext
14370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14371 echo "${ECHO_T}$ac_header_preproc" >&6; }
14373 # So? What about this header?
14374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14375 yes:no: )
14376 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14377 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14378 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14379 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14380 ac_header_preproc=yes
14382 no:yes:* )
14383 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14384 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14385 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14386 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14387 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14388 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14390 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14392 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14394 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14397 esac
14398 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14399 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14400 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14405 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14406 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14409 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14410 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14411 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14412 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415 ac_check_lib_save_LIBS=$LIBS
14416 LIBS="-lSM -lICE $LIBS"
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14424 /* Override any GCC internal prototype to avoid an error.
14425 Use char because int might match the return type of a GCC
14426 builtin and then its argument prototype would still apply. */
14427 #ifdef __cplusplus
14428 extern "C"
14429 #endif
14430 char SmcOpenConnection ();
14432 main ()
14434 return SmcOpenConnection ();
14436 return 0;
14438 _ACEOF
14439 rm -f conftest.$ac_objext conftest$ac_exeext
14440 if { (ac_try="$ac_link"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_link") 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } && {
14453 test -z "$ac_c_werror_flag" ||
14454 test ! -s conftest.err
14455 } && test -s conftest$ac_exeext &&
14456 $as_test_x conftest$ac_exeext; then
14457 ac_cv_lib_SM_SmcOpenConnection=yes
14458 else
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_cv_lib_SM_SmcOpenConnection=no
14465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14466 conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14469 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14470 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14471 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14472 HAVE_X_SM=yes
14479 if test "${HAVE_X_SM}" = "yes"; then
14481 cat >>confdefs.h <<\_ACEOF
14482 #define HAVE_X_SM 1
14483 _ACEOF
14485 case "$LIBS" in
14486 *-lSM*) ;;
14487 *) LIBS="-lSM -lICE $LIBS" ;;
14488 esac
14492 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14493 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14494 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14495 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 #include <netdb.h>
14506 main ()
14508 return h_errno;
14510 return 0;
14512 _ACEOF
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (ac_try="$ac_link"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518 esac
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_link") 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } && {
14527 test -z "$ac_c_werror_flag" ||
14528 test ! -s conftest.err
14529 } && test -s conftest$ac_exeext &&
14530 $as_test_x conftest$ac_exeext; then
14531 emacs_cv_netdb_declares_h_errno=yes
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 emacs_cv_netdb_declares_h_errno=no
14539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14540 conftest$ac_exeext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14543 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14544 if test $emacs_cv_netdb_declares_h_errno = yes; then
14546 cat >>confdefs.h <<\_ACEOF
14547 #define HAVE_H_ERRNO 1
14548 _ACEOF
14552 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14553 # for constant arguments. Useless!
14554 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14555 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14556 if test "${ac_cv_working_alloca_h+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <alloca.h>
14567 main ()
14569 char *p = (char *) alloca (2 * sizeof (int));
14570 if (p) return 0;
14572 return 0;
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest$ac_exeext &&
14592 $as_test_x conftest$ac_exeext; then
14593 ac_cv_working_alloca_h=yes
14594 else
14595 echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14598 ac_cv_working_alloca_h=no
14601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14602 conftest$ac_exeext conftest.$ac_ext
14604 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14605 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14606 if test $ac_cv_working_alloca_h = yes; then
14608 cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_ALLOCA_H 1
14610 _ACEOF
14614 { echo "$as_me:$LINENO: checking for alloca" >&5
14615 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14616 if test "${ac_cv_func_alloca_works+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 cat >conftest.$ac_ext <<_ACEOF
14620 /* confdefs.h. */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14625 #ifdef __GNUC__
14626 # define alloca __builtin_alloca
14627 #else
14628 # ifdef _MSC_VER
14629 # include <malloc.h>
14630 # define alloca _alloca
14631 # else
14632 # ifdef HAVE_ALLOCA_H
14633 # include <alloca.h>
14634 # else
14635 # ifdef _AIX
14636 #pragma alloca
14637 # else
14638 # ifndef alloca /* predefined by HP cc +Olibcalls */
14639 char *alloca ();
14640 # endif
14641 # endif
14642 # endif
14643 # endif
14644 #endif
14647 main ()
14649 char *p = (char *) alloca (1);
14650 if (p) return 0;
14652 return 0;
14654 _ACEOF
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (ac_try="$ac_link"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_link") 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && {
14669 test -z "$ac_c_werror_flag" ||
14670 test ! -s conftest.err
14671 } && test -s conftest$ac_exeext &&
14672 $as_test_x conftest$ac_exeext; then
14673 ac_cv_func_alloca_works=yes
14674 else
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 ac_cv_func_alloca_works=no
14681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14682 conftest$ac_exeext conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14685 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14687 if test $ac_cv_func_alloca_works = yes; then
14689 cat >>confdefs.h <<\_ACEOF
14690 #define HAVE_ALLOCA 1
14691 _ACEOF
14693 else
14694 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14695 # that cause trouble. Some versions do not even contain alloca or
14696 # contain a buggy version. If you still want to use their alloca,
14697 # use ar to extract alloca.o from them instead of compiling alloca.c.
14699 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14701 cat >>confdefs.h <<\_ACEOF
14702 #define C_ALLOCA 1
14703 _ACEOF
14706 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14707 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14708 if test "${ac_cv_os_cray+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 #if defined CRAY && ! defined CRAY2
14718 webecray
14719 #else
14720 wenotbecray
14721 #endif
14723 _ACEOF
14724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14725 $EGREP "webecray" >/dev/null 2>&1; then
14726 ac_cv_os_cray=yes
14727 else
14728 ac_cv_os_cray=no
14730 rm -f conftest*
14733 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14734 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14735 if test $ac_cv_os_cray = yes; then
14736 for ac_func in _getb67 GETB67 getb67; do
14737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14751 #define $ac_func innocuous_$ac_func
14753 /* System header to define __stub macros and hopefully few prototypes,
14754 which can conflict with char $ac_func (); below.
14755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14756 <limits.h> exists even on freestanding compilers. */
14758 #ifdef __STDC__
14759 # include <limits.h>
14760 #else
14761 # include <assert.h>
14762 #endif
14764 #undef $ac_func
14766 /* Override any GCC internal prototype to avoid an error.
14767 Use char because int might match the return type of a GCC
14768 builtin and then its argument prototype would still apply. */
14769 #ifdef __cplusplus
14770 extern "C"
14771 #endif
14772 char $ac_func ();
14773 /* The GNU C library defines this for functions which it implements
14774 to always fail with ENOSYS. Some functions are actually named
14775 something starting with __ and the normal name is an alias. */
14776 #if defined __stub_$ac_func || defined __stub___$ac_func
14777 choke me
14778 #endif
14781 main ()
14783 return $ac_func ();
14785 return 0;
14787 _ACEOF
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (ac_try="$ac_link"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_link") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest$ac_exeext &&
14805 $as_test_x conftest$ac_exeext; then
14806 eval "$as_ac_var=yes"
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 eval "$as_ac_var=no"
14814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14815 conftest$ac_exeext conftest.$ac_ext
14817 ac_res=`eval echo '${'$as_ac_var'}'`
14818 { echo "$as_me:$LINENO: result: $ac_res" >&5
14819 echo "${ECHO_T}$ac_res" >&6; }
14820 if test `eval echo '${'$as_ac_var'}'` = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823 #define CRAY_STACKSEG_END $ac_func
14824 _ACEOF
14826 break
14829 done
14832 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14833 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14834 if test "${ac_cv_c_stack_direction+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837 if test "$cross_compiling" = yes; then
14838 ac_cv_c_stack_direction=0
14839 else
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h. */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14846 $ac_includes_default
14848 find_stack_direction ()
14850 static char *addr = 0;
14851 auto char dummy;
14852 if (addr == 0)
14854 addr = &dummy;
14855 return find_stack_direction ();
14857 else
14858 return (&dummy > addr) ? 1 : -1;
14862 main ()
14864 return find_stack_direction () < 0;
14866 _ACEOF
14867 rm -f conftest$ac_exeext
14868 if { (ac_try="$ac_link"
14869 case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_link") 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_cv_c_stack_direction=1
14888 else
14889 echo "$as_me: program exited with status $ac_status" >&5
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ( exit $ac_status )
14894 ac_cv_c_stack_direction=-1
14896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14901 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14904 cat >>confdefs.h <<_ACEOF
14905 #define STACK_DIRECTION $ac_cv_c_stack_direction
14906 _ACEOF
14912 if test x"$ac_cv_func_alloca_works" != xyes; then
14913 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
14914 echo "$as_me: error: a system implementation of alloca is required " >&2;}
14915 { (exit 1); exit 1; }; }
14918 # fmod, logb, and frexp are found in -lm on most systems.
14919 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14921 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14922 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14923 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-lm $LIBS"
14928 cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h. */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14935 /* Override any GCC internal prototype to avoid an error.
14936 Use char because int might match the return type of a GCC
14937 builtin and then its argument prototype would still apply. */
14938 #ifdef __cplusplus
14939 extern "C"
14940 #endif
14941 char sqrt ();
14943 main ()
14945 return sqrt ();
14947 return 0;
14949 _ACEOF
14950 rm -f conftest.$ac_objext conftest$ac_exeext
14951 if { (ac_try="$ac_link"
14952 case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_link") 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } && {
14964 test -z "$ac_c_werror_flag" ||
14965 test ! -s conftest.err
14966 } && test -s conftest$ac_exeext &&
14967 $as_test_x conftest$ac_exeext; then
14968 ac_cv_lib_m_sqrt=yes
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_cv_lib_m_sqrt=no
14976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14977 conftest$ac_exeext conftest.$ac_ext
14978 LIBS=$ac_check_lib_save_LIBS
14980 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14981 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14982 if test $ac_cv_lib_m_sqrt = yes; then
14983 cat >>confdefs.h <<_ACEOF
14984 #define HAVE_LIBM 1
14985 _ACEOF
14987 LIBS="-lm $LIBS"
14992 # Check for mail-locking functions in a "mail" library. Probably this should
14993 # have the same check as for liblockfile below.
14995 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14996 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14997 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000 ac_check_lib_save_LIBS=$LIBS
15001 LIBS="-lmail $LIBS"
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15009 /* Override any GCC internal prototype to avoid an error.
15010 Use char because int might match the return type of a GCC
15011 builtin and then its argument prototype would still apply. */
15012 #ifdef __cplusplus
15013 extern "C"
15014 #endif
15015 char maillock ();
15017 main ()
15019 return maillock ();
15021 return 0;
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_link") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest$ac_exeext &&
15041 $as_test_x conftest$ac_exeext; then
15042 ac_cv_lib_mail_maillock=yes
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_cv_lib_mail_maillock=no
15050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15051 conftest$ac_exeext conftest.$ac_ext
15052 LIBS=$ac_check_lib_save_LIBS
15054 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15055 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15056 if test $ac_cv_lib_mail_maillock = yes; then
15057 cat >>confdefs.h <<_ACEOF
15058 #define HAVE_LIBMAIL 1
15059 _ACEOF
15061 LIBS="-lmail $LIBS"
15066 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15067 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15068 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 ac_check_lib_save_LIBS=$LIBS
15072 LIBS="-llockfile $LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15080 /* Override any GCC internal prototype to avoid an error.
15081 Use char because int might match the return type of a GCC
15082 builtin and then its argument prototype would still apply. */
15083 #ifdef __cplusplus
15084 extern "C"
15085 #endif
15086 char maillock ();
15088 main ()
15090 return maillock ();
15092 return 0;
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (ac_try="$ac_link"
15097 case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_link") 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && {
15109 test -z "$ac_c_werror_flag" ||
15110 test ! -s conftest.err
15111 } && test -s conftest$ac_exeext &&
15112 $as_test_x conftest$ac_exeext; then
15113 ac_cv_lib_lockfile_maillock=yes
15114 else
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_cv_lib_lockfile_maillock=no
15121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15122 conftest$ac_exeext conftest.$ac_ext
15123 LIBS=$ac_check_lib_save_LIBS
15125 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15126 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15127 if test $ac_cv_lib_lockfile_maillock = yes; then
15128 cat >>confdefs.h <<_ACEOF
15129 #define HAVE_LIBLOCKFILE 1
15130 _ACEOF
15132 LIBS="-llockfile $LIBS"
15136 # If we have the shared liblockfile, assume we must use it for mail
15137 # locking (e.g. Debian). If we couldn't link against liblockfile
15138 # (no liblockfile.a installed), ensure that we don't need to.
15139 if test "$ac_cv_lib_lockfile_maillock" = no; then
15140 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15141 set dummy liblockfile.so; ac_word=$2
15142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15144 if test "${ac_cv_prog_liblockfile+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147 if test -n "$liblockfile"; then
15148 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15152 for as_dir in $as_dummy
15154 IFS=$as_save_IFS
15155 test -z "$as_dir" && as_dir=.
15156 for ac_exec_ext in '' $ac_executable_extensions; do
15157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15158 ac_cv_prog_liblockfile="yes"
15159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15160 break 2
15162 done
15163 done
15164 IFS=$as_save_IFS
15166 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15169 liblockfile=$ac_cv_prog_liblockfile
15170 if test -n "$liblockfile"; then
15171 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15172 echo "${ECHO_T}$liblockfile" >&6; }
15173 else
15174 { echo "$as_me:$LINENO: result: no" >&5
15175 echo "${ECHO_T}no" >&6; }
15179 if test $ac_cv_prog_liblockfile = yes; then
15180 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15181 This probably means that movemail could lose mail.
15182 There may be a \`development' package to install containing liblockfile." >&5
15183 echo "$as_me: error: Shared liblockfile found but can't link against it.
15184 This probably means that movemail could lose mail.
15185 There may be a \`development' package to install containing liblockfile." >&2;}
15186 { (exit 1); exit 1; }; }
15187 else :
15191 for ac_func in touchlock
15193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15207 #define $ac_func innocuous_$ac_func
15209 /* System header to define __stub macros and hopefully few prototypes,
15210 which can conflict with char $ac_func (); below.
15211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15212 <limits.h> exists even on freestanding compilers. */
15214 #ifdef __STDC__
15215 # include <limits.h>
15216 #else
15217 # include <assert.h>
15218 #endif
15220 #undef $ac_func
15222 /* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15225 #ifdef __cplusplus
15226 extern "C"
15227 #endif
15228 char $ac_func ();
15229 /* The GNU C library defines this for functions which it implements
15230 to always fail with ENOSYS. Some functions are actually named
15231 something starting with __ and the normal name is an alias. */
15232 #if defined __stub_$ac_func || defined __stub___$ac_func
15233 choke me
15234 #endif
15237 main ()
15239 return $ac_func ();
15241 return 0;
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_link") 2>conftest.er1
15252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && {
15258 test -z "$ac_c_werror_flag" ||
15259 test ! -s conftest.err
15260 } && test -s conftest$ac_exeext &&
15261 $as_test_x conftest$ac_exeext; then
15262 eval "$as_ac_var=yes"
15263 else
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 eval "$as_ac_var=no"
15270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15271 conftest$ac_exeext conftest.$ac_ext
15273 ac_res=`eval echo '${'$as_ac_var'}'`
15274 { echo "$as_me:$LINENO: result: $ac_res" >&5
15275 echo "${ECHO_T}$ac_res" >&6; }
15276 if test `eval echo '${'$as_ac_var'}'` = yes; then
15277 cat >>confdefs.h <<_ACEOF
15278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15279 _ACEOF
15282 done
15285 for ac_header in maillock.h
15287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 ac_res=`eval echo '${'$as_ac_Header'}'`
15295 { echo "$as_me:$LINENO: result: $ac_res" >&5
15296 echo "${ECHO_T}$ac_res" >&6; }
15297 else
15298 # Is the header compilable?
15299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <$ac_header>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15318 ac_status=$?
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest.$ac_objext; then
15327 ac_header_compiler=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_header_compiler=no
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15337 echo "${ECHO_T}$ac_header_compiler" >&6; }
15339 # Is the header present?
15340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h. */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 #include <$ac_header>
15349 _ACEOF
15350 if { (ac_try="$ac_cpp conftest.$ac_ext"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } >/dev/null && {
15363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 }; then
15366 ac_header_preproc=yes
15367 else
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_header_preproc=no
15374 rm -f conftest.err conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15376 echo "${ECHO_T}$ac_header_preproc" >&6; }
15378 # So? What about this header?
15379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15380 yes:no: )
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15385 ac_header_preproc=yes
15387 no:yes:* )
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15402 esac
15403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 eval "$as_ac_Header=\$ac_header_preproc"
15410 ac_res=`eval echo '${'$as_ac_Header'}'`
15411 { echo "$as_me:$LINENO: result: $ac_res" >&5
15412 echo "${ECHO_T}$ac_res" >&6; }
15415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15416 cat >>confdefs.h <<_ACEOF
15417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15418 _ACEOF
15422 done
15493 for ac_func in gethostname getdomainname dup2 \
15494 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15495 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15496 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15497 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15498 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15499 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15500 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15501 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15517 #define $ac_func innocuous_$ac_func
15519 /* System header to define __stub macros and hopefully few prototypes,
15520 which can conflict with char $ac_func (); below.
15521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15522 <limits.h> exists even on freestanding compilers. */
15524 #ifdef __STDC__
15525 # include <limits.h>
15526 #else
15527 # include <assert.h>
15528 #endif
15530 #undef $ac_func
15532 /* Override any GCC internal prototype to avoid an error.
15533 Use char because int might match the return type of a GCC
15534 builtin and then its argument prototype would still apply. */
15535 #ifdef __cplusplus
15536 extern "C"
15537 #endif
15538 char $ac_func ();
15539 /* The GNU C library defines this for functions which it implements
15540 to always fail with ENOSYS. Some functions are actually named
15541 something starting with __ and the normal name is an alias. */
15542 #if defined __stub_$ac_func || defined __stub___$ac_func
15543 choke me
15544 #endif
15547 main ()
15549 return $ac_func ();
15551 return 0;
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_link") 2>conftest.er1
15562 ac_status=$?
15563 grep -v '^ *+' conftest.er1 >conftest.err
15564 rm -f conftest.er1
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext &&
15571 $as_test_x conftest$ac_exeext; then
15572 eval "$as_ac_var=yes"
15573 else
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 eval "$as_ac_var=no"
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581 conftest$ac_exeext conftest.$ac_ext
15583 ac_res=`eval echo '${'$as_ac_var'}'`
15584 { echo "$as_me:$LINENO: result: $ac_res" >&5
15585 echo "${ECHO_T}$ac_res" >&6; }
15586 if test `eval echo '${'$as_ac_var'}'` = yes; then
15587 cat >>confdefs.h <<_ACEOF
15588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15589 _ACEOF
15592 done
15596 for ac_header in sys/un.h
15598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 else
15609 # Is the header compilable?
15610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15612 cat >conftest.$ac_ext <<_ACEOF
15613 /* confdefs.h. */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 $ac_includes_default
15619 #include <$ac_header>
15620 _ACEOF
15621 rm -f conftest.$ac_objext
15622 if { (ac_try="$ac_compile"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626 esac
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_compile") 2>conftest.er1
15629 ac_status=$?
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
15637 } && test -s conftest.$ac_objext; then
15638 ac_header_compiler=yes
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_header_compiler=no
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6; }
15650 # Is the header present?
15651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h. */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 #include <$ac_header>
15660 _ACEOF
15661 if { (ac_try="$ac_cpp conftest.$ac_ext"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } >/dev/null && {
15674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15675 test ! -s conftest.err
15676 }; then
15677 ac_header_preproc=yes
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 ac_header_preproc=no
15685 rm -f conftest.err conftest.$ac_ext
15686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15687 echo "${ECHO_T}$ac_header_preproc" >&6; }
15689 # So? What about this header?
15690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15691 yes:no: )
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15696 ac_header_preproc=yes
15698 no:yes:* )
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15713 esac
15714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719 eval "$as_ac_Header=\$ac_header_preproc"
15721 ac_res=`eval echo '${'$as_ac_Header'}'`
15722 { echo "$as_me:$LINENO: result: $ac_res" >&5
15723 echo "${ECHO_T}$ac_res" >&6; }
15726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15727 cat >>confdefs.h <<_ACEOF
15728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15729 _ACEOF
15733 done
15740 for ac_header in $ac_header_list
15742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15752 else
15753 # Is the header compilable?
15754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 $ac_includes_default
15763 #include <$ac_header>
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (ac_try="$ac_compile"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_compile") 2>conftest.er1
15773 ac_status=$?
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } && {
15779 test -z "$ac_c_werror_flag" ||
15780 test ! -s conftest.err
15781 } && test -s conftest.$ac_objext; then
15782 ac_header_compiler=yes
15783 else
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_header_compiler=no
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15792 echo "${ECHO_T}$ac_header_compiler" >&6; }
15794 # Is the header present?
15795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15797 cat >conftest.$ac_ext <<_ACEOF
15798 /* confdefs.h. */
15799 _ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h. */
15803 #include <$ac_header>
15804 _ACEOF
15805 if { (ac_try="$ac_cpp conftest.$ac_ext"
15806 case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } >/dev/null && {
15818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15819 test ! -s conftest.err
15820 }; then
15821 ac_header_preproc=yes
15822 else
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15826 ac_header_preproc=no
15829 rm -f conftest.err conftest.$ac_ext
15830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15831 echo "${ECHO_T}$ac_header_preproc" >&6; }
15833 # So? What about this header?
15834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15835 yes:no: )
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15840 ac_header_preproc=yes
15842 no:yes:* )
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15857 esac
15858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 else
15863 eval "$as_ac_Header=\$ac_header_preproc"
15865 ac_res=`eval echo '${'$as_ac_Header'}'`
15866 { echo "$as_me:$LINENO: result: $ac_res" >&5
15867 echo "${ECHO_T}$ac_res" >&6; }
15870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15873 _ACEOF
15877 done
15887 for ac_func in $ac_func_list
15889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15903 #define $ac_func innocuous_$ac_func
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char $ac_func (); below.
15907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908 <limits.h> exists even on freestanding compilers. */
15910 #ifdef __STDC__
15911 # include <limits.h>
15912 #else
15913 # include <assert.h>
15914 #endif
15916 #undef $ac_func
15918 /* Override any GCC internal prototype to avoid an error.
15919 Use char because int might match the return type of a GCC
15920 builtin and then its argument prototype would still apply. */
15921 #ifdef __cplusplus
15922 extern "C"
15923 #endif
15924 char $ac_func ();
15925 /* The GNU C library defines this for functions which it implements
15926 to always fail with ENOSYS. Some functions are actually named
15927 something starting with __ and the normal name is an alias. */
15928 #if defined __stub_$ac_func || defined __stub___$ac_func
15929 choke me
15930 #endif
15933 main ()
15935 return $ac_func ();
15937 return 0;
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (ac_try="$ac_link"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15945 esac
15946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_link") 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } && {
15954 test -z "$ac_c_werror_flag" ||
15955 test ! -s conftest.err
15956 } && test -s conftest$ac_exeext &&
15957 $as_test_x conftest$ac_exeext; then
15958 eval "$as_ac_var=yes"
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 eval "$as_ac_var=no"
15966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15967 conftest$ac_exeext conftest.$ac_ext
15969 ac_res=`eval echo '${'$as_ac_var'}'`
15970 { echo "$as_me:$LINENO: result: $ac_res" >&5
15971 echo "${ECHO_T}$ac_res" >&6; }
15972 if test `eval echo '${'$as_ac_var'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15975 _ACEOF
15978 done
15996 { echo "$as_me:$LINENO: checking for working mktime" >&5
15997 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15998 if test "${ac_cv_func_working_mktime+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 if test "$cross_compiling" = yes; then
16002 ac_cv_func_working_mktime=no
16003 else
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 /* Test program from Paul Eggert and Tony Leneis. */
16011 #ifdef TIME_WITH_SYS_TIME
16012 # include <sys/time.h>
16013 # include <time.h>
16014 #else
16015 # ifdef HAVE_SYS_TIME_H
16016 # include <sys/time.h>
16017 # else
16018 # include <time.h>
16019 # endif
16020 #endif
16022 #include <stdlib.h>
16024 #ifdef HAVE_UNISTD_H
16025 # include <unistd.h>
16026 #endif
16028 #ifndef HAVE_ALARM
16029 # define alarm(X) /* empty */
16030 #endif
16032 /* Work around redefinition to rpl_putenv by other config tests. */
16033 #undef putenv
16035 static time_t time_t_max;
16036 static time_t time_t_min;
16038 /* Values we'll use to set the TZ environment variable. */
16039 static char *tz_strings[] = {
16040 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16041 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16043 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16045 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16046 Based on a problem report from Andreas Jaeger. */
16047 static int
16048 spring_forward_gap ()
16050 /* glibc (up to about 1998-10-07) failed this test. */
16051 struct tm tm;
16053 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16054 instead of "TZ=America/Vancouver" in order to detect the bug even
16055 on systems that don't support the Olson extension, or don't have the
16056 full zoneinfo tables installed. */
16057 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16059 tm.tm_year = 98;
16060 tm.tm_mon = 3;
16061 tm.tm_mday = 5;
16062 tm.tm_hour = 2;
16063 tm.tm_min = 0;
16064 tm.tm_sec = 0;
16065 tm.tm_isdst = -1;
16066 return mktime (&tm) != (time_t) -1;
16069 static int
16070 mktime_test1 (now)
16071 time_t now;
16073 struct tm *lt;
16074 return ! (lt = localtime (&now)) || mktime (lt) == now;
16077 static int
16078 mktime_test (now)
16079 time_t now;
16081 return (mktime_test1 (now)
16082 && mktime_test1 ((time_t) (time_t_max - now))
16083 && mktime_test1 ((time_t) (time_t_min + now)));
16086 static int
16087 irix_6_4_bug ()
16089 /* Based on code from Ariel Faigon. */
16090 struct tm tm;
16091 tm.tm_year = 96;
16092 tm.tm_mon = 3;
16093 tm.tm_mday = 0;
16094 tm.tm_hour = 0;
16095 tm.tm_min = 0;
16096 tm.tm_sec = 0;
16097 tm.tm_isdst = -1;
16098 mktime (&tm);
16099 return tm.tm_mon == 2 && tm.tm_mday == 31;
16102 static int
16103 bigtime_test (j)
16104 int j;
16106 struct tm tm;
16107 time_t now;
16108 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16109 now = mktime (&tm);
16110 if (now != (time_t) -1)
16112 struct tm *lt = localtime (&now);
16113 if (! (lt
16114 && lt->tm_year == tm.tm_year
16115 && lt->tm_mon == tm.tm_mon
16116 && lt->tm_mday == tm.tm_mday
16117 && lt->tm_hour == tm.tm_hour
16118 && lt->tm_min == tm.tm_min
16119 && lt->tm_sec == tm.tm_sec
16120 && lt->tm_yday == tm.tm_yday
16121 && lt->tm_wday == tm.tm_wday
16122 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16123 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16124 return 0;
16126 return 1;
16129 static int
16130 year_2050_test ()
16132 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16133 ignoring leap seconds. */
16134 unsigned long int answer = 2527315200UL;
16136 struct tm tm;
16137 time_t t;
16138 tm.tm_year = 2050 - 1900;
16139 tm.tm_mon = 2 - 1;
16140 tm.tm_mday = 1;
16141 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16142 tm.tm_isdst = -1;
16144 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16145 instead of "TZ=America/Vancouver" in order to detect the bug even
16146 on systems that don't support the Olson extension, or don't have the
16147 full zoneinfo tables installed. */
16148 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16150 t = mktime (&tm);
16152 /* Check that the result is either a failure, or close enough
16153 to the correct answer that we can assume the discrepancy is
16154 due to leap seconds. */
16155 return (t == (time_t) -1
16156 || (0 < t && answer - 120 <= t && t <= answer + 120));
16160 main ()
16162 time_t t, delta;
16163 int i, j;
16165 /* This test makes some buggy mktime implementations loop.
16166 Give up after 60 seconds; a mktime slower than that
16167 isn't worth using anyway. */
16168 alarm (60);
16170 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16171 continue;
16172 time_t_max--;
16173 if ((time_t) -1 < 0)
16174 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16175 continue;
16176 delta = time_t_max / 997; /* a suitable prime number */
16177 for (i = 0; i < N_STRINGS; i++)
16179 if (tz_strings[i])
16180 putenv (tz_strings[i]);
16182 for (t = 0; t <= time_t_max - delta; t += delta)
16183 if (! mktime_test (t))
16184 return 1;
16185 if (! (mktime_test ((time_t) 1)
16186 && mktime_test ((time_t) (60 * 60))
16187 && mktime_test ((time_t) (60 * 60 * 24))))
16188 return 1;
16190 for (j = 1; 0 < j; j *= 2)
16191 if (! bigtime_test (j))
16192 return 1;
16193 if (! bigtime_test (j - 1))
16194 return 1;
16196 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16198 _ACEOF
16199 rm -f conftest$ac_exeext
16200 if { (ac_try="$ac_link"
16201 case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_link") 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16210 { (case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_try") 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_func_working_mktime=yes
16220 else
16221 echo "$as_me: program exited with status $ac_status" >&5
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ( exit $ac_status )
16226 ac_cv_func_working_mktime=no
16228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16233 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16234 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16235 if test $ac_cv_func_working_mktime = no; then
16236 case " $LIBOBJS " in
16237 *" mktime.$ac_objext "* ) ;;
16238 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16240 esac
16244 if test "$ac_cv_func_working_mktime" = no; then
16246 cat >>confdefs.h <<\_ACEOF
16247 #define BROKEN_MKTIME 1
16248 _ACEOF
16252 ac_have_func=no # yes means we've found a way to get the load average.
16254 # Make sure getloadavg.c is where it belongs, at configure-time.
16255 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16256 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16257 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16258 { (exit 1); exit 1; }; }
16260 ac_save_LIBS=$LIBS
16262 # Check for getloadavg, but be sure not to touch the cache variable.
16263 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16264 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16265 if test "${ac_cv_func_getloadavg+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 else
16268 cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h. */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16276 #define getloadavg innocuous_getloadavg
16278 /* System header to define __stub macros and hopefully few prototypes,
16279 which can conflict with char getloadavg (); below.
16280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16281 <limits.h> exists even on freestanding compilers. */
16283 #ifdef __STDC__
16284 # include <limits.h>
16285 #else
16286 # include <assert.h>
16287 #endif
16289 #undef getloadavg
16291 /* Override any GCC internal prototype to avoid an error.
16292 Use char because int might match the return type of a GCC
16293 builtin and then its argument prototype would still apply. */
16294 #ifdef __cplusplus
16295 extern "C"
16296 #endif
16297 char getloadavg ();
16298 /* The GNU C library defines this for functions which it implements
16299 to always fail with ENOSYS. Some functions are actually named
16300 something starting with __ and the normal name is an alias. */
16301 #if defined __stub_getloadavg || defined __stub___getloadavg
16302 choke me
16303 #endif
16306 main ()
16308 return getloadavg ();
16310 return 0;
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (ac_try="$ac_link"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_link") 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest$ac_exeext &&
16330 $as_test_x conftest$ac_exeext; then
16331 ac_cv_func_getloadavg=yes
16332 else
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_cv_func_getloadavg=no
16339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16340 conftest$ac_exeext conftest.$ac_ext
16342 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16343 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16344 if test $ac_cv_func_getloadavg = yes; then
16345 exit 0
16346 else
16347 exit 1
16349 ) && ac_have_func=yes
16351 # On HPUX9, an unprivileged user can get load averages through this function.
16353 for ac_func in pstat_getdynamic
16355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361 cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h. */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16369 #define $ac_func innocuous_$ac_func
16371 /* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char $ac_func (); below.
16373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16374 <limits.h> exists even on freestanding compilers. */
16376 #ifdef __STDC__
16377 # include <limits.h>
16378 #else
16379 # include <assert.h>
16380 #endif
16382 #undef $ac_func
16384 /* Override any GCC internal prototype to avoid an error.
16385 Use char because int might match the return type of a GCC
16386 builtin and then its argument prototype would still apply. */
16387 #ifdef __cplusplus
16388 extern "C"
16389 #endif
16390 char $ac_func ();
16391 /* The GNU C library defines this for functions which it implements
16392 to always fail with ENOSYS. Some functions are actually named
16393 something starting with __ and the normal name is an alias. */
16394 #if defined __stub_$ac_func || defined __stub___$ac_func
16395 choke me
16396 #endif
16399 main ()
16401 return $ac_func ();
16403 return 0;
16405 _ACEOF
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } && {
16420 test -z "$ac_c_werror_flag" ||
16421 test ! -s conftest.err
16422 } && test -s conftest$ac_exeext &&
16423 $as_test_x conftest$ac_exeext; then
16424 eval "$as_ac_var=yes"
16425 else
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 eval "$as_ac_var=no"
16432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433 conftest$ac_exeext conftest.$ac_ext
16435 ac_res=`eval echo '${'$as_ac_var'}'`
16436 { echo "$as_me:$LINENO: result: $ac_res" >&5
16437 echo "${ECHO_T}$ac_res" >&6; }
16438 if test `eval echo '${'$as_ac_var'}'` = yes; then
16439 cat >>confdefs.h <<_ACEOF
16440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16441 _ACEOF
16444 done
16447 # Solaris has libkstat which does not require root.
16449 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16450 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16451 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454 ac_check_lib_save_LIBS=$LIBS
16455 LIBS="-lkstat $LIBS"
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16463 /* Override any GCC internal prototype to avoid an error.
16464 Use char because int might match the return type of a GCC
16465 builtin and then its argument prototype would still apply. */
16466 #ifdef __cplusplus
16467 extern "C"
16468 #endif
16469 char kstat_open ();
16471 main ()
16473 return kstat_open ();
16475 return 0;
16477 _ACEOF
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (ac_try="$ac_link"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_link") 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } && {
16492 test -z "$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 } && test -s conftest$ac_exeext &&
16495 $as_test_x conftest$ac_exeext; then
16496 ac_cv_lib_kstat_kstat_open=yes
16497 else
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_cv_lib_kstat_kstat_open=no
16504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16505 conftest$ac_exeext conftest.$ac_ext
16506 LIBS=$ac_check_lib_save_LIBS
16508 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16509 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16510 if test $ac_cv_lib_kstat_kstat_open = yes; then
16511 cat >>confdefs.h <<_ACEOF
16512 #define HAVE_LIBKSTAT 1
16513 _ACEOF
16515 LIBS="-lkstat $LIBS"
16519 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16521 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16522 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16523 # to get the right answer into the cache.
16524 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16525 if test $ac_have_func = no; then
16526 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16527 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16528 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531 ac_check_lib_save_LIBS=$LIBS
16532 LIBS="-lelf $LIBS"
16533 cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16540 /* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16543 #ifdef __cplusplus
16544 extern "C"
16545 #endif
16546 char elf_begin ();
16548 main ()
16550 return elf_begin ();
16552 return 0;
16554 _ACEOF
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (ac_try="$ac_link"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_link") 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && {
16569 test -z "$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 } && test -s conftest$ac_exeext &&
16572 $as_test_x conftest$ac_exeext; then
16573 ac_cv_lib_elf_elf_begin=yes
16574 else
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_elf_elf_begin=no
16581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16582 conftest$ac_exeext conftest.$ac_ext
16583 LIBS=$ac_check_lib_save_LIBS
16585 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16586 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16587 if test $ac_cv_lib_elf_elf_begin = yes; then
16588 LIBS="-lelf $LIBS"
16592 if test $ac_have_func = no; then
16593 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16594 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16595 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598 ac_check_lib_save_LIBS=$LIBS
16599 LIBS="-lkvm $LIBS"
16600 cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h. */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16607 /* Override any GCC internal prototype to avoid an error.
16608 Use char because int might match the return type of a GCC
16609 builtin and then its argument prototype would still apply. */
16610 #ifdef __cplusplus
16611 extern "C"
16612 #endif
16613 char kvm_open ();
16615 main ()
16617 return kvm_open ();
16619 return 0;
16621 _ACEOF
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (ac_try="$ac_link"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_link") 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } && {
16636 test -z "$ac_c_werror_flag" ||
16637 test ! -s conftest.err
16638 } && test -s conftest$ac_exeext &&
16639 $as_test_x conftest$ac_exeext; then
16640 ac_cv_lib_kvm_kvm_open=yes
16641 else
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_cv_lib_kvm_kvm_open=no
16648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16649 conftest$ac_exeext conftest.$ac_ext
16650 LIBS=$ac_check_lib_save_LIBS
16652 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16653 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16654 if test $ac_cv_lib_kvm_kvm_open = yes; then
16655 LIBS="-lkvm $LIBS"
16658 # Check for the 4.4BSD definition of getloadavg.
16659 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16660 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16661 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664 ac_check_lib_save_LIBS=$LIBS
16665 LIBS="-lutil $LIBS"
16666 cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h. */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16673 /* Override any GCC internal prototype to avoid an error.
16674 Use char because int might match the return type of a GCC
16675 builtin and then its argument prototype would still apply. */
16676 #ifdef __cplusplus
16677 extern "C"
16678 #endif
16679 char getloadavg ();
16681 main ()
16683 return getloadavg ();
16685 return 0;
16687 _ACEOF
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_link") 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } && {
16702 test -z "$ac_c_werror_flag" ||
16703 test ! -s conftest.err
16704 } && test -s conftest$ac_exeext &&
16705 $as_test_x conftest$ac_exeext; then
16706 ac_cv_lib_util_getloadavg=yes
16707 else
16708 echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16711 ac_cv_lib_util_getloadavg=no
16714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16715 conftest$ac_exeext conftest.$ac_ext
16716 LIBS=$ac_check_lib_save_LIBS
16718 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16719 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16720 if test $ac_cv_lib_util_getloadavg = yes; then
16721 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16726 if test $ac_have_func = no; then
16727 # There is a commonly available library for RS/6000 AIX.
16728 # Since it is not a standard part of AIX, it might be installed locally.
16729 ac_getloadavg_LIBS=$LIBS
16730 LIBS="-L/usr/local/lib $LIBS"
16731 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16732 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16733 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736 ac_check_lib_save_LIBS=$LIBS
16737 LIBS="-lgetloadavg $LIBS"
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16745 /* Override any GCC internal prototype to avoid an error.
16746 Use char because int might match the return type of a GCC
16747 builtin and then its argument prototype would still apply. */
16748 #ifdef __cplusplus
16749 extern "C"
16750 #endif
16751 char getloadavg ();
16753 main ()
16755 return getloadavg ();
16757 return 0;
16759 _ACEOF
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (ac_try="$ac_link"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_link") 2>conftest.er1
16768 ac_status=$?
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && {
16774 test -z "$ac_c_werror_flag" ||
16775 test ! -s conftest.err
16776 } && test -s conftest$ac_exeext &&
16777 $as_test_x conftest$ac_exeext; then
16778 ac_cv_lib_getloadavg_getloadavg=yes
16779 else
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 ac_cv_lib_getloadavg_getloadavg=no
16786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16787 conftest$ac_exeext conftest.$ac_ext
16788 LIBS=$ac_check_lib_save_LIBS
16790 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16791 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16792 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16793 LIBS="-lgetloadavg $LIBS"
16794 else
16795 LIBS=$ac_getloadavg_LIBS
16800 # Make sure it is really in the library, if we think we found it,
16801 # otherwise set up the replacement function.
16803 for ac_func in getloadavg
16805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 else
16811 cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h. */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16819 #define $ac_func innocuous_$ac_func
16821 /* System header to define __stub macros and hopefully few prototypes,
16822 which can conflict with char $ac_func (); below.
16823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16824 <limits.h> exists even on freestanding compilers. */
16826 #ifdef __STDC__
16827 # include <limits.h>
16828 #else
16829 # include <assert.h>
16830 #endif
16832 #undef $ac_func
16834 /* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16837 #ifdef __cplusplus
16838 extern "C"
16839 #endif
16840 char $ac_func ();
16841 /* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844 #if defined __stub_$ac_func || defined __stub___$ac_func
16845 choke me
16846 #endif
16849 main ()
16851 return $ac_func ();
16853 return 0;
16855 _ACEOF
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (ac_try="$ac_link"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_link") 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest$ac_exeext &&
16873 $as_test_x conftest$ac_exeext; then
16874 eval "$as_ac_var=yes"
16875 else
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 eval "$as_ac_var=no"
16882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16883 conftest$ac_exeext conftest.$ac_ext
16885 ac_res=`eval echo '${'$as_ac_var'}'`
16886 { echo "$as_me:$LINENO: result: $ac_res" >&5
16887 echo "${ECHO_T}$ac_res" >&6; }
16888 if test `eval echo '${'$as_ac_var'}'` = yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16891 _ACEOF
16893 else
16894 case " $LIBOBJS " in
16895 *" getloadavg.$ac_objext "* ) ;;
16896 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16898 esac
16901 cat >>confdefs.h <<\_ACEOF
16902 #define C_GETLOADAVG 1
16903 _ACEOF
16905 # Figure out what our getloadavg.c needs.
16906 ac_have_func=no
16907 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16908 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16909 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16910 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16914 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16915 else
16916 # Is the header compilable?
16917 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16918 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 $ac_includes_default
16926 #include <sys/dg_sys_info.h>
16927 _ACEOF
16928 rm -f conftest.$ac_objext
16929 if { (ac_try="$ac_compile"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_compile") 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest.$ac_objext; then
16945 ac_header_compiler=yes
16946 else
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 ac_header_compiler=no
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16955 echo "${ECHO_T}$ac_header_compiler" >&6; }
16957 # Is the header present?
16958 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16959 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 #include <sys/dg_sys_info.h>
16967 _ACEOF
16968 if { (ac_try="$ac_cpp conftest.$ac_ext"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } >/dev/null && {
16981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 }; then
16984 ac_header_preproc=yes
16985 else
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16989 ac_header_preproc=no
16992 rm -f conftest.err conftest.$ac_ext
16993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16994 echo "${ECHO_T}$ac_header_preproc" >&6; }
16996 # So? What about this header?
16997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16998 yes:no: )
16999 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17000 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17002 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17003 ac_header_preproc=yes
17005 no:yes:* )
17006 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17007 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17008 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17009 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17011 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17012 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17013 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17014 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17015 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17017 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17020 esac
17021 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17022 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17023 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17028 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17029 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17032 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17033 ac_have_func=yes
17035 cat >>confdefs.h <<\_ACEOF
17036 #define DGUX 1
17037 _ACEOF
17040 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17041 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17042 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045 ac_check_lib_save_LIBS=$LIBS
17046 LIBS="-ldgc $LIBS"
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h. */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char dg_sys_info ();
17062 main ()
17064 return dg_sys_info ();
17066 return 0;
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (ac_try="$ac_link"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_link") 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && {
17083 test -z "$ac_c_werror_flag" ||
17084 test ! -s conftest.err
17085 } && test -s conftest$ac_exeext &&
17086 $as_test_x conftest$ac_exeext; then
17087 ac_cv_lib_dgc_dg_sys_info=yes
17088 else
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17092 ac_cv_lib_dgc_dg_sys_info=no
17095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17096 conftest$ac_exeext conftest.$ac_ext
17097 LIBS=$ac_check_lib_save_LIBS
17099 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17100 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17101 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17102 cat >>confdefs.h <<_ACEOF
17103 #define HAVE_LIBDGC 1
17104 _ACEOF
17106 LIBS="-ldgc $LIBS"
17114 if test "${ac_cv_header_locale_h+set}" = set; then
17115 { echo "$as_me:$LINENO: checking for locale.h" >&5
17116 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17117 if test "${ac_cv_header_locale_h+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17121 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17122 else
17123 # Is the header compilable?
17124 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17125 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17126 cat >conftest.$ac_ext <<_ACEOF
17127 /* confdefs.h. */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17132 $ac_includes_default
17133 #include <locale.h>
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (ac_try="$ac_compile"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_compile") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest.$ac_objext; then
17152 ac_header_compiler=yes
17153 else
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 ac_header_compiler=no
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17162 echo "${ECHO_T}$ac_header_compiler" >&6; }
17164 # Is the header present?
17165 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17166 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 #include <locale.h>
17174 _ACEOF
17175 if { (ac_try="$ac_cpp conftest.$ac_ext"
17176 case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } >/dev/null && {
17188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17189 test ! -s conftest.err
17190 }; then
17191 ac_header_preproc=yes
17192 else
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 ac_header_preproc=no
17199 rm -f conftest.err conftest.$ac_ext
17200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17201 echo "${ECHO_T}$ac_header_preproc" >&6; }
17203 # So? What about this header?
17204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17205 yes:no: )
17206 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17207 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17209 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17210 ac_header_preproc=yes
17212 no:yes:* )
17213 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17214 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17216 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17218 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17219 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17220 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17221 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17222 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17223 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17224 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17227 esac
17228 { echo "$as_me:$LINENO: checking for locale.h" >&5
17229 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17230 if test "${ac_cv_header_locale_h+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233 ac_cv_header_locale_h=$ac_header_preproc
17235 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17236 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17242 for ac_func in setlocale
17244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17258 #define $ac_func innocuous_$ac_func
17260 /* System header to define __stub macros and hopefully few prototypes,
17261 which can conflict with char $ac_func (); below.
17262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17263 <limits.h> exists even on freestanding compilers. */
17265 #ifdef __STDC__
17266 # include <limits.h>
17267 #else
17268 # include <assert.h>
17269 #endif
17271 #undef $ac_func
17273 /* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 char $ac_func ();
17280 /* The GNU C library defines this for functions which it implements
17281 to always fail with ENOSYS. Some functions are actually named
17282 something starting with __ and the normal name is an alias. */
17283 #if defined __stub_$ac_func || defined __stub___$ac_func
17284 choke me
17285 #endif
17288 main ()
17290 return $ac_func ();
17292 return 0;
17294 _ACEOF
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (ac_try="$ac_link"
17297 case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_link") 2>conftest.er1
17303 ac_status=$?
17304 grep -v '^ *+' conftest.er1 >conftest.err
17305 rm -f conftest.er1
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } && {
17309 test -z "$ac_c_werror_flag" ||
17310 test ! -s conftest.err
17311 } && test -s conftest$ac_exeext &&
17312 $as_test_x conftest$ac_exeext; then
17313 eval "$as_ac_var=yes"
17314 else
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 eval "$as_ac_var=no"
17321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17322 conftest$ac_exeext conftest.$ac_ext
17324 ac_res=`eval echo '${'$as_ac_var'}'`
17325 { echo "$as_me:$LINENO: result: $ac_res" >&5
17326 echo "${ECHO_T}$ac_res" >&6; }
17327 if test `eval echo '${'$as_ac_var'}'` = yes; then
17328 cat >>confdefs.h <<_ACEOF
17329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17330 _ACEOF
17333 done
17336 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17337 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17338 # Irix 4.0.5F has the header but not the library.
17339 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17340 ac_have_func=yes
17342 cat >>confdefs.h <<\_ACEOF
17343 #define SVR4 1
17344 _ACEOF
17348 if test $ac_have_func = no; then
17349 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17350 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17351 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17352 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17356 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17357 else
17358 # Is the header compilable?
17359 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17360 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 $ac_includes_default
17368 #include <inq_stats/cpustats.h>
17369 _ACEOF
17370 rm -f conftest.$ac_objext
17371 if { (ac_try="$ac_compile"
17372 case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_compile") 2>conftest.er1
17378 ac_status=$?
17379 grep -v '^ *+' conftest.er1 >conftest.err
17380 rm -f conftest.er1
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } && {
17384 test -z "$ac_c_werror_flag" ||
17385 test ! -s conftest.err
17386 } && test -s conftest.$ac_objext; then
17387 ac_header_compiler=yes
17388 else
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_header_compiler=no
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17397 echo "${ECHO_T}$ac_header_compiler" >&6; }
17399 # Is the header present?
17400 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17401 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17402 cat >conftest.$ac_ext <<_ACEOF
17403 /* confdefs.h. */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408 #include <inq_stats/cpustats.h>
17409 _ACEOF
17410 if { (ac_try="$ac_cpp conftest.$ac_ext"
17411 case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } >/dev/null && {
17423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 }; then
17426 ac_header_preproc=yes
17427 else
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_header_preproc=no
17434 rm -f conftest.err conftest.$ac_ext
17435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17436 echo "${ECHO_T}$ac_header_preproc" >&6; }
17438 # So? What about this header?
17439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17440 yes:no: )
17441 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17442 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17444 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17445 ac_header_preproc=yes
17447 no:yes:* )
17448 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17449 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17450 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17451 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17452 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17453 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17454 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17455 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17456 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17457 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17458 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17459 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17462 esac
17463 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17464 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17465 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 else
17468 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17470 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17471 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17474 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17475 ac_have_func=yes
17477 cat >>confdefs.h <<\_ACEOF
17478 #define UMAX 1
17479 _ACEOF
17482 cat >>confdefs.h <<\_ACEOF
17483 #define UMAX4_3 1
17484 _ACEOF
17491 if test $ac_have_func = no; then
17492 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17493 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17494 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17495 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17499 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17500 else
17501 # Is the header compilable?
17502 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17503 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17504 cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h. */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17510 $ac_includes_default
17511 #include <sys/cpustats.h>
17512 _ACEOF
17513 rm -f conftest.$ac_objext
17514 if { (ac_try="$ac_compile"
17515 case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_compile") 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } && {
17527 test -z "$ac_c_werror_flag" ||
17528 test ! -s conftest.err
17529 } && test -s conftest.$ac_objext; then
17530 ac_header_compiler=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 ac_header_compiler=no
17538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17540 echo "${ECHO_T}$ac_header_compiler" >&6; }
17542 # Is the header present?
17543 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17544 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17545 cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h. */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17551 #include <sys/cpustats.h>
17552 _ACEOF
17553 if { (ac_try="$ac_cpp conftest.$ac_ext"
17554 case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17560 ac_status=$?
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } >/dev/null && {
17566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 }; then
17569 ac_header_preproc=yes
17570 else
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_header_preproc=no
17577 rm -f conftest.err conftest.$ac_ext
17578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17579 echo "${ECHO_T}$ac_header_preproc" >&6; }
17581 # So? What about this header?
17582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17583 yes:no: )
17584 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17585 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17587 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17588 ac_header_preproc=yes
17590 no:yes:* )
17591 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17592 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17594 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17596 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17597 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17598 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17599 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17600 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17601 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17602 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17605 esac
17606 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17607 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17608 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17613 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17614 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17617 if test $ac_cv_header_sys_cpustats_h = yes; then
17618 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17619 #define UMAX 1
17620 _ACEOF
17627 if test $ac_have_func = no; then
17629 for ac_header in mach/mach.h
17631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 ac_res=`eval echo '${'$as_ac_Header'}'`
17639 { echo "$as_me:$LINENO: result: $ac_res" >&5
17640 echo "${ECHO_T}$ac_res" >&6; }
17641 else
17642 # Is the header compilable?
17643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17645 cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h. */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 $ac_includes_default
17652 #include <$ac_header>
17653 _ACEOF
17654 rm -f conftest.$ac_objext
17655 if { (ac_try="$ac_compile"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_compile") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest.$ac_objext; then
17671 ac_header_compiler=yes
17672 else
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17676 ac_header_compiler=no
17679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17681 echo "${ECHO_T}$ac_header_compiler" >&6; }
17683 # Is the header present?
17684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 #include <$ac_header>
17693 _ACEOF
17694 if { (ac_try="$ac_cpp conftest.$ac_ext"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } >/dev/null && {
17707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17708 test ! -s conftest.err
17709 }; then
17710 ac_header_preproc=yes
17711 else
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 ac_header_preproc=no
17718 rm -f conftest.err conftest.$ac_ext
17719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17720 echo "${ECHO_T}$ac_header_preproc" >&6; }
17722 # So? What about this header?
17723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17724 yes:no: )
17725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17729 ac_header_preproc=yes
17731 no:yes:* )
17732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17746 esac
17747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752 eval "$as_ac_Header=\$ac_header_preproc"
17754 ac_res=`eval echo '${'$as_ac_Header'}'`
17755 { echo "$as_me:$LINENO: result: $ac_res" >&5
17756 echo "${ECHO_T}$ac_res" >&6; }
17759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17760 cat >>confdefs.h <<_ACEOF
17761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17762 _ACEOF
17766 done
17771 for ac_header in nlist.h
17773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 ac_res=`eval echo '${'$as_ac_Header'}'`
17781 { echo "$as_me:$LINENO: result: $ac_res" >&5
17782 echo "${ECHO_T}$ac_res" >&6; }
17783 else
17784 # Is the header compilable?
17785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 $ac_includes_default
17794 #include <$ac_header>
17795 _ACEOF
17796 rm -f conftest.$ac_objext
17797 if { (ac_try="$ac_compile"
17798 case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17801 esac
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_compile") 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } && {
17810 test -z "$ac_c_werror_flag" ||
17811 test ! -s conftest.err
17812 } && test -s conftest.$ac_objext; then
17813 ac_header_compiler=yes
17814 else
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 ac_header_compiler=no
17821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17823 echo "${ECHO_T}$ac_header_compiler" >&6; }
17825 # Is the header present?
17826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h. */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 #include <$ac_header>
17835 _ACEOF
17836 if { (ac_try="$ac_cpp conftest.$ac_ext"
17837 case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } >/dev/null && {
17849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17850 test ! -s conftest.err
17851 }; then
17852 ac_header_preproc=yes
17853 else
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17857 ac_header_preproc=no
17860 rm -f conftest.err conftest.$ac_ext
17861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17862 echo "${ECHO_T}$ac_header_preproc" >&6; }
17864 # So? What about this header?
17865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17866 yes:no: )
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17871 ac_header_preproc=yes
17873 no:yes:* )
17874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17888 esac
17889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894 eval "$as_ac_Header=\$ac_header_preproc"
17896 ac_res=`eval echo '${'$as_ac_Header'}'`
17897 { echo "$as_me:$LINENO: result: $ac_res" >&5
17898 echo "${ECHO_T}$ac_res" >&6; }
17901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17902 cat >>confdefs.h <<_ACEOF
17903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17904 _ACEOF
17905 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17906 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17907 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 #include <nlist.h>
17919 main ()
17921 static struct nlist ac_aggr;
17922 if (ac_aggr.n_un.n_name)
17923 return 0;
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (ac_try="$ac_compile"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_compile") 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && {
17942 test -z "$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17944 } && test -s conftest.$ac_objext; then
17945 ac_cv_member_struct_nlist_n_un_n_name=yes
17946 else
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h. */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <nlist.h>
17959 main ()
17961 static struct nlist ac_aggr;
17962 if (sizeof ac_aggr.n_un.n_name)
17963 return 0;
17965 return 0;
17967 _ACEOF
17968 rm -f conftest.$ac_objext
17969 if { (ac_try="$ac_compile"
17970 case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_compile") 2>conftest.er1
17976 ac_status=$?
17977 grep -v '^ *+' conftest.er1 >conftest.err
17978 rm -f conftest.er1
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && {
17982 test -z "$ac_c_werror_flag" ||
17983 test ! -s conftest.err
17984 } && test -s conftest.$ac_objext; then
17985 ac_cv_member_struct_nlist_n_un_n_name=yes
17986 else
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_member_struct_nlist_n_un_n_name=no
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17998 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17999 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18000 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18002 cat >>confdefs.h <<_ACEOF
18003 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18004 _ACEOF
18007 cat >>confdefs.h <<\_ACEOF
18008 #define NLIST_NAME_UNION 1
18009 _ACEOF
18016 done
18019 done
18022 # Some definitions of getloadavg require that the program be installed setgid.
18023 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18024 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18025 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h. */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18035 #ifdef LDAV_PRIVILEGED
18036 Yowza Am I SETGID yet
18037 #endif
18038 _ACEOF
18039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18040 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18041 ac_cv_func_getloadavg_setgid=yes
18042 else
18043 ac_cv_func_getloadavg_setgid=no
18045 rm -f conftest*
18048 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18049 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18050 if test $ac_cv_func_getloadavg_setgid = yes; then
18051 NEED_SETGID=true
18053 cat >>confdefs.h <<\_ACEOF
18054 #define GETLOADAVG_PRIVILEGED 1
18055 _ACEOF
18057 else
18058 NEED_SETGID=false
18061 if test $ac_cv_func_getloadavg_setgid = yes; then
18062 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18063 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18064 if test "${ac_cv_group_kmem+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18068 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18069 # If we got an error (system does not support symlinks), try without -L.
18070 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18071 ac_cv_group_kmem=`echo $ac_ls_output \
18072 | sed -ne 's/[ ][ ]*/ /g;
18073 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18074 / /s/.* //;p;'`
18077 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18078 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18079 KMEM_GROUP=$ac_cv_group_kmem
18081 if test "x$ac_save_LIBS" = x; then
18082 GETLOADAVG_LIBS=$LIBS
18083 else
18084 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18086 LIBS=$ac_save_LIBS
18090 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18091 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18092 if test "${ac_cv_sys_largefile_source+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095 while :; do
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 #include <stdio.h>
18104 main ()
18106 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18108 return 0;
18110 _ACEOF
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (ac_try="$ac_link"
18113 case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18116 esac
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_link") 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && {
18125 test -z "$ac_c_werror_flag" ||
18126 test ! -s conftest.err
18127 } && test -s conftest$ac_exeext &&
18128 $as_test_x conftest$ac_exeext; then
18129 ac_cv_sys_largefile_source=no; break
18130 else
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18138 conftest$ac_exeext conftest.$ac_ext
18139 cat >conftest.$ac_ext <<_ACEOF
18140 /* confdefs.h. */
18141 _ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18145 #define _LARGEFILE_SOURCE 1
18146 #include <stdio.h>
18148 main ()
18150 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18152 return 0;
18154 _ACEOF
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>conftest.er1
18163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } && {
18169 test -z "$ac_c_werror_flag" ||
18170 test ! -s conftest.err
18171 } && test -s conftest$ac_exeext &&
18172 $as_test_x conftest$ac_exeext; then
18173 ac_cv_sys_largefile_source=1; break
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18182 conftest$ac_exeext conftest.$ac_ext
18183 ac_cv_sys_largefile_source=unknown
18184 break
18185 done
18187 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18188 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18189 case $ac_cv_sys_largefile_source in #(
18190 no | unknown) ;;
18192 cat >>confdefs.h <<_ACEOF
18193 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18194 _ACEOF
18196 esac
18197 rm -f conftest*
18199 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18200 # in glibc 2.1.3, but that breaks too many other things.
18201 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18202 if test $ac_cv_sys_largefile_source != unknown; then
18204 cat >>confdefs.h <<\_ACEOF
18205 #define HAVE_FSEEKO 1
18206 _ACEOF
18211 # Configure getopt.
18212 # getopt.m4 serial 10
18214 # The getopt module assume you want GNU getopt, with getopt_long etc,
18215 # rather than vanilla POSIX getopt. This means your your code should
18216 # always include <getopt.h> for the getopt prototypes.
18228 # Prerequisites of lib/getopt*.
18233 GETOPT_H=
18235 for ac_header in getopt.h
18237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 ac_res=`eval echo '${'$as_ac_Header'}'`
18245 { echo "$as_me:$LINENO: result: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 else
18248 # Is the header compilable?
18249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257 $ac_includes_default
18258 #include <$ac_header>
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest.$ac_objext; then
18277 ac_header_compiler=yes
18278 else
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_header_compiler=no
18285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18287 echo "${ECHO_T}$ac_header_compiler" >&6; }
18289 # Is the header present?
18290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18292 cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h. */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18298 #include <$ac_header>
18299 _ACEOF
18300 if { (ac_try="$ac_cpp conftest.$ac_ext"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18307 ac_status=$?
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } >/dev/null && {
18313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18315 }; then
18316 ac_header_preproc=yes
18317 else
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_header_preproc=no
18324 rm -f conftest.err conftest.$ac_ext
18325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18326 echo "${ECHO_T}$ac_header_preproc" >&6; }
18328 # So? What about this header?
18329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18330 yes:no: )
18331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18335 ac_header_preproc=yes
18337 no:yes:* )
18338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18352 esac
18353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358 eval "$as_ac_Header=\$ac_header_preproc"
18360 ac_res=`eval echo '${'$as_ac_Header'}'`
18361 { echo "$as_me:$LINENO: result: $ac_res" >&5
18362 echo "${ECHO_T}$ac_res" >&6; }
18365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18368 _ACEOF
18370 else
18371 GETOPT_H=getopt.h
18374 done
18376 if test -z "$GETOPT_H"; then
18378 for ac_func in getopt_long_only
18380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386 cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h. */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18394 #define $ac_func innocuous_$ac_func
18396 /* System header to define __stub macros and hopefully few prototypes,
18397 which can conflict with char $ac_func (); below.
18398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18399 <limits.h> exists even on freestanding compilers. */
18401 #ifdef __STDC__
18402 # include <limits.h>
18403 #else
18404 # include <assert.h>
18405 #endif
18407 #undef $ac_func
18409 /* Override any GCC internal prototype to avoid an error.
18410 Use char because int might match the return type of a GCC
18411 builtin and then its argument prototype would still apply. */
18412 #ifdef __cplusplus
18413 extern "C"
18414 #endif
18415 char $ac_func ();
18416 /* The GNU C library defines this for functions which it implements
18417 to always fail with ENOSYS. Some functions are actually named
18418 something starting with __ and the normal name is an alias. */
18419 #if defined __stub_$ac_func || defined __stub___$ac_func
18420 choke me
18421 #endif
18424 main ()
18426 return $ac_func ();
18428 return 0;
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_link") 2>conftest.er1
18439 ac_status=$?
18440 grep -v '^ *+' conftest.er1 >conftest.err
18441 rm -f conftest.er1
18442 cat conftest.err >&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } && {
18445 test -z "$ac_c_werror_flag" ||
18446 test ! -s conftest.err
18447 } && test -s conftest$ac_exeext &&
18448 $as_test_x conftest$ac_exeext; then
18449 eval "$as_ac_var=yes"
18450 else
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 eval "$as_ac_var=no"
18457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18458 conftest$ac_exeext conftest.$ac_ext
18460 ac_res=`eval echo '${'$as_ac_var'}'`
18461 { echo "$as_me:$LINENO: result: $ac_res" >&5
18462 echo "${ECHO_T}$ac_res" >&6; }
18463 if test `eval echo '${'$as_ac_var'}'` = yes; then
18464 cat >>confdefs.h <<_ACEOF
18465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18466 _ACEOF
18468 else
18469 GETOPT_H=getopt.h
18471 done
18475 if test -z "$GETOPT_H"; then
18476 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18477 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18478 if test "${ac_cv_have_decl_optreset+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h. */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 #include <getopt.h>
18490 main ()
18492 #ifndef optreset
18493 (void) optreset;
18494 #endif
18497 return 0;
18499 _ACEOF
18500 rm -f conftest.$ac_objext
18501 if { (ac_try="$ac_compile"
18502 case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_compile") 2>conftest.er1
18508 ac_status=$?
18509 grep -v '^ *+' conftest.er1 >conftest.err
18510 rm -f conftest.er1
18511 cat conftest.err >&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } && {
18514 test -z "$ac_c_werror_flag" ||
18515 test ! -s conftest.err
18516 } && test -s conftest.$ac_objext; then
18517 ac_cv_have_decl_optreset=yes
18518 else
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 ac_cv_have_decl_optreset=no
18525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18528 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18529 if test $ac_cv_have_decl_optreset = yes; then
18530 GETOPT_H=getopt.h
18535 if test -z "$GETOPT_H"; then
18536 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18537 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18538 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18540 else
18541 if test "$cross_compiling" = yes; then
18542 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18543 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18544 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h. */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553 #include <getopt.h>
18556 main ()
18558 #ifndef getopt_clip
18559 (void) getopt_clip;
18560 #endif
18563 return 0;
18565 _ACEOF
18566 rm -f conftest.$ac_objext
18567 if { (ac_try="$ac_compile"
18568 case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_compile") 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest.$ac_objext; then
18583 ac_cv_have_decl_getopt_clip=yes
18584 else
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 ac_cv_have_decl_getopt_clip=no
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18593 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18594 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18595 if test $ac_cv_have_decl_getopt_clip = yes; then
18596 gl_cv_func_gnu_getopt=no
18597 else
18598 gl_cv_func_gnu_getopt=yes
18601 else
18602 cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h. */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 #include <getopt.h>
18610 main ()
18613 char *myargv[3];
18614 myargv[0] = "conftest";
18615 myargv[1] = "-+";
18616 myargv[2] = 0;
18617 return getopt (2, myargv, "+a") != '?';
18620 return 0;
18622 _ACEOF
18623 rm -f conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 gl_cv_func_gnu_getopt=yes
18644 else
18645 echo "$as_me: program exited with status $ac_status" >&5
18646 echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ( exit $ac_status )
18650 gl_cv_func_gnu_getopt=no
18652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18657 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18658 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18659 if test "$gl_cv_func_gnu_getopt" = "no"; then
18660 GETOPT_H=getopt.h
18666 if test -n "$GETOPT_H"; then
18669 GETOPT_H=getopt.h
18671 cat >>confdefs.h <<\_ACEOF
18672 #define __GETOPT_PREFIX rpl_
18673 _ACEOF
18678 GETOPTOBJS='getopt.o getopt1.o'
18685 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18686 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18687 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689 else
18690 # Use it with a single arg.
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h. */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 $ac_includes_default
18699 main ()
18701 getpgrp (0);
18703 return 0;
18705 _ACEOF
18706 rm -f conftest.$ac_objext
18707 if { (ac_try="$ac_compile"
18708 case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_compile") 2>conftest.er1
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && {
18720 test -z "$ac_c_werror_flag" ||
18721 test ! -s conftest.err
18722 } && test -s conftest.$ac_objext; then
18723 ac_cv_func_getpgrp_void=no
18724 else
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 ac_cv_func_getpgrp_void=yes
18731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18735 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18736 if test $ac_cv_func_getpgrp_void = yes; then
18738 cat >>confdefs.h <<\_ACEOF
18739 #define GETPGRP_VOID 1
18740 _ACEOF
18746 for ac_func in strftime
18748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754 cat >conftest.$ac_ext <<_ACEOF
18755 /* confdefs.h. */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18762 #define $ac_func innocuous_$ac_func
18764 /* System header to define __stub macros and hopefully few prototypes,
18765 which can conflict with char $ac_func (); below.
18766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18767 <limits.h> exists even on freestanding compilers. */
18769 #ifdef __STDC__
18770 # include <limits.h>
18771 #else
18772 # include <assert.h>
18773 #endif
18775 #undef $ac_func
18777 /* Override any GCC internal prototype to avoid an error.
18778 Use char because int might match the return type of a GCC
18779 builtin and then its argument prototype would still apply. */
18780 #ifdef __cplusplus
18781 extern "C"
18782 #endif
18783 char $ac_func ();
18784 /* The GNU C library defines this for functions which it implements
18785 to always fail with ENOSYS. Some functions are actually named
18786 something starting with __ and the normal name is an alias. */
18787 #if defined __stub_$ac_func || defined __stub___$ac_func
18788 choke me
18789 #endif
18792 main ()
18794 return $ac_func ();
18796 return 0;
18798 _ACEOF
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (ac_try="$ac_link"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_link") 2>conftest.er1
18807 ac_status=$?
18808 grep -v '^ *+' conftest.er1 >conftest.err
18809 rm -f conftest.er1
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && {
18813 test -z "$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 } && test -s conftest$ac_exeext &&
18816 $as_test_x conftest$ac_exeext; then
18817 eval "$as_ac_var=yes"
18818 else
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 eval "$as_ac_var=no"
18825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18826 conftest$ac_exeext conftest.$ac_ext
18828 ac_res=`eval echo '${'$as_ac_var'}'`
18829 { echo "$as_me:$LINENO: result: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18831 if test `eval echo '${'$as_ac_var'}'` = yes; then
18832 cat >>confdefs.h <<_ACEOF
18833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18834 _ACEOF
18836 else
18837 # strftime is in -lintl on SCO UNIX.
18838 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18839 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18840 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843 ac_check_lib_save_LIBS=$LIBS
18844 LIBS="-lintl $LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18855 #ifdef __cplusplus
18856 extern "C"
18857 #endif
18858 char strftime ();
18860 main ()
18862 return strftime ();
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
18875 ac_status=$?
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } && {
18881 test -z "$ac_c_werror_flag" ||
18882 test ! -s conftest.err
18883 } && test -s conftest$ac_exeext &&
18884 $as_test_x conftest$ac_exeext; then
18885 ac_cv_lib_intl_strftime=yes
18886 else
18887 echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18890 ac_cv_lib_intl_strftime=no
18893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18894 conftest$ac_exeext conftest.$ac_ext
18895 LIBS=$ac_check_lib_save_LIBS
18897 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18898 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18899 if test $ac_cv_lib_intl_strftime = yes; then
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_STRFTIME 1
18902 _ACEOF
18904 LIBS="-lintl $LIBS"
18908 done
18911 # UNIX98 PTYs.
18913 for ac_func in grantpt
18915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921 cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h. */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18929 #define $ac_func innocuous_$ac_func
18931 /* System header to define __stub macros and hopefully few prototypes,
18932 which can conflict with char $ac_func (); below.
18933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18934 <limits.h> exists even on freestanding compilers. */
18936 #ifdef __STDC__
18937 # include <limits.h>
18938 #else
18939 # include <assert.h>
18940 #endif
18942 #undef $ac_func
18944 /* Override any GCC internal prototype to avoid an error.
18945 Use char because int might match the return type of a GCC
18946 builtin and then its argument prototype would still apply. */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 char $ac_func ();
18951 /* The GNU C library defines this for functions which it implements
18952 to always fail with ENOSYS. Some functions are actually named
18953 something starting with __ and the normal name is an alias. */
18954 #if defined __stub_$ac_func || defined __stub___$ac_func
18955 choke me
18956 #endif
18959 main ()
18961 return $ac_func ();
18963 return 0;
18965 _ACEOF
18966 rm -f conftest.$ac_objext conftest$ac_exeext
18967 if { (ac_try="$ac_link"
18968 case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_link") 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } && {
18980 test -z "$ac_c_werror_flag" ||
18981 test ! -s conftest.err
18982 } && test -s conftest$ac_exeext &&
18983 $as_test_x conftest$ac_exeext; then
18984 eval "$as_ac_var=yes"
18985 else
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 eval "$as_ac_var=no"
18992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18993 conftest$ac_exeext conftest.$ac_ext
18995 ac_res=`eval echo '${'$as_ac_var'}'`
18996 { echo "$as_me:$LINENO: result: $ac_res" >&5
18997 echo "${ECHO_T}$ac_res" >&6; }
18998 if test `eval echo '${'$as_ac_var'}'` = yes; then
18999 cat >>confdefs.h <<_ACEOF
19000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19001 _ACEOF
19004 done
19007 # PTY-related GNU extensions.
19009 for ac_func in getpt
19011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19025 #define $ac_func innocuous_$ac_func
19027 /* System header to define __stub macros and hopefully few prototypes,
19028 which can conflict with char $ac_func (); below.
19029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030 <limits.h> exists even on freestanding compilers. */
19032 #ifdef __STDC__
19033 # include <limits.h>
19034 #else
19035 # include <assert.h>
19036 #endif
19038 #undef $ac_func
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char $ac_func ();
19047 /* The GNU C library defines this for functions which it implements
19048 to always fail with ENOSYS. Some functions are actually named
19049 something starting with __ and the normal name is an alias. */
19050 #if defined __stub_$ac_func || defined __stub___$ac_func
19051 choke me
19052 #endif
19055 main ()
19057 return $ac_func ();
19059 return 0;
19061 _ACEOF
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_link") 2>conftest.er1
19070 ac_status=$?
19071 grep -v '^ *+' conftest.er1 >conftest.err
19072 rm -f conftest.er1
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } && {
19076 test -z "$ac_c_werror_flag" ||
19077 test ! -s conftest.err
19078 } && test -s conftest$ac_exeext &&
19079 $as_test_x conftest$ac_exeext; then
19080 eval "$as_ac_var=yes"
19081 else
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 eval "$as_ac_var=no"
19088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19089 conftest$ac_exeext conftest.$ac_ext
19091 ac_res=`eval echo '${'$as_ac_var'}'`
19092 { echo "$as_me:$LINENO: result: $ac_res" >&5
19093 echo "${ECHO_T}$ac_res" >&6; }
19094 if test `eval echo '${'$as_ac_var'}'` = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19097 _ACEOF
19100 done
19103 # Check this now, so that we will NOT find the above functions in ncurses.
19104 # That is because we have not set up to link ncurses in lib-src.
19105 # It's better to believe a function is not available
19106 # than to expect to find it in ncurses.
19108 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19109 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19110 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113 ac_check_lib_save_LIBS=$LIBS
19114 LIBS="-lncurses $LIBS"
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19122 /* Override any GCC internal prototype to avoid an error.
19123 Use char because int might match the return type of a GCC
19124 builtin and then its argument prototype would still apply. */
19125 #ifdef __cplusplus
19126 extern "C"
19127 #endif
19128 char tparm ();
19130 main ()
19132 return tparm ();
19134 return 0;
19136 _ACEOF
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (ac_try="$ac_link"
19139 case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19142 esac
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_link") 2>conftest.er1
19145 ac_status=$?
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } && {
19151 test -z "$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19153 } && test -s conftest$ac_exeext &&
19154 $as_test_x conftest$ac_exeext; then
19155 ac_cv_lib_ncurses_tparm=yes
19156 else
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19160 ac_cv_lib_ncurses_tparm=no
19163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19164 conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_lib_save_LIBS
19167 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19168 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19169 if test $ac_cv_lib_ncurses_tparm = yes; then
19170 cat >>confdefs.h <<_ACEOF
19171 #define HAVE_LIBNCURSES 1
19172 _ACEOF
19174 LIBS="-lncurses $LIBS"
19179 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19181 resolv=no
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h. */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 #include <netinet/in.h>
19189 #include <arpa/nameser.h>
19190 #include <resolv.h>
19192 main ()
19194 return res_init();
19196 return 0;
19198 _ACEOF
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (ac_try="$ac_link"
19201 case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19204 esac
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_link") 2>conftest.er1
19207 ac_status=$?
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && {
19213 test -z "$ac_c_werror_flag" ||
19214 test ! -s conftest.err
19215 } && test -s conftest$ac_exeext &&
19216 $as_test_x conftest$ac_exeext; then
19217 have_res_init=yes
19218 else
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 have_res_init=no
19225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19226 conftest$ac_exeext conftest.$ac_ext
19227 if test "$have_res_init" = no; then
19228 OLIBS="$LIBS"
19229 LIBS="$LIBS -lresolv"
19230 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19231 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <netinet/in.h>
19239 #include <arpa/nameser.h>
19240 #include <resolv.h>
19242 main ()
19244 return res_init();
19246 return 0;
19248 _ACEOF
19249 rm -f conftest.$ac_objext conftest$ac_exeext
19250 if { (ac_try="$ac_link"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_link") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest$ac_exeext &&
19266 $as_test_x conftest$ac_exeext; then
19267 have_res_init=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 have_res_init=no
19275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19276 conftest$ac_exeext conftest.$ac_ext
19277 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19278 echo "${ECHO_T}$have_res_init" >&6; }
19279 if test "$have_res_init" = yes ; then
19280 resolv=yes
19282 LIBS="$OLIBS"
19285 if test "$have_res_init" = yes; then
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE_RES_INIT 1
19289 _ACEOF
19293 # Do we need the Hesiod library to provide the support routines?
19294 if test "$with_hesiod" = yes ; then
19295 # Don't set $LIBS here -- see comments above.
19296 { echo "$as_me:$LINENO: checking for res_send" >&5
19297 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19298 if test "${ac_cv_func_res_send+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h. */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19309 #define res_send innocuous_res_send
19311 /* System header to define __stub macros and hopefully few prototypes,
19312 which can conflict with char res_send (); below.
19313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19314 <limits.h> exists even on freestanding compilers. */
19316 #ifdef __STDC__
19317 # include <limits.h>
19318 #else
19319 # include <assert.h>
19320 #endif
19322 #undef res_send
19324 /* Override any GCC internal prototype to avoid an error.
19325 Use char because int might match the return type of a GCC
19326 builtin and then its argument prototype would still apply. */
19327 #ifdef __cplusplus
19328 extern "C"
19329 #endif
19330 char res_send ();
19331 /* The GNU C library defines this for functions which it implements
19332 to always fail with ENOSYS. Some functions are actually named
19333 something starting with __ and the normal name is an alias. */
19334 #if defined __stub_res_send || defined __stub___res_send
19335 choke me
19336 #endif
19339 main ()
19341 return res_send ();
19343 return 0;
19345 _ACEOF
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (ac_try="$ac_link"
19348 case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351 esac
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_link") 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } && {
19360 test -z "$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19362 } && test -s conftest$ac_exeext &&
19363 $as_test_x conftest$ac_exeext; then
19364 ac_cv_func_res_send=yes
19365 else
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19369 ac_cv_func_res_send=no
19372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19373 conftest$ac_exeext conftest.$ac_ext
19375 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19376 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19377 if test $ac_cv_func_res_send = yes; then
19379 else
19380 { echo "$as_me:$LINENO: checking for __res_send" >&5
19381 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19382 if test "${ac_cv_func___res_send+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h. */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19393 #define __res_send innocuous___res_send
19395 /* System header to define __stub macros and hopefully few prototypes,
19396 which can conflict with char __res_send (); below.
19397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19398 <limits.h> exists even on freestanding compilers. */
19400 #ifdef __STDC__
19401 # include <limits.h>
19402 #else
19403 # include <assert.h>
19404 #endif
19406 #undef __res_send
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19411 #ifdef __cplusplus
19412 extern "C"
19413 #endif
19414 char __res_send ();
19415 /* The GNU C library defines this for functions which it implements
19416 to always fail with ENOSYS. Some functions are actually named
19417 something starting with __ and the normal name is an alias. */
19418 #if defined __stub___res_send || defined __stub_____res_send
19419 choke me
19420 #endif
19423 main ()
19425 return __res_send ();
19427 return 0;
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (ac_try="$ac_link"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } && {
19444 test -z "$ac_c_werror_flag" ||
19445 test ! -s conftest.err
19446 } && test -s conftest$ac_exeext &&
19447 $as_test_x conftest$ac_exeext; then
19448 ac_cv_func___res_send=yes
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_cv_func___res_send=no
19456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19457 conftest$ac_exeext conftest.$ac_ext
19459 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19460 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19461 if test $ac_cv_func___res_send = yes; then
19463 else
19464 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19465 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19466 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 ac_check_lib_save_LIBS=$LIBS
19470 LIBS="-lresolv $LIBS"
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19481 #ifdef __cplusplus
19482 extern "C"
19483 #endif
19484 char res_send ();
19486 main ()
19488 return res_send ();
19490 return 0;
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19501 ac_status=$?
19502 grep -v '^ *+' conftest.er1 >conftest.err
19503 rm -f conftest.er1
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } && {
19507 test -z "$ac_c_werror_flag" ||
19508 test ! -s conftest.err
19509 } && test -s conftest$ac_exeext &&
19510 $as_test_x conftest$ac_exeext; then
19511 ac_cv_lib_resolv_res_send=yes
19512 else
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_lib_resolv_res_send=no
19519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19520 conftest$ac_exeext conftest.$ac_ext
19521 LIBS=$ac_check_lib_save_LIBS
19523 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19524 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19525 if test $ac_cv_lib_resolv_res_send = yes; then
19526 resolv=yes
19527 else
19528 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19529 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19530 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533 ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-lresolv $LIBS"
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19542 /* Override any GCC internal prototype to avoid an error.
19543 Use char because int might match the return type of a GCC
19544 builtin and then its argument prototype would still apply. */
19545 #ifdef __cplusplus
19546 extern "C"
19547 #endif
19548 char __res_send ();
19550 main ()
19552 return __res_send ();
19554 return 0;
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_link") 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } && {
19571 test -z "$ac_c_werror_flag" ||
19572 test ! -s conftest.err
19573 } && test -s conftest$ac_exeext &&
19574 $as_test_x conftest$ac_exeext; then
19575 ac_cv_lib_resolv___res_send=yes
19576 else
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 ac_cv_lib_resolv___res_send=no
19583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19584 conftest$ac_exeext conftest.$ac_ext
19585 LIBS=$ac_check_lib_save_LIBS
19587 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19588 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19589 if test $ac_cv_lib_resolv___res_send = yes; then
19590 resolv=yes
19599 if test "$resolv" = yes ; then
19600 RESOLVLIB=-lresolv
19601 else
19602 RESOLVLIB=
19604 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19605 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19606 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609 cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h. */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19617 #define hes_getmailhost innocuous_hes_getmailhost
19619 /* System header to define __stub macros and hopefully few prototypes,
19620 which can conflict with char hes_getmailhost (); below.
19621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19622 <limits.h> exists even on freestanding compilers. */
19624 #ifdef __STDC__
19625 # include <limits.h>
19626 #else
19627 # include <assert.h>
19628 #endif
19630 #undef hes_getmailhost
19632 /* Override any GCC internal prototype to avoid an error.
19633 Use char because int might match the return type of a GCC
19634 builtin and then its argument prototype would still apply. */
19635 #ifdef __cplusplus
19636 extern "C"
19637 #endif
19638 char hes_getmailhost ();
19639 /* The GNU C library defines this for functions which it implements
19640 to always fail with ENOSYS. Some functions are actually named
19641 something starting with __ and the normal name is an alias. */
19642 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19643 choke me
19644 #endif
19647 main ()
19649 return hes_getmailhost ();
19651 return 0;
19653 _ACEOF
19654 rm -f conftest.$ac_objext conftest$ac_exeext
19655 if { (ac_try="$ac_link"
19656 case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659 esac
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_link") 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest$ac_exeext &&
19671 $as_test_x conftest$ac_exeext; then
19672 ac_cv_func_hes_getmailhost=yes
19673 else
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ac_cv_func_hes_getmailhost=no
19680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19681 conftest$ac_exeext conftest.$ac_ext
19683 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19684 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19685 if test $ac_cv_func_hes_getmailhost = yes; then
19687 else
19688 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19689 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19690 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693 ac_check_lib_save_LIBS=$LIBS
19694 LIBS="-lhesiod $RESOLVLIB $LIBS"
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19705 #ifdef __cplusplus
19706 extern "C"
19707 #endif
19708 char hes_getmailhost ();
19710 main ()
19712 return hes_getmailhost ();
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 ac_cv_lib_hesiod_hes_getmailhost=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_lib_hesiod_hes_getmailhost=no
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19748 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19749 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19751 cat >>confdefs.h <<\_ACEOF
19752 #define HAVE_LIBHESIOD 1
19753 _ACEOF
19755 else
19763 # Do we need libresolv (due to res_init or Hesiod)?
19764 if test "$resolv" = yes ; then
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_LIBRESOLV 1
19768 _ACEOF
19772 # These tell us which Kerberos-related libraries to use.
19773 if test "${with_kerberos+set}" = set; then
19775 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19776 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19777 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780 ac_check_lib_save_LIBS=$LIBS
19781 LIBS="-lcom_err $LIBS"
19782 cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h. */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19789 /* Override any GCC internal prototype to avoid an error.
19790 Use char because int might match the return type of a GCC
19791 builtin and then its argument prototype would still apply. */
19792 #ifdef __cplusplus
19793 extern "C"
19794 #endif
19795 char com_err ();
19797 main ()
19799 return com_err ();
19801 return 0;
19803 _ACEOF
19804 rm -f conftest.$ac_objext conftest$ac_exeext
19805 if { (ac_try="$ac_link"
19806 case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809 esac
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_link") 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest$ac_exeext &&
19821 $as_test_x conftest$ac_exeext; then
19822 ac_cv_lib_com_err_com_err=yes
19823 else
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_cv_lib_com_err_com_err=no
19830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19831 conftest$ac_exeext conftest.$ac_ext
19832 LIBS=$ac_check_lib_save_LIBS
19834 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19835 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19836 if test $ac_cv_lib_com_err_com_err = yes; then
19837 cat >>confdefs.h <<_ACEOF
19838 #define HAVE_LIBCOM_ERR 1
19839 _ACEOF
19841 LIBS="-lcom_err $LIBS"
19846 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19847 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19848 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851 ac_check_lib_save_LIBS=$LIBS
19852 LIBS="-lk5crypto $LIBS"
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19860 /* Override any GCC internal prototype to avoid an error.
19861 Use char because int might match the return type of a GCC
19862 builtin and then its argument prototype would still apply. */
19863 #ifdef __cplusplus
19864 extern "C"
19865 #endif
19866 char mit_des_cbc_encrypt ();
19868 main ()
19870 return mit_des_cbc_encrypt ();
19872 return 0;
19874 _ACEOF
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (ac_try="$ac_link"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_link") 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest$ac_exeext &&
19892 $as_test_x conftest$ac_exeext; then
19893 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19894 else
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19898 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19902 conftest$ac_exeext conftest.$ac_ext
19903 LIBS=$ac_check_lib_save_LIBS
19905 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19906 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19907 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19908 cat >>confdefs.h <<_ACEOF
19909 #define HAVE_LIBK5CRYPTO 1
19910 _ACEOF
19912 LIBS="-lk5crypto $LIBS"
19917 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19918 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19919 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922 ac_check_lib_save_LIBS=$LIBS
19923 LIBS="-lcrypto $LIBS"
19924 cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h. */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19931 /* Override any GCC internal prototype to avoid an error.
19932 Use char because int might match the return type of a GCC
19933 builtin and then its argument prototype would still apply. */
19934 #ifdef __cplusplus
19935 extern "C"
19936 #endif
19937 char mit_des_cbc_encrypt ();
19939 main ()
19941 return mit_des_cbc_encrypt ();
19943 return 0;
19945 _ACEOF
19946 rm -f conftest.$ac_objext conftest$ac_exeext
19947 if { (ac_try="$ac_link"
19948 case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_link") 2>conftest.er1
19954 ac_status=$?
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } && {
19960 test -z "$ac_c_werror_flag" ||
19961 test ! -s conftest.err
19962 } && test -s conftest$ac_exeext &&
19963 $as_test_x conftest$ac_exeext; then
19964 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19965 else
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19969 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19973 conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19976 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19977 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19978 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define HAVE_LIBCRYPTO 1
19981 _ACEOF
19983 LIBS="-lcrypto $LIBS"
19988 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19989 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19990 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993 ac_check_lib_save_LIBS=$LIBS
19994 LIBS="-lkrb5 $LIBS"
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h. */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20002 /* Override any GCC internal prototype to avoid an error.
20003 Use char because int might match the return type of a GCC
20004 builtin and then its argument prototype would still apply. */
20005 #ifdef __cplusplus
20006 extern "C"
20007 #endif
20008 char krb5_init_context ();
20010 main ()
20012 return krb5_init_context ();
20014 return 0;
20016 _ACEOF
20017 rm -f conftest.$ac_objext conftest$ac_exeext
20018 if { (ac_try="$ac_link"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_link") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest$ac_exeext &&
20034 $as_test_x conftest$ac_exeext; then
20035 ac_cv_lib_krb5_krb5_init_context=yes
20036 else
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_cv_lib_krb5_krb5_init_context=no
20043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20044 conftest$ac_exeext conftest.$ac_ext
20045 LIBS=$ac_check_lib_save_LIBS
20047 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20048 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20049 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20050 cat >>confdefs.h <<_ACEOF
20051 #define HAVE_LIBKRB5 1
20052 _ACEOF
20054 LIBS="-lkrb5 $LIBS"
20058 if test "${with_kerberos5+set}" != set; then
20060 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20061 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20062 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065 ac_check_lib_save_LIBS=$LIBS
20066 LIBS="-ldes425 $LIBS"
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 char des_cbc_encrypt ();
20082 main ()
20084 return des_cbc_encrypt ();
20086 return 0;
20088 _ACEOF
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (ac_try="$ac_link"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_link") 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } && {
20103 test -z "$ac_c_werror_flag" ||
20104 test ! -s conftest.err
20105 } && test -s conftest$ac_exeext &&
20106 $as_test_x conftest$ac_exeext; then
20107 ac_cv_lib_des425_des_cbc_encrypt=yes
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 ac_cv_lib_des425_des_cbc_encrypt=no
20115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20116 conftest$ac_exeext conftest.$ac_ext
20117 LIBS=$ac_check_lib_save_LIBS
20119 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20120 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20121 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define HAVE_LIBDES425 1
20124 _ACEOF
20126 LIBS="-ldes425 $LIBS"
20128 else
20130 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20131 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20132 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 ac_check_lib_save_LIBS=$LIBS
20136 LIBS="-ldes $LIBS"
20137 cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h. */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20144 /* Override any GCC internal prototype to avoid an error.
20145 Use char because int might match the return type of a GCC
20146 builtin and then its argument prototype would still apply. */
20147 #ifdef __cplusplus
20148 extern "C"
20149 #endif
20150 char des_cbc_encrypt ();
20152 main ()
20154 return des_cbc_encrypt ();
20156 return 0;
20158 _ACEOF
20159 rm -f conftest.$ac_objext conftest$ac_exeext
20160 if { (ac_try="$ac_link"
20161 case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_link") 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest$ac_exeext &&
20176 $as_test_x conftest$ac_exeext; then
20177 ac_cv_lib_des_des_cbc_encrypt=yes
20178 else
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 ac_cv_lib_des_des_cbc_encrypt=no
20185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20186 conftest$ac_exeext conftest.$ac_ext
20187 LIBS=$ac_check_lib_save_LIBS
20189 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20190 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20191 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20192 cat >>confdefs.h <<_ACEOF
20193 #define HAVE_LIBDES 1
20194 _ACEOF
20196 LIBS="-ldes $LIBS"
20203 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20204 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20205 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 else
20208 ac_check_lib_save_LIBS=$LIBS
20209 LIBS="-lkrb4 $LIBS"
20210 cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20217 /* Override any GCC internal prototype to avoid an error.
20218 Use char because int might match the return type of a GCC
20219 builtin and then its argument prototype would still apply. */
20220 #ifdef __cplusplus
20221 extern "C"
20222 #endif
20223 char krb_get_cred ();
20225 main ()
20227 return krb_get_cred ();
20229 return 0;
20231 _ACEOF
20232 rm -f conftest.$ac_objext conftest$ac_exeext
20233 if { (ac_try="$ac_link"
20234 case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_link") 2>conftest.er1
20240 ac_status=$?
20241 grep -v '^ *+' conftest.er1 >conftest.err
20242 rm -f conftest.er1
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } && {
20246 test -z "$ac_c_werror_flag" ||
20247 test ! -s conftest.err
20248 } && test -s conftest$ac_exeext &&
20249 $as_test_x conftest$ac_exeext; then
20250 ac_cv_lib_krb4_krb_get_cred=yes
20251 else
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ac_cv_lib_krb4_krb_get_cred=no
20258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20259 conftest$ac_exeext conftest.$ac_ext
20260 LIBS=$ac_check_lib_save_LIBS
20262 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20263 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20264 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20265 cat >>confdefs.h <<_ACEOF
20266 #define HAVE_LIBKRB4 1
20267 _ACEOF
20269 LIBS="-lkrb4 $LIBS"
20271 else
20273 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20274 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20275 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 else
20278 ac_check_lib_save_LIBS=$LIBS
20279 LIBS="-lkrb $LIBS"
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20287 /* Override any GCC internal prototype to avoid an error.
20288 Use char because int might match the return type of a GCC
20289 builtin and then its argument prototype would still apply. */
20290 #ifdef __cplusplus
20291 extern "C"
20292 #endif
20293 char krb_get_cred ();
20295 main ()
20297 return krb_get_cred ();
20299 return 0;
20301 _ACEOF
20302 rm -f conftest.$ac_objext conftest$ac_exeext
20303 if { (ac_try="$ac_link"
20304 case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_link") 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest$ac_exeext &&
20319 $as_test_x conftest$ac_exeext; then
20320 ac_cv_lib_krb_krb_get_cred=yes
20321 else
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_cv_lib_krb_krb_get_cred=no
20328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20329 conftest$ac_exeext conftest.$ac_ext
20330 LIBS=$ac_check_lib_save_LIBS
20332 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20333 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20334 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20335 cat >>confdefs.h <<_ACEOF
20336 #define HAVE_LIBKRB 1
20337 _ACEOF
20339 LIBS="-lkrb $LIBS"
20347 if test "${with_kerberos5+set}" = set; then
20349 for ac_header in krb5.h
20351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 ac_res=`eval echo '${'$as_ac_Header'}'`
20359 { echo "$as_me:$LINENO: result: $ac_res" >&5
20360 echo "${ECHO_T}$ac_res" >&6; }
20361 else
20362 # Is the header compilable?
20363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 $ac_includes_default
20372 #include <$ac_header>
20373 _ACEOF
20374 rm -f conftest.$ac_objext
20375 if { (ac_try="$ac_compile"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_compile") 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } && {
20388 test -z "$ac_c_werror_flag" ||
20389 test ! -s conftest.err
20390 } && test -s conftest.$ac_objext; then
20391 ac_header_compiler=yes
20392 else
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_header_compiler=no
20399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20401 echo "${ECHO_T}$ac_header_compiler" >&6; }
20403 # Is the header present?
20404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 #include <$ac_header>
20413 _ACEOF
20414 if { (ac_try="$ac_cpp conftest.$ac_ext"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } >/dev/null && {
20427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 }; then
20430 ac_header_preproc=yes
20431 else
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_header_preproc=no
20438 rm -f conftest.err conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20440 echo "${ECHO_T}$ac_header_preproc" >&6; }
20442 # So? What about this header?
20443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20444 yes:no: )
20445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20449 ac_header_preproc=yes
20451 no:yes:* )
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20466 esac
20467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472 eval "$as_ac_Header=\$ac_header_preproc"
20474 ac_res=`eval echo '${'$as_ac_Header'}'`
20475 { echo "$as_me:$LINENO: result: $ac_res" >&5
20476 echo "${ECHO_T}$ac_res" >&6; }
20479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20482 _ACEOF
20486 done
20488 else
20490 for ac_header in des.h
20492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20497 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 ac_res=`eval echo '${'$as_ac_Header'}'`
20500 { echo "$as_me:$LINENO: result: $ac_res" >&5
20501 echo "${ECHO_T}$ac_res" >&6; }
20502 else
20503 # Is the header compilable?
20504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20506 cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h. */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 $ac_includes_default
20513 #include <$ac_header>
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (ac_try="$ac_compile"
20517 case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_compile") 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest.$ac_objext; then
20532 ac_header_compiler=yes
20533 else
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_header_compiler=no
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20542 echo "${ECHO_T}$ac_header_compiler" >&6; }
20544 # Is the header present?
20545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 #include <$ac_header>
20554 _ACEOF
20555 if { (ac_try="$ac_cpp conftest.$ac_ext"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } >/dev/null && {
20568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 }; then
20571 ac_header_preproc=yes
20572 else
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ac_header_preproc=no
20579 rm -f conftest.err conftest.$ac_ext
20580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20581 echo "${ECHO_T}$ac_header_preproc" >&6; }
20583 # So? What about this header?
20584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20585 yes:no: )
20586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20590 ac_header_preproc=yes
20592 no:yes:* )
20593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20607 esac
20608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613 eval "$as_ac_Header=\$ac_header_preproc"
20615 ac_res=`eval echo '${'$as_ac_Header'}'`
20616 { echo "$as_me:$LINENO: result: $ac_res" >&5
20617 echo "${ECHO_T}$ac_res" >&6; }
20620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20621 cat >>confdefs.h <<_ACEOF
20622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20623 _ACEOF
20625 else
20627 for ac_header in kerberosIV/des.h
20629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 ac_res=`eval echo '${'$as_ac_Header'}'`
20637 { echo "$as_me:$LINENO: result: $ac_res" >&5
20638 echo "${ECHO_T}$ac_res" >&6; }
20639 else
20640 # Is the header compilable?
20641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20643 cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h. */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 $ac_includes_default
20650 #include <$ac_header>
20651 _ACEOF
20652 rm -f conftest.$ac_objext
20653 if { (ac_try="$ac_compile"
20654 case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_compile") 2>conftest.er1
20660 ac_status=$?
20661 grep -v '^ *+' conftest.er1 >conftest.err
20662 rm -f conftest.er1
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } && {
20666 test -z "$ac_c_werror_flag" ||
20667 test ! -s conftest.err
20668 } && test -s conftest.$ac_objext; then
20669 ac_header_compiler=yes
20670 else
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 ac_header_compiler=no
20677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20679 echo "${ECHO_T}$ac_header_compiler" >&6; }
20681 # Is the header present?
20682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 #include <$ac_header>
20691 _ACEOF
20692 if { (ac_try="$ac_cpp conftest.$ac_ext"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } >/dev/null && {
20705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20706 test ! -s conftest.err
20707 }; then
20708 ac_header_preproc=yes
20709 else
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 ac_header_preproc=no
20716 rm -f conftest.err conftest.$ac_ext
20717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20718 echo "${ECHO_T}$ac_header_preproc" >&6; }
20720 # So? What about this header?
20721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20722 yes:no: )
20723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20727 ac_header_preproc=yes
20729 no:yes:* )
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20744 esac
20745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750 eval "$as_ac_Header=\$ac_header_preproc"
20752 ac_res=`eval echo '${'$as_ac_Header'}'`
20753 { echo "$as_me:$LINENO: result: $ac_res" >&5
20754 echo "${ECHO_T}$ac_res" >&6; }
20757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20758 cat >>confdefs.h <<_ACEOF
20759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20760 _ACEOF
20762 else
20764 for ac_header in kerberos/des.h
20766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 ac_res=`eval echo '${'$as_ac_Header'}'`
20774 { echo "$as_me:$LINENO: result: $ac_res" >&5
20775 echo "${ECHO_T}$ac_res" >&6; }
20776 else
20777 # Is the header compilable?
20778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 $ac_includes_default
20787 #include <$ac_header>
20788 _ACEOF
20789 rm -f conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_compile") 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest.$ac_objext; then
20806 ac_header_compiler=yes
20807 else
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_header_compiler=no
20814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20816 echo "${ECHO_T}$ac_header_compiler" >&6; }
20818 # Is the header present?
20819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 #include <$ac_header>
20828 _ACEOF
20829 if { (ac_try="$ac_cpp conftest.$ac_ext"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20836 ac_status=$?
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } >/dev/null && {
20842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20843 test ! -s conftest.err
20844 }; then
20845 ac_header_preproc=yes
20846 else
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 ac_header_preproc=no
20853 rm -f conftest.err conftest.$ac_ext
20854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20855 echo "${ECHO_T}$ac_header_preproc" >&6; }
20857 # So? What about this header?
20858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20859 yes:no: )
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20864 ac_header_preproc=yes
20866 no:yes:* )
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20881 esac
20882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887 eval "$as_ac_Header=\$ac_header_preproc"
20889 ac_res=`eval echo '${'$as_ac_Header'}'`
20890 { echo "$as_me:$LINENO: result: $ac_res" >&5
20891 echo "${ECHO_T}$ac_res" >&6; }
20894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20895 cat >>confdefs.h <<_ACEOF
20896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20897 _ACEOF
20901 done
20905 done
20909 done
20912 for ac_header in krb.h
20914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 ac_res=`eval echo '${'$as_ac_Header'}'`
20922 { echo "$as_me:$LINENO: result: $ac_res" >&5
20923 echo "${ECHO_T}$ac_res" >&6; }
20924 else
20925 # Is the header compilable?
20926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20928 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h. */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934 $ac_includes_default
20935 #include <$ac_header>
20936 _ACEOF
20937 rm -f conftest.$ac_objext
20938 if { (ac_try="$ac_compile"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_compile") 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest.$ac_objext; then
20954 ac_header_compiler=yes
20955 else
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_header_compiler=no
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20964 echo "${ECHO_T}$ac_header_compiler" >&6; }
20966 # Is the header present?
20967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 #include <$ac_header>
20976 _ACEOF
20977 if { (ac_try="$ac_cpp conftest.$ac_ext"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } >/dev/null && {
20990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 }; then
20993 ac_header_preproc=yes
20994 else
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_header_preproc=no
21001 rm -f conftest.err conftest.$ac_ext
21002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21003 echo "${ECHO_T}$ac_header_preproc" >&6; }
21005 # So? What about this header?
21006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21007 yes:no: )
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21012 ac_header_preproc=yes
21014 no:yes:* )
21015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21029 esac
21030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035 eval "$as_ac_Header=\$ac_header_preproc"
21037 ac_res=`eval echo '${'$as_ac_Header'}'`
21038 { echo "$as_me:$LINENO: result: $ac_res" >&5
21039 echo "${ECHO_T}$ac_res" >&6; }
21042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21043 cat >>confdefs.h <<_ACEOF
21044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21045 _ACEOF
21047 else
21049 for ac_header in kerberosIV/krb.h
21051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 ac_res=`eval echo '${'$as_ac_Header'}'`
21059 { echo "$as_me:$LINENO: result: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21061 else
21062 # Is the header compilable?
21063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h. */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 $ac_includes_default
21072 #include <$ac_header>
21073 _ACEOF
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_compile") 2>conftest.er1
21082 ac_status=$?
21083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && {
21088 test -z "$ac_c_werror_flag" ||
21089 test ! -s conftest.err
21090 } && test -s conftest.$ac_objext; then
21091 ac_header_compiler=yes
21092 else
21093 echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21096 ac_header_compiler=no
21099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21101 echo "${ECHO_T}$ac_header_compiler" >&6; }
21103 # Is the header present?
21104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21106 cat >conftest.$ac_ext <<_ACEOF
21107 /* confdefs.h. */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 #include <$ac_header>
21113 _ACEOF
21114 if { (ac_try="$ac_cpp conftest.$ac_ext"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } >/dev/null && {
21127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21128 test ! -s conftest.err
21129 }; then
21130 ac_header_preproc=yes
21131 else
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135 ac_header_preproc=no
21138 rm -f conftest.err conftest.$ac_ext
21139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21140 echo "${ECHO_T}$ac_header_preproc" >&6; }
21142 # So? What about this header?
21143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21144 yes:no: )
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21149 ac_header_preproc=yes
21151 no:yes:* )
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21166 esac
21167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 else
21172 eval "$as_ac_Header=\$ac_header_preproc"
21174 ac_res=`eval echo '${'$as_ac_Header'}'`
21175 { echo "$as_me:$LINENO: result: $ac_res" >&5
21176 echo "${ECHO_T}$ac_res" >&6; }
21179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21180 cat >>confdefs.h <<_ACEOF
21181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21182 _ACEOF
21184 else
21186 for ac_header in kerberos/krb.h
21188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 ac_res=`eval echo '${'$as_ac_Header'}'`
21196 { echo "$as_me:$LINENO: result: $ac_res" >&5
21197 echo "${ECHO_T}$ac_res" >&6; }
21198 else
21199 # Is the header compilable?
21200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21202 cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h. */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21208 $ac_includes_default
21209 #include <$ac_header>
21210 _ACEOF
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21216 esac
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_compile") 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } && {
21225 test -z "$ac_c_werror_flag" ||
21226 test ! -s conftest.err
21227 } && test -s conftest.$ac_objext; then
21228 ac_header_compiler=yes
21229 else
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 ac_header_compiler=no
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6; }
21240 # Is the header present?
21241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21243 cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h. */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 #include <$ac_header>
21250 _ACEOF
21251 if { (ac_try="$ac_cpp conftest.$ac_ext"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21258 ac_status=$?
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } >/dev/null && {
21264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21265 test ! -s conftest.err
21266 }; then
21267 ac_header_preproc=yes
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_header_preproc=no
21275 rm -f conftest.err conftest.$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21277 echo "${ECHO_T}$ac_header_preproc" >&6; }
21279 # So? What about this header?
21280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21281 yes:no: )
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21286 ac_header_preproc=yes
21288 no:yes:* )
21289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21303 esac
21304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21309 eval "$as_ac_Header=\$ac_header_preproc"
21311 ac_res=`eval echo '${'$as_ac_Header'}'`
21312 { echo "$as_me:$LINENO: result: $ac_res" >&5
21313 echo "${ECHO_T}$ac_res" >&6; }
21316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21317 cat >>confdefs.h <<_ACEOF
21318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21319 _ACEOF
21323 done
21327 done
21331 done
21335 for ac_header in com_err.h
21337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21347 else
21348 # Is the header compilable?
21349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21351 cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h. */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21357 $ac_includes_default
21358 #include <$ac_header>
21359 _ACEOF
21360 rm -f conftest.$ac_objext
21361 if { (ac_try="$ac_compile"
21362 case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21365 esac
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_compile") 2>conftest.er1
21368 ac_status=$?
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest.$ac_objext; then
21377 ac_header_compiler=yes
21378 else
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_header_compiler=no
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21387 echo "${ECHO_T}$ac_header_compiler" >&6; }
21389 # Is the header present?
21390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <$ac_header>
21399 _ACEOF
21400 if { (ac_try="$ac_cpp conftest.$ac_ext"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21407 ac_status=$?
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } >/dev/null && {
21413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 }; then
21416 ac_header_preproc=yes
21417 else
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_header_preproc=no
21424 rm -f conftest.err conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21426 echo "${ECHO_T}$ac_header_preproc" >&6; }
21428 # So? What about this header?
21429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430 yes:no: )
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21435 ac_header_preproc=yes
21437 no:yes:* )
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21452 esac
21453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458 eval "$as_ac_Header=\$ac_header_preproc"
21460 ac_res=`eval echo '${'$as_ac_Header'}'`
21461 { echo "$as_me:$LINENO: result: $ac_res" >&5
21462 echo "${ECHO_T}$ac_res" >&6; }
21465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21468 _ACEOF
21472 done
21476 # Solaris requires -lintl if you want strerror (which calls dgettext)
21477 # to return localized messages.
21479 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21480 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21481 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484 ac_check_lib_save_LIBS=$LIBS
21485 LIBS="-lintl $LIBS"
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 /* Override any GCC internal prototype to avoid an error.
21494 Use char because int might match the return type of a GCC
21495 builtin and then its argument prototype would still apply. */
21496 #ifdef __cplusplus
21497 extern "C"
21498 #endif
21499 char dgettext ();
21501 main ()
21503 return dgettext ();
21505 return 0;
21507 _ACEOF
21508 rm -f conftest.$ac_objext conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_link") 2>conftest.er1
21516 ac_status=$?
21517 grep -v '^ *+' conftest.er1 >conftest.err
21518 rm -f conftest.er1
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest$ac_exeext &&
21525 $as_test_x conftest$ac_exeext; then
21526 ac_cv_lib_intl_dgettext=yes
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_cv_lib_intl_dgettext=no
21534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21535 conftest$ac_exeext conftest.$ac_ext
21536 LIBS=$ac_check_lib_save_LIBS
21538 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21539 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21540 if test $ac_cv_lib_intl_dgettext = yes; then
21541 cat >>confdefs.h <<_ACEOF
21542 #define HAVE_LIBINTL 1
21543 _ACEOF
21545 LIBS="-lintl $LIBS"
21550 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21551 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21552 if test "${emacs_cv_localtime_cache+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555 if test x$ac_cv_func_tzset = xyes; then
21556 if test "$cross_compiling" = yes; then
21557 # If we have tzset, assume the worst when cross-compiling.
21558 emacs_cv_localtime_cache=yes
21559 else
21560 cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h. */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 #include <time.h>
21567 extern char **environ;
21568 unset_TZ ()
21570 char **from, **to;
21571 for (to = from = environ; (*to = *from); from++)
21572 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21573 to++;
21575 char TZ_GMT0[] = "TZ=GMT0";
21576 char TZ_PST8[] = "TZ=PST8";
21577 main()
21579 time_t now = time ((time_t *) 0);
21580 int hour_GMT0, hour_unset;
21581 if (putenv (TZ_GMT0) != 0)
21582 exit (1);
21583 hour_GMT0 = localtime (&now)->tm_hour;
21584 unset_TZ ();
21585 hour_unset = localtime (&now)->tm_hour;
21586 if (putenv (TZ_PST8) != 0)
21587 exit (1);
21588 if (localtime (&now)->tm_hour == hour_GMT0)
21589 exit (1);
21590 unset_TZ ();
21591 if (localtime (&now)->tm_hour != hour_unset)
21592 exit (1);
21593 exit (0);
21595 _ACEOF
21596 rm -f conftest$ac_exeext
21597 if { (ac_try="$ac_link"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_link") 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21613 ac_status=$?
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616 emacs_cv_localtime_cache=no
21617 else
21618 echo "$as_me: program exited with status $ac_status" >&5
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ( exit $ac_status )
21623 emacs_cv_localtime_cache=yes
21625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21629 else
21630 # If we lack tzset, report that localtime does not cache TZ,
21631 # since we can't invalidate the cache if we don't have tzset.
21632 emacs_cv_localtime_cache=no
21635 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21636 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21637 if test $emacs_cv_localtime_cache = yes; then
21639 cat >>confdefs.h <<\_ACEOF
21640 #define LOCALTIME_CACHE 1
21641 _ACEOF
21645 if test "x$HAVE_TIMEVAL" = xyes; then
21647 for ac_func in gettimeofday
21649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655 cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h. */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21663 #define $ac_func innocuous_$ac_func
21665 /* System header to define __stub macros and hopefully few prototypes,
21666 which can conflict with char $ac_func (); below.
21667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21668 <limits.h> exists even on freestanding compilers. */
21670 #ifdef __STDC__
21671 # include <limits.h>
21672 #else
21673 # include <assert.h>
21674 #endif
21676 #undef $ac_func
21678 /* Override any GCC internal prototype to avoid an error.
21679 Use char because int might match the return type of a GCC
21680 builtin and then its argument prototype would still apply. */
21681 #ifdef __cplusplus
21682 extern "C"
21683 #endif
21684 char $ac_func ();
21685 /* The GNU C library defines this for functions which it implements
21686 to always fail with ENOSYS. Some functions are actually named
21687 something starting with __ and the normal name is an alias. */
21688 #if defined __stub_$ac_func || defined __stub___$ac_func
21689 choke me
21690 #endif
21693 main ()
21695 return $ac_func ();
21697 return 0;
21699 _ACEOF
21700 rm -f conftest.$ac_objext conftest$ac_exeext
21701 if { (ac_try="$ac_link"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_link") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest$ac_exeext &&
21717 $as_test_x conftest$ac_exeext; then
21718 eval "$as_ac_var=yes"
21719 else
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 eval "$as_ac_var=no"
21726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21727 conftest$ac_exeext conftest.$ac_ext
21729 ac_res=`eval echo '${'$as_ac_var'}'`
21730 { echo "$as_me:$LINENO: result: $ac_res" >&5
21731 echo "${ECHO_T}$ac_res" >&6; }
21732 if test `eval echo '${'$as_ac_var'}'` = yes; then
21733 cat >>confdefs.h <<_ACEOF
21734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21735 _ACEOF
21738 done
21740 if test $ac_cv_func_gettimeofday = yes; then
21741 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21742 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21743 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 else
21746 cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h. */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h. */
21753 #ifdef TIME_WITH_SYS_TIME
21754 #include <sys/time.h>
21755 #include <time.h>
21756 #else
21757 #ifdef HAVE_SYS_TIME_H
21758 #include <sys/time.h>
21759 #else
21760 #include <time.h>
21761 #endif
21762 #endif
21764 main ()
21766 struct timeval time;
21767 gettimeofday (&time, 0);
21769 return 0;
21771 _ACEOF
21772 rm -f conftest.$ac_objext
21773 if { (ac_try="$ac_compile"
21774 case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_compile") 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && {
21786 test -z "$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 } && test -s conftest.$ac_objext; then
21789 emacs_cv_gettimeofday_two_arguments=yes
21790 else
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 emacs_cv_gettimeofday_two_arguments=no
21797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21800 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21801 if test $emacs_cv_gettimeofday_two_arguments = no; then
21803 cat >>confdefs.h <<\_ACEOF
21804 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21805 _ACEOF
21811 ok_so_far=yes
21812 { echo "$as_me:$LINENO: checking for socket" >&5
21813 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21814 if test "${ac_cv_func_socket+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h. */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21825 #define socket innocuous_socket
21827 /* System header to define __stub macros and hopefully few prototypes,
21828 which can conflict with char socket (); below.
21829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21830 <limits.h> exists even on freestanding compilers. */
21832 #ifdef __STDC__
21833 # include <limits.h>
21834 #else
21835 # include <assert.h>
21836 #endif
21838 #undef socket
21840 /* Override any GCC internal prototype to avoid an error.
21841 Use char because int might match the return type of a GCC
21842 builtin and then its argument prototype would still apply. */
21843 #ifdef __cplusplus
21844 extern "C"
21845 #endif
21846 char socket ();
21847 /* The GNU C library defines this for functions which it implements
21848 to always fail with ENOSYS. Some functions are actually named
21849 something starting with __ and the normal name is an alias. */
21850 #if defined __stub_socket || defined __stub___socket
21851 choke me
21852 #endif
21855 main ()
21857 return socket ();
21859 return 0;
21861 _ACEOF
21862 rm -f conftest.$ac_objext conftest$ac_exeext
21863 if { (ac_try="$ac_link"
21864 case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_link") 2>conftest.er1
21870 ac_status=$?
21871 grep -v '^ *+' conftest.er1 >conftest.err
21872 rm -f conftest.er1
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest$ac_exeext &&
21879 $as_test_x conftest$ac_exeext; then
21880 ac_cv_func_socket=yes
21881 else
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 ac_cv_func_socket=no
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889 conftest$ac_exeext conftest.$ac_ext
21891 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21892 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21893 if test $ac_cv_func_socket = yes; then
21895 else
21896 ok_so_far=no
21899 if test $ok_so_far = yes; then
21900 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21901 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21902 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21903 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21907 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21908 else
21909 # Is the header compilable?
21910 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21911 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h. */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 $ac_includes_default
21919 #include <netinet/in.h>
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_header_compiler=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_header_compiler=no
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6; }
21950 # Is the header present?
21951 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21952 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21953 cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h. */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 #include <netinet/in.h>
21960 _ACEOF
21961 if { (ac_try="$ac_cpp conftest.$ac_ext"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21968 ac_status=$?
21969 grep -v '^ *+' conftest.er1 >conftest.err
21970 rm -f conftest.er1
21971 cat conftest.err >&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } >/dev/null && {
21974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21975 test ! -s conftest.err
21976 }; then
21977 ac_header_preproc=yes
21978 else
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21982 ac_header_preproc=no
21985 rm -f conftest.err conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21987 echo "${ECHO_T}$ac_header_preproc" >&6; }
21989 # So? What about this header?
21990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21991 yes:no: )
21992 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21993 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21995 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21996 ac_header_preproc=yes
21998 no:yes:* )
21999 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22000 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22002 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22004 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22006 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22008 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22010 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22013 esac
22014 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22015 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22016 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019 ac_cv_header_netinet_in_h=$ac_header_preproc
22021 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22022 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22025 if test $ac_cv_header_netinet_in_h = yes; then
22027 else
22028 ok_so_far=no
22033 if test $ok_so_far = yes; then
22034 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22035 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22036 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22037 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22041 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22042 else
22043 # Is the header compilable?
22044 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22045 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22046 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h. */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 $ac_includes_default
22053 #include <arpa/inet.h>
22054 _ACEOF
22055 rm -f conftest.$ac_objext
22056 if { (ac_try="$ac_compile"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_compile") 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } && {
22069 test -z "$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22071 } && test -s conftest.$ac_objext; then
22072 ac_header_compiler=yes
22073 else
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ac_header_compiler=no
22080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22082 echo "${ECHO_T}$ac_header_compiler" >&6; }
22084 # Is the header present?
22085 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22086 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22087 cat >conftest.$ac_ext <<_ACEOF
22088 /* confdefs.h. */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h. */
22093 #include <arpa/inet.h>
22094 _ACEOF
22095 if { (ac_try="$ac_cpp conftest.$ac_ext"
22096 case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22102 ac_status=$?
22103 grep -v '^ *+' conftest.er1 >conftest.err
22104 rm -f conftest.er1
22105 cat conftest.err >&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } >/dev/null && {
22108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22109 test ! -s conftest.err
22110 }; then
22111 ac_header_preproc=yes
22112 else
22113 echo "$as_me: failed program was:" >&5
22114 sed 's/^/| /' conftest.$ac_ext >&5
22116 ac_header_preproc=no
22119 rm -f conftest.err conftest.$ac_ext
22120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22121 echo "${ECHO_T}$ac_header_preproc" >&6; }
22123 # So? What about this header?
22124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22125 yes:no: )
22126 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22127 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22128 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22129 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22130 ac_header_preproc=yes
22132 no:yes:* )
22133 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22134 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22136 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22137 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22138 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22139 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22140 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22141 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22142 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22143 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22144 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22147 esac
22148 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22149 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22150 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153 ac_cv_header_arpa_inet_h=$ac_header_preproc
22155 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22156 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22159 if test $ac_cv_header_arpa_inet_h = yes; then
22161 else
22162 ok_so_far=no
22167 if test $ok_so_far = yes; then
22169 cat >>confdefs.h <<\_ACEOF
22170 #define HAVE_INET_SOCKETS 1
22171 _ACEOF
22176 for ac_header in sys/ioctl.h
22178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 ac_res=`eval echo '${'$as_ac_Header'}'`
22186 { echo "$as_me:$LINENO: result: $ac_res" >&5
22187 echo "${ECHO_T}$ac_res" >&6; }
22188 else
22189 # Is the header compilable?
22190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22192 cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h. */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 $ac_includes_default
22199 #include <$ac_header>
22200 _ACEOF
22201 rm -f conftest.$ac_objext
22202 if { (ac_try="$ac_compile"
22203 case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_compile") 2>conftest.er1
22209 ac_status=$?
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } && {
22215 test -z "$ac_c_werror_flag" ||
22216 test ! -s conftest.err
22217 } && test -s conftest.$ac_objext; then
22218 ac_header_compiler=yes
22219 else
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_header_compiler=no
22226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22228 echo "${ECHO_T}$ac_header_compiler" >&6; }
22230 # Is the header present?
22231 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22233 cat >conftest.$ac_ext <<_ACEOF
22234 /* confdefs.h. */
22235 _ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22239 #include <$ac_header>
22240 _ACEOF
22241 if { (ac_try="$ac_cpp conftest.$ac_ext"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22245 esac
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22248 ac_status=$?
22249 grep -v '^ *+' conftest.er1 >conftest.err
22250 rm -f conftest.er1
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } >/dev/null && {
22254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 }; then
22257 ac_header_preproc=yes
22258 else
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 ac_header_preproc=no
22265 rm -f conftest.err conftest.$ac_ext
22266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22267 echo "${ECHO_T}$ac_header_preproc" >&6; }
22269 # So? What about this header?
22270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22271 yes:no: )
22272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22276 ac_header_preproc=yes
22278 no:yes:* )
22279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22293 esac
22294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22299 eval "$as_ac_Header=\$ac_header_preproc"
22301 ac_res=`eval echo '${'$as_ac_Header'}'`
22302 { echo "$as_me:$LINENO: result: $ac_res" >&5
22303 echo "${ECHO_T}$ac_res" >&6; }
22306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22307 cat >>confdefs.h <<_ACEOF
22308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22309 _ACEOF
22313 done
22316 if test -f /usr/lpp/X11/bin/smt.exp; then
22318 cat >>confdefs.h <<\_ACEOF
22319 #define HAVE_AIX_SMT_EXP 1
22320 _ACEOF
22324 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22325 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22326 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22327 { echo "$as_me:$LINENO: result: yes" >&5
22328 echo "${ECHO_T}yes" >&6; }
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_DEV_PTMX 1
22332 _ACEOF
22334 else
22335 { echo "$as_me:$LINENO: result: no" >&5
22336 echo "${ECHO_T}no" >&6; }
22339 { echo "$as_me:$LINENO: checking for pid_t" >&5
22340 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22341 if test "${ac_cv_type_pid_t+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 $ac_includes_default
22351 typedef pid_t ac__type_new_;
22353 main ()
22355 if ((ac__type_new_ *) 0)
22356 return 0;
22357 if (sizeof (ac__type_new_))
22358 return 0;
22360 return 0;
22362 _ACEOF
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest.$ac_objext; then
22380 ac_cv_type_pid_t=yes
22381 else
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22385 ac_cv_type_pid_t=no
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22391 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22392 if test $ac_cv_type_pid_t = yes; then
22394 else
22396 cat >>confdefs.h <<_ACEOF
22397 #define pid_t int
22398 _ACEOF
22403 for ac_header in vfork.h
22405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22412 ac_res=`eval echo '${'$as_ac_Header'}'`
22413 { echo "$as_me:$LINENO: result: $ac_res" >&5
22414 echo "${ECHO_T}$ac_res" >&6; }
22415 else
22416 # Is the header compilable?
22417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22419 cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h. */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22425 $ac_includes_default
22426 #include <$ac_header>
22427 _ACEOF
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22436 ac_status=$?
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 ac_header_compiler=yes
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_header_compiler=no
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22455 echo "${ECHO_T}$ac_header_compiler" >&6; }
22457 # Is the header present?
22458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22460 cat >conftest.$ac_ext <<_ACEOF
22461 /* confdefs.h. */
22462 _ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h. */
22466 #include <$ac_header>
22467 _ACEOF
22468 if { (ac_try="$ac_cpp conftest.$ac_ext"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } >/dev/null && {
22481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 }; then
22484 ac_header_preproc=yes
22485 else
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ac_header_preproc=no
22492 rm -f conftest.err conftest.$ac_ext
22493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22494 echo "${ECHO_T}$ac_header_preproc" >&6; }
22496 # So? What about this header?
22497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22498 yes:no: )
22499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22503 ac_header_preproc=yes
22505 no:yes:* )
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22520 esac
22521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526 eval "$as_ac_Header=\$ac_header_preproc"
22528 ac_res=`eval echo '${'$as_ac_Header'}'`
22529 { echo "$as_me:$LINENO: result: $ac_res" >&5
22530 echo "${ECHO_T}$ac_res" >&6; }
22533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22534 cat >>confdefs.h <<_ACEOF
22535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22536 _ACEOF
22540 done
22544 for ac_func in fork vfork
22546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 else
22552 cat >conftest.$ac_ext <<_ACEOF
22553 /* confdefs.h. */
22554 _ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h. */
22558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22560 #define $ac_func innocuous_$ac_func
22562 /* System header to define __stub macros and hopefully few prototypes,
22563 which can conflict with char $ac_func (); below.
22564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22565 <limits.h> exists even on freestanding compilers. */
22567 #ifdef __STDC__
22568 # include <limits.h>
22569 #else
22570 # include <assert.h>
22571 #endif
22573 #undef $ac_func
22575 /* Override any GCC internal prototype to avoid an error.
22576 Use char because int might match the return type of a GCC
22577 builtin and then its argument prototype would still apply. */
22578 #ifdef __cplusplus
22579 extern "C"
22580 #endif
22581 char $ac_func ();
22582 /* The GNU C library defines this for functions which it implements
22583 to always fail with ENOSYS. Some functions are actually named
22584 something starting with __ and the normal name is an alias. */
22585 #if defined __stub_$ac_func || defined __stub___$ac_func
22586 choke me
22587 #endif
22590 main ()
22592 return $ac_func ();
22594 return 0;
22596 _ACEOF
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (ac_try="$ac_link"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_link") 2>conftest.er1
22605 ac_status=$?
22606 grep -v '^ *+' conftest.er1 >conftest.err
22607 rm -f conftest.er1
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest$ac_exeext &&
22614 $as_test_x conftest$ac_exeext; then
22615 eval "$as_ac_var=yes"
22616 else
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 eval "$as_ac_var=no"
22623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22624 conftest$ac_exeext conftest.$ac_ext
22626 ac_res=`eval echo '${'$as_ac_var'}'`
22627 { echo "$as_me:$LINENO: result: $ac_res" >&5
22628 echo "${ECHO_T}$ac_res" >&6; }
22629 if test `eval echo '${'$as_ac_var'}'` = yes; then
22630 cat >>confdefs.h <<_ACEOF
22631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22632 _ACEOF
22635 done
22637 if test "x$ac_cv_func_fork" = xyes; then
22638 { echo "$as_me:$LINENO: checking for working fork" >&5
22639 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22640 if test "${ac_cv_func_fork_works+set}" = set; then
22641 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 else
22643 if test "$cross_compiling" = yes; then
22644 ac_cv_func_fork_works=cross
22645 else
22646 cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h. */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 $ac_includes_default
22654 main ()
22657 /* By Ruediger Kuhlmann. */
22658 return fork () < 0;
22661 return 0;
22663 _ACEOF
22664 rm -f conftest$ac_exeext
22665 if { (ac_try="$ac_link"
22666 case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671 (eval "$ac_link") 2>&5
22672 ac_status=$?
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22675 { (case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22678 esac
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_try") 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 ac_cv_func_fork_works=yes
22685 else
22686 echo "$as_me: program exited with status $ac_status" >&5
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ( exit $ac_status )
22691 ac_cv_func_fork_works=no
22693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22698 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22699 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22701 else
22702 ac_cv_func_fork_works=$ac_cv_func_fork
22704 if test "x$ac_cv_func_fork_works" = xcross; then
22705 case $host in
22706 *-*-amigaos* | *-*-msdosdjgpp*)
22707 # Override, as these systems have only a dummy fork() stub
22708 ac_cv_func_fork_works=no
22711 ac_cv_func_fork_works=yes
22713 esac
22714 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22715 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22717 ac_cv_func_vfork_works=$ac_cv_func_vfork
22718 if test "x$ac_cv_func_vfork" = xyes; then
22719 { echo "$as_me:$LINENO: checking for working vfork" >&5
22720 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22721 if test "${ac_cv_func_vfork_works+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22723 else
22724 if test "$cross_compiling" = yes; then
22725 ac_cv_func_vfork_works=cross
22726 else
22727 cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h. */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 /* Thanks to Paul Eggert for this test. */
22734 $ac_includes_default
22735 #include <sys/wait.h>
22736 #ifdef HAVE_VFORK_H
22737 # include <vfork.h>
22738 #endif
22739 /* On some sparc systems, changes by the child to local and incoming
22740 argument registers are propagated back to the parent. The compiler
22741 is told about this with #include <vfork.h>, but some compilers
22742 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22743 static variable whose address is put into a register that is
22744 clobbered by the vfork. */
22745 static void
22746 #ifdef __cplusplus
22747 sparc_address_test (int arg)
22748 # else
22749 sparc_address_test (arg) int arg;
22750 #endif
22752 static pid_t child;
22753 if (!child) {
22754 child = vfork ();
22755 if (child < 0) {
22756 perror ("vfork");
22757 _exit(2);
22759 if (!child) {
22760 arg = getpid();
22761 write(-1, "", 0);
22762 _exit (arg);
22768 main ()
22770 pid_t parent = getpid ();
22771 pid_t child;
22773 sparc_address_test (0);
22775 child = vfork ();
22777 if (child == 0) {
22778 /* Here is another test for sparc vfork register problems. This
22779 test uses lots of local variables, at least as many local
22780 variables as main has allocated so far including compiler
22781 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22782 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22783 reuse the register of parent for one of the local variables,
22784 since it will think that parent can't possibly be used any more
22785 in this routine. Assigning to the local variable will thus
22786 munge parent in the parent process. */
22787 pid_t
22788 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22789 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22790 /* Convince the compiler that p..p7 are live; otherwise, it might
22791 use the same hardware register for all 8 local variables. */
22792 if (p != p1 || p != p2 || p != p3 || p != p4
22793 || p != p5 || p != p6 || p != p7)
22794 _exit(1);
22796 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22797 from child file descriptors. If the child closes a descriptor
22798 before it execs or exits, this munges the parent's descriptor
22799 as well. Test for this by closing stdout in the child. */
22800 _exit(close(fileno(stdout)) != 0);
22801 } else {
22802 int status;
22803 struct stat st;
22805 while (wait(&status) != child)
22807 return (
22808 /* Was there some problem with vforking? */
22809 child < 0
22811 /* Did the child fail? (This shouldn't happen.) */
22812 || status
22814 /* Did the vfork/compiler bug occur? */
22815 || parent != getpid()
22817 /* Did the file descriptor bug occur? */
22818 || fstat(fileno(stdout), &st) != 0
22822 _ACEOF
22823 rm -f conftest$ac_exeext
22824 if { (ac_try="$ac_link"
22825 case "(($ac_try" in
22826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827 *) ac_try_echo=$ac_try;;
22828 esac
22829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22830 (eval "$ac_link") 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22834 { (case "(($ac_try" in
22835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22837 esac
22838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839 (eval "$ac_try") 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
22843 ac_cv_func_vfork_works=yes
22844 else
22845 echo "$as_me: program exited with status $ac_status" >&5
22846 echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22849 ( exit $ac_status )
22850 ac_cv_func_vfork_works=no
22852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22857 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22861 if test "x$ac_cv_func_fork_works" = xcross; then
22862 ac_cv_func_vfork_works=$ac_cv_func_vfork
22863 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22867 if test "x$ac_cv_func_vfork_works" = xyes; then
22869 cat >>confdefs.h <<\_ACEOF
22870 #define HAVE_WORKING_VFORK 1
22871 _ACEOF
22873 else
22875 cat >>confdefs.h <<\_ACEOF
22876 #define vfork fork
22877 _ACEOF
22880 if test "x$ac_cv_func_fork_works" = xyes; then
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_WORKING_FORK 1
22884 _ACEOF
22889 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22890 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22891 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 else
22894 cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h. */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 #include <langinfo.h>
22902 main ()
22904 char* cs = nl_langinfo(CODESET);
22906 return 0;
22908 _ACEOF
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22914 esac
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_link") 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } && {
22923 test -z "$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 } && test -s conftest$ac_exeext &&
22926 $as_test_x conftest$ac_exeext; then
22927 emacs_cv_langinfo_codeset=yes
22928 else
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 emacs_cv_langinfo_codeset=no
22935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22936 conftest$ac_exeext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22940 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22941 if test $emacs_cv_langinfo_codeset = yes; then
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_LANGINFO_CODESET 1
22945 _ACEOF
22949 { echo "$as_me:$LINENO: checking for size_t" >&5
22950 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22951 if test "${ac_cv_type_size_t+set}" = set; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 else
22954 cat >conftest.$ac_ext <<_ACEOF
22955 /* confdefs.h. */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 $ac_includes_default
22961 typedef size_t ac__type_new_;
22963 main ()
22965 if ((ac__type_new_ *) 0)
22966 return 0;
22967 if (sizeof (ac__type_new_))
22968 return 0;
22970 return 0;
22972 _ACEOF
22973 rm -f conftest.$ac_objext
22974 if { (ac_try="$ac_compile"
22975 case "(($ac_try" in
22976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22977 *) ac_try_echo=$ac_try;;
22978 esac
22979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22980 (eval "$ac_compile") 2>conftest.er1
22981 ac_status=$?
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } && {
22987 test -z "$ac_c_werror_flag" ||
22988 test ! -s conftest.err
22989 } && test -s conftest.$ac_objext; then
22990 ac_cv_type_size_t=yes
22991 else
22992 echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22995 ac_cv_type_size_t=no
22998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23001 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23002 if test $ac_cv_type_size_t = yes; then
23004 cat >>confdefs.h <<_ACEOF
23005 #define HAVE_SIZE_T 1
23006 _ACEOF
23012 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23013 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23014 if test "${ac_cv_type_mbstate_t+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h. */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023 $ac_includes_default
23024 # include <wchar.h>
23026 main ()
23028 mbstate_t x; return sizeof x;
23030 return 0;
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_compile") 2>conftest.er1
23041 ac_status=$?
23042 grep -v '^ *+' conftest.er1 >conftest.err
23043 rm -f conftest.er1
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && {
23047 test -z "$ac_c_werror_flag" ||
23048 test ! -s conftest.err
23049 } && test -s conftest.$ac_objext; then
23050 ac_cv_type_mbstate_t=yes
23051 else
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_cv_type_mbstate_t=no
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23060 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23061 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23062 if test $ac_cv_type_mbstate_t = yes; then
23064 cat >>confdefs.h <<\_ACEOF
23065 #define HAVE_MBSTATE_T 1
23066 _ACEOF
23068 else
23070 cat >>confdefs.h <<\_ACEOF
23071 #define mbstate_t int
23072 _ACEOF
23076 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23077 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23078 if test "${emacs_cv_c_restrict+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h. */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087 void fred (int *restrict x);
23089 main ()
23093 return 0;
23095 _ACEOF
23096 rm -f conftest.$ac_objext
23097 if { (ac_try="$ac_compile"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23101 esac
23102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_compile") 2>conftest.er1
23104 ac_status=$?
23105 grep -v '^ *+' conftest.er1 >conftest.err
23106 rm -f conftest.er1
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } && {
23110 test -z "$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 } && test -s conftest.$ac_objext; then
23113 emacs_cv_c_restrict=yes
23114 else
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h. */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23124 void fred (int *__restrict x);
23126 main ()
23130 return 0;
23132 _ACEOF
23133 rm -f conftest.$ac_objext
23134 if { (ac_try="$ac_compile"
23135 case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23138 esac
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_compile") 2>conftest.er1
23141 ac_status=$?
23142 grep -v '^ *+' conftest.er1 >conftest.err
23143 rm -f conftest.er1
23144 cat conftest.err >&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } && {
23147 test -z "$ac_c_werror_flag" ||
23148 test ! -s conftest.err
23149 } && test -s conftest.$ac_objext; then
23150 emacs_cv_c_restrict=__restrict
23151 else
23152 echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23155 emacs_cv_c_restrict=no
23158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23164 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23165 case "$emacs_cv_c_restrict" in
23166 yes) emacs_restrict=restrict;;
23167 no) emacs_restrict="";;
23168 *) emacs_restrict="$emacs_cv_c_restrict";;
23169 esac
23170 if test "$emacs_restrict" != __restrict; then
23172 cat >>confdefs.h <<_ACEOF
23173 #define __restrict $emacs_restrict
23174 _ACEOF
23178 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23179 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23180 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 else
23183 cat >conftest.$ac_ext <<_ACEOF
23184 /* confdefs.h. */
23185 _ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h. */
23189 void fred (int x[__restrict]);
23191 main ()
23195 return 0;
23197 _ACEOF
23198 rm -f conftest.$ac_objext
23199 if { (ac_try="$ac_compile"
23200 case "(($ac_try" in
23201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202 *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23206 ac_status=$?
23207 grep -v '^ *+' conftest.er1 >conftest.err
23208 rm -f conftest.er1
23209 cat conftest.err >&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.$ac_objext; then
23215 emacs_cv_c_restrict_arr=yes
23216 else
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23220 emacs_cv_c_restrict_arr=no
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23226 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23227 if test "$emacs_cv_c_restrict_arr" = yes; then
23229 cat >>confdefs.h <<\_ACEOF
23230 #define __restrict_arr __restrict
23231 _ACEOF
23237 # Set up the CFLAGS for real compilation, so we can substitute it.
23238 CFLAGS="$REAL_CFLAGS"
23239 CPPFLAGS="$REAL_CPPFLAGS"
23241 #### Find out which version of Emacs this is.
23242 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23243 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23244 if test x"${version}" = x; then
23245 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23246 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23247 { (exit 1); exit 1; }; }
23250 ### Specify what sort of things we'll be editing into Makefile and config.h.
23251 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23287 cat >>confdefs.h <<_ACEOF
23288 #define EMACS_CONFIGURATION "${canonical}"
23289 _ACEOF
23292 cat >>confdefs.h <<_ACEOF
23293 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23294 _ACEOF
23297 cat >>confdefs.h <<_ACEOF
23298 #define config_machfile "${machfile}"
23299 _ACEOF
23302 cat >>confdefs.h <<_ACEOF
23303 #define config_opsysfile "${opsysfile}"
23304 _ACEOF
23307 cat >>confdefs.h <<_ACEOF
23308 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23309 _ACEOF
23312 cat >>confdefs.h <<_ACEOF
23313 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23314 _ACEOF
23317 cat >>confdefs.h <<_ACEOF
23318 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23319 _ACEOF
23322 cat >>confdefs.h <<_ACEOF
23323 #define UNEXEC_SRC ${UNEXEC_SRC}
23324 _ACEOF
23327 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23329 cat >>confdefs.h <<\_ACEOF
23330 #define HAVE_X_WINDOWS 1
23331 _ACEOF
23334 if test "${USE_X_TOOLKIT}" != "none" ; then
23336 cat >>confdefs.h <<\_ACEOF
23337 #define USE_X_TOOLKIT 1
23338 _ACEOF
23341 if test "${HAVE_X11}" = "yes" ; then
23343 cat >>confdefs.h <<\_ACEOF
23344 #define HAVE_X11 1
23345 _ACEOF
23348 if test "${HAVE_XFREE386}" = "yes" ; then
23350 cat >>confdefs.h <<\_ACEOF
23351 #define HAVE_XFREE386 1
23352 _ACEOF
23355 if test "${HAVE_MENUS}" = "yes" ; then
23357 cat >>confdefs.h <<\_ACEOF
23358 #define HAVE_MENUS 1
23359 _ACEOF
23362 if test "${GNU_MALLOC}" = "yes" ; then
23364 cat >>confdefs.h <<\_ACEOF
23365 #define GNU_MALLOC 1
23366 _ACEOF
23369 if test "${REL_ALLOC}" = "yes" ; then
23371 cat >>confdefs.h <<\_ACEOF
23372 #define REL_ALLOC 1
23373 _ACEOF
23382 #### Report on what we decided to do.
23383 #### Report GTK as a toolkit, even if it doesn't use Xt.
23384 #### It makes printing result more understandable as using GTK sets
23385 #### toolkit_scroll_bars to yes by default.
23386 if test "${HAVE_GTK}" = "yes"; then
23387 USE_X_TOOLKIT=GTK
23390 echo "
23391 Configured for \`${canonical}'.
23393 Where should the build process find the source code? ${srcdir}
23394 What operating system and machine description files should Emacs use?
23395 \`${opsysfile}' and \`${machfile}'
23396 What compiler should emacs be built with? ${CC} ${CFLAGS}
23397 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23398 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23399 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23400 What window system should Emacs use? ${window_system}
23401 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23403 if test -n "${x_includes}"; then
23404 echo " Where do we find X Windows header files? ${x_includes}"
23405 else
23406 echo " Where do we find X Windows header files? Standard dirs"
23408 if test -n "${x_libraries}"; then
23409 echo " Where do we find X Windows libraries? ${x_libraries}"
23410 else
23411 echo " Where do we find X Windows libraries? Standard dirs"
23414 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23415 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23416 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23417 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23418 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23419 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23420 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23421 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23422 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23423 echo
23425 if test $USE_XASSERTS = yes; then
23426 echo " Compiling with asserts turned on."
23427 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23428 echo
23431 if test "$USE_X_TOOLKIT" = GTK; then
23432 case "$canonical" in
23433 *cygwin*)
23434 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23435 will probably get a crash on startup. If this happens, please use another
23436 toolkit for Emacs. See etc/PROBLEMS for more information."
23438 esac
23442 if test "$HAVE_CARBON" = "yes"; then
23443 echo
23444 echo "Warning: The Mac Carbon port is currently unsupported and has
23445 known problems. It is not recommended for use by non-developers.
23446 Read the emacs-devel archives for more information."
23447 echo
23450 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23451 echo "D-Bus integration has been tested for GNU/Linux only."
23452 echo
23456 # Remove any trailing slashes in these variables.
23457 test "${prefix}" != NONE &&
23458 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23459 test "${exec_prefix}" != NONE &&
23460 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23462 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23463 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23464 ## from Makefile.c can correctly provide the arg `-traditional' to the
23465 ## C preprocessor.
23467 cat >conftest.$ac_ext <<_ACEOF
23468 /* confdefs.h. */
23469 _ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h. */
23473 yes..yes
23474 _ACEOF
23475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23476 $EGREP "yes..yes" >/dev/null 2>&1; then
23477 CPP_NEED_TRADITIONAL=no
23478 else
23479 CPP_NEED_TRADITIONAL=yes
23481 rm -f conftest*
23484 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"
23486 ac_config_commands="$ac_config_commands default"
23488 cat >confcache <<\_ACEOF
23489 # This file is a shell script that caches the results of configure
23490 # tests run on this system so they can be shared between configure
23491 # scripts and configure runs, see configure's option --config-cache.
23492 # It is not useful on other systems. If it contains results you don't
23493 # want to keep, you may remove or edit it.
23495 # config.status only pays attention to the cache file if you give it
23496 # the --recheck option to rerun configure.
23498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23500 # following values.
23502 _ACEOF
23504 # The following way of writing the cache mishandles newlines in values,
23505 # but we know of no workaround that is simple, portable, and efficient.
23506 # So, we kill variables containing newlines.
23507 # Ultrix sh set writes to stderr and can't be redirected directly,
23508 # and sets the high bit in the cache file unless we assign to the vars.
23510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23511 eval ac_val=\$$ac_var
23512 case $ac_val in #(
23513 *${as_nl}*)
23514 case $ac_var in #(
23515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23517 esac
23518 case $ac_var in #(
23519 _ | IFS | as_nl) ;; #(
23520 *) $as_unset $ac_var ;;
23521 esac ;;
23522 esac
23523 done
23525 (set) 2>&1 |
23526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23527 *${as_nl}ac_space=\ *)
23528 # `set' does not quote correctly, so add quotes (double-quote
23529 # substitution turns \\\\ into \\, and sed turns \\ into \).
23530 sed -n \
23531 "s/'/'\\\\''/g;
23532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23533 ;; #(
23535 # `set' quotes correctly as required by POSIX, so do not add quotes.
23536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23538 esac |
23539 sort
23541 sed '
23542 /^ac_cv_env_/b end
23543 t clear
23544 :clear
23545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23546 t end
23547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23548 :end' >>confcache
23549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23550 if test -w "$cache_file"; then
23551 test "x$cache_file" != "x/dev/null" &&
23552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23553 echo "$as_me: updating cache $cache_file" >&6;}
23554 cat confcache >$cache_file
23555 else
23556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23560 rm -f confcache
23562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23563 # Let make expand exec_prefix.
23564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23566 DEFS=-DHAVE_CONFIG_H
23568 ac_libobjs=
23569 ac_ltlibobjs=
23570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23571 # 1. Remove the extension, and $U if already installed.
23572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23573 ac_i=`echo "$ac_i" | sed "$ac_script"`
23574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23575 # will be set to the directory where LIBOBJS objects are built.
23576 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23577 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23578 done
23579 LIBOBJS=$ac_libobjs
23581 LTLIBOBJS=$ac_ltlibobjs
23585 : ${CONFIG_STATUS=./config.status}
23586 ac_clean_files_save=$ac_clean_files
23587 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23588 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23589 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23590 cat >$CONFIG_STATUS <<_ACEOF
23591 #! $SHELL
23592 # Generated by $as_me.
23593 # Run this file to recreate the current configuration.
23594 # Compiler output produced by configure, useful for debugging
23595 # configure, is in config.log if it exists.
23597 debug=false
23598 ac_cs_recheck=false
23599 ac_cs_silent=false
23600 SHELL=\${CONFIG_SHELL-$SHELL}
23601 _ACEOF
23603 cat >>$CONFIG_STATUS <<\_ACEOF
23604 ## --------------------- ##
23605 ## M4sh Initialization. ##
23606 ## --------------------- ##
23608 # Be more Bourne compatible
23609 DUALCASE=1; export DUALCASE # for MKS sh
23610 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23611 emulate sh
23612 NULLCMD=:
23613 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23614 # is contrary to our usage. Disable this feature.
23615 alias -g '${1+"$@"}'='"$@"'
23616 setopt NO_GLOB_SUBST
23617 else
23618 case `(set -o) 2>/dev/null` in
23619 *posix*) set -o posix ;;
23620 esac
23627 # PATH needs CR
23628 # Avoid depending upon Character Ranges.
23629 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23630 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23631 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23632 as_cr_digits='0123456789'
23633 as_cr_alnum=$as_cr_Letters$as_cr_digits
23635 # The user is always right.
23636 if test "${PATH_SEPARATOR+set}" != set; then
23637 echo "#! /bin/sh" >conf$$.sh
23638 echo "exit 0" >>conf$$.sh
23639 chmod +x conf$$.sh
23640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23641 PATH_SEPARATOR=';'
23642 else
23643 PATH_SEPARATOR=:
23645 rm -f conf$$.sh
23648 # Support unset when possible.
23649 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23650 as_unset=unset
23651 else
23652 as_unset=false
23656 # IFS
23657 # We need space, tab and new line, in precisely that order. Quoting is
23658 # there to prevent editors from complaining about space-tab.
23659 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23660 # splitting by setting IFS to empty value.)
23661 as_nl='
23663 IFS=" "" $as_nl"
23665 # Find who we are. Look in the path if we contain no directory separator.
23666 case $0 in
23667 *[\\/]* ) as_myself=$0 ;;
23668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23669 for as_dir in $PATH
23671 IFS=$as_save_IFS
23672 test -z "$as_dir" && as_dir=.
23673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23674 done
23675 IFS=$as_save_IFS
23678 esac
23679 # We did not find ourselves, most probably we were run as `sh COMMAND'
23680 # in which case we are not to be found in the path.
23681 if test "x$as_myself" = x; then
23682 as_myself=$0
23684 if test ! -f "$as_myself"; then
23685 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23686 { (exit 1); exit 1; }
23689 # Work around bugs in pre-3.0 UWIN ksh.
23690 for as_var in ENV MAIL MAILPATH
23691 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23692 done
23693 PS1='$ '
23694 PS2='> '
23695 PS4='+ '
23697 # NLS nuisances.
23698 for as_var in \
23699 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23700 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23701 LC_TELEPHONE LC_TIME
23703 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23704 eval $as_var=C; export $as_var
23705 else
23706 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23708 done
23710 # Required to use basename.
23711 if expr a : '\(a\)' >/dev/null 2>&1 &&
23712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23713 as_expr=expr
23714 else
23715 as_expr=false
23718 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23719 as_basename=basename
23720 else
23721 as_basename=false
23725 # Name of the executable.
23726 as_me=`$as_basename -- "$0" ||
23727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23728 X"$0" : 'X\(//\)$' \| \
23729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23730 echo X/"$0" |
23731 sed '/^.*\/\([^/][^/]*\)\/*$/{
23732 s//\1/
23735 /^X\/\(\/\/\)$/{
23736 s//\1/
23739 /^X\/\(\/\).*/{
23740 s//\1/
23743 s/.*/./; q'`
23745 # CDPATH.
23746 $as_unset CDPATH
23750 as_lineno_1=$LINENO
23751 as_lineno_2=$LINENO
23752 test "x$as_lineno_1" != "x$as_lineno_2" &&
23753 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23756 # uniformly replaced by the line number. The first 'sed' inserts a
23757 # line-number line after each line using $LINENO; the second 'sed'
23758 # does the real work. The second script uses 'N' to pair each
23759 # line-number line with the line containing $LINENO, and appends
23760 # trailing '-' during substitution so that $LINENO is not a special
23761 # case at line end.
23762 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23763 # scripts with optimization help from Paolo Bonzini. Blame Lee
23764 # E. McMahon (1931-1989) for sed's syntax. :-)
23765 sed -n '
23767 /[$]LINENO/=
23768 ' <$as_myself |
23769 sed '
23770 s/[$]LINENO.*/&-/
23771 t lineno
23773 :lineno
23775 :loop
23776 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23777 t loop
23778 s/-\n.*//
23779 ' >$as_me.lineno &&
23780 chmod +x "$as_me.lineno" ||
23781 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23782 { (exit 1); exit 1; }; }
23784 # Don't try to exec as it changes $[0], causing all sort of problems
23785 # (the dirname of $[0] is not the place where we might find the
23786 # original and so on. Autoconf is especially sensitive to this).
23787 . "./$as_me.lineno"
23788 # Exit status is that of the last command.
23789 exit
23793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23794 as_dirname=dirname
23795 else
23796 as_dirname=false
23799 ECHO_C= ECHO_N= ECHO_T=
23800 case `echo -n x` in
23801 -n*)
23802 case `echo 'x\c'` in
23803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23804 *) ECHO_C='\c';;
23805 esac;;
23807 ECHO_N='-n';;
23808 esac
23810 if expr a : '\(a\)' >/dev/null 2>&1 &&
23811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23812 as_expr=expr
23813 else
23814 as_expr=false
23817 rm -f conf$$ conf$$.exe conf$$.file
23818 if test -d conf$$.dir; then
23819 rm -f conf$$.dir/conf$$.file
23820 else
23821 rm -f conf$$.dir
23822 mkdir conf$$.dir
23824 echo >conf$$.file
23825 if ln -s conf$$.file conf$$ 2>/dev/null; then
23826 as_ln_s='ln -s'
23827 # ... but there are two gotchas:
23828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23830 # In both cases, we have to default to `cp -p'.
23831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23832 as_ln_s='cp -p'
23833 elif ln conf$$.file conf$$ 2>/dev/null; then
23834 as_ln_s=ln
23835 else
23836 as_ln_s='cp -p'
23838 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23839 rmdir conf$$.dir 2>/dev/null
23841 if mkdir -p . 2>/dev/null; then
23842 as_mkdir_p=:
23843 else
23844 test -d ./-p && rmdir ./-p
23845 as_mkdir_p=false
23848 if test -x / >/dev/null 2>&1; then
23849 as_test_x='test -x'
23850 else
23851 if ls -dL / >/dev/null 2>&1; then
23852 as_ls_L_option=L
23853 else
23854 as_ls_L_option=
23856 as_test_x='
23857 eval sh -c '\''
23858 if test -d "$1"; then
23859 test -d "$1/.";
23860 else
23861 case $1 in
23862 -*)set "./$1";;
23863 esac;
23864 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23865 ???[sx]*):;;*)false;;esac;fi
23866 '\'' sh
23869 as_executable_p=$as_test_x
23871 # Sed expression to map a string onto a valid CPP name.
23872 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23874 # Sed expression to map a string onto a valid variable name.
23875 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23878 exec 6>&1
23880 # Save the log message, to keep $[0] and so on meaningful, and to
23881 # report actual input values of CONFIG_FILES etc. instead of their
23882 # values after options handling.
23883 ac_log="
23884 This file was extended by emacs $as_me 23.0.50, which was
23885 generated by GNU Autoconf 2.61. Invocation command line was
23887 CONFIG_FILES = $CONFIG_FILES
23888 CONFIG_HEADERS = $CONFIG_HEADERS
23889 CONFIG_LINKS = $CONFIG_LINKS
23890 CONFIG_COMMANDS = $CONFIG_COMMANDS
23891 $ $0 $@
23893 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23896 _ACEOF
23898 cat >>$CONFIG_STATUS <<_ACEOF
23899 # Files that config.status was made for.
23900 config_files="$ac_config_files"
23901 config_headers="$ac_config_headers"
23902 config_commands="$ac_config_commands"
23904 _ACEOF
23906 cat >>$CONFIG_STATUS <<\_ACEOF
23907 ac_cs_usage="\
23908 \`$as_me' instantiates files from templates according to the
23909 current configuration.
23911 Usage: $0 [OPTIONS] [FILE]...
23913 -h, --help print this help, then exit
23914 -V, --version print version number and configuration settings, then exit
23915 -q, --quiet do not print progress messages
23916 -d, --debug don't remove temporary files
23917 --recheck update $as_me by reconfiguring in the same conditions
23918 --file=FILE[:TEMPLATE]
23919 instantiate the configuration file FILE
23920 --header=FILE[:TEMPLATE]
23921 instantiate the configuration header FILE
23923 Configuration files:
23924 $config_files
23926 Configuration headers:
23927 $config_headers
23929 Configuration commands:
23930 $config_commands
23932 Report bugs to <bug-autoconf@gnu.org>."
23934 _ACEOF
23935 cat >>$CONFIG_STATUS <<_ACEOF
23936 ac_cs_version="\\
23937 emacs config.status 23.0.50
23938 configured by $0, generated by GNU Autoconf 2.61,
23939 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23941 Copyright (C) 2006 Free Software Foundation, Inc.
23942 This config.status script is free software; the Free Software Foundation
23943 gives unlimited permission to copy, distribute and modify it."
23945 ac_pwd='$ac_pwd'
23946 srcdir='$srcdir'
23947 INSTALL='$INSTALL'
23948 _ACEOF
23950 cat >>$CONFIG_STATUS <<\_ACEOF
23951 # If no file are specified by the user, then we need to provide default
23952 # value. By we need to know if files were specified by the user.
23953 ac_need_defaults=:
23954 while test $# != 0
23956 case $1 in
23957 --*=*)
23958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23960 ac_shift=:
23963 ac_option=$1
23964 ac_optarg=$2
23965 ac_shift=shift
23967 esac
23969 case $ac_option in
23970 # Handling of the options.
23971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23972 ac_cs_recheck=: ;;
23973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23974 echo "$ac_cs_version"; exit ;;
23975 --debug | --debu | --deb | --de | --d | -d )
23976 debug=: ;;
23977 --file | --fil | --fi | --f )
23978 $ac_shift
23979 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23980 ac_need_defaults=false;;
23981 --header | --heade | --head | --hea )
23982 $ac_shift
23983 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23984 ac_need_defaults=false;;
23985 --he | --h)
23986 # Conflict between --help and --header
23987 { echo "$as_me: error: ambiguous option: $1
23988 Try \`$0 --help' for more information." >&2
23989 { (exit 1); exit 1; }; };;
23990 --help | --hel | -h )
23991 echo "$ac_cs_usage"; exit ;;
23992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23993 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23994 ac_cs_silent=: ;;
23996 # This is an error.
23997 -*) { echo "$as_me: error: unrecognized option: $1
23998 Try \`$0 --help' for more information." >&2
23999 { (exit 1); exit 1; }; } ;;
24001 *) ac_config_targets="$ac_config_targets $1"
24002 ac_need_defaults=false ;;
24004 esac
24005 shift
24006 done
24008 ac_configure_extra_args=
24010 if $ac_cs_silent; then
24011 exec 6>/dev/null
24012 ac_configure_extra_args="$ac_configure_extra_args --silent"
24015 _ACEOF
24016 cat >>$CONFIG_STATUS <<_ACEOF
24017 if \$ac_cs_recheck; then
24018 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24019 CONFIG_SHELL=$SHELL
24020 export CONFIG_SHELL
24021 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24024 _ACEOF
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24026 exec 5>>config.log
24028 echo
24029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24030 ## Running $as_me. ##
24031 _ASBOX
24032 echo "$ac_log"
24033 } >&5
24035 _ACEOF
24036 cat >>$CONFIG_STATUS <<_ACEOF
24038 # INIT-COMMANDS
24040 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24042 _ACEOF
24044 cat >>$CONFIG_STATUS <<\_ACEOF
24046 # Handling of arguments.
24047 for ac_config_target in $ac_config_targets
24049 case $ac_config_target in
24050 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24051 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24052 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24053 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24054 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24055 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24056 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24057 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24058 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24059 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24060 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24061 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24062 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24064 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24065 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24066 { (exit 1); exit 1; }; };;
24067 esac
24068 done
24071 # If the user did not use the arguments to specify the items to instantiate,
24072 # then the envvar interface is used. Set only those that are not.
24073 # We use the long form for the default assignment because of an extremely
24074 # bizarre bug on SunOS 4.1.3.
24075 if $ac_need_defaults; then
24076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24081 # Have a temporary directory for convenience. Make it in the build tree
24082 # simply because there is no reason against having it here, and in addition,
24083 # creating and moving files from /tmp can sometimes cause problems.
24084 # Hook for its removal unless debugging.
24085 # Note that there is a small window in which the directory will not be cleaned:
24086 # after its creation but before its name has been assigned to `$tmp'.
24087 $debug ||
24089 tmp=
24090 trap 'exit_status=$?
24091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24093 trap '{ (exit 1); exit 1; }' 1 2 13 15
24095 # Create a (secure) tmp directory for tmp files.
24098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24099 test -n "$tmp" && test -d "$tmp"
24100 } ||
24102 tmp=./conf$$-$RANDOM
24103 (umask 077 && mkdir "$tmp")
24104 } ||
24106 echo "$me: cannot create a temporary directory in ." >&2
24107 { (exit 1); exit 1; }
24111 # Set up the sed scripts for CONFIG_FILES section.
24114 # No need to generate the scripts if there are no CONFIG_FILES.
24115 # This happens for instance when ./config.status config.h
24116 if test -n "$CONFIG_FILES"; then
24118 _ACEOF
24122 ac_delim='%!_!# '
24123 for ac_last_try in false false false false false :; do
24124 cat >conf$$subs.sed <<_ACEOF
24125 SHELL!$SHELL$ac_delim
24126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24132 exec_prefix!$exec_prefix$ac_delim
24133 prefix!$prefix$ac_delim
24134 program_transform_name!$program_transform_name$ac_delim
24135 bindir!$bindir$ac_delim
24136 sbindir!$sbindir$ac_delim
24137 libexecdir!$libexecdir$ac_delim
24138 datarootdir!$datarootdir$ac_delim
24139 datadir!$datadir$ac_delim
24140 sysconfdir!$sysconfdir$ac_delim
24141 sharedstatedir!$sharedstatedir$ac_delim
24142 localstatedir!$localstatedir$ac_delim
24143 includedir!$includedir$ac_delim
24144 oldincludedir!$oldincludedir$ac_delim
24145 docdir!$docdir$ac_delim
24146 infodir!$infodir$ac_delim
24147 htmldir!$htmldir$ac_delim
24148 dvidir!$dvidir$ac_delim
24149 pdfdir!$pdfdir$ac_delim
24150 psdir!$psdir$ac_delim
24151 libdir!$libdir$ac_delim
24152 localedir!$localedir$ac_delim
24153 mandir!$mandir$ac_delim
24154 DEFS!$DEFS$ac_delim
24155 ECHO_C!$ECHO_C$ac_delim
24156 ECHO_N!$ECHO_N$ac_delim
24157 ECHO_T!$ECHO_T$ac_delim
24158 LIBS!$LIBS$ac_delim
24159 build_alias!$build_alias$ac_delim
24160 host_alias!$host_alias$ac_delim
24161 target_alias!$target_alias$ac_delim
24162 MAINT!$MAINT$ac_delim
24163 build!$build$ac_delim
24164 build_cpu!$build_cpu$ac_delim
24165 build_vendor!$build_vendor$ac_delim
24166 build_os!$build_os$ac_delim
24167 host!$host$ac_delim
24168 host_cpu!$host_cpu$ac_delim
24169 host_vendor!$host_vendor$ac_delim
24170 host_os!$host_os$ac_delim
24171 CC!$CC$ac_delim
24172 CFLAGS!$CFLAGS$ac_delim
24173 LDFLAGS!$LDFLAGS$ac_delim
24174 CPPFLAGS!$CPPFLAGS$ac_delim
24175 ac_ct_CC!$ac_ct_CC$ac_delim
24176 EXEEXT!$EXEEXT$ac_delim
24177 OBJEXT!$OBJEXT$ac_delim
24178 CPP!$CPP$ac_delim
24179 GREP!$GREP$ac_delim
24180 EGREP!$EGREP$ac_delim
24181 LN_S!$LN_S$ac_delim
24182 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24183 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24184 INSTALL_DATA!$INSTALL_DATA$ac_delim
24185 RANLIB!$RANLIB$ac_delim
24186 INSTALL_INFO!$INSTALL_INFO$ac_delim
24187 GZIP_PROG!$GZIP_PROG$ac_delim
24188 MAKEINFO!$MAKEINFO$ac_delim
24189 LIBSOUND!$LIBSOUND$ac_delim
24190 PKG_CONFIG!$PKG_CONFIG$ac_delim
24191 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24192 ALSA_LIBS!$ALSA_LIBS$ac_delim
24193 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24194 SET_MAKE!$SET_MAKE$ac_delim
24195 XMKMF!$XMKMF$ac_delim
24196 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24197 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24198 RSVG_LIBS!$RSVG_LIBS$ac_delim
24199 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24200 GTK_LIBS!$GTK_LIBS$ac_delim
24201 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24202 DBUS_LIBS!$DBUS_LIBS$ac_delim
24203 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24204 XFT_LIBS!$XFT_LIBS$ac_delim
24205 ALLOCA!$ALLOCA$ac_delim
24206 liblockfile!$liblockfile$ac_delim
24207 LIBOBJS!$LIBOBJS$ac_delim
24208 NEED_SETGID!$NEED_SETGID$ac_delim
24209 KMEM_GROUP!$KMEM_GROUP$ac_delim
24210 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24211 GETOPT_H!$GETOPT_H$ac_delim
24212 GETOPTOBJS!$GETOPTOBJS$ac_delim
24213 version!$version$ac_delim
24214 configuration!$configuration$ac_delim
24215 canonical!$canonical$ac_delim
24216 srcdir!$srcdir$ac_delim
24217 lispdir!$lispdir$ac_delim
24218 locallisppath!$locallisppath$ac_delim
24219 lisppath!$lisppath$ac_delim
24220 x_default_search_path!$x_default_search_path$ac_delim
24221 etcdir!$etcdir$ac_delim
24222 _ACEOF
24224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24225 break
24226 elif $ac_last_try; then
24227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24229 { (exit 1); exit 1; }; }
24230 else
24231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24233 done
24235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24236 if test -n "$ac_eof"; then
24237 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24238 ac_eof=`expr $ac_eof + 1`
24241 cat >>$CONFIG_STATUS <<_ACEOF
24242 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24244 _ACEOF
24245 sed '
24246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24247 s/^/s,@/; s/!/@,|#_!!_#|/
24250 s/'"$ac_delim"'$/,g/; t
24251 s/$/\\/; p
24252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24253 ' >>$CONFIG_STATUS <conf$$subs.sed
24254 rm -f conf$$subs.sed
24255 cat >>$CONFIG_STATUS <<_ACEOF
24256 CEOF$ac_eof
24257 _ACEOF
24260 ac_delim='%!_!# '
24261 for ac_last_try in false false false false false :; do
24262 cat >conf$$subs.sed <<_ACEOF
24263 archlibdir!$archlibdir$ac_delim
24264 bitmapdir!$bitmapdir$ac_delim
24265 gamedir!$gamedir$ac_delim
24266 gameuser!$gameuser$ac_delim
24267 c_switch_system!$c_switch_system$ac_delim
24268 c_switch_machine!$c_switch_machine$ac_delim
24269 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24270 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24271 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24272 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24273 machfile!$machfile$ac_delim
24274 opsysfile!$opsysfile$ac_delim
24275 carbon_appdir!$carbon_appdir$ac_delim
24276 LTLIBOBJS!$LTLIBOBJS$ac_delim
24277 _ACEOF
24279 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24280 break
24281 elif $ac_last_try; then
24282 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24283 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24284 { (exit 1); exit 1; }; }
24285 else
24286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24288 done
24290 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24291 if test -n "$ac_eof"; then
24292 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24293 ac_eof=`expr $ac_eof + 1`
24296 cat >>$CONFIG_STATUS <<_ACEOF
24297 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24299 _ACEOF
24300 sed '
24301 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24302 s/^/s,@/; s/!/@,|#_!!_#|/
24305 s/'"$ac_delim"'$/,g/; t
24306 s/$/\\/; p
24307 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24308 ' >>$CONFIG_STATUS <conf$$subs.sed
24309 rm -f conf$$subs.sed
24310 cat >>$CONFIG_STATUS <<_ACEOF
24311 :end
24312 s/|#_!!_#|//g
24313 CEOF$ac_eof
24314 _ACEOF
24317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24319 # trailing colons and then remove the whole line if VPATH becomes empty
24320 # (actually we leave an empty line to preserve line numbers).
24321 if test "x$srcdir" = x.; then
24322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24323 s/:*\$(srcdir):*/:/
24324 s/:*\${srcdir}:*/:/
24325 s/:*@srcdir@:*/:/
24326 s/^\([^=]*=[ ]*\):*/\1/
24327 s/:*$//
24328 s/^[^=]*=[ ]*$//
24332 cat >>$CONFIG_STATUS <<\_ACEOF
24333 fi # test -n "$CONFIG_FILES"
24336 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24338 case $ac_tag in
24339 :[FHLC]) ac_mode=$ac_tag; continue;;
24340 esac
24341 case $ac_mode$ac_tag in
24342 :[FHL]*:*);;
24343 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24344 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24345 { (exit 1); exit 1; }; };;
24346 :[FH]-) ac_tag=-:-;;
24347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24348 esac
24349 ac_save_IFS=$IFS
24350 IFS=:
24351 set x $ac_tag
24352 IFS=$ac_save_IFS
24353 shift
24354 ac_file=$1
24355 shift
24357 case $ac_mode in
24358 :L) ac_source=$1;;
24359 :[FH])
24360 ac_file_inputs=
24361 for ac_f
24363 case $ac_f in
24364 -) ac_f="$tmp/stdin";;
24365 *) # Look for the file first in the build tree, then in the source tree
24366 # (if the path is not absolute). The absolute path cannot be DOS-style,
24367 # because $ac_f cannot contain `:'.
24368 test -f "$ac_f" ||
24369 case $ac_f in
24370 [\\/$]*) false;;
24371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24372 esac ||
24373 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24374 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24375 { (exit 1); exit 1; }; };;
24376 esac
24377 ac_file_inputs="$ac_file_inputs $ac_f"
24378 done
24380 # Let's still pretend it is `configure' which instantiates (i.e., don't
24381 # use $as_me), people would be surprised to read:
24382 # /* config.h. Generated by config.status. */
24383 configure_input="Generated from "`IFS=:
24384 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24385 if test x"$ac_file" != x-; then
24386 configure_input="$ac_file. $configure_input"
24387 { echo "$as_me:$LINENO: creating $ac_file" >&5
24388 echo "$as_me: creating $ac_file" >&6;}
24391 case $ac_tag in
24392 *:-:* | *:-) cat >"$tmp/stdin";;
24393 esac
24395 esac
24397 ac_dir=`$as_dirname -- "$ac_file" ||
24398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24399 X"$ac_file" : 'X\(//\)[^/]' \| \
24400 X"$ac_file" : 'X\(//\)$' \| \
24401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24402 echo X"$ac_file" |
24403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24404 s//\1/
24407 /^X\(\/\/\)[^/].*/{
24408 s//\1/
24411 /^X\(\/\/\)$/{
24412 s//\1/
24415 /^X\(\/\).*/{
24416 s//\1/
24419 s/.*/./; q'`
24420 { as_dir="$ac_dir"
24421 case $as_dir in #(
24422 -*) as_dir=./$as_dir;;
24423 esac
24424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24425 as_dirs=
24426 while :; do
24427 case $as_dir in #(
24428 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24429 *) as_qdir=$as_dir;;
24430 esac
24431 as_dirs="'$as_qdir' $as_dirs"
24432 as_dir=`$as_dirname -- "$as_dir" ||
24433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24434 X"$as_dir" : 'X\(//\)[^/]' \| \
24435 X"$as_dir" : 'X\(//\)$' \| \
24436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24437 echo X"$as_dir" |
24438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24439 s//\1/
24442 /^X\(\/\/\)[^/].*/{
24443 s//\1/
24446 /^X\(\/\/\)$/{
24447 s//\1/
24450 /^X\(\/\).*/{
24451 s//\1/
24454 s/.*/./; q'`
24455 test -d "$as_dir" && break
24456 done
24457 test -z "$as_dirs" || eval "mkdir $as_dirs"
24458 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24459 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24460 { (exit 1); exit 1; }; }; }
24461 ac_builddir=.
24463 case "$ac_dir" in
24464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24467 # A ".." for each directory in $ac_dir_suffix.
24468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24469 case $ac_top_builddir_sub in
24470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24472 esac ;;
24473 esac
24474 ac_abs_top_builddir=$ac_pwd
24475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24476 # for backward compatibility:
24477 ac_top_builddir=$ac_top_build_prefix
24479 case $srcdir in
24480 .) # We are building in place.
24481 ac_srcdir=.
24482 ac_top_srcdir=$ac_top_builddir_sub
24483 ac_abs_top_srcdir=$ac_pwd ;;
24484 [\\/]* | ?:[\\/]* ) # Absolute name.
24485 ac_srcdir=$srcdir$ac_dir_suffix;
24486 ac_top_srcdir=$srcdir
24487 ac_abs_top_srcdir=$srcdir ;;
24488 *) # Relative name.
24489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24490 ac_top_srcdir=$ac_top_build_prefix$srcdir
24491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24492 esac
24493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24496 case $ac_mode in
24499 # CONFIG_FILE
24502 case $INSTALL in
24503 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24504 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24505 esac
24506 _ACEOF
24508 cat >>$CONFIG_STATUS <<\_ACEOF
24509 # If the template does not know about datarootdir, expand it.
24510 # FIXME: This hack should be removed a few years after 2.60.
24511 ac_datarootdir_hack=; ac_datarootdir_seen=
24513 case `sed -n '/datarootdir/ {
24517 /@datadir@/p
24518 /@docdir@/p
24519 /@infodir@/p
24520 /@localedir@/p
24521 /@mandir@/p
24522 ' $ac_file_inputs` in
24523 *datarootdir*) ac_datarootdir_seen=yes;;
24524 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24525 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24526 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24527 _ACEOF
24528 cat >>$CONFIG_STATUS <<_ACEOF
24529 ac_datarootdir_hack='
24530 s&@datadir@&$datadir&g
24531 s&@docdir@&$docdir&g
24532 s&@infodir@&$infodir&g
24533 s&@localedir@&$localedir&g
24534 s&@mandir@&$mandir&g
24535 s&\\\${datarootdir}&$datarootdir&g' ;;
24536 esac
24537 _ACEOF
24539 # Neutralize VPATH when `$srcdir' = `.'.
24540 # Shell code in configure.ac might set extrasub.
24541 # FIXME: do we really want to maintain this feature?
24542 cat >>$CONFIG_STATUS <<_ACEOF
24543 sed "$ac_vpsub
24544 $extrasub
24545 _ACEOF
24546 cat >>$CONFIG_STATUS <<\_ACEOF
24548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24549 s&@configure_input@&$configure_input&;t t
24550 s&@top_builddir@&$ac_top_builddir_sub&;t t
24551 s&@srcdir@&$ac_srcdir&;t t
24552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24553 s&@top_srcdir@&$ac_top_srcdir&;t t
24554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24555 s&@builddir@&$ac_builddir&;t t
24556 s&@abs_builddir@&$ac_abs_builddir&;t t
24557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24558 s&@INSTALL@&$ac_INSTALL&;t t
24559 $ac_datarootdir_hack
24560 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24563 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24565 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24566 which seems to be undefined. Please make sure it is defined." >&5
24567 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24568 which seems to be undefined. Please make sure it is defined." >&2;}
24570 rm -f "$tmp/stdin"
24571 case $ac_file in
24572 -) cat "$tmp/out"; rm -f "$tmp/out";;
24573 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24574 esac
24578 # CONFIG_HEADER
24580 _ACEOF
24582 # Transform confdefs.h into a sed script `conftest.defines', that
24583 # substitutes the proper values into config.h.in to produce config.h.
24584 rm -f conftest.defines conftest.tail
24585 # First, append a space to every undef/define line, to ease matching.
24586 echo 's/$/ /' >conftest.defines
24587 # Then, protect against being on the right side of a sed subst, or in
24588 # an unquoted here document, in config.status. If some macros were
24589 # called several times there might be several #defines for the same
24590 # symbol, which is useless. But do not sort them, since the last
24591 # AC_DEFINE must be honored.
24592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24593 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24594 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24595 # PARAMS is the parameter list in the macro definition--in most cases, it's
24596 # just an empty string.
24597 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24598 ac_dB='\\)[ (].*,\\1define\\2'
24599 ac_dC=' '
24600 ac_dD=' ,'
24602 uniq confdefs.h |
24603 sed -n '
24604 t rset
24605 :rset
24606 s/^[ ]*#[ ]*define[ ][ ]*//
24607 t ok
24610 s/[\\&,]/\\&/g
24611 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24612 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24613 ' >>conftest.defines
24615 # Remove the space that was appended to ease matching.
24616 # Then replace #undef with comments. This is necessary, for
24617 # example, in the case of _POSIX_SOURCE, which is predefined and required
24618 # on some systems where configure will not decide to define it.
24619 # (The regexp can be short, since the line contains either #define or #undef.)
24620 echo 's/ $//
24621 s,^[ #]*u.*,/* & */,' >>conftest.defines
24623 # Break up conftest.defines:
24624 ac_max_sed_lines=50
24626 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24627 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24628 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24629 # et cetera.
24630 ac_in='$ac_file_inputs'
24631 ac_out='"$tmp/out1"'
24632 ac_nxt='"$tmp/out2"'
24634 while :
24636 # Write a here document:
24637 cat >>$CONFIG_STATUS <<_ACEOF
24638 # First, check the format of the line:
24639 cat >"\$tmp/defines.sed" <<\\CEOF
24640 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24641 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24643 :def
24644 _ACEOF
24645 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24646 echo 'CEOF
24647 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24648 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24649 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24650 grep . conftest.tail >/dev/null || break
24651 rm -f conftest.defines
24652 mv conftest.tail conftest.defines
24653 done
24654 rm -f conftest.defines conftest.tail
24656 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24657 cat >>$CONFIG_STATUS <<\_ACEOF
24658 if test x"$ac_file" != x-; then
24659 echo "/* $configure_input */" >"$tmp/config.h"
24660 cat "$ac_result" >>"$tmp/config.h"
24661 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24663 echo "$as_me: $ac_file is unchanged" >&6;}
24664 else
24665 rm -f $ac_file
24666 mv "$tmp/config.h" $ac_file
24668 else
24669 echo "/* $configure_input */"
24670 cat "$ac_result"
24672 rm -f "$tmp/out12"
24675 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24676 echo "$as_me: executing $ac_file commands" >&6;}
24678 esac
24681 case $ac_file$ac_mode in
24682 "default":C)
24684 ### Make the necessary directories, if they don't exist.
24685 for dir in etc lisp ; do
24686 test -d ${dir} || mkdir ${dir}
24687 done
24689 # Build src/Makefile from ${srcdir}/src/Makefile.c
24690 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24691 # This must be done after src/config.h is built, since we rely on that file.
24693 # Now get this: Some word that is part of the ${srcdir} directory name
24694 # or the ${configuration} value might, just might, happen to be an
24695 # identifier like `sun4' or `i386' or something, and be predefined by
24696 # the C preprocessor to some helpful value like 1, or maybe the empty
24697 # string. Needless to say consequent macro substitutions are less
24698 # than conducive to the makefile finding the correct directory.
24699 undefs="`echo $top_srcdir $configuration $canonical |
24700 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24701 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24704 echo creating src/epaths.h
24705 ${MAKE-make} epaths-force
24707 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24708 # `..' to `. .' unless invoked with -traditional
24710 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24711 CPPFLAGS="$CPPFLAGS -traditional"
24714 echo creating lib-src/Makefile
24715 ( cd lib-src
24716 rm -f junk.c junk1.c junk2.c
24717 sed -e '/start of cpp stuff/q' \
24718 < Makefile.c > junk1.c
24719 sed -e '1,/start of cpp stuff/d'\
24720 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24721 < Makefile.c > junk.c
24722 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24723 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24724 cat junk1.c junk2.c > Makefile.new
24725 rm -f junk.c junk1.c junk2.c
24726 chmod 444 Makefile.new
24727 mv -f Makefile.new Makefile
24730 echo creating src/Makefile
24731 ( cd src
24732 rm -f junk.c junk1.c junk2.c
24733 sed -e '/start of cpp stuff/q' \
24734 < Makefile.c > junk1.c
24735 sed -e '1,/start of cpp stuff/d'\
24736 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24737 < Makefile.c > junk.c
24738 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24739 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24740 cat junk1.c junk2.c > Makefile.new
24741 rm -f junk.c junk1.c junk2.c
24742 chmod 444 Makefile.new
24743 mv -f Makefile.new Makefile
24746 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24747 echo creating src/.gdbinit
24748 echo source $srcdir/src/.gdbinit > src/.gdbinit
24751 # This is how we know whether to re-run configure in certain cases.
24752 touch src/config.stamp
24756 esac
24757 done # for ac_tag
24760 { (exit 0); exit 0; }
24761 _ACEOF
24762 chmod +x $CONFIG_STATUS
24763 ac_clean_files=$ac_clean_files_save
24766 # configure is writing to config.log, and then calls config.status.
24767 # config.status does its own redirection, appending to config.log.
24768 # Unfortunately, on DOS this fails, as config.log is still kept open
24769 # by configure, so config.status won't be able to write to it; its
24770 # output is simply discarded. So we exec the FD to /dev/null,
24771 # effectively closing config.log, so it can be properly (re)opened and
24772 # appended to by config.status. When coming back to configure, we
24773 # need to make the FD available again.
24774 if test "$no_create" != yes; then
24775 ac_cs_success=:
24776 ac_config_status_args=
24777 test "$silent" = yes &&
24778 ac_config_status_args="$ac_config_status_args --quiet"
24779 exec 5>/dev/null
24780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24781 exec 5>>config.log
24782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24783 # would make configure fail if this is the last instruction.
24784 $ac_cs_success || { (exit 1); exit 1; }