2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
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
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`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
709 x_default_search_path
726 ac_precious_vars
='build_alias
738 # Initialize some variables set by options.
740 ac_init_version
=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
750 program_transform_name
=s
,x
,x
,
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir
='${exec_prefix}/bin'
765 sbindir
='${exec_prefix}/sbin'
766 libexecdir
='${exec_prefix}/libexec'
767 datarootdir
='${prefix}/share'
768 datadir
='${datarootdir}'
769 sysconfdir
='${prefix}/etc'
770 sharedstatedir
='${prefix}/com'
771 localstatedir
='${prefix}/var'
772 includedir
='${prefix}/include'
773 oldincludedir
='/usr/include'
774 docdir
='${datarootdir}/doc/${PACKAGE}'
775 infodir
='${datarootdir}/info'
780 libdir
='${exec_prefix}/lib'
781 localedir
='${datarootdir}/locale'
782 mandir
='${datarootdir}/man'
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\
$ac_option
796 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_
$ac_feature=no
;;
847 -docdir |
--docdir |
--docdi |
--doc |
--do)
849 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
852 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
854 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
857 -enable-* |
--enable-*)
858 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_
$ac_feature=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_
$ac_package=\
$ac_optarg ;;
1063 -without-* |
--without-*)
1064 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1077 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1080 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1084 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1087 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1096 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val
=\$
$ac_var
1129 [\\/$
]* | ?
:[\\/]* ) continue;;
1130 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1141 target
=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x
; then
1145 if test "x$build_alias" = x
; then
1146 cross_compiling
=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1157 test "$silent" = yes && exec 6>/dev
/null
1160 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di
=`ls -di .` &&
1162 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted
=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir
=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted
=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1222 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 for ac_var
in $ac_precious_vars; do
1225 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1227 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1301 --x-includes=DIR X include files are
in DIR
1302 --x-libraries=DIR X library files are
in DIR
1305 --build=BUILD configure
for building on BUILD
[guessed
]
1306 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1310 if test -n "$ac_init_help"; then
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1318 specify
install directory
for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing
) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search
for lisp files
1324 specific to this site
1325 --disable-largefile omit support
for large files
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc don
't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP
mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version
5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server
host
1335 --without-sound don
't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don
't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables
:
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1355 nonstandard directory
<lib dir
>
1356 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1357 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1358 you have headers
in a nonstandard directory
<include dir
>
1360 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1362 Use these variables to override the choices made by
`configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1726 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1737 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1738 echo "$as_me: former value
: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1740 echo "$as_me: current value
: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1758 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1759 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s
,x
,x
', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1804 lispdir='${datadir}/emacs
/${version}/lisp
'
1805 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1806 '${datadir}/emacs
/site-lisp
'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1808 etcdir='${datadir}/emacs
/${version}/etc
'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs
/${version}/etc
'
1811 gamedir='${localstatedir}/games
/emacs
'
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1850 # Check whether --with-kerberos5 was given.
1851 if test "${with_kerberos5+set}" = set; then
1852 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1853 if test "${with_kerberos+set}" != set; then
1855 cat >>confdefs.h <<\_ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1869 # Check whether --with-hesiod was given.
1870 if test "${with_hesiod+set}" = set; then
1871 withval=$with_hesiod;
1872 cat >>confdefs.h <<\_ACEOF
1880 # Check whether --with-sound was given.
1881 if test "${with_sound+set}" = set; then
1882 withval=$with_sound;
1887 # Check whether --with-x-toolkit was given.
1888 if test "${with_x_toolkit+set}" = set; then
1889 withval=$with_x_toolkit; case "${withval}" in
1890 y | ye | yes ) val=athena ;;
1892 l | lu | luc | luci | lucid ) val=lucid ;;
1893 a | at | ath | athe | athen | athena ) val=athena ;;
1894 m | mo | mot | moti | motif ) val=motif ;;
1895 g | gt | gtk ) val=gtk ;;
1897 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1898 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1899 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1900 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1901 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1902 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1903 { (exit 1); exit 1; }; }
1911 # Check whether --with-xpm was given.
1912 if test "${with_xpm+set}" = set; then
1917 # Check whether --with-jpeg was given.
1918 if test "${with_jpeg+set}" = set; then
1923 # Check whether --with-tiff was given.
1924 if test "${with_tiff+set}" = set; then
1929 # Check whether --with-gif was given.
1930 if test "${with_gif+set}" = set; then
1935 # Check whether --with-png was given.
1936 if test "${with_png+set}" = set; then
1941 # Check whether --with-gtk was given.
1942 if test "${with_gtk+set}" = set; then
1947 # Check whether --with-pkg-config-prog was given.
1948 if test "${with_pkg_config_prog+set}" = set; then
1949 withval=$with_pkg_config_prog;
1953 # Check whether --with-toolkit-scroll-bars was given.
1954 if test "${with_toolkit_scroll_bars+set}" = set; then
1955 withval=$with_toolkit_scroll_bars;
1959 # Check whether --with-xim was given.
1960 if test "${with_xim+set}" = set; then
1965 # Check whether --with-carbon was given.
1966 if test "${with_carbon+set}" = set; then
1967 withval=$with_carbon;
1970 # Check whether --enable-carbon-app was given.
1971 if test "${enable_carbon_app+set}" = set; then
1972 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1976 # Check whether --enable-asserts was given.
1977 if test "${enable_asserts+set}" = set; then
1978 enableval=$enable_asserts; USE_XASSERTS=$enableval
1984 # Check whether --enable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1988 USE_MAINTAINER_MODE=no
1991 if test $USE_MAINTAINER_MODE = yes; then
1998 # Check whether --enable-locallisppath was given.
1999 if test "${enable_locallisppath+set}" = set; then
2000 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2002 elif test "${enableval}" != "yes"; then
2003 locallisppath=${enableval}
2008 #### Make srcdir absolute, if it isn't already. It
's important to
2009 #### avoid running the path through pwd unnecessarily, since pwd can
2010 #### give you automounter prefixes, which can go away. We do all this
2011 #### so Emacs can find its files when run uninstalled.
2012 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2017 ## We may be able to use the $PWD environment variable to make this
2018 ## absolute. But sometimes PWD is inaccurate.
2019 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2020 ## but that tested only for a well-formed and valid PWD,
2021 ## it did not object when PWD was well-formed and valid but just wrong.
2022 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2026 srcdir
="`(cd ${srcdir}; pwd)`"
2029 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2032 #### Check if the source directory already has a configured system in it.
2033 if test `pwd` != `(cd ${srcdir} && pwd)` \
2034 && test -f "${srcdir}/src/config.h" ; then
2035 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2036 as a build directory right now; it has been configured in its own
2037 right. To configure in another directory as well, you MUST
2038 use GNU make. If you do not have GNU make, then you must
2039 now do \`make distclean' in ${srcdir},
2040 and then run $0 again." >&5
2041 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2042 as a build directory right now; it has been configured in its own
2043 right. To configure in another directory as well, you MUST
2044 use GNU make. If you do not have GNU make, then you must
2045 now do \`make distclean' in ${srcdir},
2046 and then run $0 again." >&2;}
2049 #### Given the configuration name, set machfile and opsysfile to the
2050 #### names of the m/*.h and s/*.h files we should use.
2052 ### Canonicalize the configuration name.
2055 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2056 if test -f "$ac_dir/install-sh"; then
2058 ac_install_sh
="$ac_aux_dir/install-sh -c"
2060 elif test -f "$ac_dir/install.sh"; then
2062 ac_install_sh
="$ac_aux_dir/install.sh -c"
2064 elif test -f "$ac_dir/shtool"; then
2066 ac_install_sh
="$ac_aux_dir/shtool install -c"
2070 if test -z "$ac_aux_dir"; then
2071 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2073 { (exit 1); exit 1; }; }
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_build_alias
=$build_alias
2097 test "x$ac_build_alias" = x
&&
2098 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x
&&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2118 ac_save_IFS
=$IFS; IFS
='-'
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2128 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test "x$host_alias" = x
; then
2137 ac_cv_host
=$ac_cv_build
2139 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS
=$IFS; IFS
='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2169 configuration
=${host_alias-$host}
2173 ### If you add support for a new configuration, add code to this
2174 ### switch statement to recognize your configuration name and select
2175 ### the appropriate operating system and machine description files.
2177 ### You would hope that you could choose an m/*.h file pretty much
2178 ### based on the machine portion of the configuration name, and an s-
2179 ### file based on the operating system portion. However, it turns out
2180 ### that each m/*.h file is pretty manufacturer-specific - for
2181 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2182 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2183 ### machines. So we basically have to have a special case for each
2184 ### configuration name.
2186 ### As far as handling version numbers on operating systems is
2187 ### concerned, make sure things will fail in a fixable way. If
2188 ### /etc/MACHINES doesn't say anything about version numbers, be
2189 ### prepared to handle anything reasonably. If version numbers
2190 ### matter, be sure /etc/MACHINES says something about it.
2192 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2193 ### "System V Release 4"; he writes, "The old convention encouraged
2194 ### confusion between `system' and `release' levels'."
2196 machine
='' opsys
='' unported
=no
2197 case "${canonical}" in
2202 case "${canonical}" in
2203 alpha
*-*-freebsd*) machine
=alpha
;;
2204 ia64-
*-freebsd*) machine
=ia64
;;
2205 sparc64-
*-freebsd*) machine
=sparc
;;
2206 powerpc-
*-freebsd*) machine
=macppc
;;
2207 i
[3456]86-*-freebsd*) machine
=intel386
;;
2208 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2215 if test -f /usr
/lib
/crti.o
; then
2217 cat >>confdefs.h
<<\_ACEOF
2223 case "${canonical}" in
2224 alpha
*-*-netbsd*) machine
=alpha
;;
2225 i
[3456]86-*-netbsd*) machine
=intel386
;;
2227 # This is somewhat bogus.
2228 machine
=hp9000s300
;;
2229 mips-
*-netbsd*) machine
=pmax
;;
2230 mipsel-
*-netbsd*) machine
=pmax
;;
2231 mipseb-
*-netbsd*) machine
=pmax
;;
2232 ns32k-
*-netbsd*) machine
=ns32000
;;
2233 powerpc-
*-netbsd*) machine
=macppc
;;
2234 sparc
*-*-netbsd*) machine
=sparc
;;
2235 vax-
*-netbsd*) machine
=vax
;;
2236 arm-
*-netbsd*) machine
=arm
;;
2237 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2238 hppa-
*-netbsd*) machine
=hp800
;;
2239 shle-
*-netbsd*) machine
=sh3el
;;
2246 case "${canonical}" in
2247 alpha
*-*-openbsd*) machine
=alpha
;;
2248 i386-
*-openbsd*) machine
=intel386
;;
2249 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2250 m68k-
*-openbsd*) machine
=hp9000s300
;;
2251 mipsel-
*-openbsd*) machine
=pmax
;;
2252 ns32k-
*-openbsd*) machine
=ns32000
;;
2253 sparc-
*-openbsd*) machine
=sparc
;;
2254 vax-
*-openbsd*) machine
=vax
;;
2261 case "${canonical}" in
2262 i
[3456]86-*-lynxos*) machine
=intel386
;;
2263 powerpc-
*-lynxos*) machine
=powerpc
;;
2268 arm-acorn-riscix1.1
* )
2269 machine
=acorn opsys
=riscix1-1
2271 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2272 ## This name is riscix12 instead of riscix1.2
2273 ## to avoid a file name conflict on MSDOS.
2274 machine
=acorn opsys
=riscix12
2280 case "${canonical}" in
2281 i
[345]86-*-bsdi*) machine
=intel386
;;
2282 sparc-
*-bsdi*) machine
=sparc
;;
2283 powerpc-
*-bsdi*) machine
=macppc
;;
2285 case "${canonical}" in
2286 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2287 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2288 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2289 *-*-bsdi3* ) opsys
=bsdos3
;;
2290 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2295 ## Strictly speaking, we need the version of the alliant operating
2296 ## system to choose the right machine file, but currently the
2297 ## configuration name doesn't tell us enough to choose the right
2298 ## one; we need to give alliants their own operating system name to
2299 ## do this right. When someone cares, they can help us.
2301 machine
=alliant4 opsys
=bsd4-2
2304 machine
=alliant-2800 opsys
=bsd4-3
2307 ## Alpha (DEC) machines.
2309 machine
=alpha opsys
=osf1
2310 # This is needed to find X11R6.1 libraries for certain tests.
2311 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2312 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2313 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2314 # due to non-traditional preprocessing with the current compiler
2315 # defaults. OSF 4 can also have that compiler version, and there
2316 # seems always to have been a usable /usr/bin/cpp.
2317 NON_GNU_CPP
=/usr
/bin
/cpp
2318 case "${canonical}" in
2319 alpha
*-dec-osf[5-9]*)
2324 alpha
*-*-linux-gnu* )
2325 machine
=alpha opsys
=gnu-linux
2329 machine
=arm opsys
=gnu-linux
2334 machine
=altos opsys
=usg5-2
2339 machine
=amdahl opsys
=usg5-2-2
2342 ## Apollo, Domain/OS
2344 machine
=apollo opsys
=bsd4-3
2347 ## Apple Darwin / Mac OS X
2349 case "${canonical}" in
2350 i
[3456]86-* ) machine
=intel386
;;
2351 powerpc-
* ) machine
=powermac
;;
2355 # Define CPP as follows to make autoconf work correctly.
2356 CPP
="${CC-cc} -E -no-cpp-precomp"
2357 # Use fink packages if available.
2358 if test -d /sw
/include
&& test -d /sw
/lib
; then
2359 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2360 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2361 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2365 ## AT&T 3b2, 3b5, 3b15, 3b20
2367 machine
=att3b opsys
=usg5-2-2
2370 ## AT&T 3b1 - The Mighty Unix PC!
2372 machine
=7300 opsys
=usg5-2-2
2377 machine
=ibmrs6000 opsys
=aix3-2
2382 machine
=dpx2 opsys
=usg5-3
2387 machine
=sps7 opsys
=usg5-2
2390 ## CCI 5/32, 6/32 -- see "Tahoe".
2393 ## I don't know what configuration name to use for this; config.sub
2394 ## doesn't seem to know anything about it. Hey, Celerity users, get
2395 ## in touch with us!
2396 celerity-celerity-bsd
* )
2397 machine
=celerity opsys
=bsd4-2
2401 ## What operating systems does this chip run that Emacs has been
2405 ## We'll use the catch-all code at the bottom to guess the
2406 ## operating system.
2410 mips-compaq-nonstopux
* )
2411 machine
=nonstopux opsys
=nonstopux
2415 *-convex-bsd* |
*-convex-convexos* )
2416 machine
=convex opsys
=bsd4-3
2417 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2418 NON_GNU_CPP
="cc -E -P"
2422 i
[3456]86-cubix-sysv* )
2423 machine
=intel386 opsys
=usg5-3
2427 cydra
*-cydrome-sysv* )
2428 machine
=cydra5 opsys
=usg5-3
2431 ## Data General AViiON Machines
2432 ## DG changed naming conventions with the release of 5.4.4.10, they
2433 ## dropped the initial 5.4 but left the intervening R. Because of the
2434 ## R this shouldn't conflict with older versions of the OS (which I
2435 ## think were named like dgux4.*). In addition, DG new AViiONs series
2436 ## uses either Motorola M88k or Intel Pentium CPUs.
2437 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2438 machine
=aviion opsys
=dgux4
2440 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2441 ## This name is dgux5-4-3 instead of dgux5-4r3
2442 ## to avoid a file name conflict on MSDOS.
2443 machine
=aviion opsys
=dgux5-4-3
2445 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2446 machine
=aviion opsys
=dgux5-4r2
2449 machine
=aviion opsys
=dgux
2452 ## Data General AViiON Intel (x86) Machines
2453 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2454 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2455 i
[345]86-dg-dguxR4* )
2456 machine
=aviion-intel opsys
=dgux4
2460 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2461 machine
=pmax opsys
=bsd4-2
2463 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2464 machine
=pmax opsys
=bsd4-3
2467 machine
=pmax opsys
=ultrix4-3
2470 machine
=pmax opsys
=osf1
2472 mips-dec-mach_bsd4.3
* )
2473 machine
=pmax opsys
=mach-bsd4-3
2476 ## Motorola Delta machines
2477 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2478 machine
=delta opsys
=usg5-3
2479 if test -z "`type gnucc | grep 'not found'`"
2481 if test -s /etc
/167config
2482 then CC
="gnucc -m68040"
2483 else CC
="gnucc -m68881"
2486 if test -z "`type gcc | grep 'not found'`"
2492 m88k-motorola-sysv4
* )
2493 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2494 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2495 # I hope there are not other 4.0 versions for this machine
2496 # which really need usg5-4 instead.
2497 machine
=delta88k opsys
=usg5-4-2
2499 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2500 machine
=delta88k opsys
=usg5-3
2505 machine
=dual opsys
=usg5-2
2507 m68
*-dual-uniplus* )
2508 machine
=dual opsys
=unipl5-2
2513 machine
=elxsi opsys
=usg5-2
2518 machine
=ns16000 opsys
=umax
2521 ## The GEC 63 - apparently, this port isn't really finished yet.
2522 # I'm sure we finished off the last of the machines, though. -- fx
2524 ## Gould Power Node and NP1
2526 machine
=gould opsys
=bsd4-2
2529 machine
=gould opsys
=bsd4-3
2532 machine
=gould-np1 opsys
=bsd4-3
2535 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2536 ## as far as Emacs is concerned).
2538 # Build needs to be different on 7.0 and later releases
2539 case "`uname -r`" in
2540 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2541 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2543 NON_GNU_CPP
="/lib/cpp"
2545 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2547 machine
=nh3000 opsys
=cxux
2549 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2550 powerpc-harris-powerunix
)
2551 machine
=nh6000 opsys
=powerunix
2552 NON_GNU_CPP
="cc -Xo -E -P"
2555 xps
*-honeywell-sysv* )
2556 machine
=xps100 opsys
=usg5-2
2559 ## HP 9000 series 200 or 300
2561 machine
=hp9000s300 opsys
=bsd4-3
2563 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2569 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2570 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2571 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2572 *) machine
=hp9000s300 opsys
=hpux
;;
2576 hppa
*-*-linux-gnu* )
2577 machine
=hp800 opsys
=gnu-linux
2581 machine
=hp800 opsys
=nextstep
2586 machine
=orion opsys
=bsd4-2
2588 clipper-orion-bsd
* )
2589 machine
=orion105 opsys
=bsd4-2
2593 i
[3456]86-ibm-aix1.1
* )
2594 machine
=ibmps2-aix opsys
=usg5-2-2
2596 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2597 machine
=ibmps2-aix opsys
=usg5-3
2600 machine
=ibm370aix opsys
=usg5-3
2603 machine
=ibms390 opsys
=gnu-linux
2605 s390x-
*-linux-gnu* )
2606 machine
=ibms390x opsys
=gnu-linux
2608 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2609 machine
=ibmrs6000 opsys
=aix3-1
2611 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2612 machine
=ibmrs6000 opsys
=aix3-2-5
2614 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2615 machine
=ibmrs6000 opsys
=aix4-1
2617 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2618 machine
=ibmrs6000 opsys
=aix4-2
2620 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2621 machine
=ibmrs6000 opsys
=aix4-2
2623 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2624 machine
=ibmrs6000 opsys
=aix4
2626 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2627 machine
=ibmrs6000 opsys
=aix4-1
2629 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2630 machine
=ibmrs6000 opsys
=aix3-2
2633 machine
=ibmrt opsys
=bsd4-3
2636 machine
=ibmrt opsys
=bsd4-2
2639 machine
=ibmrt opsys
=bsd4-3
2642 machine
=ibmrt opsys
=bsd4-2
2645 machine
=ibmrt opsys
=bsd4-3
2648 machine
=ibmrt opsys
=bsd4-3
2651 machine
=ibmrt-aix opsys
=usg5-2-2
2654 ## Integrated Solutions `Optimum V'
2656 machine
=isi-ov opsys
=bsd4-2
2659 machine
=isi-ov opsys
=bsd4-3
2662 ## Intel 386 machines where we do care about the manufacturer
2663 i
[3456]86-intsys-sysv* )
2664 machine
=is386 opsys
=usg5-2-2
2668 i
[3456]86-prime-sysv* )
2669 machine
=i386 opsys
=usg5-3
2672 ## Sequent Symmetry running Dynix
2673 i
[3456]86-sequent-bsd* )
2674 machine
=symmetry opsys
=bsd4-3
2677 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2678 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2679 machine
=sequent-ptx opsys
=ptx4
2680 NON_GNU_CPP
=/lib
/cpp
2683 ## Sequent Symmetry running DYNIX/ptx
2684 ## Use the old cpp rather than the newer ANSI one.
2685 i
[3456]86-sequent-ptx* )
2686 machine
=sequent-ptx opsys
=ptx
2687 NON_GNU_CPP
="/lib/cpp"
2690 ## ncr machine running svr4.3.
2691 i
[3456]86-ncr-sysv4.3
)
2692 machine
=ncr386 opsys
=usg5-4-3
2695 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2696 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2697 i
[3456]86-ncr-sysv* )
2698 machine
=ncr386 opsys
=usg5-4-2
2701 ## Intel Paragon OSF/1
2703 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2708 machine
=i860 opsys
=usg5-4
2709 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2710 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2713 ## Macintosh PowerPC
2714 powerpc
*-*-linux-gnu* )
2715 machine
=macppc opsys
=gnu-linux
2718 ## Masscomp machines
2719 m68
*-masscomp-rtu* )
2720 machine
=masscomp opsys
=rtu
2723 ## Megatest machines
2724 m68
*-megatest-bsd* )
2725 machine
=mega68 opsys
=bsd4-2
2728 ## Workstations sold by MIPS
2729 ## This is not necessarily all workstations using the MIPS processor -
2730 ## Irises are produced by SGI, and DECstations by DEC.
2732 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2733 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2734 ## it gives for choosing between the alternatives seems to be "Use
2735 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2736 ## the BSD world." I'll assume that these are instructions for
2737 ## handling two odd situations, and that every other situation
2738 ## should use mips.h and usg5-2-2, they being listed first.
2741 ## Fall through to the general code at the bottom to decide on the OS.
2743 mips-mips-riscos4
* )
2744 machine
=mips4 opsys
=bsd4-3
2745 NON_GNU_CC
="cc -systype bsd43"
2746 NON_GNU_CPP
="cc -systype bsd43 -E"
2748 mips-mips-riscos5
* )
2749 machine
=mips4 opsys
=riscos5
2750 NON_GNU_CC
="cc -systype bsd43"
2751 NON_GNU_CPP
="cc -systype bsd43 -E"
2754 machine
=mips opsys
=bsd4-3
2757 machine
=mips opsys
=usg5-2-2
2761 m68
*-next-* | m68k-
*-nextstep* )
2762 machine
=m68k opsys
=nextstep
2765 ## The complete machine from National Semiconductor
2767 machine
=ns32000 opsys
=usg5-2
2771 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2772 machine
=tower32 opsys
=usg5-2-2
2774 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2775 machine
=tower32v3 opsys
=usg5-3
2780 machine
=ews4800 opsys
=ux4800
2783 ## Nixdorf Targon 31
2784 m68
*-nixdorf-sysv* )
2785 machine
=targon31 opsys
=usg5-2-2
2790 machine
=nu opsys
=usg5-2
2795 machine
=plexus opsys
=usg5-2
2799 ## I don't really have any idea what sort of processor the Pyramid has,
2800 ## so I'm assuming it is its own architecture.
2801 pyramid-pyramid-bsd
* )
2802 machine
=pyramid opsys
=bsd4-2
2806 ns32k-sequent-bsd4.2
* )
2807 machine
=sequent opsys
=bsd4-2
2809 ns32k-sequent-bsd4.3
* )
2810 machine
=sequent opsys
=bsd4-3
2814 mips-siemens-sysv
* | mips-sni-sysv
*)
2815 machine
=mips-siemens opsys
=usg5-4
2816 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2817 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2820 ## Silicon Graphics machines
2821 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2823 machine
=irist opsys
=iris3-5
2825 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2826 machine
=irist opsys
=iris3-6
2830 machine
=iris4d opsys
=irix3-3
2833 machine
=iris4d opsys
=irix4-0
2836 machine
=iris4d opsys
=irix6-5
2837 # Without defining _LANGUAGE_C, things get masked out in the headers
2838 # so that, for instance, grepping for `free' in stdlib.h fails and
2839 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2840 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2841 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2844 machine
=iris4d opsys
=irix6-0
2845 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2846 # but presumably it does no harm.
2847 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2848 # -32 probably isn't necessary in later v.6s -- anyone know which?
2849 NON_GCC_TEST_OPTIONS
=-32
2851 mips-sgi-irix5.
[01]* )
2852 machine
=iris4d opsys
=irix5-0
2854 mips-sgi-irix5
* | mips-sgi-irix
* )
2855 machine
=iris4d opsys
=irix5-2
2860 machine
=news opsys
=bsd4-2
2863 machine
=news opsys
=bsd4-3
2865 m68
*-sony-newsos3* | m68
*-sony-news3*)
2866 machine
=news opsys
=bsd4-3
2868 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2869 machine
=news-risc opsys
=bsd4-3
2871 mips-sony-newsos6
* )
2872 machine
=news-r6 opsys
=newsos6
2875 machine
=news-risc opsys
=newsos5
2880 machine
=stride opsys
=usg5-2
2884 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2885 machine
=sparc opsys
=gnu-linux
2888 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2889 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2890 | rs6000-
*-solaris2*)
2891 case "${canonical}" in
2892 m68
*-sunos1* ) machine
=sun1
;;
2893 m68
*-sunos2* ) machine
=sun2
;;
2894 m68
* ) machine
=sun3
;;
2895 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2896 i
[3456]86-*-* ) machine
=intel386
;;
2897 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2898 powerpcle
* ) machine
=powerpcle
;;
2899 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2900 sparc
* ) machine
=sparc
;;
2903 case "${canonical}" in
2904 ## The Sun386 didn't get past 4.0.
2905 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2906 *-sunos4.0
* ) opsys
=sunos4-0
;;
2907 *-sunos4.1.
[3-9]*noshare
)
2908 ## This name is sunos413 instead of sunos4-1-3
2909 ## to avoid a file name conflict on MSDOS.
2911 NON_GNU_CPP
=/usr
/lib
/cpp
2912 NON_GCC_TEST_OPTIONS
=-Bstatic
2913 GCC_TEST_OPTIONS
=-static
2915 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2917 NON_GNU_CPP
=/usr
/lib
/cpp
2919 *-sunos4* |
*-sunos )
2921 NON_GCC_TEST_OPTIONS
=-Bstatic
2922 GCC_TEST_OPTIONS
=-static
2924 *-sunos5.3
* |
*-solaris2.3
* )
2926 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2928 *-sunos5.4
* |
*-solaris2.4
* )
2930 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2933 *-sunos5.5
* |
*-solaris2.5
* )
2935 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2938 *-sunos5.6
* |
*-solaris2.6
* )
2940 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2943 *-sunos5* |
*-solaris* )
2945 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2949 ## Watch out for a compiler that we know will not work.
2950 case "${canonical}" in
2951 *-solaris* |
*-sunos5* )
2952 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2953 ## /usr/ucb/cc doesn't work;
2954 ## we should find some other compiler that does work.
2962 machine
=sparc opsys
=nextstep
2966 m68
*-tadpole-sysv* )
2967 machine
=tad68k opsys
=usg5-3
2971 tahoe-tahoe-bsd4.2
* )
2972 machine
=tahoe opsys
=bsd4-2
2974 tahoe-tahoe-bsd4.3
* )
2975 machine
=tahoe opsys
=bsd4-3
2978 ## Tandem Integrity S2
2980 machine
=tandem-s2 opsys
=usg5-3
2984 m88k-tektronix-sysv3
* )
2985 machine
=tekxd88 opsys
=usg5-3
2988 ## Tektronix 16000 box (6130?)
2989 ns16k-tektronix-bsd
* )
2990 machine
=ns16000 opsys
=bsd4-2
2993 ## src/m/tek4300.h hints that this is a m68k machine.
2994 m68
*-tektronix-bsd* )
2995 machine
=tek4300 opsys
=bsd4-3
2999 ## We seem to have lost the machine-description file titan.h!
3001 machine
=titan opsys
=usg5-3
3004 ## Ustation E30 (SS5E)
3005 m68
*-unisys-uniplus* )
3006 machine
=ustation opsystem
=unipl5-2
3012 case "${canonical}" in
3013 *-bsd4.1
* ) opsys
=bsd4-1
;;
3014 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3015 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3016 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3017 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3018 *-vms* ) opsys
=vms
;;
3024 ns16k-whitechapel-
* )
3026 ## We don't know what sort of OS runs on these; we'll let the
3027 ## operating system guessing code below try.
3032 machine
=wicat opsys
=usg5-2
3037 machine
=ia64 opsys
=gnu-linux
3040 ## Intel 386 machines where we don't care about the manufacturer
3043 case "${canonical}" in
3044 *-cygwin ) opsys
=cygwin
;;
3045 *-darwin* ) opsys
=darwin
3046 CPP
="${CC-cc} -E -no-cpp-precomp"
3048 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3049 *-isc2.2
* ) opsys
=isc2-2
;;
3050 *-isc4.0
* ) opsys
=isc4-0
;;
3051 *-isc4.
* ) opsys
=isc4-1
3052 GCC_TEST_OPTIONS
=-posix
3053 NON_GCC_TEST_OPTIONS
=-Xp
3055 *-isc* ) opsys
=isc3-0
;;
3056 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3057 *-esix* ) opsys
=esix
;;
3058 *-xenix* ) opsys
=xenix
;;
3059 *-linux-gnu* ) opsys
=gnu-linux
;;
3060 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3061 *-sco3.2v5
* ) opsys
=sco5
3062 NON_GNU_CPP
=/lib
/cpp
3063 # Prevent -belf from being passed to $CPP.
3064 # /lib/cpp does not accept it.
3065 OVERRIDE_CPPFLAGS
=" "
3067 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3068 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3069 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3070 *-386bsd* ) opsys
=386bsd
;;
3071 *-nextstep* ) opsys
=nextstep
;;
3072 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3076 ## m68k Linux-based GNU system
3078 machine
=m68k opsys
=gnu-linux
3081 ## Mips Linux-based GNU system
3082 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3083 machine
=mips opsys
=gnu-linux
3087 sparc-fujitsu-sysv4
* )
3088 machine
=sparc opsys
=uxpds
3089 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3094 f301-fujitsu-uxpv4.1
)
3095 machine
=f301 opsys
=uxpv
3098 ## AMD x86-64 Linux-based GNU system
3099 x86_64-
*-linux-gnu* )
3100 machine
=amdx86-64 opsys
=gnu-linux
3108 ### If the code above didn't choose an operating system, just choose
3109 ### an operating system based on the configuration name. You really
3110 ### only want to use this when you have no idea what the right
3111 ### operating system is; if you know what operating systems a machine
3112 ### runs, it's cleaner to make it explicit in the case statement
3114 if test x
"${opsys}" = x
; then
3115 case "${canonical}" in
3116 *-gnu* ) opsys
=gnu
;;
3117 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3118 *-bsd4.2
) opsys
=bsd4-2
;;
3119 *-bsd4.3
) opsys
=bsd4-3
;;
3120 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3121 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3122 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3123 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3124 *-sysv4.2uw
* ) opsys
=unixware
;;
3125 *-sysv5uw* ) opsys
=unixware
;;
3126 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3127 *-sysv4.1
* |
*-sysvr4.1
* )
3128 NON_GNU_CPP
=/usr
/lib
/cpp
3130 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3131 if [ x
$NON_GNU_CPP = x
]; then
3132 if [ -f /usr
/ccs
/lib
/cpp
]; then
3133 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3135 NON_GNU_CPP
=/lib
/cpp
3139 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3148 if test $unported = yes; then
3149 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3150 Check \`etc/MACHINES' for recognized configuration names." >&5
3151 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3152 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3153 { (exit 1); exit 1; }; }
3156 machfile
="m/${machine}.h"
3157 opsysfile
="s/${opsys}.h"
3160 #### Choose a compiler.
3161 test -n "$CC" && cc_specified
=yes
3163 # Save the value of CFLAGS that the user specified.
3164 SPECIFIED_CFLAGS
="$CFLAGS"
3167 "yes" ) CC
="gcc" GCC
=yes ;;
3168 "no" ) : ${CC=cc} ;;
3172 ac_cpp
='$CPP $CPPFLAGS'
3173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3176 if test -n "$ac_tool_prefix"; then
3177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3178 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC
="$CC" # Let the user override the test.
3187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir
=.
3192 for ac_exec_ext
in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 if test -n "$CC"; then
3206 { echo "$as_me:$LINENO: result: $CC" >&5
3207 echo "${ECHO_T}$CC" >&6; }
3209 { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3215 if test -z "$ac_cv_prog_CC"; then
3217 # Extract the first word of "gcc", so it can be a program name with args.
3218 set dummy gcc
; ac_word
=$2
3219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir
=.
3232 for ac_exec_ext
in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC
="gcc"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3247 echo "${ECHO_T}$ac_ct_CC" >&6; }
3249 { echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6; }
3253 if test "x$ac_ct_CC" = x
; then
3256 case $cross_compiling:$ac_tool_warned in
3258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3259 whose name does not start with the host triplet. If you think this
3260 configuration is useful to you, please write to autoconf@gnu.org." >&5
3261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3262 whose name does not start with the host triplet. If you think this
3263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3264 ac_tool_warned
=yes ;;
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC
="$CC" # Let the user override the test.
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_exec_ext
in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6; }
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3313 if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc
; ac_word
=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC
="$CC" # Let the user override the test.
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir
=.
3330 for ac_exec_ext
in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected
=yes
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy
$ac_cv_prog_CC
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3353 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3359 if test -n "$CC"; then
3360 { echo "$as_me:$LINENO: result: $CC" >&5
3361 echo "${ECHO_T}$CC" >&6; }
3363 { echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6; }
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog
in cl.exe
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC
="$CC" # Let the user override the test.
3383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir
=.
3388 for ac_exec_ext
in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 if test -n "$CC"; then
3402 { echo "$as_me:$LINENO: result: $CC" >&5
3403 echo "${ECHO_T}$CC" >&6; }
3405 { echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6; }
3410 test -n "$CC" && break
3413 if test -z "$CC"; then
3415 for ac_prog
in cl.exe
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy
$ac_prog; ac_word
=$2
3419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir
=.
3432 for ac_exec_ext
in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 ac_cv_prog_ac_ct_CC
="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3447 echo "${ECHO_T}$ac_ct_CC" >&6; }
3449 { echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6; }
3454 test -n "$ac_ct_CC" && break
3457 if test "x$ac_ct_CC" = x
; then
3460 case $cross_compiling:$ac_tool_warned in
3462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3463 whose name does not start with the host triplet. If you think this
3464 configuration is useful to you, please write to autoconf@gnu.org." >&5
3465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3466 whose name does not start with the host triplet. If you think this
3467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3468 ac_tool_warned
=yes ;;
3477 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details." >&5
3479 echo "$as_me: error: no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." >&2;}
3481 { (exit 1); exit 1; }; }
3483 # Provide some information about the compiler.
3484 echo "$as_me:$LINENO: checking for C compiler version" >&5
3485 ac_compiler
=`set X $ac_compile; echo $2`
3486 { (ac_try
="$ac_compiler --version >&5"
3488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_compiler --version >&5") 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }
3496 { (ac_try="$ac_compiler -v >&5"
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compiler -v >&5") 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }
3506 { (ac_try
="$ac_compiler -V >&5"
3508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compiler -V >&5") 2>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3532 ac_clean_files_save=$ac_clean_files
3533 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3534 # Try to create an executable without -o first, disregard a.out.
3535 # It will help us diagnose broken compilers, and finding out an intuition
3537 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3538 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3539 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3541 # List of possible output files, starting from the most likely.
3542 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3543 # only as a last resort. b.out is created by i960 compilers.
3544 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3546 # The IRIX 6 linker writes into existing files which may not be
3547 # executable, retaining their permissions. Remove them first so a
3548 # subsequent execution test works.
3550 for ac_file in $ac_files
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3554 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3559 if { (ac_try="$ac_link_default"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_link_default") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; then
3569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3574 for ac_file
in $ac_files ''
3576 test -f "$ac_file" ||
continue
3578 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3581 # We found the default executable, but exeext='' is most
3585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3587 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 # We set ac_cv_exeext here because the later test for it is not
3590 # safe: cross compilers may not add the suffix if given an `-o'
3591 # argument, so we may need to know it at that point already.
3592 # Even if this section looks crufty: it has the advantage of
3599 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3605 { echo "$as_me:$LINENO: result: $ac_file" >&5
3606 echo "${ECHO_T}$ac_file" >&6; }
3607 if test -z "$ac_file"; then
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.
$ac_ext >&5
3611 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3612 See \`config.log' for more details." >&5
3613 echo "$as_me: error: C compiler cannot create executables
3614 See \`config.log' for more details." >&2;}
3615 { (exit 77); exit 77; }; }
3618 ac_exeext
=$ac_cv_exeext
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3623 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3624 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3625 # If not cross compiling, check that we can run a simple program.
3626 if test "$cross_compiling" != yes; then
3627 if { ac_try
='./$ac_file'
3628 { (case "(($ac_try" in
3629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_try") 2>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3639 if test "$cross_compiling" = maybe; then
3642 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details.
" >&5
3645 echo "$as_me: error
: cannot run C compiled programs.
3646 If you meant to cross compile
, use \
`--host'.
3647 See \`config.log
' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3652 { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3655 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3660 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3661 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3662 echo "${ECHO_T}$cross_compiling" >&6; }
3664 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3665 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3666 if { (ac_try="$ac_link"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_link") 2>&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; then
3676 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3677 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3680 for ac_file
in conftest.exe conftest conftest.
*; do
3681 test -f "$ac_file" ||
continue
3683 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3684 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details." >&2;}
3694 { (exit 1); exit 1; }; }
3697 rm -f conftest
$ac_cv_exeext
3698 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3699 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3701 rm -f conftest.
$ac_ext
3702 EXEEXT
=$ac_cv_exeext
3704 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3705 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3706 if test "${ac_cv_objext+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 cat >conftest.
$ac_ext <<_ACEOF
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3724 rm -f conftest.o conftest.obj
3725 if { (ac_try
="$ac_compile"
3727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; then
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3748 See \`config.log
' for more details." >&5
3749 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details.
" >&2;}
3751 { (exit 1); exit 1; }; }
3754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3756 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3757 echo "${ECHO_T}$ac_cv_objext" >&6; }
3758 OBJEXT=$ac_cv_objext
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763 echo $ECHO_N "(cached
) $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3792 grep -v '^ *+' conftest.er1 >conftest.err
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3802 echo "$as_me: failed program was
:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3818 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820 echo $ECHO_N "(cached
) $ECHO_C" >&6
3822 ac_save_c_werror_flag=$ac_c_werror_flag
3823 ac_c_werror_flag=yes
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3860 echo "$as_me: failed program was
:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3898 echo "$as_me: failed program was
:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3937 echo "$as_me: failed program was
:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3963 if test "$GCC" = yes; then
3969 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3970 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972 echo $ECHO_N "(cached
) $ECHO_C" >&6
3974 ac_cv_prog_cc_c89=no
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3995 static char *f (char * (*g) (char **, int), char **p, ...)
4000 s = g (p, va_arg (v,int));
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
4008 as 'x'. The following induces an error, until -std is added to get
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
4011 that's true only with -std. */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4036 CC="$ac_save_CC $ac_arg"
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 ac_cv_prog_cc_c89=$ac_arg
4056 echo "$as_me: failed program was
:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4065 rm -f conftest.$ac_ext
4070 case "x
$ac_cv_prog_cc_c89" in
4072 { echo "$as_me:$LINENO: result
: none needed
" >&5
4073 echo "${ECHO_T}none needed
" >&6; } ;;
4075 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4076 echo "${ECHO_T}unsupported
" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 # On Suns, sometimes $CPP names a directory.
4092 if test -n "$CPP" && test -d "$CPP"; then
4096 #### Some systems specify a CPP to use unless we are using GCC.
4097 #### Now that we know whether we are using GCC, we can decide whether
4098 #### to use that one.
4099 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4104 #### Some systems specify a CC to use unless we are using GCC.
4105 #### Now that we know whether we are using GCC, we can decide whether
4106 #### to use that one.
4107 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4108 test x$cc_specified != xyes
4113 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4115 CC="$CC $GCC_TEST_OPTIONS"
4118 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4120 CC="$CC $NON_GCC_TEST_OPTIONS"
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4130 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4131 # On Suns, sometimes $CPP names a directory.
4132 if test -n "$CPP" && test -d "$CPP"; then
4135 if test -z "$CPP"; then
4136 if test "${ac_cv_prog_CPP+set}" = set; then
4137 echo $ECHO_N "(cached
) $ECHO_C" >&6
4139 # Double quotes because CPP needs to be expanded
4140 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4143 for ac_c_preproc_warn_flag in '' yes
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error
" is here to catch this case.
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4158 # include <limits.h>
4160 # include <assert.h>
4164 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4176 (exit $ac_status); } >/dev/null && {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4182 echo "$as_me: failed program was
:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Broken: fails on valid input.
4189 rm -f conftest.err conftest.$ac_ext
4191 # OK, works on sane cases. Now check whether nonexistent headers
4192 # can be detected and how.
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4201 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4217 # Broken: success on invalid input.
4220 echo "$as_me: failed program was
:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 # Passes both tests.
4228 rm -f conftest.err conftest.$ac_ext
4231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4232 rm -f conftest.err conftest.$ac_ext
4233 if $ac_preproc_ok; then
4245 { echo "$as_me:$LINENO: result
: $CPP" >&5
4246 echo "${ECHO_T}$CPP" >&6; }
4248 for ac_c_preproc_warn_flag in '' yes
4250 # Use a header file that comes with gcc, so configuring glibc
4251 # with a fresh cross-compiler works.
4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 # <limits.h> exists even on freestanding compilers.
4254 # On the NeXT, cc -E runs the code through the compiler's parser,
4255 # not just through cpp. "Syntax error
" is here to catch this case.
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 # include <limits.h>
4265 # include <assert.h>
4269 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4281 (exit $ac_status); } >/dev/null && {
4282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4287 echo "$as_me: failed program was
:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 # Broken: fails on valid input.
4294 rm -f conftest.err conftest.$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #include <ac_nonexistent.h>
4306 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4318 (exit $ac_status); } >/dev/null && {
4319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4322 # Broken: success on invalid input.
4325 echo "$as_me: failed program was
:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 # Passes both tests.
4333 rm -f conftest.err conftest.$ac_ext
4336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4337 rm -f conftest.err conftest.$ac_ext
4338 if $ac_preproc_ok; then
4341 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4342 See \
`config.log' for more details." >&5
4343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4344 See \`config.log
' for more details." >&2;}
4345 { (exit 1); exit 1; }; }
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4351 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4356 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_GREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 # Extract the first word of "grep ggrep" to use in msg output
4361 if test -z "$GREP"; then
4362 set dummy grep ggrep; ac_prog_name=$2
4363 if test "${ac_cv_path_GREP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ac_path_GREP_found=false
4367 # Loop through the user's path and
test for each of PROGNAME-LIST
4368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4369 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4372 test -z "$as_dir" && as_dir
=.
4373 for ac_prog
in grep ggrep
; do
4374 for ac_exec_ext
in '' $ac_executable_extensions; do
4375 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4377 # Check for GNU ac_path_GREP and select it if it is found.
4378 # Check for GNU $ac_path_GREP
4379 case `"$ac_path_GREP" --version 2>&1` in
4381 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4384 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 echo 'GREP' >> "conftest.nl"
4391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4392 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4393 ac_count
=`expr $ac_count + 1`
4394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_GREP
="$ac_path_GREP"
4397 ac_path_GREP_max
=$ac_count
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4402 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4406 $ac_path_GREP_found && break 3
4416 GREP
="$ac_cv_path_GREP"
4417 if test -z "$GREP"; then
4418 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420 { (exit 1); exit 1; }; }
4424 ac_cv_path_GREP
=$GREP
4429 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4430 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4431 GREP
="$ac_cv_path_GREP"
4434 { echo "$as_me:$LINENO: checking for egrep" >&5
4435 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_EGREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4440 then ac_cv_path_EGREP
="$GREP -E"
4442 # Extract the first word of "egrep" to use in msg output
4443 if test -z "$EGREP"; then
4444 set dummy
egrep; ac_prog_name
=$2
4445 if test "${ac_cv_path_EGREP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_path_EGREP_found
=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4454 test -z "$as_dir" && as_dir
=.
4455 for ac_prog
in egrep; do
4456 for ac_exec_ext
in '' $ac_executable_extensions; do
4457 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4459 # Check for GNU ac_path_EGREP and select it if it is found.
4460 # Check for GNU $ac_path_EGREP
4461 case `"$ac_path_EGREP" --version 2>&1` in
4463 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4466 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 echo 'EGREP' >> "conftest.nl"
4473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4474 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4475 ac_count
=`expr $ac_count + 1`
4476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_EGREP
="$ac_path_EGREP"
4479 ac_path_EGREP_max
=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4484 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4488 $ac_path_EGREP_found && break 3
4498 EGREP
="$ac_cv_path_EGREP"
4499 if test -z "$EGREP"; then
4500 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4501 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4502 { (exit 1); exit 1; }; }
4506 ac_cv_path_EGREP
=$EGREP
4512 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4513 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4514 EGREP
="$ac_cv_path_EGREP"
4518 { echo "$as_me:$LINENO: checking for AIX" >&5
4519 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4520 cat >conftest.
$ac_ext <<_ACEOF
4523 cat confdefs.h
>>conftest.
$ac_ext
4524 cat >>conftest.
$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "yes" >/dev
/null
2>&1; then
4533 { echo "$as_me:$LINENO: result: yes" >&5
4534 echo "${ECHO_T}yes" >&6; }
4535 cat >>confdefs.h
<<\_ACEOF
4536 #define _ALL_SOURCE 1
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4547 cat >>confdefs.h
<<\_ACEOF
4548 #define _GNU_SOURCE 1
4553 ### Use -Wno-pointer-sign if the compiler supports it
4554 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4555 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4556 SAVE_CFLAGS
="$CFLAGS"
4557 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4558 cat >conftest.
$ac_ext <<_ACEOF
4561 cat confdefs.h
>>conftest.
$ac_ext
4562 cat >>conftest.
$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4573 rm -f conftest.
$ac_objext
4574 if { (ac_try
="$ac_compile"
4576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && {
4587 test -z "$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 } && test -s conftest.$ac_objext; then
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 if test $has_option = yes; then
4600 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4602 { echo "$as_me:$LINENO: result: $has_option" >&5
4603 echo "${ECHO_T}$has_option" >&6; }
4604 CFLAGS="$SAVE_CFLAGS"
4608 #### Some other nice autoconf tests.
4610 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4613 if test "$LN_S" = "ln -s"; then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4617 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618 echo "${ECHO_T}no, using $LN_S" >&6; }
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4628 # On Suns, sometimes $CPP names a directory.
4629 if test -n "$CPP" && test -d "$CPP"; then
4632 if test -z "$CPP"; then
4633 if test "${ac_cv_prog_CPP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 # Double quotes because CPP needs to be expanded
4637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4640 for ac_c_preproc_warn_flag in '' yes
4642 # Use a header file that comes with gcc, so configuring glibc
4643 # with a fresh cross-compiler works.
4644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645 # <limits.h> exists even on freestanding compilers.
4646 # On the NeXT, cc -E runs the code through the compiler's parser,
4647 # not just through cpp. "Syntax error" is here to catch this case.
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4655 # include <limits.h>
4657 # include <assert.h>
4661 if { (ac_try="$ac_cpp conftest.$ac_ext"
4663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4664 *) ac_try_echo
=$ac_try;;
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4669 grep -v '^ *+' conftest.er1
>conftest.err
4671 cat conftest.err
>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev
/null
&& {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.
$ac_ext >&5
4682 # Broken: fails on valid input.
4686 rm -f conftest.err conftest.
$ac_ext
4688 # OK, works on sane cases. Now check whether nonexistent headers
4689 # can be detected and how.
4690 cat >conftest.
$ac_ext <<_ACEOF
4693 cat confdefs.h
>>conftest.
$ac_ext
4694 cat >>conftest.
$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <ac_nonexistent.h>
4698 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null && {
4711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4714 # Broken: success on invalid input.
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 # Passes both tests.
4725 rm -f conftest.err conftest.$ac_ext
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.
$ac_ext
4730 if $ac_preproc_ok; then
4742 { echo "$as_me:$LINENO: result: $CPP" >&5
4743 echo "${ECHO_T}$CPP" >&6; }
4745 for ac_c_preproc_warn_flag
in '' yes
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4760 # include <limits.h>
4762 # include <assert.h>
4766 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 # Broken: fails on valid input.
4791 rm -f conftest.err conftest.$ac_ext
4793 # OK, works on sane cases. Now check whether nonexistent headers
4794 # can be detected and how.
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 #include <ac_nonexistent.h>
4803 if { (ac_try="$ac_cpp conftest.$ac_ext"
4805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4806 *) ac_try_echo
=$ac_try;;
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4811 grep -v '^ *+' conftest.er1
>conftest.err
4813 cat conftest.err
>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev
/null
&& {
4816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4819 # Broken: success on invalid input.
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.
$ac_ext >&5
4825 # Passes both tests.
4830 rm -f conftest.err conftest.
$ac_ext
4833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834 rm -f conftest.err conftest.
$ac_ext
4835 if $ac_preproc_ok; then
4838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4839 See \`config.log' for more details." >&5
4840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4841 See \`config.log' for more details." >&2;}
4842 { (exit 1); exit 1; }; }
4846 ac_cpp
='$CPP $CPPFLAGS'
4847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4851 # Find a good install program. We prefer a C program (faster),
4852 # so one script is as good as another. But avoid the broken or
4853 # incompatible versions:
4854 # SysV /etc/install, /usr/sbin/install
4855 # SunOS /usr/etc/install
4856 # IRIX /sbin/install
4858 # AmigaOS /C/install, which installs bootblocks on floppy discs
4859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4862 # OS/2's system install, which has a completely different semantic
4863 # ./install, which can be erroneously created by make from ./install.sh.
4864 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4865 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4866 if test -z "$INSTALL"; then
4867 if test "${ac_cv_path_install+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir
=.
4875 # Account for people who put trailing slashes in PATH elements.
4877 .
/ | .
// |
/cC
/* | \
4878 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4879 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4885 for ac_prog
in ginstall scoinst
install; do
4886 for ac_exec_ext
in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4888 if test $ac_prog = install &&
4889 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4890 # AIX install. It has an incompatible calling convention.
4892 elif test $ac_prog = install &&
4893 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4897 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4910 if test "${ac_cv_path_install+set}" = set; then
4911 INSTALL
=$ac_cv_path_install
4913 # As a last resort, use the slow shell script. Don't cache a
4914 # value for INSTALL within a source directory, because that will
4915 # break other packages using the cache if that directory is
4916 # removed, or if the value is a relative name.
4917 INSTALL
=$ac_install_sh
4920 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4921 echo "${ECHO_T}$INSTALL" >&6; }
4923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4924 # It thinks the first close brace ends the variable substitution.
4925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4929 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4931 if test "x$RANLIB" = x
; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4934 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_RANLIB+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$RANLIB"; then
4941 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir
=.
4948 for ac_exec_ext
in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 RANLIB
=$ac_cv_prog_RANLIB
4961 if test -n "$RANLIB"; then
4962 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4963 echo "${ECHO_T}$RANLIB" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4971 if test -z "$ac_cv_prog_RANLIB"; then
4972 ac_ct_RANLIB
=$RANLIB
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974 set dummy ranlib
; ac_word
=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test -n "$ac_ct_RANLIB"; then
4981 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir
=.
4988 for ac_exec_ext
in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5001 if test -n "$ac_ct_RANLIB"; then
5002 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5003 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5009 if test "x$ac_ct_RANLIB" = x
; then
5012 case $cross_compiling:$ac_tool_warned in
5014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5015 whose name does not start with the host triplet. If you think this
5016 configuration is useful to you, please write to autoconf@gnu.org." >&5
5017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5018 whose name does not start with the host triplet. If you think this
5019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5020 ac_tool_warned
=yes ;;
5022 RANLIB
=$ac_ct_RANLIB
5025 RANLIB
="$ac_cv_prog_RANLIB"
5029 # Extract the first word of "install-info", so it can be a program name with args.
5030 set dummy install-info
; ac_word
=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 case $INSTALL_INFO in
5038 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir
=.
5046 for ac_exec_ext
in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5060 if test -n "$INSTALL_INFO"; then
5061 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5062 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5069 # Extract the first word of "install-info", so it can be a program name with args.
5070 set dummy install-info
; ac_word
=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 case $INSTALL_INFO in
5078 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5082 for as_dir
in /usr
/sbin
5085 test -z "$as_dir" && as_dir
=.
5086 for ac_exec_ext
in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5100 if test -n "$INSTALL_INFO"; then
5101 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5102 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5104 { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5109 # Extract the first word of "install-info", so it can be a program name with args.
5110 set dummy install-info
; ac_word
=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 case $INSTALL_INFO in
5118 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir
=.
5126 for ac_exec_ext
in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5140 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5141 if test -n "$INSTALL_INFO"; then
5142 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5143 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5150 # Extract the first word of "gzip", so it can be a program name with args.
5151 set dummy
gzip; ac_word
=$2
5152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5154 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir
=.
5167 for ac_exec_ext
in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5181 if test -n "$GZIP_PROG"; then
5182 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5183 echo "${ECHO_T}$GZIP_PROG" >&6; }
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5192 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5194 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5197 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5199 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5203 late_LDFLAGS
=$LDFLAGS
5204 if test "$GCC" = yes; then
5205 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5207 LDFLAGS
="$LDFLAGS -znocombreloc"
5210 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5211 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5212 cat >conftest.
$ac_ext <<_ACEOF
5215 rm -f conftest.
$ac_objext conftest
$ac_exeext
5216 if { (ac_try
="$ac_link"
5218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_link") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest$ac_exeext &&
5232 $as_test_x conftest$ac_exeext; then
5233 { echo "$as_me:$LINENO: result: yes" >&5
5234 echo "${ECHO_T}yes" >&6; }
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 LDFLAGS=$late_LDFLAGS
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245 conftest$ac_exeext conftest.$ac_ext
5247 #### Extract some information from the operating system and machine files.
5249 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5250 - which libraries the lib-src programs will want, and
5251 - whether the GNU malloc routines are usable..." >&5
5252 echo "$as_me: checking the machine- and system-dependent files to find out
5253 - which libraries the lib-src programs will want, and
5254 - whether the GNU malloc routines are usable..." >&6;}
5256 ### First figure out CFLAGS (which we use for running the compiler here)
5257 ### and REAL_CFLAGS (which we use for real compilation).
5258 ### The two are the same except on a few systems, where they are made
5259 ### different to work around various lossages. For example,
5260 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5261 ### as implying static linking.
5263 ### If the CFLAGS env var is specified, we use that value
5264 ### instead of the default.
5266 ### It's not important that this name contain the PID; you can't run
5267 ### two configures in the same directory and have anything work
5269 tempcname="conftest.c"
5272 #include "'${srcdir}'/src/'${opsysfile}'"
5273 #include "'${srcdir}'/src/'${machfile}'"
5274 #ifndef LIBS_MACHINE
5275 #define LIBS_MACHINE
5280 #ifndef C_SWITCH_SYSTEM
5281 #define C_SWITCH_SYSTEM
5283 #ifndef C_SWITCH_MACHINE
5284 #define C_SWITCH_MACHINE
5286 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5287 configure___ c_switch_system=C_SWITCH_SYSTEM
5288 configure___ c_switch_machine=C_SWITCH_MACHINE
5291 #define LIB_X11_LIB -lX11
5294 #ifndef LIBX11_MACHINE
5295 #define LIBX11_MACHINE
5298 #ifndef LIBX11_SYSTEM
5299 #define LIBX11_SYSTEM
5301 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5304 configure___ unexec=UNEXEC
5306 configure___ unexec=unexec.o
5309 #ifdef SYSTEM_MALLOC
5310 configure___ system_malloc=yes
5312 configure___ system_malloc=no
5315 #ifdef USE_MMAP_FOR_BUFFERS
5316 configure___ use_mmap_for_buffers=yes
5318 configure___ use_mmap_for_buffers=no
5321 #ifndef C_DEBUG_SWITCH
5322 #define C_DEBUG_SWITCH -g
5325 #ifndef C_OPTIMIZE_SWITCH
5327 #define C_OPTIMIZE_SWITCH -O2
5329 #define C_OPTIMIZE_SWITCH -O
5333 #ifndef C_WARNINGS_SWITCH
5334 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5337 #ifndef LD_SWITCH_MACHINE
5338 #define LD_SWITCH_MACHINE
5341 #ifndef LD_SWITCH_SYSTEM
5342 #define LD_SWITCH_SYSTEM
5345 #ifndef LD_SWITCH_X_SITE_AUX
5346 #define LD_SWITCH_X_SITE_AUX
5349 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5350 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5352 #ifdef THIS_IS_CONFIGURE
5354 /* Get the CFLAGS for tests in configure. */
5356 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5358 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5361 #else /* not THIS_IS_CONFIGURE */
5363 /* Get the CFLAGS for real compilation. */
5365 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5367 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5370 #endif /* not THIS_IS_CONFIGURE */
5373 # The value of CPP is a quoted variable reference, so we need to do this
5374 # to get its actual value...
5375 CPP=`eval "echo $CPP"`
5376 eval `${CPP} -Isrc ${tempcname} \
5377 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5378 if test "x$SPECIFIED_CFLAGS" = x; then
5379 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5380 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5382 REAL_CFLAGS="$CFLAGS"
5386 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5388 ### Make sure subsequent tests use flags consistent with the build flags.
5390 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5391 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5393 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5398 # Check whether --enable-largefile was given.
5399 if test "${enable_largefile+set}" = set; then
5400 enableval=$enable_largefile;
5403 if test "$enable_largefile" != no; then
5405 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5406 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5407 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 ac_cv_sys_largefile_CC=no
5411 if test "$GCC" != yes; then
5414 # IRIX 6.2 and later do not support large files by default,
5415 # so use the C compiler's -n32 option if that helps.
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 /* Check that off_t can represent 2**63 - 1 correctly.
5424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5425 since some C++ compilers masquerading as C compilers
5426 incorrectly reject 9223372036854775807. */
5427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5429 && LARGE_OFF_T % 2147483647 == 1)
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5443 *) ac_try_echo
=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1
>conftest.err
5450 cat conftest.err
>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.
$ac_objext; then
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.
$ac_ext >&5
5464 rm -f core conftest.err conftest.
$ac_objext
5466 rm -f conftest.
$ac_objext
5467 if { (ac_try
="$ac_compile"
5469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } && {
5480 test -z "$ac_c_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest.$ac_objext; then
5483 ac_cv_sys_largefile_CC=' -n32'; break
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5491 rm -f core conftest.err conftest.$ac_objext
5495 rm -f conftest.$ac_ext
5498 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5499 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5500 if test "$ac_cv_sys_largefile_CC" != no; then
5501 CC=$CC$ac_cv_sys_largefile_CC
5504 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5505 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <sys/types.h>
5517 /* Check that off_t can represent 2**63 - 1 correctly.
5518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5519 since some C++ compilers masquerading as C compilers
5520 incorrectly reject 9223372036854775807. */
5521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5523 && LARGE_OFF_T % 2147483647 == 1)
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5537 *) ac_try_echo
=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1
>conftest.err
5544 cat conftest.err
>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.
$ac_objext; then
5550 ac_cv_sys_file_offset_bits
=no
; break
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5559 cat >conftest.
$ac_ext <<_ACEOF
5562 cat confdefs.h
>>conftest.
$ac_ext
5563 cat >>conftest.
$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #define _FILE_OFFSET_BITS 64
5566 #include <sys/types.h>
5567 /* Check that off_t can represent 2**63 - 1 correctly.
5568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5569 since some C++ compilers masquerading as C compilers
5570 incorrectly reject 9223372036854775807. */
5571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5573 && LARGE_OFF_T % 2147483647 == 1)
5583 rm -f conftest.
$ac_objext
5584 if { (ac_try
="$ac_compile"
5586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_cv_sys_file_offset_bits=64; break
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 ac_cv_sys_file_offset_bits=unknown
5613 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5614 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5615 case $ac_cv_sys_file_offset_bits in #(
5618 cat >>confdefs.h <<_ACEOF
5619 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5624 if test $ac_cv_sys_file_offset_bits = unknown; then
5625 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5626 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5627 if test "${ac_cv_sys_large_files+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 /* Check that off_t can represent 2**63 - 1 correctly.
5639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5640 since some C++ compilers masquerading as C compilers
5641 incorrectly reject 9223372036854775807. */
5642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5644 && LARGE_OFF_T % 2147483647 == 1)
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5658 *) ac_try_echo
=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1
>conftest.err
5665 cat conftest.err
>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.
$ac_objext; then
5671 ac_cv_sys_large_files
=no
; break
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.
$ac_ext >&5
5679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5680 cat >conftest.
$ac_ext <<_ACEOF
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #define _LARGE_FILES 1
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5704 rm -f conftest.
$ac_objext
5705 if { (ac_try
="$ac_compile"
5707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_compile") 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } && {
5718 test -z "$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 } && test -s conftest.$ac_objext; then
5721 ac_cv_sys_large_files=1; break
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 ac_cv_sys_large_files=unknown
5734 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5735 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5736 case $ac_cv_sys_large_files in #(
5739 cat >>confdefs.h <<_ACEOF
5740 #define _LARGE_FILES $ac_cv_sys_large_files
5750 ### The standard library on x86-64 GNU/Linux distributions can
5751 ### be located in either /usr/lib64 or /usr/lib.
5752 case "${canonical}" in
5753 x86_64-*-linux-gnu* )
5754 if test -d /usr/lib64; then
5756 cat >>confdefs.h <<\_ACEOF
5757 #define HAVE_X86_64_LIB64_DIR 1
5766 if test "${with_sound}" != "no"; then
5767 # Sound support for GNU/Linux and the free BSDs.
5768 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5770 if test "${ac_cv_header_stdc+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 cat >conftest.$ac_ext <<_ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5796 *) ac_try_echo
=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1
>conftest.err
5803 cat conftest.err
>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.
$ac_objext; then
5809 ac_cv_header_stdc
=yes
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.
$ac_ext >&5
5814 ac_cv_header_stdc
=no
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5819 if test $ac_cv_header_stdc = yes; then
5820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5821 cat >conftest.
$ac_ext <<_ACEOF
5824 cat confdefs.h
>>conftest.
$ac_ext
5825 cat >>conftest.
$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831 $EGREP "memchr" >/dev
/null
2>&1; then
5834 ac_cv_header_stdc
=no
5840 if test $ac_cv_header_stdc = yes; then
5841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5842 cat >conftest.
$ac_ext <<_ACEOF
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852 $EGREP "free" >/dev
/null
2>&1; then
5855 ac_cv_header_stdc
=no
5861 if test $ac_cv_header_stdc = yes; then
5862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5863 if test "$cross_compiling" = yes; then
5866 cat >conftest.
$ac_ext <<_ACEOF
5869 cat confdefs.h
>>conftest.
$ac_ext
5870 cat >>conftest.
$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5874 #if ((' ' & 0x0FF) == 0x020)
5875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5878 # define ISLOWER(c) \
5879 (('a' <= (c) && (c) <= 'i') \
5880 || ('j' <= (c) && (c) <= 'r') \
5881 || ('s' <= (c) && (c) <= 'z'))
5882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5890 for (i = 0; i < 256; i++)
5891 if (XOR (islower (i), ISLOWER (i))
5892 || toupper (i) != TOUPPER (i))
5897 rm -f conftest
$ac_exeext
5898 if { (ac_try
="$ac_link"
5900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_link") 2>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5910 *) ac_try_echo
=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5919 echo "$as_me: program exited with status $ac_status" >&5
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_cv_header_stdc
=no
5926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5932 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5933 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5934 if test $ac_cv_header_stdc = yes; then
5936 cat >>confdefs.h
<<\_ACEOF
5937 #define STDC_HEADERS 1
5942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5952 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5953 inttypes.h stdint.h unistd.h
5955 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5969 #include <$ac_header>
5971 rm -f conftest.
$ac_objext
5972 if { (ac_try
="$ac_compile"
5974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 eval "$as_ac_Header=yes"
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 eval "$as_ac_Header=no"
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_res=`eval echo '${'$as_ac_Header'}'`
5999 { echo "$as_me:$LINENO: result: $ac_res" >&5
6000 echo "${ECHO_T}$ac_res" >&6; }
6001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6014 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6016 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_res=`eval echo '${'$as_ac_Header'}'`
6024 { echo "$as_me:$LINENO: result: $ac_res" >&5
6025 echo "${ECHO_T}$ac_res" >&6; }
6027 # Is the header compilable?
6028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 $ac_includes_default
6037 #include <$ac_header>
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6043 *) ac_try_echo
=$ac_try;;
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6048 grep -v '^ *+' conftest.er1
>conftest.err
6050 cat conftest.err
>&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.
$ac_objext; then
6056 ac_header_compiler
=yes
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.
$ac_ext >&5
6061 ac_header_compiler
=no
6064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066 echo "${ECHO_T}$ac_header_compiler" >&6; }
6068 # Is the header present?
6069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6071 cat >conftest.
$ac_ext <<_ACEOF
6074 cat confdefs.h
>>conftest.
$ac_ext
6075 cat >>conftest.
$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <$ac_header>
6079 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } >/dev/null && {
6092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6095 ac_header_preproc=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_header_preproc=no
6103 rm -f conftest.err conftest.$ac_ext
6104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6105 echo "${ECHO_T}$ac_header_preproc" >&6; }
6107 # So? What about this header?
6108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6114 ac_header_preproc=yes
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 eval "$as_ac_Header=\$ac_header_preproc"
6139 ac_res=`eval echo '${'$as_ac_Header'}'`
6140 { echo "$as_me:$LINENO: result: $ac_res" >&5
6141 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6153 # Emulation library used on NetBSD.
6154 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6155 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6156 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 ac_check_lib_save_LIBS=$LIBS
6160 LIBS="-lossaudio $LIBS"
6161 cat >conftest.$ac_ext <<_ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6168 /* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */
6178 return _oss_ioctl ();
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (ac_try="$ac_link"
6186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6187 *) ac_try_echo
=$ac_try;;
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_link") 2>conftest.er1
6192 grep -v '^ *+' conftest.er1
>conftest.err
6194 cat conftest.err
>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest
$ac_exeext &&
6200 $as_test_x conftest
$ac_exeext; then
6201 ac_cv_lib_ossaudio__oss_ioctl
=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_cv_lib_ossaudio__oss_ioctl
=no
6209 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6210 conftest
$ac_exeext conftest.
$ac_ext
6211 LIBS
=$ac_check_lib_save_LIBS
6213 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6214 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6215 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6224 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6225 if test "X${with_pkg_config_prog}" != X
; then
6226 PKG_CONFIG
="${with_pkg_config_prog}"
6231 if test -z "$PKG_CONFIG"; then
6232 # Extract the first word of "pkg-config", so it can be a program name with args.
6233 set dummy pkg-config
; ac_word
=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir
=.
6249 for ac_exec_ext
in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6263 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6264 if test -n "$PKG_CONFIG"; then
6265 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6266 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6268 { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6275 if test "$PKG_CONFIG" = "no" ; then
6278 PKG_CONFIG_MIN_VERSION
=0.9.0
6279 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6280 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6281 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6283 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6284 { echo "$as_me:$LINENO: result: yes" >&5
6285 echo "${ECHO_T}yes" >&6; }
6288 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6289 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6290 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6291 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6292 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6294 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6295 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6296 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6297 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6298 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6304 ## If we have a custom action on failure, don't print errors, but
6305 ## do set a variable so people can do so.
6306 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6313 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6314 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6318 if test $succeeded = yes; then
6324 if test $HAVE_ALSA = yes; then
6325 SAVE_CFLAGS
="$CFLAGS"
6326 SAVE_LDFLAGS
="$LDFLAGS"
6327 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6328 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6329 cat >conftest.
$ac_ext <<_ACEOF
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <asoundlib.h>
6339 snd_lib_error_set_handler (0);
6344 rm -f conftest.
$ac_objext
6345 if { (ac_try
="$ac_compile"
6347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6353 grep -v '^ *+' conftest.er1 >conftest.err
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 emacs_alsa_normal=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 emacs_alsa_normal=no
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test "$emacs_alsa_normal" != yes; then
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <alsa/asoundlib.h>
6381 snd_lib_error_set_handler (0);
6386 rm -f conftest.$ac_objext
6387 if { (ac_try="$ac_compile"
6389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6390 *) ac_try_echo
=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compile") 2>conftest.er1
6395 grep -v '^ *+' conftest.er1
>conftest.err
6397 cat conftest.err
>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.
$ac_objext; then
6403 emacs_alsa_subdir
=yes
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.
$ac_ext >&5
6408 emacs_alsa_subdir
=no
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 if test "$emacs_alsa_subdir" != yes; then
6413 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6414 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6415 { (exit 1); exit 1; }; }
6417 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6420 CFLAGS
="$SAVE_CFLAGS"
6421 LDFLAGS
="$SAVE_LDFLAGS"
6422 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6423 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6425 cat >>confdefs.h
<<\_ACEOF
6459 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6460 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6461 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6462 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6465 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6469 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 ac_res
=`eval echo '${'$as_ac_Header'}'`
6473 { echo "$as_me:$LINENO: result: $ac_res" >&5
6474 echo "${ECHO_T}$ac_res" >&6; }
6476 # Is the header compilable?
6477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6479 cat >conftest.
$ac_ext <<_ACEOF
6482 cat confdefs.h
>>conftest.
$ac_ext
6483 cat >>conftest.
$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6486 #include <$ac_header>
6488 rm -f conftest.
$ac_objext
6489 if { (ac_try
="$ac_compile"
6491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6497 grep -v '^ *+' conftest.er1 >conftest.err
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.$ac_objext; then
6505 ac_header_compiler=yes
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_header_compiler=no
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6515 echo "${ECHO_T}$ac_header_compiler" >&6; }
6517 # Is the header present?
6518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <$ac_header>
6528 if { (ac_try="$ac_cpp conftest.$ac_ext"
6530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6531 *) ac_try_echo
=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6536 grep -v '^ *+' conftest.er1
>conftest.err
6538 cat conftest.err
>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev
/null
&& {
6541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6544 ac_header_preproc
=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.
$ac_ext >&5
6549 ac_header_preproc
=no
6552 rm -f conftest.err conftest.
$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6554 echo "${ECHO_T}$ac_header_preproc" >&6; }
6556 # So? What about this header?
6557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6563 ac_header_preproc
=yes
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6583 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 eval "$as_ac_Header=\$ac_header_preproc"
6588 ac_res
=`eval echo '${'$as_ac_Header'}'`
6589 { echo "$as_me:$LINENO: result: $ac_res" >&5
6590 echo "${ECHO_T}$ac_res" >&6; }
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h
<<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6604 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6605 cat >conftest.
$ac_ext <<_ACEOF
6608 cat confdefs.h
>>conftest.
$ac_ext
6609 cat >>conftest.
$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <sys/personality.h>
6615 personality (PER_LINUX32)
6620 rm -f conftest.
$ac_objext
6621 if { (ac_try
="$ac_compile"
6623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_compile") 2>conftest.er1
6629 grep -v '^ *+' conftest.er1 >conftest.err
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } && {
6634 test -z "$ac_c_werror_flag" ||
6635 test ! -s conftest.err
6636 } && test -s conftest.$ac_objext; then
6637 emacs_cv_personality_linux32=yes
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 emacs_cv_personality_linux32=no
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6647 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6649 if test $emacs_cv_personality_linux32 = yes; then
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_PERSONALITY_LINUX32 1
6658 for ac_header in term.h
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <$ac_header>
6674 if { (ac_try="$ac_cpp conftest.$ac_ext"
6676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6677 *) ac_try_echo
=$ac_try;;
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6682 grep -v '^ *+' conftest.er1
>conftest.err
6684 cat conftest.err
>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev
/null
&& {
6687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6690 eval "$as_ac_Header=yes"
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.
$ac_ext >&5
6695 eval "$as_ac_Header=no"
6698 rm -f conftest.err conftest.
$ac_ext
6700 ac_res
=`eval echo '${'$as_ac_Header'}'`
6701 { echo "$as_me:$LINENO: result: $ac_res" >&5
6702 echo "${ECHO_T}$ac_res" >&6; }
6703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6704 cat >>confdefs.h
<<_ACEOF
6705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6714 if test "${ac_cv_header_stdc+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6736 rm -f conftest.
$ac_objext
6737 if { (ac_try
="$ac_compile"
6739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6745 grep -v '^ *+' conftest.er1 >conftest.err
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
6753 ac_cv_header_stdc=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_cv_header_stdc=no
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 if test $ac_cv_header_stdc = yes; then
6764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775 $EGREP "memchr" >/dev/null 2>&1; then
6778 ac_cv_header_stdc=no
6784 if test $ac_cv_header_stdc = yes; then
6785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6796 $EGREP "free" >/dev/null 2>&1; then
6799 ac_cv_header_stdc=no
6805 if test $ac_cv_header_stdc = yes; then
6806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6807 if test "$cross_compiling" = yes; then
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6818 #if ((' ' & 0x0FF) == 0x020)
6819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6822 # define ISLOWER(c) \
6823 (('a' <= (c) && (c) <= 'i') \
6824 || ('j' <= (c) && (c) <= 'r') \
6825 || ('s' <= (c) && (c) <= 'z'))
6826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6834 for (i = 0; i < 256; i++)
6835 if (XOR (islower (i), ISLOWER (i))
6836 || toupper (i) != TOUPPER (i))
6841 rm -f conftest$ac_exeext
6842 if { (ac_try="$ac_link"
6844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6845 *) ac_try_echo
=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_link") 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6852 { (case "(($ac_try" in
6853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_try") 2>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6863 echo "$as_me: program exited with status $ac_status" >&5
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_cv_header_stdc=no
6870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6876 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6877 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6878 if test $ac_cv_header_stdc = yes; then
6880 cat >>confdefs.h <<\_ACEOF
6881 #define STDC_HEADERS 1
6886 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6887 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6888 if test "${ac_cv_header_time+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6898 #include <sys/time.h>
6904 if ((struct tm *) 0)
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6914 *) ac_try_echo
=$ac_try;;
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6919 grep -v '^ *+' conftest.er1
>conftest.err
6921 cat conftest.err
>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.
$ac_objext; then
6927 ac_cv_header_time
=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.
$ac_ext >&5
6932 ac_cv_header_time
=no
6935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6937 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6938 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6939 if test $ac_cv_header_time = yes; then
6941 cat >>confdefs.h
<<\_ACEOF
6942 #define TIME_WITH_SYS_TIME 1
6947 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6948 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6949 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 cat >conftest.
$ac_ext <<_ACEOF
6955 cat confdefs.h
>>conftest.
$ac_ext
6956 cat >>conftest.
$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6970 rm -f conftest.
$ac_objext
6971 if { (ac_try
="$ac_compile"
6973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 ac_cv_have_decl_sys_siglist=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_have_decl_sys_siglist=no
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6998 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6999 if test $ac_cv_have_decl_sys_siglist = yes; then
7001 cat >>confdefs.h <<_ACEOF
7002 #define HAVE_DECL_SYS_SIGLIST 1
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_DECL_SYS_SIGLIST 0
7015 if test $ac_cv_have_decl_sys_siglist != yes; then
7016 # For Tru64, at least:
7017 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7018 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7019 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7032 #ifndef __sys_siglist
7033 (void) __sys_siglist;
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7044 *) ac_try_echo
=$ac_try;;
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7049 grep -v '^ *+' conftest.er1
>conftest.err
7051 cat conftest.err
>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.
$ac_objext; then
7057 ac_cv_have_decl___sys_siglist
=yes
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.
$ac_ext >&5
7062 ac_cv_have_decl___sys_siglist
=no
7065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7068 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7069 if test $ac_cv_have_decl___sys_siglist = yes; then
7071 cat >>confdefs.h
<<_ACEOF
7072 #define HAVE_DECL___SYS_SIGLIST 1
7077 cat >>confdefs.h
<<_ACEOF
7078 #define HAVE_DECL___SYS_SIGLIST 0
7085 if test $ac_cv_have_decl___sys_siglist = yes; then
7087 cat >>confdefs.h
<<\_ACEOF
7088 #define sys_siglist __sys_siglist
7093 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7094 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7095 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 cat >conftest.
$ac_ext <<_ACEOF
7101 cat confdefs.h
>>conftest.
$ac_ext
7102 cat >>conftest.
$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #include <sys/types.h>
7105 #include <sys/wait.h>
7107 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7110 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7123 rm -f conftest.
$ac_objext
7124 if { (ac_try
="$ac_compile"
7126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7132 grep -v '^ *+' conftest.er1 >conftest.err
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_cv_header_sys_wait_h=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_header_sys_wait_h=no
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7151 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7152 if test $ac_cv_header_sys_wait_h = yes; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_SYS_WAIT_H 1
7161 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7162 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7188 static struct utimbuf x; x.actime = x.modtime;
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7197 *) ac_try_echo
=$ac_try;;
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1
>conftest.err
7204 cat conftest.err
>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.
$ac_objext; then
7210 emacs_cv_struct_utimbuf
=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7215 emacs_cv_struct_utimbuf
=no
7218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7221 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7222 if test $emacs_cv_struct_utimbuf = yes; then
7224 cat >>confdefs.h
<<\_ACEOF
7225 #define HAVE_STRUCT_UTIMBUF 1
7230 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7231 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7232 if test "${ac_cv_type_signal+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.
$ac_ext <<_ACEOF
7238 cat confdefs.h
>>conftest.
$ac_ext
7239 cat >>conftest.
$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7247 return *(signal (0, 0)) (0) == 1;
7252 rm -f conftest.
$ac_objext
7253 if { (ac_try
="$ac_compile"
7255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_cv_type_signal=int
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_cv_type_signal=void
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7280 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7282 cat >>confdefs.h <<_ACEOF
7283 #define RETSIGTYPE $ac_cv_type_signal
7288 { echo "$as_me:$LINENO: checking for speed_t" >&5
7289 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7290 if test "${emacs_cv_speed_t+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <termios.h>
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7312 *) ac_try_echo
=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1
>conftest.err
7319 cat conftest.err
>&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.
$ac_objext; then
7325 emacs_cv_speed_t
=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.
$ac_ext >&5
7333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7336 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7337 if test $emacs_cv_speed_t = yes; then
7339 cat >>confdefs.h
<<\_ACEOF
7340 #define HAVE_SPEED_T 1
7345 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7346 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7347 if test "${emacs_cv_struct_timeval+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 cat >conftest.
$ac_ext <<_ACEOF
7353 cat confdefs.h
>>conftest.
$ac_ext
7354 cat >>conftest.
$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #ifdef TIME_WITH_SYS_TIME
7357 #include <sys/time.h>
7360 #ifdef HAVE_SYS_TIME_H
7361 #include <sys/time.h>
7369 static struct timeval x; x.tv_sec = x.tv_usec;
7374 rm -f conftest.
$ac_objext
7375 if { (ac_try
="$ac_compile"
7377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7383 grep -v '^ *+' conftest.er1 >conftest.err
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 emacs_cv_struct_timeval=yes
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 emacs_cv_struct_timeval=no
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7402 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7403 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7404 if test $emacs_cv_struct_timeval = yes; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_TIMEVAL 1
7412 { echo "$as_me:$LINENO: checking for struct exception" >&5
7413 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7414 if test "${emacs_cv_struct_exception+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7427 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7436 *) ac_try_echo
=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1
>conftest.err
7443 cat conftest.err
>&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.
$ac_objext; then
7449 emacs_cv_struct_exception
=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7454 emacs_cv_struct_exception
=no
7457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7459 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7460 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7461 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7462 if test $emacs_cv_struct_exception != yes; then
7464 cat >>confdefs.h
<<\_ACEOF
7465 #define NO_MATHERR 1
7471 for ac_header
in sys
/socket.h
7473 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7474 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7477 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 ac_res
=`eval echo '${'$as_ac_Header'}'`
7481 { echo "$as_me:$LINENO: result: $ac_res" >&5
7482 echo "${ECHO_T}$ac_res" >&6; }
7484 # Is the header compilable?
7485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7487 cat >conftest.
$ac_ext <<_ACEOF
7490 cat confdefs.h
>>conftest.
$ac_ext
7491 cat >>conftest.
$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #include <$ac_header>
7496 rm -f conftest.
$ac_objext
7497 if { (ac_try
="$ac_compile"
7499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_header_compiler=yes
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_header_compiler=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7523 echo "${ECHO_T}$ac_header_compiler" >&6; }
7525 # Is the header present?
7526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7528 cat >conftest.$ac_ext <<_ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 #include <$ac_header>
7536 if { (ac_try="$ac_cpp conftest.$ac_ext"
7538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7539 *) ac_try_echo
=$ac_try;;
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7544 grep -v '^ *+' conftest.er1
>conftest.err
7546 cat conftest.err
>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev
/null
&& {
7549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7552 ac_header_preproc
=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.
$ac_ext >&5
7557 ac_header_preproc
=no
7560 rm -f conftest.err conftest.
$ac_ext
7561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7562 echo "${ECHO_T}$ac_header_preproc" >&6; }
7564 # So? What about this header?
7565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7571 ac_header_preproc
=yes
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7591 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 eval "$as_ac_Header=\$ac_header_preproc"
7596 ac_res
=`eval echo '${'$as_ac_Header'}'`
7597 { echo "$as_me:$LINENO: result: $ac_res" >&5
7598 echo "${ECHO_T}$ac_res" >&6; }
7601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7602 cat >>confdefs.h
<<_ACEOF
7603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7611 for ac_header
in net
/if.h
7613 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7616 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 cat >conftest.
$ac_ext <<_ACEOF
7622 cat confdefs.h
>>conftest.
$ac_ext
7623 cat >>conftest.
$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 $ac_includes_default
7626 #if HAVE_SYS_SOCKET_H
7627 #include <sys/socket.h>
7630 #include <$ac_header>
7632 rm -f conftest.
$ac_objext
7633 if { (ac_try
="$ac_compile"
7635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7641 grep -v '^ *+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 eval "$as_ac_Header=yes"
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 eval "$as_ac_Header=no"
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 ac_res=`eval echo '${'$as_ac_Header'}'`
7660 { echo "$as_me:$LINENO: result: $ac_res" >&5
7661 echo "${ECHO_T}$ac_res" >&6; }
7662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7663 cat >>confdefs.h <<_ACEOF
7664 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7672 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7673 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7674 if test "${ac_cv_struct_tm+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat >conftest.$ac_ext <<_ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 #include <sys/types.h>
7690 int *p = &tm.tm_sec;
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7700 *) ac_try_echo
=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.
$ac_objext; then
7713 ac_cv_struct_tm
=time.h
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 ac_cv_struct_tm
=sys
/time.h
7721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7723 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7724 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7725 if test $ac_cv_struct_tm = sys
/time.h
; then
7727 cat >>confdefs.h
<<\_ACEOF
7728 #define TM_IN_SYS_TIME 1
7733 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7734 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7735 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.
$ac_ext <<_ACEOF
7741 cat confdefs.h
>>conftest.
$ac_ext
7742 cat >>conftest.
$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <sys/types.h>
7745 #include <$ac_cv_struct_tm>
7751 static struct tm ac_aggr;
7752 if (ac_aggr.tm_zone)
7758 rm -f conftest.
$ac_objext
7759 if { (ac_try
="$ac_compile"
7761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_compile") 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } && {
7772 test -z "$ac_c_werror_flag" ||
7773 test ! -s conftest.err
7774 } && test -s conftest.$ac_objext; then
7775 ac_cv_member_struct_tm_tm_zone=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 #include <sys/types.h>
7787 #include <$ac_cv_struct_tm>
7793 static struct tm ac_aggr;
7794 if (sizeof ac_aggr.tm_zone)
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7804 *) ac_try_echo
=$ac_try;;
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7809 grep -v '^ *+' conftest.er1
>conftest.err
7811 cat conftest.err
>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.
$ac_objext; then
7817 ac_cv_member_struct_tm_tm_zone
=yes
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.
$ac_ext >&5
7822 ac_cv_member_struct_tm_tm_zone
=no
7825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7830 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7831 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7832 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7834 cat >>confdefs.h
<<_ACEOF
7835 #define HAVE_STRUCT_TM_TM_ZONE 1
7841 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7843 cat >>confdefs.h
<<\_ACEOF
7844 #define HAVE_TM_ZONE 1
7848 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7849 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7850 if test "${ac_cv_have_decl_tzname+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 cat >conftest.
$ac_ext <<_ACEOF
7856 cat confdefs.h
>>conftest.
$ac_ext
7857 cat >>conftest.
$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7872 rm -f conftest.
$ac_objext
7873 if { (ac_try
="$ac_compile"
7875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_compile") 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest.$ac_objext; then
7889 ac_cv_have_decl_tzname=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_cv_have_decl_tzname=no
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7900 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7901 if test $ac_cv_have_decl_tzname = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904 #define HAVE_DECL_TZNAME 1
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_DECL_TZNAME 0
7917 { echo "$as_me:$LINENO: checking for tzname" >&5
7918 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7919 if test "${ac_cv_var_tzname+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7929 #if !HAVE_DECL_TZNAME
7930 extern char *tzname[];
7936 return tzname[0][0];
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (ac_try="$ac_link"
7944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7945 *) ac_try_echo
=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_link") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1
>conftest.err
7952 cat conftest.err
>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest
$ac_exeext &&
7958 $as_test_x conftest
$ac_exeext; then
7959 ac_cv_var_tzname
=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.
$ac_ext >&5
7967 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7968 conftest
$ac_exeext conftest.
$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7971 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7972 if test $ac_cv_var_tzname = yes; then
7974 cat >>confdefs.h
<<\_ACEOF
7975 #define HAVE_TZNAME 1
7981 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7982 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7983 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 cat >conftest.
$ac_ext <<_ACEOF
7989 cat confdefs.h
>>conftest.
$ac_ext
7990 cat >>conftest.
$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7997 static struct tm ac_aggr;
7998 if (ac_aggr.tm_gmtoff)
8004 rm -f conftest.
$ac_objext
8005 if { (ac_try
="$ac_compile"
8007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_member_struct_tm_tm_gmtoff=yes
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8037 static struct tm ac_aggr;
8038 if (sizeof ac_aggr.tm_gmtoff)
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.
$ac_objext; then
8061 ac_cv_member_struct_tm_tm_gmtoff
=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8066 ac_cv_member_struct_tm_tm_gmtoff
=no
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8076 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8078 cat >>confdefs.h
<<\_ACEOF
8079 #define HAVE_TM_GMTOFF 1
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 cat >conftest.
$ac_ext <<_ACEOF
8092 cat confdefs.h
>>conftest.
$ac_ext
8093 cat >>conftest.
$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_flags)
8113 rm -f conftest.
$ac_objext
8114 if { (ac_try
="$ac_compile"
8116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_flags=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_flags)
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8163 *) ac_try_echo
=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1
>conftest.err
8170 cat conftest.err
>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.
$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_flags
=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 ac_cv_member_struct_ifreq_ifr_flags
=no
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8193 cat >>confdefs.h
<<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.
$ac_ext <<_ACEOF
8207 cat confdefs.h
>>conftest.
$ac_ext
8208 cat >>conftest.
$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_hwaddr)
8228 rm -f conftest.
$ac_objext
8229 if { (ac_try
="$ac_compile"
8231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_hwaddr)
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8278 *) ac_try_echo
=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.
$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8308 cat >>confdefs.h
<<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_netmask)
8343 rm -f conftest.
$ac_objext
8344 if { (ac_try
="$ac_compile"
8346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_netmask=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_netmask)
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8393 *) ac_try_echo
=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.
$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.
$ac_ext >&5
8411 ac_cv_member_struct_ifreq_ifr_netmask
=no
8414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8423 cat >>confdefs.h
<<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_broadaddr)
8458 rm -f conftest.
$ac_objext
8459 if { (ac_try
="$ac_compile"
8461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_broadaddr)
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.
$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.
$ac_ext >&5
8526 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8538 cat >>confdefs.h
<<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8544 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8545 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8546 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 cat >conftest.
$ac_ext <<_ACEOF
8552 cat confdefs.h
>>conftest.
$ac_ext
8553 cat >>conftest.
$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8556 #if HAVE_SYS_SOCKET_H
8557 #include <sys/socket.h>
8566 static struct ifreq ac_aggr;
8567 if (ac_aggr.ifr_addr)
8573 rm -f conftest.
$ac_objext
8574 if { (ac_try
="$ac_compile"
8576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
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_member_struct_ifreq_ifr_addr=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 #if HAVE_SYS_SOCKET_H
8603 #include <sys/socket.h>
8612 static struct ifreq ac_aggr;
8613 if (sizeof ac_aggr.ifr_addr)
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8623 *) ac_try_echo
=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1
>conftest.err
8630 cat conftest.err
>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest.
$ac_objext; then
8636 ac_cv_member_struct_ifreq_ifr_addr
=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.
$ac_ext >&5
8641 ac_cv_member_struct_ifreq_ifr_addr
=no
8644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8649 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8650 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8651 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8653 cat >>confdefs.h
<<_ACEOF
8654 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8662 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8663 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8664 if test "$ac_cv_prog_cc_c89" != no
; then
8665 { echo "$as_me:$LINENO: result: yes" >&5
8666 echo "${ECHO_T}yes" >&6; }
8668 cat >>confdefs.h
<<\_ACEOF
8669 #define PROTOTYPES 1
8673 cat >>confdefs.h
<<\_ACEOF
8674 #define __PROTOTYPES 1
8678 { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8682 { echo "$as_me:$LINENO: checking for working volatile" >&5
8683 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8684 if test "${ac_cv_c_volatile+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 cat >conftest.
$ac_ext <<_ACEOF
8690 cat confdefs.h
>>conftest.
$ac_ext
8691 cat >>conftest.
$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8699 int * volatile y = (int *) 0;
8705 rm -f conftest.
$ac_objext
8706 if { (ac_try
="$ac_compile"
8708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.$ac_objext; then
8722 ac_cv_c_volatile=yes
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8733 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8734 if test $ac_cv_c_volatile = no; then
8736 cat >>confdefs.h <<\_ACEOF
8742 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8743 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8744 if test "${ac_cv_c_const+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8757 /* FIXME: Include the comments suggested by Paul. */
8759 /* Ultrix mips cc rejects this. */
8760 typedef int charset[2];
8762 /* SunOS 4.1.1 cc rejects this. */
8763 char const *const *pcpcc;
8765 /* NEC SVR4.0.2 mips cc rejects this. */
8766 struct point {int x, y;};
8767 static struct point const zero = {0,0};
8768 /* AIX XL C 1.02.0.0 rejects this.
8769 It does not let you subtract one const X* pointer from another in
8770 an arm of an if-expression whose if-part is not a constant
8772 const char *g = "string";
8773 pcpcc = &g + (g ? g-g : 0);
8774 /* HPUX 7.0 cc rejects these. */
8776 ppc = (char**) pcpcc;
8777 pcpcc = (char const *const *) ppc;
8778 { /* SCO 3.2v4 cc rejects this. */
8780 char const *s = 0 ? (char *) 0 : (char const *) 0;
8785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8787 const int *foo = &x[0];
8790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8791 typedef const int *iptr;
8795 { /* AIX XL C 1.02.0.0 rejects this saying
8796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8797 struct s { int j; const int *ap[3]; };
8798 struct s *b; b->j = 5;
8800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8804 return !cs[0] && !zero.x;
8811 rm -f conftest.$ac_objext
8812 if { (ac_try="$ac_compile"
8814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8815 *) ac_try_echo
=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8820 grep -v '^ *+' conftest.er1
>conftest.err
8822 cat conftest.err
>&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.
$ac_objext; then
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.
$ac_ext >&5
8836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8839 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8840 if test $ac_cv_c_const = no
; then
8842 cat >>confdefs.h
<<\_ACEOF
8848 { echo "$as_me:$LINENO: checking for void * support" >&5
8849 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8850 if test "${emacs_cv_void_star+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.
$ac_ext <<_ACEOF
8856 cat confdefs.h
>>conftest.
$ac_ext
8857 cat >>conftest.
$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8868 rm -f conftest.
$ac_objext
8869 if { (ac_try
="$ac_compile"
8871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8877 grep -v '^ *+' conftest.er1 >conftest.err
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && {
8882 test -z "$ac_c_werror_flag" ||
8883 test ! -s conftest.err
8884 } && test -s conftest.$ac_objext; then
8885 emacs_cv_void_star=yes
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 emacs_cv_void_star=no
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8896 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8897 if test $emacs_cv_void_star = yes; then
8898 cat >>confdefs.h <<\_ACEOF
8899 #define POINTER_TYPE void
8903 cat >>confdefs.h <<\_ACEOF
8904 #define POINTER_TYPE char
8913 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8915 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8916 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.make <<\_ACEOF
8922 @echo '@@@%%%=$(MAKE)=@@@%%%'
8924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8925 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8927 eval ac_cv_prog_make_${ac_make}_set=yes;;
8929 eval ac_cv_prog_make_${ac_make}_set=no;;
8933 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8934 { echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6; }
8938 { echo "$as_me:$LINENO: result: no" >&5
8939 echo "${ECHO_T}no" >&6; }
8940 SET_MAKE="MAKE=${MAKE-make}"
8944 { echo "$as_me:$LINENO: checking for long file names" >&5
8945 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8946 if test "${ac_cv_sys_long_file_names+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 ac_cv_sys_long_file_names=yes
8950 # Test for long file names in all the places we know might matter:
8951 # . the current directory, where building will happen
8952 # $prefix/lib where we will be installing things
8953 # $exec_prefix/lib likewise
8954 # $TMPDIR if set, where it might want to write temporary files
8955 # /tmp where it might want to write temporary files
8958 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8959 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8960 # in the usual case where exec_prefix is '${prefix}'.
8962 . | /* | ?:[\\/]*) ;; #(
8965 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8966 ac_xdir=$ac_dir/cf$$
8967 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8968 ac_tf1=$ac_xdir/conftest9012345
8969 ac_tf2=$ac_xdir/conftest9012346
8970 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8971 ac_cv_sys_long_file_names=no
8972 rm -f -r "$ac_xdir" 2>/dev/null
8973 test $ac_cv_sys_long_file_names = no && break
8976 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8977 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8978 if test $ac_cv_sys_long_file_names = yes; then
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_LONG_FILE_NAMES 1
8987 #### Choose a window system.
8989 { echo "$as_me:$LINENO: checking for X" >&5
8990 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8993 # Check whether --with-x was given.
8994 if test "${with_x+set}" = set; then
8998 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8999 if test "x$with_x" = xno; then
9000 # The user explicitly disabled X.
9003 case $x_includes,$x_libraries in #(
9004 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9005 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9006 { (exit 1); exit 1; }; };; #(
9007 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 # One or both of the vars are not set, and there is no cached value.
9011 ac_x_includes=no ac_x_libraries=no
9012 rm -f -r conftest.dir
9013 if mkdir conftest.dir; then
9015 cat >Imakefile <<'_ACEOF'
9017 @echo incroot='${INCROOT}'
9019 @echo usrlibdir='${USRLIBDIR}'
9021 @echo libdir='${LIBDIR}'
9023 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9025 for ac_var in incroot usrlibdir libdir; do
9026 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9029 for ac_extension in a so sl; do
9030 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9031 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9032 ac_im_usrlibdir=$ac_im_libdir; break
9035 # Screen out bogus values from the imake configuration. They are
9036 # bogus both because they are the default anyway, and because
9037 # using them would break gcc on systems where it needs fixed includes.
9038 case $ac_im_incroot in
9039 /usr/include) ac_x_includes= ;;
9040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9042 case $ac_im_usrlibdir in
9044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9048 rm -f -r conftest.dir
9051 # Standard set of common directories for X headers.
9052 # Check X11 before X11Rn because it is often a symlink to the current release.
9064 /usr/local/X11/include
9065 /usr/local/X11R6/include
9066 /usr/local/X11R5/include
9067 /usr/local/X11R4/include
9069 /usr/local/include/X11
9070 /usr/local/include/X11R6
9071 /usr/local/include/X11R5
9072 /usr/local/include/X11R4
9076 /usr/XFree86/include/X11
9080 /usr/unsupported/include
9082 /usr/local/x11r5/include
9083 /usr/lpp/Xamples/include
9085 /usr/openwin/include
9086 /usr/openwin/share/include'
9088 if test "$ac_x_includes" = no; then
9089 # Guess where to find include files, by looking for Xlib.h.
9090 # First, try using that file with no special directory specified.
9091 cat >conftest.$ac_ext <<_ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <X11/Xlib.h>
9099 if { (ac_try="$ac_cpp conftest.$ac_ext"
9101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9102 *) ac_try_echo
=$ac_try;;
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9107 grep -v '^ *+' conftest.er1
>conftest.err
9109 cat conftest.err
>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev
/null
&& {
9112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9115 # We can compile using X headers with no special include directory.
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9121 for ac_dir
in $ac_x_header_dirs; do
9122 if test -r "$ac_dir/X11/Xlib.h"; then
9123 ac_x_includes
=$ac_dir
9129 rm -f conftest.err conftest.
$ac_ext
9130 fi # $ac_x_includes = no
9132 if test "$ac_x_libraries" = no
; then
9133 # Check for the libraries.
9134 # See if we find them without any special options.
9135 # Don't add to $LIBS permanently.
9138 cat >conftest.
$ac_ext <<_ACEOF
9141 cat confdefs.h
>>conftest.
$ac_ext
9142 cat >>conftest.
$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <X11/Xlib.h>
9153 rm -f conftest.
$ac_objext conftest
$ac_exeext
9154 if { (ac_try
="$ac_link"
9156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
9172 # We can link X programs with no special library path.
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9179 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9181 # Don't even attempt the hair of trying to link an X program!
9182 for ac_extension in a so sl; do
9183 if test -r "$ac_dir/libX11.$ac_extension"; then
9184 ac_x_libraries=$ac_dir
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 fi # $ac_x_libraries = no
9195 case $ac_x_includes,$ac_x_libraries in #(
9197 # Didn't find X, or a directory has "'" in its name.
9198 ac_cv_have_x="have_x=no";; #(
9200 # Record where we found X for the cache.
9201 ac_cv_have_x="have_x=yes\
9202 ac_x_includes='$ac_x_includes'\
9203 ac_x_libraries='$ac_x_libraries'"
9209 eval "$ac_cv_have_x"
9212 if test "$have_x" != yes; then
9213 { echo "$as_me:$LINENO: result: $have_x" >&5
9214 echo "${ECHO_T}$have_x" >&6; }
9217 # If each of the values was on the command line, it overrides each guess.
9218 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9219 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9220 # Update the cache value to reflect the command line values.
9221 ac_cv_have_x="have_x=yes\
9222 ac_x_includes='$x_includes'\
9223 ac_x_libraries='$x_libraries'"
9224 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9225 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9228 if test "$no_x" = yes; then
9234 if test "${x_libraries}" != NONE; then
9235 if test -n "${x_libraries}"; then
9236 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9237 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9239 x_default_search_path=""
9240 x_search_path=${x_libraries}
9241 if test -z "${x_search_path}"; then
9242 x_search_path=/usr/lib
9244 for x_library in `echo ${x_search_path}: | \
9245 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9247 ${x_library}/X11/%L/%T/%N%C%S:\
9248 ${x_library}/X11/%l/%T/%N%C%S:\
9249 ${x_library}/X11/%T/%N%C%S:\
9250 ${x_library}/X11/%L/%T/%N%S:\
9251 ${x_library}/X11/%l/%T/%N%S:\
9252 ${x_library}/X11/%T/%N%S"
9253 if test x"${x_default_search_path}" = x; then
9254 x_default_search_path=${x_search_path}
9256 x_default_search_path="${x_search_path}:${x_default_search_path}"
9260 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9261 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9264 if test x"${x_includes}" = x; then
9265 bitmapdir=/usr/include/X11/bitmaps
9267 # accumulate include directories that have X11 bitmap subdirectories
9269 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9270 if test -d "${bmd}/X11/bitmaps"; then
9271 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9273 if test -d "${bmd}/bitmaps"; then
9274 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9277 if test ${bmd_acc} != "dummyval"; then
9278 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9283 if test "${with_carbon}" != no; then
9284 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9285 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9286 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9287 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9291 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9293 # Is the header compilable?
9294 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9295 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 $ac_includes_default
9303 #include <Carbon/Carbon.h>
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9309 *) ac_try_echo
=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1
>conftest.err
9316 cat conftest.err
>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.
$ac_objext; then
9322 ac_header_compiler
=yes
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.
$ac_ext >&5
9327 ac_header_compiler
=no
9330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6; }
9334 # Is the header present?
9335 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9336 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9337 cat >conftest.
$ac_ext <<_ACEOF
9340 cat confdefs.h
>>conftest.
$ac_ext
9341 cat >>conftest.
$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <Carbon/Carbon.h>
9345 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } >/dev/null && {
9358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9361 ac_header_preproc=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_header_preproc=no
9369 rm -f conftest.err conftest.$ac_ext
9370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371 echo "${ECHO_T}$ac_header_preproc" >&6; }
9373 # So? What about this header?
9374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9376 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9377 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9379 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9380 ac_header_preproc=yes
9383 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9384 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9386 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9388 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9390 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9392 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9394 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9398 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9399 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9400 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9405 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9406 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9409 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9415 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9416 if test "${with_carbon+set}" != set \
9417 && test "${carbon_appdir_x+set}" != set; then
9418 for var in with_x with_x_toolkit with_gtk with_xim \
9419 with_xpm with_jpeg with_tiff with_gif with_png; do
9420 if eval test \"\${$var+set}\" = set; then
9427 if test "${HAVE_CARBON}" = yes; then
9431 case "${window_system}" in
9435 case "${with_x_toolkit}" in
9436 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9437 motif ) USE_X_TOOLKIT=MOTIF ;;
9439 USE_X_TOOLKIT=none ;;
9440 no ) USE_X_TOOLKIT=none ;;
9441 * ) USE_X_TOOLKIT=maybe ;;
9451 ### If we're using X11, we should use the X menu package.
9454 yes ) HAVE_MENUS=yes ;;
9457 if test "${opsys}" = "hpux9"; then
9458 case "${x_libraries}" in
9460 opsysfile="s/hpux9-x11r4.h"
9465 if test "${opsys}" = "hpux9shr"; then
9466 case "${x_libraries}" in
9468 opsysfile="s/hpux9shxr4.h"
9473 ### Compute the unexec source name from the object name.
9474 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9476 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9477 # Assume not, until told otherwise.
9480 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9481 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9482 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9493 #define malloc_get_state innocuous_malloc_get_state
9495 /* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char malloc_get_state (); below.
9497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498 <limits.h> exists even on freestanding compilers. */
9501 # include <limits.h>
9503 # include <assert.h>
9506 #undef malloc_get_state
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9514 char malloc_get_state ();
9515 /* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9525 return malloc_get_state ();
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9534 *) ac_try_echo
=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest
$ac_exeext &&
9547 $as_test_x conftest
$ac_exeext; then
9548 ac_cv_func_malloc_get_state
=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.
$ac_ext >&5
9553 ac_cv_func_malloc_get_state
=no
9556 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9557 conftest
$ac_exeext conftest.
$ac_ext
9559 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9560 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9561 if test $ac_cv_func_malloc_get_state = yes; then
9567 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9568 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9569 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9580 #define malloc_set_state innocuous_malloc_set_state
9582 /* System header to define __stub macros and hopefully few prototypes,
9583 which can conflict with char malloc_set_state (); below.
9584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585 <limits.h> exists even on freestanding compilers. */
9588 # include <limits.h>
9590 # include <assert.h>
9593 #undef malloc_set_state
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9601 char malloc_set_state ();
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9612 return malloc_set_state ();
9617 rm -f conftest.
$ac_objext conftest
$ac_exeext
9618 if { (ac_try
="$ac_link"
9620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest$ac_exeext &&
9634 $as_test_x conftest$ac_exeext; then
9635 ac_cv_func_malloc_set_state=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_cv_func_malloc_set_state=no
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 conftest$ac_exeext conftest.$ac_ext
9646 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9647 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9648 if test $ac_cv_func_malloc_set_state = yes; then
9654 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9655 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9656 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 extern void (* __after_morecore_hook)();
9669 __after_morecore_hook = 0
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9678 *) ac_try_echo
=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9683 grep -v '^ *+' conftest.er1
>conftest.err
9685 cat conftest.err
>&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest
$ac_exeext &&
9691 $as_test_x conftest
$ac_exeext; then
9692 emacs_cv_var___after_morecore_hook
=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.
$ac_ext >&5
9697 emacs_cv_var___after_morecore_hook
=no
9700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9701 conftest
$ac_exeext conftest.
$ac_ext
9703 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9704 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9705 if test $emacs_cv_var___after_morecore_hook = no
; then
9708 if test "${system_malloc}" = "yes"; then
9711 (The GNU allocators don't work with this system configuration.)"
9713 if test "$doug_lea_malloc" = "yes" ; then
9714 if test "$GNU_MALLOC" = yes ; then
9716 (Using Doug Lea's new malloc from the GNU C Library.)"
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define DOUG_LEA_MALLOC 1
9725 if test x
"${REL_ALLOC}" = x
; then
9726 REL_ALLOC
=${GNU_MALLOC}
9732 for ac_header
in stdlib.h unistd.h
9734 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9735 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9738 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 ac_res
=`eval echo '${'$as_ac_Header'}'`
9742 { echo "$as_me:$LINENO: result: $ac_res" >&5
9743 echo "${ECHO_T}$ac_res" >&6; }
9745 # Is the header compilable?
9746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9748 cat >conftest.
$ac_ext <<_ACEOF
9751 cat confdefs.h
>>conftest.
$ac_ext
9752 cat >>conftest.
$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 $ac_includes_default
9755 #include <$ac_header>
9757 rm -f conftest.
$ac_objext
9758 if { (ac_try
="$ac_compile"
9760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_compile") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest.$ac_objext; then
9774 ac_header_compiler=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_header_compiler=no
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9784 echo "${ECHO_T}$ac_header_compiler" >&6; }
9786 # Is the header present?
9787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9789 cat >conftest.$ac_ext <<_ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 #include <$ac_header>
9797 if { (ac_try="$ac_cpp conftest.$ac_ext"
9799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9800 *) ac_try_echo
=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1
>conftest.err
9807 cat conftest.err
>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } >/dev
/null
&& {
9810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9813 ac_header_preproc
=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.
$ac_ext >&5
9818 ac_header_preproc
=no
9821 rm -f conftest.err conftest.
$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9823 echo "${ECHO_T}$ac_header_preproc" >&6; }
9825 # So? What about this header?
9826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9832 ac_header_preproc
=yes
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 eval "$as_ac_Header=\$ac_header_preproc"
9857 ac_res
=`eval echo '${'$as_ac_Header'}'`
9858 { echo "$as_me:$LINENO: result: $ac_res" >&5
9859 echo "${ECHO_T}$ac_res" >&6; }
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863 cat >>confdefs.h
<<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9872 for ac_func
in getpagesize
9874 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9877 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 cat >conftest.
$ac_ext <<_ACEOF
9883 cat confdefs.h
>>conftest.
$ac_ext
9884 cat >>conftest.
$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define $ac_func innocuous_$ac_func
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9896 # include <limits.h>
9898 # include <assert.h>
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_$ac_func || defined __stub___$ac_func
9925 rm -f conftest.
$ac_objext conftest
$ac_exeext
9926 if { (ac_try
="$ac_link"
9928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_link") 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext &&
9942 $as_test_x conftest$ac_exeext; then
9943 eval "$as_ac_var=yes"
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 eval "$as_ac_var=no"
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952 conftest$ac_exeext conftest.$ac_ext
9954 ac_res=`eval echo '${'$as_ac_var'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_var'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9965 { echo "$as_me:$LINENO: checking for working mmap" >&5
9966 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9967 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 if test "$cross_compiling" = yes; then
9971 ac_cv_func_mmap_fixed_mapped=no
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 /* malloc might have been renamed as rpl_malloc. */
9983 /* Thanks to Mike Haertel and Jim Avera for this test.
9984 Here is a matrix of mmap possibilities:
9985 mmap private not fixed
9986 mmap private fixed at somewhere currently unmapped
9987 mmap private fixed at somewhere already mapped
9988 mmap shared not fixed
9989 mmap shared fixed at somewhere currently unmapped
9990 mmap shared fixed at somewhere already mapped
9991 For private mappings, we should verify that changes cannot be read()
9992 back from the file, nor mmap's back from the file at a different
9993 address. (There have been systems where private was not correctly
9994 implemented like the infamous i386 svr4.0, and systems where the
9995 VM page cache was not coherent with the file system buffer cache
9996 like early versions of FreeBSD and possibly contemporary NetBSD.)
9997 For shared mappings, we should conversely verify that changes get
9998 propagated back to all the places they're supposed to be.
10000 Grep wants private fixed already mapped.
10001 The main things grep needs to know about mmap are:
10002 * does it exist and is it safe to write into the mmap'd area
10003 * how to use it (BSD variants) */
10006 #include <sys/mman.h>
10008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10012 /* This mess was copied from the GNU getpagesize.h. */
10013 #ifndef HAVE_GETPAGESIZE
10014 /* Assume that all systems that can run configure have sys/param.h. */
10015 # ifndef HAVE_SYS_PARAM_H
10016 # define HAVE_SYS_PARAM_H 1
10019 # ifdef _SC_PAGESIZE
10020 # define getpagesize() sysconf(_SC_PAGESIZE)
10021 # else /* no _SC_PAGESIZE */
10022 # ifdef HAVE_SYS_PARAM_H
10023 # include <sys/param.h>
10024 # ifdef EXEC_PAGESIZE
10025 # define getpagesize() EXEC_PAGESIZE
10026 # else /* no EXEC_PAGESIZE */
10028 # define getpagesize() NBPG * CLSIZE
10031 # endif /* no CLSIZE */
10032 # else /* no NBPG */
10034 # define getpagesize() NBPC
10035 # else /* no NBPC */
10037 # define getpagesize() PAGESIZE
10038 # endif /* PAGESIZE */
10039 # endif /* no NBPC */
10040 # endif /* no NBPG */
10041 # endif /* no EXEC_PAGESIZE */
10042 # else /* no HAVE_SYS_PARAM_H */
10043 # define getpagesize() 8192 /* punt totally */
10044 # endif /* no HAVE_SYS_PARAM_H */
10045 # endif /* no _SC_PAGESIZE */
10047 #endif /* no HAVE_GETPAGESIZE */
10052 char *data, *data2, *data3;
10056 pagesize = getpagesize ();
10058 /* First, make a file with some known garbage in it. */
10059 data = (char *) malloc (pagesize);
10062 for (i = 0; i < pagesize; ++i)
10063 *(data + i) = rand ();
10065 fd = creat ("conftest.mmap", 0600);
10068 if (write (fd, data, pagesize) != pagesize)
10072 /* Next, try to mmap the file at a fixed address which already has
10073 something else allocated at it. If we can, also make sure that
10074 we see the same garbage. */
10075 fd = open ("conftest.mmap", O_RDWR);
10078 data2 = (char *) malloc (2 * pagesize);
10081 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10082 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10085 for (i = 0; i < pagesize; ++i)
10086 if (*(data + i) != *(data2 + i))
10089 /* Finally, make sure that changes to the mapped area do not
10090 percolate back to the file as seen by read(). (This is a bug on
10091 some variants of i386 svr4.0.) */
10092 for (i = 0; i < pagesize; ++i)
10093 *(data2 + i) = *(data2 + i) + 1;
10094 data3 = (char *) malloc (pagesize);
10097 if (read (fd, data3, pagesize) != pagesize)
10099 for (i = 0; i < pagesize; ++i)
10100 if (*(data + i) != *(data3 + i))
10106 rm -f conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10110 *) ac_try_echo
=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_func_mmap_fixed_mapped=yes
10128 echo "$as_me: program exited with status $ac_status" >&5
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ( exit $ac_status )
10133 ac_cv_func_mmap_fixed_mapped=no
10135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10141 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_MMAP 1
10149 rm -f conftest.mmap
10151 if test $use_mmap_for_buffers = yes; then
10155 LIBS="$libsrc_libs $LIBS"
10158 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10159 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10160 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-ldnet $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10182 return dnet_ntoa ();
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10191 *) ac_try_echo
=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1
>conftest.err
10198 cat conftest.err
>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest
$ac_exeext &&
10204 $as_test_x conftest
$ac_exeext; then
10205 ac_cv_lib_dnet_dnet_ntoa
=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.
$ac_ext >&5
10210 ac_cv_lib_dnet_dnet_ntoa
=no
10213 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10214 conftest
$ac_exeext conftest.
$ac_ext
10215 LIBS
=$ac_check_lib_save_LIBS
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10219 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10220 cat >>confdefs.h
<<_ACEOF
10221 #define HAVE_LIBDNET 1
10224 LIBS
="-ldnet $LIBS"
10229 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10230 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 ac_check_lib_save_LIBS
=$LIBS
10235 LIBS
="-lXbsd $LIBS"
10236 cat >conftest.
$ac_ext <<_ACEOF
10239 cat confdefs.h
>>conftest.
$ac_ext
10240 cat >>conftest.
$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10252 rm -f conftest.
$ac_objext conftest
$ac_exeext
10253 if { (ac_try
="$ac_link"
10254 case "(($ac_try" in
10255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10270 ac_cv_lib_Xbsd_main=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_lib_Xbsd_main=no
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10282 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10283 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10284 if test $ac_cv_lib_Xbsd_main = yes; then
10285 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10290 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10291 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10292 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_check_lib_save_LIBS=$LIBS
10296 LIBS="-lpthreads $LIBS"
10297 cat >conftest.$ac_ext <<_ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10314 return cma_open ();
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10323 *) ac_try_echo
=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest
$ac_exeext &&
10336 $as_test_x conftest
$ac_exeext; then
10337 ac_cv_lib_pthreads_cma_open
=yes
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.
$ac_ext >&5
10342 ac_cv_lib_pthreads_cma_open
=no
10345 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10346 conftest
$ac_exeext conftest.
$ac_ext
10347 LIBS
=$ac_check_lib_save_LIBS
10349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10350 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10351 if test $ac_cv_lib_pthreads_cma_open = yes; then
10352 cat >>confdefs.h
<<_ACEOF
10353 #define HAVE_LIBPTHREADS 1
10356 LIBS
="-lpthreads $LIBS"
10361 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10362 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10363 if test -d /usr
/X386
/include
; then
10365 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10369 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10370 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10375 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10376 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10377 if test "${gdb_cv_bigtoc+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10383 *) gdb_cv_bigtoc
=-bbigtoc ;;
10386 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10387 cat >conftest.
$ac_ext <<_ACEOF
10390 cat confdefs.h
>>conftest.
$ac_ext
10391 cat >>conftest.
$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10402 rm -f conftest.
$ac_objext conftest
$ac_exeext
10403 if { (ac_try
="$ac_link"
10404 case "(($ac_try" in
10405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10433 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10437 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10438 # used for the tests that follow. We set them back to REAL_CFLAGS and
10439 # REAL_CPPFLAGS later on.
10441 REAL_CPPFLAGS="$CPPFLAGS"
10443 if test "${HAVE_X11}" = "yes"; then
10444 DEFS="$C_SWITCH_X_SITE $DEFS"
10445 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10447 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10448 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10450 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10451 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10452 # but it's more convenient here to set LD_RUN_PATH
10453 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10454 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10455 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10459 if test "${opsys}" = "gnu-linux"; then
10460 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10461 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10472 XOpenDisplay ("foo");
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (ac_try="$ac_link"
10479 case "(($ac_try" in
10480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10481 *) ac_try_echo
=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_link") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1
>conftest.err
10488 cat conftest.err
>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest
$ac_exeext &&
10494 $as_test_x conftest
$ac_exeext; then
10495 xlinux_first_failure
=no
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.
$ac_ext >&5
10500 xlinux_first_failure
=yes
10503 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10504 conftest
$ac_exeext conftest.
$ac_ext
10505 if test "${xlinux_first_failure}" = "yes"; then
10506 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10507 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10508 OLD_CPPFLAGS
="$CPPFLAGS"
10510 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10511 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10512 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10513 LIBS
="$LIBS -b i486-linuxaout"
10514 cat >conftest.
$ac_ext <<_ACEOF
10517 cat confdefs.h
>>conftest.
$ac_ext
10518 cat >>conftest.
$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10524 XOpenDisplay ("foo");
10529 rm -f conftest.
$ac_objext conftest
$ac_exeext
10530 if { (ac_try
="$ac_link"
10531 case "(($ac_try" in
10532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
10538 grep -v '^ *+' conftest.er1 >conftest.err
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } && {
10543 test -z "$ac_c_werror_flag" ||
10544 test ! -s conftest.err
10545 } && test -s conftest$ac_exeext &&
10546 $as_test_x conftest$ac_exeext; then
10547 xlinux_second_failure=no
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 xlinux_second_failure=yes
10555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10556 conftest$ac_exeext conftest.$ac_ext
10557 if test "${xlinux_second_failure}" = "yes"; then
10558 # If we get the same failure with -b, there is no use adding -b.
10559 # So take it out. This plays safe.
10560 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10561 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10562 CPPFLAGS="$OLD_CPPFLAGS"
10564 { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10567 { echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6; }
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10576 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10577 # header files included from there.
10578 { echo "$as_me:$LINENO: checking for Xkb" >&5
10579 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <X11/Xlib.h>
10587 #include <X11/XKBlib.h>
10591 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10600 *) ac_try_echo
=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_link") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1
>conftest.err
10607 cat conftest.err
>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest
$ac_exeext &&
10613 $as_test_x conftest
$ac_exeext; then
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.
$ac_ext >&5
10622 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10623 conftest
$ac_exeext conftest.
$ac_ext
10624 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10625 echo "${ECHO_T}$emacs_xkb" >&6; }
10626 if test $emacs_xkb = yes; then
10628 cat >>confdefs.h
<<\_ACEOF
10629 #define HAVE_XKBGETKEYBOARD 1
10638 for ac_func
in XrmSetDatabase XScreenResourceString \
10639 XScreenNumberOfScreen XSetWMProtocols
10641 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10644 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 cat >conftest.
$ac_ext <<_ACEOF
10650 cat confdefs.h
>>conftest.
$ac_ext
10651 cat >>conftest.
$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define $ac_func innocuous_$ac_func
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char $ac_func (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10663 # include <limits.h>
10665 # include <assert.h>
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined __stub_$ac_func || defined __stub___$ac_func
10687 return $ac_func ();
10692 rm -f conftest.
$ac_objext conftest
$ac_exeext
10693 if { (ac_try
="$ac_link"
10694 case "(($ac_try" in
10695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 eval "$as_ac_var=yes"
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 eval "$as_ac_var=no"
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10721 ac_res=`eval echo '${'$as_ac_var'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10734 if test "${window_system}" = "x11"; then
10735 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10736 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10737 if test "${emacs_cv_x11_version_6+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <X11/Xlib.h>
10750 #if XlibSpecificationRelease < 6
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10762 *) ac_try_echo
=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10767 grep -v '^ *+' conftest.er1
>conftest.err
10769 cat conftest.err
>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest
$ac_exeext &&
10775 $as_test_x conftest
$ac_exeext; then
10776 emacs_cv_x11_version_6
=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.
$ac_ext >&5
10781 emacs_cv_x11_version_6
=no
10784 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10785 conftest
$ac_exeext conftest.
$ac_ext
10788 if test $emacs_cv_x11_version_6 = yes; then
10789 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10790 echo "${ECHO_T}6 or newer" >&6; }
10792 cat >>confdefs.h
<<\_ACEOF
10793 #define HAVE_X11R6 1
10797 { echo "$as_me:$LINENO: result: before 6" >&5
10798 echo "${ECHO_T}before 6" >&6; }
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10804 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_5+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.
$ac_ext <<_ACEOF
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10818 #if XlibSpecificationRelease < 5
10826 rm -f conftest.
$ac_objext conftest
$ac_exeext
10827 if { (ac_try
="$ac_link"
10828 case "(($ac_try" in
10829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 emacs_cv_x11_version_5=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 emacs_cv_x11_version_5=no
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10856 if test $emacs_cv_x11_version_5 = yes; then
10857 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10858 echo "${ECHO_T}5 or newer" >&6; }
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_X11R5 1
10867 { echo "$as_me:$LINENO: result: before 5" >&5
10868 echo "${ECHO_T}before 5" >&6; }
10873 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10876 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10877 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10878 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10879 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10880 { (exit 1); exit 1; }; };
10884 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10886 if test "X${with_pkg_config_prog}" != X; then
10887 PKG_CONFIG="${with_pkg_config_prog}"
10892 if test -z "$PKG_CONFIG"; then
10893 # Extract the first word of "pkg-config", so it can be a program name with args.
10894 set dummy pkg-config; ac_word=$2
10895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 case $PKG_CONFIG in
10902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10925 if test -n "$PKG_CONFIG"; then
10926 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10927 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10936 if test "$PKG_CONFIG" = "no" ; then
10937 { { echo "$as_me:$LINENO: error:
10938 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10939 echo "$as_me: error:
10940 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10941 { (exit 1); exit 1; }; }
10943 PKG_CONFIG_MIN_VERSION=0.9.0
10944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10945 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10946 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10948 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10949 { echo "$as_me:$LINENO: result: yes" >&5
10950 echo "${ECHO_T}yes" >&6; }
10953 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10954 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10955 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10956 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10957 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10959 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10960 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10961 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10962 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10963 echo "${ECHO_T}$GTK_LIBS" >&6; }
10965 { echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6; }
10969 ## If we have a custom action on failure, don't print errors, but
10970 ## do set a variable so people can do so.
10971 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10972 echo $GTK_PKG_ERRORS
10978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10983 if test $succeeded = yes; then
10986 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10987 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10988 { (exit 1); exit 1; }; }
10993 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10994 CFLAGS="$CFLAGS $GTK_CFLAGS"
10995 LIBS="$GTK_LIBS $LIBS"
10998 for ac_func in gtk_main
11000 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11014 #define $ac_func innocuous_$ac_func
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func (); below.
11018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11019 <limits.h> exists even on freestanding compilers. */
11022 # include <limits.h>
11024 # include <assert.h>
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11036 /* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
11039 #if defined __stub_$ac_func || defined __stub___$ac_func
11046 return $ac_func ();
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11055 *) ac_try_echo
=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_link") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1
>conftest.err
11062 cat conftest.err
>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest
$ac_exeext &&
11068 $as_test_x conftest
$ac_exeext; then
11069 eval "$as_ac_var=yes"
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.
$ac_ext >&5
11074 eval "$as_ac_var=no"
11077 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11078 conftest
$ac_exeext conftest.
$ac_ext
11080 ac_res
=`eval echo '${'$as_ac_var'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082 echo "${ECHO_T}$ac_res" >&6; }
11083 if test `eval echo '${'$as_ac_var'}'` = yes; then
11084 cat >>confdefs.h
<<_ACEOF
11085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11091 if test "${GTK_COMPILES}" != "yes"; then
11092 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11093 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11094 { (exit 1); exit 1; }; };
11099 cat >>confdefs.h
<<\_ACEOF
11105 if test "$with_toolkit_scroll_bars" != no
; then
11106 with_toolkit_scroll_bars
=yes
11109 HAVE_GTK_MULTIDISPLAY
=no
11111 HAVE_GTK_FILE_SELECTION
=no
11113 for ac_func
in gtk_file_selection_new
11115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11118 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 cat >conftest.
$ac_ext <<_ACEOF
11124 cat confdefs.h
>>conftest.
$ac_ext
11125 cat >>conftest.
$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11129 #define $ac_func innocuous_$ac_func
11131 /* System header to define __stub macros and hopefully few prototypes,
11132 which can conflict with char $ac_func (); below.
11133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134 <limits.h> exists even on freestanding compilers. */
11137 # include <limits.h>
11139 # include <assert.h>
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11151 /* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154 #if defined __stub_$ac_func || defined __stub___$ac_func
11161 return $ac_func ();
11166 rm -f conftest.
$ac_objext conftest
$ac_exeext
11167 if { (ac_try
="$ac_link"
11168 case "(($ac_try" in
11169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_link") 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest$ac_exeext &&
11183 $as_test_x conftest$ac_exeext; then
11184 eval "$as_ac_var=yes"
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 eval "$as_ac_var=no"
11192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11193 conftest$ac_exeext conftest.$ac_ext
11195 ac_res=`eval echo '${'$as_ac_var'}'`
11196 { echo "$as_me:$LINENO: result: $ac_res" >&5
11197 echo "${ECHO_T}$ac_res" >&6; }
11198 if test `eval echo '${'$as_ac_var'}'` = yes; then
11199 cat >>confdefs.h <<_ACEOF
11200 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11202 HAVE_GTK_FILE_SELECTION=yes
11207 HAVE_GTK_FILE_CHOOSER=no
11209 for ac_func in gtk_file_chooser_dialog_new
11211 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11225 #define $ac_func innocuous_$ac_func
11227 /* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char $ac_func (); below.
11229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230 <limits.h> exists even on freestanding compilers. */
11233 # include <limits.h>
11235 # include <assert.h>
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11247 /* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250 #if defined __stub_$ac_func || defined __stub___$ac_func
11257 return $ac_func ();
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (ac_try="$ac_link"
11264 case "(($ac_try" in
11265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11266 *) ac_try_echo
=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_link") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1
>conftest.err
11273 cat conftest.err
>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest
$ac_exeext &&
11279 $as_test_x conftest
$ac_exeext; then
11280 eval "$as_ac_var=yes"
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.
$ac_ext >&5
11285 eval "$as_ac_var=no"
11288 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11289 conftest
$ac_exeext conftest.
$ac_ext
11291 ac_res
=`eval echo '${'$as_ac_var'}'`
11292 { echo "$as_me:$LINENO: result: $ac_res" >&5
11293 echo "${ECHO_T}$ac_res" >&6; }
11294 if test `eval echo '${'$as_ac_var'}'` = yes; then
11295 cat >>confdefs.h
<<_ACEOF
11296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11298 HAVE_GTK_FILE_CHOOSER
=yes
11303 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11304 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11306 cat >>confdefs.h
<<\_ACEOF
11307 #define HAVE_GTK_FILE_BOTH 1
11312 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11313 HAVE_GTK_AND_PTHREAD
=no
11315 for ac_header
in pthread.h
11317 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 ac_res
=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11328 # Is the header compilable?
11329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11331 cat >conftest.
$ac_ext <<_ACEOF
11334 cat confdefs.h
>>conftest.
$ac_ext
11335 cat >>conftest.
$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 #include <$ac_header>
11340 rm -f conftest.
$ac_objext
11341 if { (ac_try
="$ac_compile"
11342 case "(($ac_try" in
11343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_compile") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest.$ac_objext; then
11357 ac_header_compiler=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_header_compiler=no
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <$ac_header>
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11383 *) ac_try_echo
=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1
>conftest.err
11390 cat conftest.err
>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev
/null
&& {
11393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11396 ac_header_preproc
=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.
$ac_ext >&5
11401 ac_header_preproc
=no
11404 rm -f conftest.err conftest.
$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11406 echo "${ECHO_T}$ac_header_preproc" >&6; }
11408 # So? What about this header?
11409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11415 ac_header_preproc
=yes
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11435 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 eval "$as_ac_Header=\$ac_header_preproc"
11440 ac_res
=`eval echo '${'$as_ac_Header'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11446 cat >>confdefs.h
<<_ACEOF
11447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454 if test "$ac_cv_header_pthread_h"; then
11455 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11456 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11457 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_check_lib_save_LIBS
=$LIBS
11461 LIBS
="-lpthread $LIBS"
11462 cat >conftest.
$ac_ext <<_ACEOF
11465 cat confdefs.h
>>conftest.
$ac_ext
11466 cat >>conftest.
$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11475 char pthread_self ();
11479 return pthread_self ();
11484 rm -f conftest.
$ac_objext conftest
$ac_exeext
11485 if { (ac_try
="$ac_link"
11486 case "(($ac_try" in
11487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && {
11498 test -z "$ac_c_werror_flag" ||
11499 test ! -s conftest.err
11500 } && test -s conftest$ac_exeext &&
11501 $as_test_x conftest$ac_exeext; then
11502 ac_cv_lib_pthread_pthread_self=yes
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ac_cv_lib_pthread_pthread_self=no
11510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11514 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11515 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11516 if test $ac_cv_lib_pthread_pthread_self = yes; then
11517 HAVE_GTK_AND_PTHREAD=yes
11521 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11522 GTK_LIBS="$GTK_LIBS -lpthread"
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_GTK_AND_PTHREAD 1
11532 ### Link with -lXft if available to work around a bug.
11534 if test "${HAVE_GTK}" = "yes"; then
11535 if test "X${with_pkg_config_prog}" != X; then
11536 PKG_CONFIG="${with_pkg_config_prog}"
11542 if test -z "$PKG_CONFIG"; then
11543 # Extract the first word of "pkg-config", so it can be a program name with args.
11544 set dummy pkg-config; ac_word=$2
11545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11547 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 case $PKG_CONFIG in
11552 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11570 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11574 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11575 if test -n "$PKG_CONFIG"; then
11576 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11577 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11579 { echo "$as_me:$LINENO: result: no" >&5
11580 echo "${ECHO_T}no" >&6; }
11586 if test "$PKG_CONFIG" = "no" ; then
11589 PKG_CONFIG_MIN_VERSION=0.9.0
11590 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11591 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11592 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11594 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11595 { echo "$as_me:$LINENO: result: yes" >&5
11596 echo "${ECHO_T}yes" >&6; }
11599 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11600 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11601 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
11602 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11603 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11605 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11606 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11607 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
11608 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11609 echo "${ECHO_T}$XFT_LIBS" >&6; }
11611 { echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6; }
11615 ## If we have a custom action on failure, don't print errors, but
11616 ## do set a variable so people can do so.
11617 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11624 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11625 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11629 if test $succeeded = yes; then
11635 if test "$HAVE_XFT" != no; then
11636 OLD_CFLAGS="$CPPFLAGS"
11637 OLD_CFLAGS="$CFLAGS"
11639 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11640 CFLAGS="$CFLAGS $XFT_CFLAGS"
11641 LIBS="$XFT_LIBS $LIBS"
11642 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11643 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11644 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11645 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11649 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11651 # Is the header compilable?
11652 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11653 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 $ac_includes_default
11661 #include <X11/Xft/Xft.h>
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11667 *) ac_try_echo
=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1
>conftest.err
11674 cat conftest.err
>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.
$ac_objext; then
11680 ac_header_compiler
=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.
$ac_ext >&5
11685 ac_header_compiler
=no
11688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11690 echo "${ECHO_T}$ac_header_compiler" >&6; }
11692 # Is the header present?
11693 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11694 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11695 cat >conftest.
$ac_ext <<_ACEOF
11698 cat confdefs.h
>>conftest.
$ac_ext
11699 cat >>conftest.
$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <X11/Xft/Xft.h>
11703 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11704 case "(($ac_try" in
11705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } >/dev/null && {
11716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11719 ac_header_preproc=yes
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 ac_header_preproc=no
11727 rm -f conftest.err conftest.$ac_ext
11728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11729 echo "${ECHO_T}$ac_header_preproc" >&6; }
11731 # So? What about this header?
11732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11734 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11735 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11737 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11738 ac_header_preproc=yes
11741 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11742 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11744 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11746 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11748 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11750 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11752 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11756 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11757 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11763 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11764 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11767 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11768 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11769 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11770 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-lXft $XFT_LIBS $LIBS"
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11788 char XftFontOpen ();
11792 return XftFontOpen ();
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11801 *) ac_try_echo
=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1
>conftest.err
11808 cat conftest.err
>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest
$ac_exeext &&
11814 $as_test_x conftest
$ac_exeext; then
11815 ac_cv_lib_Xft_XftFontOpen
=yes
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.
$ac_ext >&5
11820 ac_cv_lib_Xft_XftFontOpen
=no
11823 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11824 conftest
$ac_exeext conftest.
$ac_ext
11825 LIBS
=$ac_check_lib_save_LIBS
11827 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11828 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11829 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11837 if test "${HAVE_XFT}" = "yes"; then
11839 cat >>confdefs.h
<<\_ACEOF
11844 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11846 CFLAGS
="$OLD_CPPFLAGS"
11847 CFLAGS
="$OLD_CFLAGS"
11853 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11854 if test x
"${HAVE_X11R5}" = xyes
; then
11855 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11856 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11857 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.
$ac_ext <<_ACEOF
11863 cat confdefs.h
>>conftest.
$ac_ext
11864 cat >>conftest.
$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11867 #include <X11/Intrinsic.h>
11868 #include <X11/Xaw/Simple.h>
11877 rm -f conftest.
$ac_objext conftest
$ac_exeext
11878 if { (ac_try
="$ac_link"
11879 case "(($ac_try" in
11880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_link") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest$ac_exeext &&
11894 $as_test_x conftest$ac_exeext; then
11895 emacs_cv_x11_version_5_with_xaw=yes
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 emacs_cv_x11_version_5_with_xaw=no
11903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11904 conftest$ac_exeext conftest.$ac_ext
11907 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11908 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11909 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11910 USE_X_TOOLKIT=LUCID
11912 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11913 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11921 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11923 if test "${USE_X_TOOLKIT}" != "none"; then
11924 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11925 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11926 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <X11/Intrinsic.h>
11939 #if XtSpecificationRelease < 6
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (ac_try="$ac_link"
11949 case "(($ac_try" in
11950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11951 *) ac_try_echo
=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_link") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1
>conftest.err
11958 cat conftest.err
>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest
$ac_exeext &&
11964 $as_test_x conftest
$ac_exeext; then
11965 emacs_cv_x11_toolkit_version_6
=yes
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.
$ac_ext >&5
11970 emacs_cv_x11_toolkit_version_6
=no
11973 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11974 conftest
$ac_exeext conftest.
$ac_ext
11977 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11978 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11979 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11980 echo "${ECHO_T}6 or newer" >&6; }
11982 cat >>confdefs.h
<<\_ACEOF
11983 #define HAVE_X11XTR6 1
11987 { echo "$as_me:$LINENO: result: before 6" >&5
11988 echo "${ECHO_T}before 6" >&6; }
11992 if test x
$HAVE_X11XTR6 = xyes
; then
11993 LIBS
="-lXt -lSM -lICE $LIBS"
11998 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11999 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12000 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 ac_check_lib_save_LIBS
=$LIBS
12005 cat >conftest.
$ac_ext <<_ACEOF
12008 cat confdefs.h
>>conftest.
$ac_ext
12009 cat >>conftest.
$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12018 char XmuConvertStandardSelection ();
12022 return XmuConvertStandardSelection ();
12027 rm -f conftest.
$ac_objext conftest
$ac_exeext
12028 if { (ac_try
="$ac_link"
12029 case "(($ac_try" in
12030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext &&
12044 $as_test_x conftest$ac_exeext; then
12045 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12058 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12059 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_LIBXMU 1
12068 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12071 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12072 if test "${HAVE_X11}" = "yes"; then
12073 if test "${USE_X_TOOLKIT}" != "none"; then
12075 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12076 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12077 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 ac_check_lib_save_LIBS=$LIBS
12081 LIBS="-lXext $LIBS"
12082 cat >conftest.$ac_ext <<_ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12095 char XShapeQueryExtension ();
12099 return XShapeQueryExtension ();
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12108 *) ac_try_echo
=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1
>conftest.err
12115 cat conftest.err
>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest
$ac_exeext &&
12121 $as_test_x conftest
$ac_exeext; then
12122 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.
$ac_ext >&5
12127 ac_cv_lib_Xext_XShapeQueryExtension
=no
12130 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12131 conftest
$ac_exeext conftest.
$ac_ext
12132 LIBS
=$ac_check_lib_save_LIBS
12134 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12135 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12136 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12137 cat >>confdefs.h
<<_ACEOF
12138 #define HAVE_LIBXEXT 1
12141 LIBS
="-lXext $LIBS"
12148 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12149 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12150 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12151 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 cat >conftest.
$ac_ext <<_ACEOF
12157 cat confdefs.h
>>conftest.
$ac_ext
12158 cat >>conftest.
$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12164 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12167 Motif version prior to 2.1.
12173 rm -f conftest.
$ac_objext
12174 if { (ac_try
="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_compile") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest.$ac_objext; then
12190 emacs_cv_motif_version_2_1=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 emacs_cv_motif_version_2_1=no
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12201 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12202 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12203 if test $emacs_cv_motif_version_2_1 = yes; then
12206 cat >>confdefs.h <<\_ACEOF
12207 #define HAVE_MOTIF_2_1 1
12210 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12211 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_check_lib_save_LIBS=$LIBS
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12230 char XpCreateContext ();
12234 return XpCreateContext ();
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (ac_try="$ac_link"
12241 case "(($ac_try" in
12242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12243 *) ac_try_echo
=$ac_try;;
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_link") 2>conftest.er1
12248 grep -v '^ *+' conftest.er1
>conftest.err
12250 cat conftest.err
>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } && {
12253 test -z "$ac_c_werror_flag" ||
12254 test ! -s conftest.err
12255 } && test -s conftest
$ac_exeext &&
12256 $as_test_x conftest
$ac_exeext; then
12257 ac_cv_lib_Xp_XpCreateContext
=yes
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.
$ac_ext >&5
12262 ac_cv_lib_Xp_XpCreateContext
=no
12265 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12266 conftest
$ac_exeext conftest.
$ac_ext
12267 LIBS
=$ac_check_lib_save_LIBS
12269 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12270 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12271 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12275 if test ${HAVE_LIBXP} = yes; then
12277 cat >>confdefs.h
<<\_ACEOF
12278 #define HAVE_LIBXP 1
12283 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12284 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12285 if test "${emacs_cv_lesstif+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 # We put this in CFLAGS temporarily to precede other -I options
12289 # that might be in CFLAGS temporarily.
12290 # We put this in CPPFLAGS where it precedes the other -I options.
12291 OLD_CPPFLAGS
=$CPPFLAGS
12293 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12294 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12295 cat >conftest.
$ac_ext <<_ACEOF
12298 cat confdefs.h
>>conftest.
$ac_ext
12299 cat >>conftest.
$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12310 rm -f conftest.
$ac_objext
12311 if { (ac_try
="$ac_compile"
12312 case "(($ac_try" in
12313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_compile") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && {
12324 test -z "$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 } && test -s conftest.$ac_objext; then
12327 emacs_cv_lesstif=yes
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 emacs_cv_lesstif=no
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12338 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12339 if test $emacs_cv_lesstif = yes; then
12340 # Make sure this -I option remains in CPPFLAGS after it is set
12341 # back to REAL_CPPFLAGS.
12342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12343 # have those other -I options anyway. Ultimately, having this
12344 # directory ultimately in CPPFLAGS will be enough.
12345 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12346 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12349 CPPFLAGS=$OLD_CPPFLAGS
12354 ### Is -lXaw3d available?
12356 if test "${HAVE_X11}" = "yes"; then
12357 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12358 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12359 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12360 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 #include <X11/Xaw3d/Scrollbar.h>
12371 if { (ac_try="$ac_cpp conftest.$ac_ext"
12372 case "(($ac_try" in
12373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12374 *) ac_try_echo
=$ac_try;;
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12379 grep -v '^ *+' conftest.er1
>conftest.err
12381 cat conftest.err
>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } >/dev
/null
&& {
12384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12385 test ! -s conftest.err
12387 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.
$ac_ext >&5
12392 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12395 rm -f conftest.err conftest.
$ac_ext
12397 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12398 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12399 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12400 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12401 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12402 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 ac_check_lib_save_LIBS
=$LIBS
12406 LIBS
="-lXaw3d $LIBS"
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12414 /* Override any GCC internal prototype to avoid an error.
12415 Use char because int might match the return type of a GCC
12416 builtin and then its argument prototype would still apply. */
12420 char XawScrollbarSetThumb ();
12424 return XawScrollbarSetThumb ();
12429 rm -f conftest.
$ac_objext conftest
$ac_exeext
12430 if { (ac_try
="$ac_link"
12431 case "(($ac_try" in
12432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_link") 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && {
12443 test -z "$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest$ac_exeext &&
12446 $as_test_x conftest$ac_exeext; then
12447 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12452 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12459 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12460 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12461 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12468 if test "${HAVE_XAW3D}" = "yes"; then
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_XAW3D 1
12480 USE_TOOLKIT_SCROLL_BARS=no
12481 if test "${with_toolkit_scroll_bars}" != "no"; then
12482 if test "${USE_X_TOOLKIT}" != "none"; then
12483 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12484 cat >>confdefs.h <<\_ACEOF
12485 #define USE_TOOLKIT_SCROLL_BARS 1
12489 USE_TOOLKIT_SCROLL_BARS=yes
12490 elif test "${HAVE_XAW3D}" = "yes"; then
12491 cat >>confdefs.h <<\_ACEOF
12492 #define USE_TOOLKIT_SCROLL_BARS 1
12495 USE_TOOLKIT_SCROLL_BARS=yes
12497 elif test "${HAVE_GTK}" = "yes"; then
12498 cat >>confdefs.h <<\_ACEOF
12499 #define USE_TOOLKIT_SCROLL_BARS 1
12502 USE_TOOLKIT_SCROLL_BARS=yes
12503 elif test "${HAVE_CARBON}" = "yes"; then
12504 cat >>confdefs.h <<\_ACEOF
12505 #define USE_TOOLKIT_SCROLL_BARS 1
12508 USE_TOOLKIT_SCROLL_BARS=yes
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 #include <X11/Xlib.h>
12520 #include <X11/Xresource.h>
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12533 *) ac_try_echo
=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1
>conftest.err
12540 cat conftest.err
>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest.
$ac_objext; then
12548 cat >>confdefs.h
<<\_ACEOF
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.
$ac_ext >&5
12559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12562 if test "${with_xim}" != "no"; then
12564 cat >>confdefs.h
<<\_ACEOF
12571 if test "${HAVE_XIM}" != "no"; then
12572 late_CFLAGS
=$CFLAGS
12573 if test "$GCC" = yes; then
12574 CFLAGS
="$CFLAGS --pedantic-errors"
12576 cat >conftest.
$ac_ext <<_ACEOF
12579 cat confdefs.h
>>conftest.
$ac_ext
12580 cat >>conftest.
$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12583 #include <X11/Xlib.h>
12584 #include <X11/Xresource.h>
12593 XPointer *client_data;
12595 /* If we're not using GCC, it's probably not XFree86, and this is
12596 probably right, but we can't use something like --pedantic-errors. */
12597 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12598 char*, XIMProc, XPointer*);
12600 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12606 rm -f conftest.
$ac_objext
12607 if { (ac_try
="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compile") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest.$ac_objext; then
12623 emacs_cv_arg6_star=yes
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 if test "$emacs_cv_arg6_star" = yes; then
12634 cat >>confdefs.h <<\_ACEOF
12635 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12639 cat >>confdefs.h <<\_ACEOF
12640 #define XRegisterIMInstantiateCallback_arg6 XPointer
12644 CFLAGS=$late_CFLAGS
12647 ### Use -lXpm if available, unless `--with-xpm=no
'.
12649 if test "${HAVE_X11}" = "yes"; then
12650 if test "${with_xpm}" != "no"; then
12651 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12652 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12653 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12654 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12658 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12660 # Is the header compilable?
12661 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12662 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 $ac_includes_default
12670 #include <X11/xpm.h>
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_compile") 2>conftest.er1
12681 grep -v '^
*+' conftest.er1 >conftest.err
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest.$ac_objext; then
12689 ac_header_compiler=yes
12691 echo "$as_me: failed program was:" >&5
12692 sed 's
/^
/|
/' conftest.$ac_ext >&5
12694 ac_header_compiler=no
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12699 echo "${ECHO_T}$ac_header_compiler" >&6; }
12701 # Is the header present?
12702 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12703 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12704 cat >conftest.$ac_ext <<_ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12710 #include <X11/xpm.h>
12712 if { (ac_try="$ac_cpp conftest.$ac_ext"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12720 grep -v '^
*+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } >/dev/null && {
12725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12728 ac_header_preproc=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's
/^
/|
/' conftest.$ac_ext >&5
12733 ac_header_preproc=no
12736 rm -f conftest.err conftest.$ac_ext
12737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12738 echo "${ECHO_T}$ac_header_preproc" >&6; }
12740 # So? What about this header?
12741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12743 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12744 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
12746 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
12747 ac_header_preproc=yes
12750 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12751 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12753 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12755 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12757 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
12759 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12761 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12765 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12766 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12767 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 ac_cv_header_X11_xpm_h=$ac_header_preproc
12772 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12773 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12776 if test $ac_cv_header_X11_xpm_h = yes; then
12777 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12778 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12779 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lXpm -lX11 $LIBS"
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12797 char XpmReadFileToPixmap ();
12801 return XpmReadFileToPixmap ();
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_link") 2>conftest.er1
12815 grep -v '^
*+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest$ac_exeext &&
12823 $as_test_x conftest$ac_exeext; then
12824 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12826 echo "$as_me: failed program was:" >&5
12827 sed 's
/^
/|
/' conftest.$ac_ext >&5
12829 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12836 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12837 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12838 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12845 if test "${HAVE_XPM}" = "yes"; then
12846 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12847 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 #include "X11/xpm.h"
12855 #ifndef XpmReturnAllocPixels
12856 no_return_alloc_pixels
12860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12861 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12869 if test "${HAVE_XPM}" = "yes"; then
12870 { echo "$as_me:$LINENO: result: yes" >&5
12871 echo "${ECHO_T}yes" >&6; }
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12879 if test "${HAVE_XPM}" = "yes"; then
12881 cat >>confdefs.h <<\_ACEOF
12888 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12890 if test "${HAVE_X11}" = "yes"; then
12891 if test "${with_jpeg}" != "no"; then
12892 if test "${ac_cv_header_jerror_h+set}" = set; then
12893 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12894 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12895 if test "${ac_cv_header_jerror_h+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12899 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12901 # Is the header compilable?
12902 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12903 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12904 cat >conftest.
$ac_ext <<_ACEOF
12907 cat confdefs.h
>>conftest.
$ac_ext
12908 cat >>conftest.
$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 #include <jerror.h>
12913 rm -f conftest.
$ac_objext
12914 if { (ac_try
="$ac_compile"
12915 case "(($ac_try" in
12916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_compile") 2>conftest.er1
12922 grep -v '^ *+' conftest.er1 >conftest.err
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && {
12927 test -z "$ac_c_werror_flag" ||
12928 test ! -s conftest.err
12929 } && test -s conftest.$ac_objext; then
12930 ac_header_compiler=yes
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_header_compiler=no
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12940 echo "${ECHO_T}$ac_header_compiler" >&6; }
12942 # Is the header present?
12943 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12944 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 #include <jerror.h>
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12956 *) ac_try_echo
=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12961 grep -v '^ *+' conftest.er1
>conftest.err
12963 cat conftest.err
>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } >/dev
/null
&& {
12966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12969 ac_header_preproc
=yes
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.
$ac_ext >&5
12974 ac_header_preproc
=no
12977 rm -f conftest.err conftest.
$ac_ext
12978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12979 echo "${ECHO_T}$ac_header_preproc" >&6; }
12981 # So? What about this header?
12982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12984 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12985 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12987 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12988 ac_header_preproc
=yes
12991 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12992 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12994 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12996 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12998 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13000 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13001 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13002 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13006 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13007 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13008 if test "${ac_cv_header_jerror_h+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 ac_cv_header_jerror_h
=$ac_header_preproc
13013 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13014 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13017 if test $ac_cv_header_jerror_h = yes; then
13018 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13019 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13020 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 ac_check_lib_save_LIBS
=$LIBS
13024 LIBS
="-ljpeg $LIBS"
13025 cat >conftest.
$ac_ext <<_ACEOF
13028 cat confdefs.h
>>conftest.
$ac_ext
13029 cat >>conftest.
$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13038 char jpeg_destroy_compress ();
13042 return jpeg_destroy_compress ();
13047 rm -f conftest.
$ac_objext conftest
$ac_exeext
13048 if { (ac_try
="$ac_link"
13049 case "(($ac_try" in
13050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_link") 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } && {
13061 test -z "$ac_c_werror_flag" ||
13062 test ! -s conftest.err
13063 } && test -s conftest$ac_exeext &&
13064 $as_test_x conftest$ac_exeext; then
13065 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13074 conftest$ac_exeext conftest.$ac_ext
13075 LIBS=$ac_check_lib_save_LIBS
13077 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13078 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13079 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13089 if test "${HAVE_JPEG}" = "yes"; then
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_JPEG 1
13094 cat >conftest.$ac_ext <<_ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 #include <jpeglib.h>
13101 version=JPEG_LIB_VERSION
13104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13105 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_JPEG 1
13111 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13112 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13120 ### Use -lpng if available, unless `--with-png=no
'.
13122 if test "${HAVE_X11}" = "yes"; then
13123 if test "${with_png}" != "no"; then
13124 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13125 # in /usr/include/libpng.
13128 for ac_header in png.h libpng/png.h
13130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_res=`eval echo '${'$as_ac_Header'}'`
13138 { echo "$as_me:$LINENO: result: $ac_res" >&5
13139 echo "${ECHO_T}$ac_res" >&6; }
13141 # Is the header compilable?
13142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13144 cat >conftest.$ac_ext <<_ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13150 $ac_includes_default
13151 #include <$ac_header>
13153 rm -f conftest.$ac_objext
13154 if { (ac_try="$ac_compile"
13155 case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_compile") 2>conftest.er1
13162 grep -v '^
*+' conftest.er1 >conftest.err
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } && {
13167 test -z "$ac_c_werror_flag" ||
13168 test ! -s conftest.err
13169 } && test -s conftest.$ac_objext; then
13170 ac_header_compiler=yes
13172 echo "$as_me: failed program was:" >&5
13173 sed 's
/^
/|
/' conftest.$ac_ext >&5
13175 ac_header_compiler=no
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13180 echo "${ECHO_T}$ac_header_compiler" >&6; }
13182 # Is the header present?
13183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13185 cat >conftest.$ac_ext <<_ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <$ac_header>
13193 if { (ac_try="$ac_cpp conftest.$ac_ext"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13201 grep -v '^
*+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } >/dev/null && {
13206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13209 ac_header_preproc=yes
13211 echo "$as_me: failed program was:" >&5
13212 sed 's
/^
/|
/' conftest.$ac_ext >&5
13214 ac_header_preproc=no
13217 rm -f conftest.err conftest.$ac_ext
13218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 echo "${ECHO_T}$ac_header_preproc" >&6; }
13221 # So? What about this header?
13222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13227 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13228 ac_header_preproc=yes
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13240 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 eval "$as_ac_Header=\$ac_header_preproc"
13253 ac_res=`eval echo '${'$as_ac_Header'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13267 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13268 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13269 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13270 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_check_lib_save_LIBS=$LIBS
13274 LIBS="-lpng -lz -lm $LIBS"
13275 cat >conftest.$ac_ext <<_ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13282 /* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply. */
13288 char png_get_channels ();
13292 return png_get_channels ();
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (ac_try="$ac_link"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_link") 2>conftest.er1
13306 grep -v '^
*+' conftest.er1 >conftest.err
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest$ac_exeext &&
13314 $as_test_x conftest$ac_exeext; then
13315 ac_cv_lib_png_png_get_channels=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's
/^
/|
/' conftest.$ac_ext >&5
13320 ac_cv_lib_png_png_get_channels=no
13323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13324 conftest$ac_exeext conftest.$ac_ext
13325 LIBS=$ac_check_lib_save_LIBS
13327 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13328 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13329 if test $ac_cv_lib_png_png_get_channels = yes; then
13336 if test "${HAVE_PNG}" = "yes"; then
13338 cat >>confdefs.h <<\_ACEOF
13345 ### Use -ltiff if available, unless `--with-tiff=no'.
13347 if test "${HAVE_X11}" = "yes"; then
13348 if test "${with_tiff}" != "no"; then
13349 if test "${ac_cv_header_tiffio_h+set}" = set; then
13350 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13351 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13352 if test "${ac_cv_header_tiffio_h+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13356 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13358 # Is the header compilable?
13359 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13360 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13361 cat >conftest.
$ac_ext <<_ACEOF
13364 cat confdefs.h
>>conftest.
$ac_ext
13365 cat >>conftest.
$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13367 $ac_includes_default
13368 #include <tiffio.h>
13370 rm -f conftest.
$ac_objext
13371 if { (ac_try
="$ac_compile"
13372 case "(($ac_try" in
13373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest.$ac_objext; then
13387 ac_header_compiler=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_header_compiler=no
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13397 echo "${ECHO_T}$ac_header_compiler" >&6; }
13399 # Is the header present?
13400 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13401 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 #include <tiffio.h>
13410 if { (ac_try="$ac_cpp conftest.$ac_ext"
13411 case "(($ac_try" in
13412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13413 *) ac_try_echo
=$ac_try;;
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13418 grep -v '^ *+' conftest.er1
>conftest.err
13420 cat conftest.err
>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } >/dev
/null
&& {
13423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13426 ac_header_preproc
=yes
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.
$ac_ext >&5
13431 ac_header_preproc
=no
13434 rm -f conftest.err conftest.
$ac_ext
13435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13436 echo "${ECHO_T}$ac_header_preproc" >&6; }
13438 # So? What about this header?
13439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13441 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13442 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13444 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13445 ac_header_preproc
=yes
13448 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13449 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13451 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13453 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13455 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13457 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13459 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13463 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13464 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13465 if test "${ac_cv_header_tiffio_h+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 ac_cv_header_tiffio_h
=$ac_header_preproc
13470 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13471 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13474 if test $ac_cv_header_tiffio_h = yes; then
13476 # At least one tiff package requires the jpeg library.
13477 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13478 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13479 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13480 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 ac_check_lib_save_LIBS
=$LIBS
13484 LIBS
="-ltiff $tifflibs $LIBS"
13485 cat >conftest.
$ac_ext <<_ACEOF
13488 cat confdefs.h
>>conftest.
$ac_ext
13489 cat >>conftest.
$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13498 char TIFFGetVersion ();
13502 return TIFFGetVersion ();
13507 rm -f conftest.
$ac_objext conftest
$ac_exeext
13508 if { (ac_try
="$ac_link"
13509 case "(($ac_try" in
13510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_link") 2>conftest.er1
13516 grep -v '^ *+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest$ac_exeext &&
13524 $as_test_x conftest$ac_exeext; then
13525 ac_cv_lib_tiff_TIFFGetVersion=yes
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 ac_cv_lib_tiff_TIFFGetVersion=no
13533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13534 conftest$ac_exeext conftest.$ac_ext
13535 LIBS=$ac_check_lib_save_LIBS
13537 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13538 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13539 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13548 if test "${HAVE_TIFF}" = "yes"; then
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_TIFF 1
13557 ### Use -lgif if available, unless `--with-gif=no
'.
13559 if test "${HAVE_X11}" = "yes"; then
13560 if test "${with_gif}" != "no"; then
13561 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13562 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13563 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13564 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13568 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13570 # Is the header compilable?
13571 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13572 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13573 cat >conftest.$ac_ext <<_ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 $ac_includes_default
13580 #include <gif_lib.h>
13582 rm -f conftest.$ac_objext
13583 if { (ac_try="$ac_compile"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_compile") 2>conftest.er1
13591 grep -v '^
*+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } && {
13596 test -z "$ac_c_werror_flag" ||
13597 test ! -s conftest.err
13598 } && test -s conftest.$ac_objext; then
13599 ac_header_compiler=yes
13601 echo "$as_me: failed program was:" >&5
13602 sed 's
/^
/|
/' conftest.$ac_ext >&5
13604 ac_header_compiler=no
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13609 echo "${ECHO_T}$ac_header_compiler" >&6; }
13611 # Is the header present?
13612 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13613 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 #include <gif_lib.h>
13622 if { (ac_try="$ac_cpp conftest.$ac_ext"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13630 grep -v '^
*+' conftest.er1 >conftest.err
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } >/dev/null && {
13635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13636 test ! -s conftest.err
13638 ac_header_preproc=yes
13640 echo "$as_me: failed program was:" >&5
13641 sed 's
/^
/|
/' conftest.$ac_ext >&5
13643 ac_header_preproc=no
13646 rm -f conftest.err conftest.$ac_ext
13647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13648 echo "${ECHO_T}$ac_header_preproc" >&6; }
13650 # So? What about this header?
13651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13654 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
13656 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
13657 ac_header_preproc=yes
13660 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13661 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13663 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13665 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13667 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
13669 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13671 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13675 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13676 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13677 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 ac_cv_header_gif_lib_h=$ac_header_preproc
13682 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13683 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13686 if test $ac_cv_header_gif_lib_h = yes; then
13687 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13688 # Earlier versions can crash Emacs.
13689 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13690 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13691 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lungif $LIBS"
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13709 char EGifPutExtensionLast ();
13713 return EGifPutExtensionLast ();
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_link") 2>conftest.er1
13727 grep -v '^
*+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest$ac_exeext &&
13735 $as_test_x conftest$ac_exeext; then
13736 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13738 echo "$as_me: failed program was:" >&5
13739 sed 's
/^
/|
/' conftest.$ac_ext >&5
13741 ac_cv_lib_ungif_EGifPutExtensionLast=no
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13748 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13749 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13750 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13759 if test "${HAVE_GIF}" = "yes"; then
13761 cat >>confdefs.h <<\_ACEOF
13768 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13769 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13770 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13771 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13775 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13777 # Is the header compilable?
13778 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13779 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13780 cat >conftest.$ac_ext <<_ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13787 #include <malloc/malloc.h>
13789 rm -f conftest.$ac_objext
13790 if { (ac_try="$ac_compile"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_compile") 2>conftest.er1
13798 grep -v '^
*+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest.$ac_objext; then
13806 ac_header_compiler=yes
13808 echo "$as_me: failed program was:" >&5
13809 sed 's
/^
/|
/' conftest.$ac_ext >&5
13811 ac_header_compiler=no
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13816 echo "${ECHO_T}$ac_header_compiler" >&6; }
13818 # Is the header present?
13819 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13820 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <malloc/malloc.h>
13829 if { (ac_try="$ac_cpp conftest.$ac_ext"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13837 grep -v '^
*+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } >/dev/null && {
13842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13843 test ! -s conftest.err
13845 ac_header_preproc=yes
13847 echo "$as_me: failed program was:" >&5
13848 sed 's
/^
/|
/' conftest.$ac_ext >&5
13850 ac_header_preproc=no
13853 rm -f conftest.err conftest.$ac_ext
13854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13855 echo "${ECHO_T}$ac_header_preproc" >&6; }
13857 # So? What about this header?
13858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13860 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13861 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
13863 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
13864 ac_header_preproc=yes
13867 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13868 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13870 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13872 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13874 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
13876 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13878 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13882 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13883 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13889 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13890 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13893 if test $ac_cv_header_malloc_malloc_h = yes; then
13895 cat >>confdefs.h <<\_ACEOF
13896 #define HAVE_MALLOC_MALLOC_H 1
13903 ### Use Mac OS X Carbon API to implement GUI.
13904 if test "${HAVE_CARBON}" = "yes"; then
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_CARBON 1
13910 ## Specify the install directory
13912 if test "${carbon_appdir_x}" != ""; then
13913 case ${carbon_appdir_x} in
13914 y | ye | yes) carbon_appdir=/Applications ;;
13915 * ) carbon_appdir=${carbon_appdir_x} ;;
13918 # We also have mouse menus.
13922 ### Use session management (-lSM -lICE) if available
13924 if test "${HAVE_X11}" = "yes"; then
13925 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13926 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13927 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13936 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <X11/SM/SMlib.h>
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13955 grep -v '^
*+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's
/^
/|
/' conftest.$ac_ext >&5
13968 ac_header_compiler=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13977 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <X11/SM/SMlib.h>
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 grep -v '^
*+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null && {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14002 ac_header_preproc=yes
14004 echo "$as_me: failed program was:" >&5
14005 sed 's
/^
/|
/' conftest.$ac_ext >&5
14007 ac_header_preproc=no
14010 rm -f conftest.err conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
14020 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
14021 ac_header_preproc=yes
14024 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
14033 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14039 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14040 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14041 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14050 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14051 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14052 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14053 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-lSM -lICE $LIBS"
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14065 /* Override any GCC internal prototype to avoid an error.
14066 Use char because int might match the return type of a GCC
14067 builtin and then its argument prototype would still apply. */
14071 char SmcOpenConnection ();
14075 return SmcOpenConnection ();
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (ac_try="$ac_link"
14082 case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_link") 2>conftest.er1
14089 grep -v '^
*+' conftest.er1 >conftest.err
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } && {
14094 test -z "$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 } && test -s conftest$ac_exeext &&
14097 $as_test_x conftest$ac_exeext; then
14098 ac_cv_lib_SM_SmcOpenConnection=yes
14100 echo "$as_me: failed program was:" >&5
14101 sed 's
/^
/|
/' conftest.$ac_ext >&5
14103 ac_cv_lib_SM_SmcOpenConnection=no
14106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14107 conftest$ac_exeext conftest.$ac_ext
14108 LIBS=$ac_check_lib_save_LIBS
14110 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14111 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14112 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14120 if test "${HAVE_X_SM}" = "yes"; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_X_SM 1
14128 *) LIBS="-lSM -lICE $LIBS" ;;
14133 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
14134 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14135 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14136 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 cat >conftest.
$ac_ext <<_ACEOF
14142 cat confdefs.h
>>conftest.
$ac_ext
14143 cat >>conftest.
$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14154 rm -f conftest.
$ac_objext conftest
$ac_exeext
14155 if { (ac_try
="$ac_link"
14156 case "(($ac_try" in
14157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_link") 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && {
14168 test -z "$ac_c_werror_flag" ||
14169 test ! -s conftest.err
14170 } && test -s conftest$ac_exeext &&
14171 $as_test_x conftest$ac_exeext; then
14172 emacs_cv_netdb_declares_h_errno=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 emacs_cv_netdb_declares_h_errno=no
14180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14181 conftest$ac_exeext conftest.$ac_ext
14183 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14184 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14185 if test $emacs_cv_netdb_declares_h_errno = yes; then
14187 cat >>confdefs.h <<\_ACEOF
14188 #define HAVE_H_ERRNO 1
14193 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14194 # for constant arguments. Useless!
14195 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14196 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14197 if test "${ac_cv_working_alloca_h+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <alloca.h>
14210 char *p = (char *) alloca (2 * sizeof (int));
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (ac_try="$ac_link"
14218 case "(($ac_try" in
14219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14220 *) ac_try_echo
=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_link") 2>conftest.er1
14225 grep -v '^ *+' conftest.er1
>conftest.err
14227 cat conftest.err
>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest
$ac_exeext &&
14233 $as_test_x conftest
$ac_exeext; then
14234 ac_cv_working_alloca_h
=yes
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.
$ac_ext >&5
14239 ac_cv_working_alloca_h
=no
14242 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14243 conftest
$ac_exeext conftest.
$ac_ext
14245 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14246 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14247 if test $ac_cv_working_alloca_h = yes; then
14249 cat >>confdefs.h
<<\_ACEOF
14250 #define HAVE_ALLOCA_H 1
14255 { echo "$as_me:$LINENO: checking for alloca" >&5
14256 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14257 if test "${ac_cv_func_alloca_works+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 cat >conftest.
$ac_ext <<_ACEOF
14263 cat confdefs.h
>>conftest.
$ac_ext
14264 cat >>conftest.
$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14267 # define alloca __builtin_alloca
14270 # include <malloc.h>
14271 # define alloca _alloca
14273 # ifdef HAVE_ALLOCA_H
14274 # include <alloca.h>
14279 # ifndef alloca /* predefined by HP cc +Olibcalls */
14290 char *p = (char *) alloca (1);
14296 rm -f conftest.
$ac_objext conftest
$ac_exeext
14297 if { (ac_try
="$ac_link"
14298 case "(($ac_try" in
14299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_link") 2>conftest.er1
14305 grep -v '^ *+' conftest.er1 >conftest.err
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && {
14310 test -z "$ac_c_werror_flag" ||
14311 test ! -s conftest.err
14312 } && test -s conftest$ac_exeext &&
14313 $as_test_x conftest$ac_exeext; then
14314 ac_cv_func_alloca_works=yes
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_cv_func_alloca_works=no
14322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14323 conftest$ac_exeext conftest.$ac_ext
14325 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14326 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14328 if test $ac_cv_func_alloca_works = yes; then
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_ALLOCA 1
14335 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14336 # that cause trouble. Some versions do not even contain alloca or
14337 # contain a buggy version. If you still want to use their alloca,
14338 # use ar to extract alloca.o from them instead of compiling alloca.c.
14340 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14342 cat >>confdefs.h <<\_ACEOF
14347 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14348 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14349 if test "${ac_cv_os_cray+set}" = set; then
14350 echo $ECHO_N "(cached
) $ECHO_C" >&6
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 #if defined CRAY && ! defined CRAY2
14365 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14366 $EGREP "webecray
" >/dev/null 2>&1; then
14374 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14375 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14376 if test $ac_cv_os_cray = yes; then
14377 for ac_func in _getb67 GETB67 getb67; do
14378 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14379 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14380 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14381 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14382 echo $ECHO_N "(cached
) $ECHO_C" >&6
14384 cat >conftest.$ac_ext <<_ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14392 #define $ac_func innocuous_$ac_func
14394 /* System header to define __stub macros and hopefully few prototypes,
14395 which can conflict with char $ac_func (); below.
14396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14397 <limits.h> exists even on freestanding compilers. */
14400 # include <limits.h>
14402 # include <assert.h>
14407 /* Override any GCC internal prototype to avoid an error.
14408 Use char because int might match the return type of a GCC
14409 builtin and then its argument prototype would still apply. */
14414 /* The GNU C library defines this for functions which it implements
14415 to always fail with ENOSYS. Some functions are actually named
14416 something starting with __ and the normal name is an alias. */
14417 #if defined __stub_$ac_func || defined __stub___$ac_func
14424 return $ac_func ();
14429 rm -f conftest.$ac_objext conftest$ac_exeext
14430 if { (ac_try="$ac_link"
14431 case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_link") 2>conftest.er1
14438 grep -v '^ *+' conftest.er1 >conftest.err
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14442 (exit $ac_status); } && {
14443 test -z "$ac_c_werror_flag" ||
14444 test ! -s conftest.err
14445 } && test -s conftest$ac_exeext &&
14446 $as_test_x conftest$ac_exeext; then
14447 eval "$as_ac_var=yes"
14449 echo "$as_me: failed program was
:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 eval "$as_ac_var=no
"
14455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14456 conftest$ac_exeext conftest.$ac_ext
14458 ac_res=`eval echo '${'$as_ac_var'}'`
14459 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14460 echo "${ECHO_T}$ac_res" >&6; }
14461 if test `eval echo '${'$as_ac_var'}'` = yes; then
14463 cat >>confdefs.h <<_ACEOF
14464 #define CRAY_STACKSEG_END $ac_func
14473 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14474 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14475 if test "${ac_cv_c_stack_direction+set}" = set; then
14476 echo $ECHO_N "(cached
) $ECHO_C" >&6
14478 if test "$cross_compiling" = yes; then
14479 ac_cv_c_stack_direction=0
14481 cat >conftest.$ac_ext <<_ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 $ac_includes_default
14489 find_stack_direction ()
14491 static char *addr = 0;
14496 return find_stack_direction ();
14499 return (&dummy > addr) ? 1 : -1;
14505 return find_stack_direction () < 0;
14508 rm -f conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>&5
14517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14519 { (case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_try") 2>&5
14526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_c_stack_direction=1
14530 echo "$as_me: program exited with status
$ac_status" >&5
14531 echo "$as_me: failed program was
:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ( exit $ac_status )
14535 ac_cv_c_stack_direction=-1
14537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14543 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14545 cat >>confdefs.h <<_ACEOF
14546 #define STACK_DIRECTION $ac_cv_c_stack_direction
14553 # fmod, logb, and frexp are found in -lm on most systems.
14554 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14556 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14557 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14558 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14559 echo $ECHO_N "(cached
) $ECHO_C" >&6
14561 ac_check_lib_save_LIBS=$LIBS
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14570 /* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_link") 2>conftest.er1
14594 grep -v '^ *+' conftest.er1 >conftest.err
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest$ac_exeext &&
14602 $as_test_x conftest$ac_exeext; then
14603 ac_cv_lib_m_sqrt=yes
14605 echo "$as_me: failed program was
:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_cv_lib_m_sqrt=no
14611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14612 conftest$ac_exeext conftest.$ac_ext
14613 LIBS=$ac_check_lib_save_LIBS
14615 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14616 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14617 if test $ac_cv_lib_m_sqrt = yes; then
14618 cat >>confdefs.h <<_ACEOF
14619 #define HAVE_LIBM 1
14627 # Check for mail-locking functions in a "mail" library. Probably this should
14628 # have the same check as for liblockfile below.
14630 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14631 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14632 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14633 echo $ECHO_N "(cached
) $ECHO_C" >&6
14635 ac_check_lib_save_LIBS=$LIBS
14636 LIBS="-lmail $LIBS"
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14644 /* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14654 return maillock ();
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (ac_try="$ac_link"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_link") 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest$ac_exeext &&
14676 $as_test_x conftest$ac_exeext; then
14677 ac_cv_lib_mail_maillock=yes
14679 echo "$as_me: failed program was
:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_cv_lib_mail_maillock=no
14685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14689 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14690 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14691 if test $ac_cv_lib_mail_maillock = yes; then
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_LIBMAIL 1
14696 LIBS="-lmail $LIBS"
14701 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14702 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14703 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14704 echo $ECHO_N "(cached
) $ECHO_C" >&6
14706 ac_check_lib_save_LIBS=$LIBS
14707 LIBS="-llockfile $LIBS"
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14715 /* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14725 return maillock ();
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (ac_try="$ac_link"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest$ac_exeext &&
14747 $as_test_x conftest$ac_exeext; then
14748 ac_cv_lib_lockfile_maillock=yes
14750 echo "$as_me: failed program was
:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_cv_lib_lockfile_maillock=no
14756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14757 conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14760 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14761 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14762 if test $ac_cv_lib_lockfile_maillock = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_LIBLOCKFILE 1
14767 LIBS="-llockfile $LIBS"
14771 # If we have the shared liblockfile, assume we must use it for mail
14772 # locking (e.g. Debian). If we couldn't link against liblockfile
14773 # (no liblockfile.a installed), ensure that we don't need to.
14774 if test "$ac_cv_lib_lockfile_maillock" = no; then
14775 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14776 set dummy liblockfile.so; ac_word=$2
14777 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14778 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14779 if test "${ac_cv_prog_liblockfile+set}" = set; then
14780 echo $ECHO_N "(cached
) $ECHO_C" >&6
14782 if test -n "$liblockfile"; then
14783 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14787 for as_dir in $as_dummy
14790 test -z "$as_dir" && as_dir=.
14791 for ac_exec_ext in '' $ac_executable_extensions; do
14792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14793 ac_cv_prog_liblockfile="yes"
14794 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14801 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14804 liblockfile=$ac_cv_prog_liblockfile
14805 if test -n "$liblockfile"; then
14806 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14807 echo "${ECHO_T}$liblockfile" >&6; }
14809 { echo "$as_me:$LINENO: result
: no
" >&5
14810 echo "${ECHO_T}no
" >&6; }
14814 if test $ac_cv_prog_liblockfile = yes; then
14815 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14816 This probably means that movemail could lose mail.
14817 There may be a \`development' package to
install containing liblockfile.
" >&5
14818 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14819 This probably means that movemail could lose mail.
14820 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14821 { (exit 1); exit 1; }; }
14826 for ac_func in touchlock
14828 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14829 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14830 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14831 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14832 echo $ECHO_N "(cached
) $ECHO_C" >&6
14834 cat >conftest.$ac_ext <<_ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14842 #define $ac_func innocuous_$ac_func
14844 /* System header to define __stub macros and hopefully few prototypes,
14845 which can conflict with char $ac_func (); below.
14846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14847 <limits.h> exists even on freestanding compilers. */
14850 # include <limits.h>
14852 # include <assert.h>
14857 /* Override any GCC internal prototype to avoid an error.
14858 Use char because int might match the return type of a GCC
14859 builtin and then its argument prototype would still apply. */
14864 /* The GNU C library defines this for functions which it implements
14865 to always fail with ENOSYS. Some functions are actually named
14866 something starting with __ and the normal name is an alias. */
14867 #if defined __stub_$ac_func || defined __stub___$ac_func
14874 return $ac_func ();
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (ac_try="$ac_link"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_link") 2>conftest.er1
14888 grep -v '^ *+' conftest.er1 >conftest.err
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest$ac_exeext &&
14896 $as_test_x conftest$ac_exeext; then
14897 eval "$as_ac_var=yes"
14899 echo "$as_me: failed program was
:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 eval "$as_ac_var=no
"
14905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14906 conftest$ac_exeext conftest.$ac_ext
14908 ac_res=`eval echo '${'$as_ac_var'}'`
14909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14910 echo "${ECHO_T}$ac_res" >&6; }
14911 if test `eval echo '${'$as_ac_var'}'` = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14920 for ac_header in maillock.h
14922 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14923 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14924 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14925 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14926 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14927 echo $ECHO_N "(cached
) $ECHO_C" >&6
14929 ac_res=`eval echo '${'$as_ac_Header'}'`
14930 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14931 echo "${ECHO_T}$ac_res" >&6; }
14933 # Is the header compilable?
14934 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14935 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 $ac_includes_default
14943 #include <$ac_header>
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14954 grep -v '^ *+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14958 (exit $ac_status); } && {
14959 test -z "$ac_c_werror_flag" ||
14960 test ! -s conftest.err
14961 } && test -s conftest.$ac_objext; then
14962 ac_header_compiler=yes
14964 echo "$as_me: failed program was
:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 ac_header_compiler=no
14970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14972 echo "${ECHO_T}$ac_header_compiler" >&6; }
14974 # Is the header present?
14975 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14976 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 #include <$ac_header>
14985 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14997 (exit $ac_status); } >/dev/null && {
14998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15001 ac_header_preproc=yes
15003 echo "$as_me: failed program was
:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_preproc=no
15009 rm -f conftest.err conftest.$ac_ext
15010 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15011 echo "${ECHO_T}$ac_header_preproc" >&6; }
15013 # So? What about this header?
15014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15016 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15017 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15018 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15020 ac_header_preproc=yes
15023 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15024 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15025 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15026 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15027 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15028 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15029 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15030 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15031 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15033 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15034 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15038 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15039 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15040 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15041 echo $ECHO_N "(cached
) $ECHO_C" >&6
15043 eval "$as_ac_Header=\
$ac_header_preproc"
15045 ac_res=`eval echo '${'$as_ac_Header'}'`
15046 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15129 for ac_func in gethostname getdomainname dup2 \
15130 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15131 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15132 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15133 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15134 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15135 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15136 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15137 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15139 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15140 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15141 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15142 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15143 echo $ECHO_N "(cached
) $ECHO_C" >&6
15145 cat >conftest.$ac_ext <<_ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15153 #define $ac_func innocuous_$ac_func
15155 /* System header to define __stub macros and hopefully few prototypes,
15156 which can conflict with char $ac_func (); below.
15157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15158 <limits.h> exists even on freestanding compilers. */
15161 # include <limits.h>
15163 # include <assert.h>
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply. */
15175 /* The GNU C library defines this for functions which it implements
15176 to always fail with ENOSYS. Some functions are actually named
15177 something starting with __ and the normal name is an alias. */
15178 #if defined __stub_$ac_func || defined __stub___$ac_func
15185 return $ac_func ();
15190 rm -f conftest.$ac_objext conftest$ac_exeext
15191 if { (ac_try="$ac_link"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_link") 2>conftest.er1
15199 grep -v '^ *+' conftest.er1 >conftest.err
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15203 (exit $ac_status); } && {
15204 test -z "$ac_c_werror_flag" ||
15205 test ! -s conftest.err
15206 } && test -s conftest$ac_exeext &&
15207 $as_test_x conftest$ac_exeext; then
15208 eval "$as_ac_var=yes"
15210 echo "$as_me: failed program was
:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 eval "$as_ac_var=no
"
15216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15217 conftest$ac_exeext conftest.$ac_ext
15219 ac_res=`eval echo '${'$as_ac_var'}'`
15220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15222 if test `eval echo '${'$as_ac_var'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15232 for ac_header in sys/un.h
15234 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15239 echo $ECHO_N "(cached
) $ECHO_C" >&6
15241 ac_res=`eval echo '${'$as_ac_Header'}'`
15242 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15243 echo "${ECHO_T}$ac_res" >&6; }
15245 # Is the header compilable?
15246 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15247 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15255 #include <$ac_header>
15257 rm -f conftest.$ac_objext
15258 if { (ac_try="$ac_compile"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.$ac_objext; then
15274 ac_header_compiler=yes
15276 echo "$as_me: failed program was
:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_compiler=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15288 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <$ac_header>
15297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15309 (exit $ac_status); } >/dev/null && {
15310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15313 ac_header_preproc=yes
15315 echo "$as_me: failed program was
:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_header_preproc=no
15321 rm -f conftest.err conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15323 echo "${ECHO_T}$ac_header_preproc" >&6; }
15325 # So? What about this header?
15326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15328 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15329 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15330 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15332 ac_header_preproc=yes
15335 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15336 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15337 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15338 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15339 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15340 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15341 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15342 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15343 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15345 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15346 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15350 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15351 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15352 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15353 echo $ECHO_N "(cached
) $ECHO_C" >&6
15355 eval "$as_ac_Header=\
$ac_header_preproc"
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15363 cat >>confdefs.h <<_ACEOF
15364 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15376 for ac_header in $ac_header_list
15378 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15379 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15380 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15381 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15382 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15383 echo $ECHO_N "(cached
) $ECHO_C" >&6
15385 ac_res=`eval echo '${'$as_ac_Header'}'`
15386 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15387 echo "${ECHO_T}$ac_res" >&6; }
15389 # Is the header compilable?
15390 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15391 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15392 cat >conftest.$ac_ext <<_ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 $ac_includes_default
15399 #include <$ac_header>
15401 rm -f conftest.$ac_objext
15402 if { (ac_try="$ac_compile"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest.$ac_objext; then
15418 ac_header_compiler=yes
15420 echo "$as_me: failed program was
:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 ac_header_compiler=no
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15428 echo "${ECHO_T}$ac_header_compiler" >&6; }
15430 # Is the header present?
15431 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15432 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15433 cat >conftest.$ac_ext <<_ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 #include <$ac_header>
15441 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15453 (exit $ac_status); } >/dev/null && {
15454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15457 ac_header_preproc=yes
15459 echo "$as_me: failed program was
:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15462 ac_header_preproc=no
15465 rm -f conftest.err conftest.$ac_ext
15466 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15467 echo "${ECHO_T}$ac_header_preproc" >&6; }
15469 # So? What about this header?
15470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15472 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15473 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15474 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15476 ac_header_preproc=yes
15479 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15480 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15481 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15482 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15483 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15484 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15485 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15486 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15487 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15489 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15490 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15494 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15495 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15497 echo $ECHO_N "(cached
) $ECHO_C" >&6
15499 eval "$as_ac_Header=\
$ac_header_preproc"
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15523 for ac_func in $ac_func_list
15525 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15526 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15527 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15528 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached
) $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15547 # include <limits.h>
15549 # include <assert.h>
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15561 /* The GNU C library defines this for functions which it implements
15562 to always fail with ENOSYS. Some functions are actually named
15563 something starting with __ and the normal name is an alias. */
15564 #if defined __stub_$ac_func || defined __stub___$ac_func
15571 return $ac_func ();
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15585 grep -v '^ *+' conftest.er1 >conftest.err
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext &&
15593 $as_test_x conftest$ac_exeext; then
15594 eval "$as_ac_var=yes"
15596 echo "$as_me: failed program was
:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 eval "$as_ac_var=no
"
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15605 ac_res=`eval echo '${'$as_ac_var'}'`
15606 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15632 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15633 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15634 if test "${ac_cv_func_working_mktime+set}" = set; then
15635 echo $ECHO_N "(cached
) $ECHO_C" >&6
15637 if test "$cross_compiling" = yes; then
15638 ac_cv_func_working_mktime=no
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 /* Test program from Paul Eggert and Tony Leneis. */
15647 #ifdef TIME_WITH_SYS_TIME
15648 # include <sys/time.h>
15651 # ifdef HAVE_SYS_TIME_H
15652 # include <sys/time.h>
15658 #include <stdlib.h>
15660 #ifdef HAVE_UNISTD_H
15661 # include <unistd.h>
15665 # define alarm(X) /* empty */
15668 /* Work around redefinition to rpl_putenv by other config tests. */
15671 static time_t time_t_max;
15672 static time_t time_t_min;
15674 /* Values we'll use to set the TZ environment variable. */
15675 static char *tz_strings[] = {
15676 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15677 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15679 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15681 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15682 Based on a problem report from Andreas Jaeger. */
15684 spring_forward_gap ()
15686 /* glibc (up to about 1998-10-07) failed this test. */
15689 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15690 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15691 on systems that don't support the Olson extension, or don't have the
15692 full zoneinfo tables installed. */
15693 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15702 return mktime (&tm) != (time_t) -1;
15710 return ! (lt = localtime (&now)) || mktime (lt) == now;
15717 return (mktime_test1 (now)
15718 && mktime_test1 ((time_t) (time_t_max - now))
15719 && mktime_test1 ((time_t) (time_t_min + now)));
15725 /* Based on code from Ariel Faigon. */
15735 return tm.tm_mon == 2 && tm.tm_mday == 31;
15744 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15745 now = mktime (&tm);
15746 if (now != (time_t) -1)
15748 struct tm *lt = localtime (&now);
15750 && lt->tm_year == tm.tm_year
15751 && lt->tm_mon == tm.tm_mon
15752 && lt->tm_mday == tm.tm_mday
15753 && lt->tm_hour == tm.tm_hour
15754 && lt->tm_min == tm.tm_min
15755 && lt->tm_sec == tm.tm_sec
15756 && lt->tm_yday == tm.tm_yday
15757 && lt->tm_wday == tm.tm_wday
15758 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15759 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15768 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15769 ignoring leap seconds. */
15770 unsigned long int answer = 2527315200UL;
15774 tm.tm_year = 2050 - 1900;
15777 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15780 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15781 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15782 on systems that don't support the Olson extension, or don't have the
15783 full zoneinfo tables installed. */
15784 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15788 /* Check that the result is either a failure, or close enough
15789 to the correct answer that we can assume the discrepancy is
15790 due to leap seconds. */
15791 return (t == (time_t) -1
15792 || (0 < t && answer - 120 <= t && t <= answer + 120));
15801 /* This test makes some buggy mktime implementations loop.
15802 Give up after 60 seconds; a mktime slower than that
15803 isn't worth using anyway. */
15806 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15809 if ((time_t) -1 < 0)
15810 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15812 delta = time_t_max / 997; /* a suitable prime number */
15813 for (i = 0; i < N_STRINGS; i++)
15816 putenv (tz_strings[i]);
15818 for (t = 0; t <= time_t_max - delta; t += delta)
15819 if (! mktime_test (t))
15821 if (! (mktime_test ((time_t) 1)
15822 && mktime_test ((time_t) (60 * 60))
15823 && mktime_test ((time_t) (60 * 60 * 24))))
15826 for (j = 1; 0 < j; j *= 2)
15827 if (! bigtime_test (j))
15829 if (! bigtime_test (j - 1))
15832 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15835 rm -f conftest$ac_exeext
15836 if { (ac_try="$ac_link"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_link") 2>&5
15844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_cv_func_working_mktime=yes
15857 echo "$as_me: program exited with status
$ac_status" >&5
15858 echo "$as_me: failed program was
:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 ( exit $ac_status )
15862 ac_cv_func_working_mktime=no
15864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15869 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15870 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15871 if test $ac_cv_func_working_mktime = no; then
15872 case " $LIBOBJS " in
15873 *" mktime.
$ac_objext "* ) ;;
15874 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15880 if test "$ac_cv_func_working_mktime" = no; then
15882 cat >>confdefs.h <<\_ACEOF
15883 #define BROKEN_MKTIME 1
15888 ac_have_func=no # yes means we've found a way to get the load average.
15890 # Make sure getloadavg.c is where it belongs, at configure-time.
15891 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
15892 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
15893 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
15894 { (exit 1); exit 1; }; }
15898 # Check for getloadavg, but be sure not to touch the cache variable.
15899 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
15900 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
15901 if test "${ac_cv_func_getloadavg+set}" = set; then
15902 echo $ECHO_N "(cached
) $ECHO_C" >&6
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15912 #define getloadavg innocuous_getloadavg
15914 /* System header to define __stub macros and hopefully few prototypes,
15915 which can conflict with char getloadavg (); below.
15916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15917 <limits.h> exists even on freestanding compilers. */
15920 # include <limits.h>
15922 # include <assert.h>
15927 /* Override any GCC internal prototype to avoid an error.
15928 Use char because int might match the return type of a GCC
15929 builtin and then its argument prototype would still apply. */
15933 char getloadavg ();
15934 /* The GNU C library defines this for functions which it implements
15935 to always fail with ENOSYS. Some functions are actually named
15936 something starting with __ and the normal name is an alias. */
15937 #if defined __stub_getloadavg || defined __stub___getloadavg
15944 return getloadavg ();
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (ac_try="$ac_link"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_link") 2>conftest.er1
15958 grep -v '^ *+' conftest.er1 >conftest.err
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15962 (exit $ac_status); } && {
15963 test -z "$ac_c_werror_flag" ||
15964 test ! -s conftest.err
15965 } && test -s conftest$ac_exeext &&
15966 $as_test_x conftest$ac_exeext; then
15967 ac_cv_func_getloadavg=yes
15969 echo "$as_me: failed program was
:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_cv_func_getloadavg=no
15975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15976 conftest$ac_exeext conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
15979 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15980 if test $ac_cv_func_getloadavg = yes; then
15985 ) && ac_have_func=yes
15987 # On HPUX9, an unprivileged user can get load averages through this function.
15989 for ac_func in pstat_getdynamic
15991 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15992 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15993 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15994 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15995 echo $ECHO_N "(cached
) $ECHO_C" >&6
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16005 #define $ac_func innocuous_$ac_func
16007 /* System header to define __stub macros and hopefully few prototypes,
16008 which can conflict with char $ac_func (); below.
16009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16010 <limits.h> exists even on freestanding compilers. */
16013 # include <limits.h>
16015 # include <assert.h>
16020 /* Override any GCC internal prototype to avoid an error.
16021 Use char because int might match the return type of a GCC
16022 builtin and then its argument prototype would still apply. */
16027 /* The GNU C library defines this for functions which it implements
16028 to always fail with ENOSYS. Some functions are actually named
16029 something starting with __ and the normal name is an alias. */
16030 #if defined __stub_$ac_func || defined __stub___$ac_func
16037 return $ac_func ();
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (ac_try="$ac_link"
16044 case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_link") 2>conftest.er1
16051 grep -v '^ *+' conftest.er1 >conftest.err
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16055 (exit $ac_status); } && {
16056 test -z "$ac_c_werror_flag" ||
16057 test ! -s conftest.err
16058 } && test -s conftest$ac_exeext &&
16059 $as_test_x conftest$ac_exeext; then
16060 eval "$as_ac_var=yes"
16062 echo "$as_me: failed program was
:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 eval "$as_ac_var=no
"
16068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069 conftest$ac_exeext conftest.$ac_ext
16071 ac_res=`eval echo '${'$as_ac_var'}'`
16072 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16073 echo "${ECHO_T}$ac_res" >&6; }
16074 if test `eval echo '${'$as_ac_var'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16083 # Solaris has libkstat which does not require root.
16085 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16086 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16087 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16088 echo $ECHO_N "(cached
) $ECHO_C" >&6
16090 ac_check_lib_save_LIBS=$LIBS
16091 LIBS="-lkstat $LIBS"
16092 cat >conftest.$ac_ext <<_ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16099 /* Override any GCC internal prototype to avoid an error.
16100 Use char because int might match the return type of a GCC
16101 builtin and then its argument prototype would still apply. */
16105 char kstat_open ();
16109 return kstat_open ();
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (ac_try="$ac_link"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_link") 2>conftest.er1
16123 grep -v '^ *+' conftest.er1 >conftest.err
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16127 (exit $ac_status); } && {
16128 test -z "$ac_c_werror_flag" ||
16129 test ! -s conftest.err
16130 } && test -s conftest$ac_exeext &&
16131 $as_test_x conftest$ac_exeext; then
16132 ac_cv_lib_kstat_kstat_open=yes
16134 echo "$as_me: failed program was
:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_cv_lib_kstat_kstat_open=no
16140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16141 conftest$ac_exeext conftest.$ac_ext
16142 LIBS=$ac_check_lib_save_LIBS
16144 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16145 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16146 if test $ac_cv_lib_kstat_kstat_open = yes; then
16147 cat >>confdefs.h <<_ACEOF
16148 #define HAVE_LIBKSTAT 1
16151 LIBS="-lkstat $LIBS"
16155 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16157 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16158 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16159 # to get the right answer into the cache.
16160 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16161 if test $ac_have_func = no; then
16162 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16163 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16164 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16165 echo $ECHO_N "(cached
) $ECHO_C" >&6
16167 ac_check_lib_save_LIBS=$LIBS
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16176 /* Override any GCC internal prototype to avoid an error.
16177 Use char because int might match the return type of a GCC
16178 builtin and then its argument prototype would still apply. */
16186 return elf_begin ();
16191 rm -f conftest.$ac_objext conftest$ac_exeext
16192 if { (ac_try="$ac_link"
16193 case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16198 (eval "$ac_link") 2>conftest.er1
16200 grep -v '^ *+' conftest.er1 >conftest.err
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16204 (exit $ac_status); } && {
16205 test -z "$ac_c_werror_flag" ||
16206 test ! -s conftest.err
16207 } && test -s conftest$ac_exeext &&
16208 $as_test_x conftest$ac_exeext; then
16209 ac_cv_lib_elf_elf_begin=yes
16211 echo "$as_me: failed program was
:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_cv_lib_elf_elf_begin=no
16217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16218 conftest$ac_exeext conftest.$ac_ext
16219 LIBS=$ac_check_lib_save_LIBS
16221 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16222 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16223 if test $ac_cv_lib_elf_elf_begin = yes; then
16228 if test $ac_have_func = no; then
16229 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16230 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16231 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16232 echo $ECHO_N "(cached
) $ECHO_C" >&6
16234 ac_check_lib_save_LIBS=$LIBS
16236 cat >conftest.$ac_ext <<_ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16243 /* Override any GCC internal prototype to avoid an error.
16244 Use char because int might match the return type of a GCC
16245 builtin and then its argument prototype would still apply. */
16253 return kvm_open ();
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (ac_try="$ac_link"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_link") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext &&
16275 $as_test_x conftest$ac_exeext; then
16276 ac_cv_lib_kvm_kvm_open=yes
16278 echo "$as_me: failed program was
:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_cv_lib_kvm_kvm_open=no
16284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16285 conftest$ac_exeext conftest.$ac_ext
16286 LIBS=$ac_check_lib_save_LIBS
16288 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16289 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16290 if test $ac_cv_lib_kvm_kvm_open = yes; then
16294 # Check for the 4.4BSD definition of getloadavg.
16295 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16296 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16297 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16298 echo $ECHO_N "(cached
) $ECHO_C" >&6
16300 ac_check_lib_save_LIBS=$LIBS
16301 LIBS="-lutil $LIBS"
16302 cat >conftest.$ac_ext <<_ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16309 /* Override any GCC internal prototype to avoid an error.
16310 Use char because int might match the return type of a GCC
16311 builtin and then its argument prototype would still apply. */
16315 char getloadavg ();
16319 return getloadavg ();
16324 rm -f conftest.$ac_objext conftest$ac_exeext
16325 if { (ac_try="$ac_link"
16326 case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_link") 2>conftest.er1
16333 grep -v '^ *+' conftest.er1 >conftest.err
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16337 (exit $ac_status); } && {
16338 test -z "$ac_c_werror_flag" ||
16339 test ! -s conftest.err
16340 } && test -s conftest$ac_exeext &&
16341 $as_test_x conftest$ac_exeext; then
16342 ac_cv_lib_util_getloadavg=yes
16344 echo "$as_me: failed program was
:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 ac_cv_lib_util_getloadavg=no
16350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16351 conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16354 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16355 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16356 if test $ac_cv_lib_util_getloadavg = yes; then
16357 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16362 if test $ac_have_func = no; then
16363 # There is a commonly available library for RS/6000 AIX.
16364 # Since it is not a standard part of AIX, it might be installed locally.
16365 ac_getloadavg_LIBS=$LIBS
16366 LIBS="-L/usr
/local
/lib
$LIBS"
16367 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16368 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16369 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16370 echo $ECHO_N "(cached
) $ECHO_C" >&6
16372 ac_check_lib_save_LIBS=$LIBS
16373 LIBS="-lgetloadavg $LIBS"
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16381 /* Override any GCC internal prototype to avoid an error.
16382 Use char because int might match the return type of a GCC
16383 builtin and then its argument prototype would still apply. */
16387 char getloadavg ();
16391 return getloadavg ();
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest$ac_exeext &&
16413 $as_test_x conftest$ac_exeext; then
16414 ac_cv_lib_getloadavg_getloadavg=yes
16416 echo "$as_me: failed program was
:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 ac_cv_lib_getloadavg_getloadavg=no
16422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16423 conftest$ac_exeext conftest.$ac_ext
16424 LIBS=$ac_check_lib_save_LIBS
16426 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16427 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16428 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16429 LIBS="-lgetloadavg $LIBS"
16431 LIBS=$ac_getloadavg_LIBS
16436 # Make sure it is really in the library, if we think we found it,
16437 # otherwise set up the replacement function.
16439 for ac_func in getloadavg
16441 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16442 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16443 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16444 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16445 echo $ECHO_N "(cached
) $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16455 #define $ac_func innocuous_$ac_func
16457 /* System header to define __stub macros and hopefully few prototypes,
16458 which can conflict with char $ac_func (); below.
16459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460 <limits.h> exists even on freestanding compilers. */
16463 # include <limits.h>
16465 # include <assert.h>
16470 /* Override any GCC internal prototype to avoid an error.
16471 Use char because int might match the return type of a GCC
16472 builtin and then its argument prototype would still apply. */
16477 /* The GNU C library defines this for functions which it implements
16478 to always fail with ENOSYS. Some functions are actually named
16479 something starting with __ and the normal name is an alias. */
16480 #if defined __stub_$ac_func || defined __stub___$ac_func
16487 return $ac_func ();
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_link") 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16505 (exit $ac_status); } && {
16506 test -z "$ac_c_werror_flag" ||
16507 test ! -s conftest.err
16508 } && test -s conftest$ac_exeext &&
16509 $as_test_x conftest$ac_exeext; then
16510 eval "$as_ac_var=yes"
16512 echo "$as_me: failed program was
:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 eval "$as_ac_var=no
"
16518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16519 conftest$ac_exeext conftest.$ac_ext
16521 ac_res=`eval echo '${'$as_ac_var'}'`
16522 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16524 if test `eval echo '${'$as_ac_var'}'` = yes; then
16525 cat >>confdefs.h <<_ACEOF
16526 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16530 case " $LIBOBJS " in
16531 *" getloadavg.
$ac_objext "* ) ;;
16532 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16537 cat >>confdefs.h <<\_ACEOF
16538 #define C_GETLOADAVG 1
16541 # Figure out what our getloadavg.c needs.
16543 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16544 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16545 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16546 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16547 echo $ECHO_N "(cached
) $ECHO_C" >&6
16549 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16550 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16552 # Is the header compilable?
16553 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16554 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 $ac_includes_default
16562 #include <sys/dg_sys_info.h>
16564 rm -f conftest.$ac_objext
16565 if { (ac_try="$ac_compile"
16566 case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_compile") 2>conftest.er1
16573 grep -v '^ *+' conftest.er1 >conftest.err
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16577 (exit $ac_status); } && {
16578 test -z "$ac_c_werror_flag" ||
16579 test ! -s conftest.err
16580 } && test -s conftest.$ac_objext; then
16581 ac_header_compiler=yes
16583 echo "$as_me: failed program was
:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 ac_header_compiler=no
16589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16591 echo "${ECHO_T}$ac_header_compiler" >&6; }
16593 # Is the header present?
16594 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16595 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include <sys/dg_sys_info.h>
16604 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16605 case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16612 grep -v '^ *+' conftest.er1 >conftest.err
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16616 (exit $ac_status); } >/dev/null && {
16617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16618 test ! -s conftest.err
16620 ac_header_preproc=yes
16622 echo "$as_me: failed program was
:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ac_header_preproc=no
16628 rm -f conftest.err conftest.$ac_ext
16629 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16630 echo "${ECHO_T}$ac_header_preproc" >&6; }
16632 # So? What about this header?
16633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16635 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16636 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16637 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16638 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16639 ac_header_preproc=yes
16642 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16643 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16644 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16645 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16646 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16647 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16648 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16649 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16650 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16651 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16652 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16653 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16657 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16658 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16659 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16660 echo $ECHO_N "(cached
) $ECHO_C" >&6
16662 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16664 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16665 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16668 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16671 cat >>confdefs.h <<\_ACEOF
16676 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16677 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16678 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16679 echo $ECHO_N "(cached
) $ECHO_C" >&6
16681 ac_check_lib_save_LIBS=$LIBS
16683 cat >conftest.$ac_ext <<_ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16690 /* Override any GCC internal prototype to avoid an error.
16691 Use char because int might match the return type of a GCC
16692 builtin and then its argument prototype would still apply. */
16696 char dg_sys_info ();
16700 return dg_sys_info ();
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_link") 2>conftest.er1
16714 grep -v '^ *+' conftest.er1 >conftest.err
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16718 (exit $ac_status); } && {
16719 test -z "$ac_c_werror_flag" ||
16720 test ! -s conftest.err
16721 } && test -s conftest$ac_exeext &&
16722 $as_test_x conftest$ac_exeext; then
16723 ac_cv_lib_dgc_dg_sys_info=yes
16725 echo "$as_me: failed program was
:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ac_cv_lib_dgc_dg_sys_info=no
16731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16732 conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16735 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16736 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16737 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16738 cat >>confdefs.h <<_ACEOF
16739 #define HAVE_LIBDGC 1
16750 if test "${ac_cv_header_locale_h+set}" = set; then
16751 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16752 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16753 if test "${ac_cv_header_locale_h+set}" = set; then
16754 echo $ECHO_N "(cached
) $ECHO_C" >&6
16756 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16757 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16759 # Is the header compilable?
16760 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16761 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16762 cat >conftest.$ac_ext <<_ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 $ac_includes_default
16769 #include <locale.h>
16771 rm -f conftest.$ac_objext
16772 if { (ac_try="$ac_compile"
16773 case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_compile") 2>conftest.er1
16780 grep -v '^ *+' conftest.er1 >conftest.err
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16784 (exit $ac_status); } && {
16785 test -z "$ac_c_werror_flag" ||
16786 test ! -s conftest.err
16787 } && test -s conftest.$ac_objext; then
16788 ac_header_compiler=yes
16790 echo "$as_me: failed program was
:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 ac_header_compiler=no
16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16798 echo "${ECHO_T}$ac_header_compiler" >&6; }
16800 # Is the header present?
16801 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16802 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16803 cat >conftest.$ac_ext <<_ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 #include <locale.h>
16811 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16823 (exit $ac_status); } >/dev/null && {
16824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16825 test ! -s conftest.err
16827 ac_header_preproc=yes
16829 echo "$as_me: failed program was
:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 ac_header_preproc=no
16835 rm -f conftest.err conftest.$ac_ext
16836 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16837 echo "${ECHO_T}$ac_header_preproc" >&6; }
16839 # So? What about this header?
16840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16842 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16843 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16844 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16845 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16846 ac_header_preproc=yes
16849 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16850 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16851 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16852 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16853 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16854 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16855 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16856 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16857 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16858 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16859 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16860 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16864 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16865 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16866 if test "${ac_cv_header_locale_h+set}" = set; then
16867 echo $ECHO_N "(cached
) $ECHO_C" >&6
16869 ac_cv_header_locale_h=$ac_header_preproc
16871 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16872 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16878 for ac_func in setlocale
16880 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16881 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16882 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16883 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16884 echo $ECHO_N "(cached
) $ECHO_C" >&6
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16902 # include <limits.h>
16904 # include <assert.h>
16909 /* Override any GCC internal prototype to avoid an error.
16910 Use char because int might match the return type of a GCC
16911 builtin and then its argument prototype would still apply. */
16916 /* The GNU C library defines this for functions which it implements
16917 to always fail with ENOSYS. Some functions are actually named
16918 something starting with __ and the normal name is an alias. */
16919 #if defined __stub_$ac_func || defined __stub___$ac_func
16926 return $ac_func ();
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16944 (exit $ac_status); } && {
16945 test -z "$ac_c_werror_flag" ||
16946 test ! -s conftest.err
16947 } && test -s conftest$ac_exeext &&
16948 $as_test_x conftest$ac_exeext; then
16949 eval "$as_ac_var=yes"
16951 echo "$as_me: failed program was
:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 eval "$as_ac_var=no
"
16957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16958 conftest$ac_exeext conftest.$ac_ext
16960 ac_res=`eval echo '${'$as_ac_var'}'`
16961 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16962 echo "${ECHO_T}$ac_res" >&6; }
16963 if test `eval echo '${'$as_ac_var'}'` = yes; then
16964 cat >>confdefs.h <<_ACEOF
16965 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16972 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16973 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16974 # Irix 4.0.5F has the header but not the library.
16975 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16978 cat >>confdefs.h <<\_ACEOF
16984 if test $ac_have_func = no; then
16985 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16986 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
16987 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
16988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16989 echo $ECHO_N "(cached
) $ECHO_C" >&6
16991 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
16992 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16994 # Is the header compilable?
16995 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
16996 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 $ac_includes_default
17004 #include <inq_stats/cpustats.h>
17006 rm -f conftest.$ac_objext
17007 if { (ac_try="$ac_compile"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_compile") 2>conftest.er1
17015 grep -v '^ *+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest.$ac_objext; then
17023 ac_header_compiler=yes
17025 echo "$as_me: failed program was
:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17028 ac_header_compiler=no
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17033 echo "${ECHO_T}$ac_header_compiler" >&6; }
17035 # Is the header present?
17036 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17037 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17038 cat >conftest.$ac_ext <<_ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 #include <inq_stats/cpustats.h>
17046 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17058 (exit $ac_status); } >/dev/null && {
17059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17062 ac_header_preproc=yes
17064 echo "$as_me: failed program was
:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_header_preproc=no
17070 rm -f conftest.err conftest.$ac_ext
17071 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17072 echo "${ECHO_T}$ac_header_preproc" >&6; }
17074 # So? What about this header?
17075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17077 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17078 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17079 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17080 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17081 ac_header_preproc=yes
17084 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17085 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17086 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17087 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17088 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17089 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17090 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17091 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17092 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17093 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17094 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17095 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17099 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17100 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17101 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17102 echo $ECHO_N "(cached
) $ECHO_C" >&6
17104 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17106 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17107 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17110 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17113 cat >>confdefs.h <<\_ACEOF
17118 cat >>confdefs.h <<\_ACEOF
17127 if test $ac_have_func = no; then
17128 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17129 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17130 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17131 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17132 echo $ECHO_N "(cached
) $ECHO_C" >&6
17134 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17135 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17137 # Is the header compilable?
17138 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17139 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17140 cat >conftest.$ac_ext <<_ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 $ac_includes_default
17147 #include <sys/cpustats.h>
17149 rm -f conftest.$ac_objext
17150 if { (ac_try="$ac_compile"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_compile") 2>conftest.er1
17158 grep -v '^ *+' conftest.er1 >conftest.err
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17162 (exit $ac_status); } && {
17163 test -z "$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 } && test -s conftest.$ac_objext; then
17166 ac_header_compiler=yes
17168 echo "$as_me: failed program was
:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 ac_header_compiler=no
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17176 echo "${ECHO_T}$ac_header_compiler" >&6; }
17178 # Is the header present?
17179 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17180 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <sys/cpustats.h>
17189 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17201 (exit $ac_status); } >/dev/null && {
17202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17203 test ! -s conftest.err
17205 ac_header_preproc=yes
17207 echo "$as_me: failed program was
:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_header_preproc=no
17213 rm -f conftest.err conftest.$ac_ext
17214 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17215 echo "${ECHO_T}$ac_header_preproc" >&6; }
17217 # So? What about this header?
17218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17220 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17221 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17222 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17223 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17224 ac_header_preproc=yes
17227 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17228 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17229 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17230 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17231 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17232 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17233 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17234 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17235 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17236 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17237 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17238 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17242 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17243 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17244 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17245 echo $ECHO_N "(cached
) $ECHO_C" >&6
17247 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17249 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17250 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17253 if test $ac_cv_header_sys_cpustats_h = yes; then
17254 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17263 if test $ac_have_func = no; then
17265 for ac_header in mach/mach.h
17267 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17268 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17269 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17270 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17271 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17272 echo $ECHO_N "(cached
) $ECHO_C" >&6
17274 ac_res=`eval echo '${'$as_ac_Header'}'`
17275 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17278 # Is the header compilable?
17279 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17280 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 $ac_includes_default
17288 #include <$ac_header>
17290 rm -f conftest.$ac_objext
17291 if { (ac_try="$ac_compile"
17292 case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_compile") 2>conftest.er1
17299 grep -v '^ *+' conftest.er1 >conftest.err
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17303 (exit $ac_status); } && {
17304 test -z "$ac_c_werror_flag" ||
17305 test ! -s conftest.err
17306 } && test -s conftest.$ac_objext; then
17307 ac_header_compiler=yes
17309 echo "$as_me: failed program was
:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ac_header_compiler=no
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17316 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17317 echo "${ECHO_T}$ac_header_compiler" >&6; }
17319 # Is the header present?
17320 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17321 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17322 cat >conftest.$ac_ext <<_ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h. */
17328 #include <$ac_header>
17330 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17342 (exit $ac_status); } >/dev/null && {
17343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17346 ac_header_preproc=yes
17348 echo "$as_me: failed program was
:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_header_preproc=no
17354 rm -f conftest.err conftest.$ac_ext
17355 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17356 echo "${ECHO_T}$ac_header_preproc" >&6; }
17358 # So? What about this header?
17359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17361 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17362 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17363 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17365 ac_header_preproc=yes
17368 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17369 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17370 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17371 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17372 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17373 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17374 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17375 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17376 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17378 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17379 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17383 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17384 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17385 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17386 echo $ECHO_N "(cached
) $ECHO_C" >&6
17388 eval "$as_ac_Header=\
$ac_header_preproc"
17390 ac_res=`eval echo '${'$as_ac_Header'}'`
17391 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17392 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17407 for ac_header in nlist.h
17409 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17411 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17412 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17413 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17414 echo $ECHO_N "(cached
) $ECHO_C" >&6
17416 ac_res=`eval echo '${'$as_ac_Header'}'`
17417 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17418 echo "${ECHO_T}$ac_res" >&6; }
17420 # Is the header compilable?
17421 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17422 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17423 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429 $ac_includes_default
17430 #include <$ac_header>
17432 rm -f conftest.$ac_objext
17433 if { (ac_try="$ac_compile"
17434 case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_compile") 2>conftest.er1
17441 grep -v '^ *+' conftest.er1 >conftest.err
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17445 (exit $ac_status); } && {
17446 test -z "$ac_c_werror_flag" ||
17447 test ! -s conftest.err
17448 } && test -s conftest.$ac_objext; then
17449 ac_header_compiler=yes
17451 echo "$as_me: failed program was
:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 ac_header_compiler=no
17457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17458 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17459 echo "${ECHO_T}$ac_header_compiler" >&6; }
17461 # Is the header present?
17462 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17463 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17464 cat >conftest.$ac_ext <<_ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 #include <$ac_header>
17472 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17473 case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17480 grep -v '^ *+' conftest.er1 >conftest.err
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17484 (exit $ac_status); } >/dev/null && {
17485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17486 test ! -s conftest.err
17488 ac_header_preproc=yes
17490 echo "$as_me: failed program was
:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17493 ac_header_preproc=no
17496 rm -f conftest.err conftest.$ac_ext
17497 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17498 echo "${ECHO_T}$ac_header_preproc" >&6; }
17500 # So? What about this header?
17501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17503 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17504 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17505 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17507 ac_header_preproc=yes
17510 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17511 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17512 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17513 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17514 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17515 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17516 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17517 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17518 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17520 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17521 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17525 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17526 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17527 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17528 echo $ECHO_N "(cached
) $ECHO_C" >&6
17530 eval "$as_ac_Header=\
$ac_header_preproc"
17532 ac_res=`eval echo '${'$as_ac_Header'}'`
17533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17538 cat >>confdefs.h <<_ACEOF
17539 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17541 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17542 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17543 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17544 echo $ECHO_N "(cached
) $ECHO_C" >&6
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17557 static struct nlist ac_aggr;
17558 if (ac_aggr.n_un.n_name)
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_compile") 2>conftest.er1
17573 grep -v '^ *+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17577 (exit $ac_status); } && {
17578 test -z "$ac_c_werror_flag" ||
17579 test ! -s conftest.err
17580 } && test -s conftest.$ac_objext; then
17581 ac_cv_member_struct_nlist_n_un_n_name=yes
17583 echo "$as_me: failed program was
:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17597 static struct nlist ac_aggr;
17598 if (sizeof ac_aggr.n_un.n_name)
17604 rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_compile") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest.$ac_objext; then
17621 ac_cv_member_struct_nlist_n_un_n_name=yes
17623 echo "$as_me: failed program was
:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ac_cv_member_struct_nlist_n_un_n_name=no
17629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17635 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17636 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17643 cat >>confdefs.h <<\_ACEOF
17644 #define NLIST_NAME_UNION 1
17658 # Some definitions of getloadavg require that the program be installed setgid.
17659 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17660 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17661 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17662 echo $ECHO_N "(cached
) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17671 #ifdef LDAV_PRIVILEGED
17672 Yowza Am I SETGID yet
17675 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17676 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17677 ac_cv_func_getloadavg_setgid=yes
17679 ac_cv_func_getloadavg_setgid=no
17684 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17685 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17686 if test $ac_cv_func_getloadavg_setgid = yes; then
17689 cat >>confdefs.h <<\_ACEOF
17690 #define GETLOADAVG_PRIVILEGED 1
17697 if test $ac_cv_func_getloadavg_setgid = yes; then
17698 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17699 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17700 if test "${ac_cv_group_kmem+set}" = set; then
17701 echo $ECHO_N "(cached
) $ECHO_C" >&6
17703 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17704 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17705 # If we got an error (system does not support symlinks), try without -L.
17706 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17707 ac_cv_group_kmem=`echo $ac_ls_output \
17708 | sed -ne 's/[ ][ ]*/ /g;
17709 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17713 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17714 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17715 KMEM_GROUP=$ac_cv_group_kmem
17717 if test "x
$ac_save_LIBS" = x; then
17718 GETLOADAVG_LIBS=$LIBS
17720 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17726 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17727 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17728 if test "${ac_cv_sys_largefile_source+set}" = set; then
17729 echo $ECHO_N "(cached
) $ECHO_C" >&6
17732 cat >conftest.$ac_ext <<_ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 #include <sys/types.h> /* for off_t */
17743 int (*fp) (FILE *, off_t, int) = fseeko;
17744 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (ac_try="$ac_link"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_link") 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17762 (exit $ac_status); } && {
17763 test -z "$ac_c_werror_flag" ||
17764 test ! -s conftest.err
17765 } && test -s conftest$ac_exeext &&
17766 $as_test_x conftest$ac_exeext; then
17767 ac_cv_sys_largefile_source=no; break
17769 echo "$as_me: failed program was
:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17776 conftest$ac_exeext conftest.$ac_ext
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 #define _LARGEFILE_SOURCE 1
17784 #include <sys/types.h> /* for off_t */
17789 int (*fp) (FILE *, off_t, int) = fseeko;
17790 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (ac_try="$ac_link"
17797 case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_link") 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest$ac_exeext &&
17812 $as_test_x conftest$ac_exeext; then
17813 ac_cv_sys_largefile_source=1; break
17815 echo "$as_me: failed program was
:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822 conftest$ac_exeext conftest.$ac_ext
17823 ac_cv_sys_largefile_source=unknown
17827 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17829 case $ac_cv_sys_largefile_source in #(
17832 cat >>confdefs.h <<_ACEOF
17833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17839 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17840 # in glibc 2.1.3, but that breaks too many other things.
17841 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17842 if test $ac_cv_sys_largefile_source != unknown; then
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE_FSEEKO 1
17851 # Configure getopt.
17852 # getopt.m4 serial 10
17854 # The getopt module assume you want GNU getopt, with getopt_long etc,
17855 # rather than vanilla POSIX getopt. This means your your code should
17856 # always include <getopt.h> for the getopt prototypes.
17868 # Prerequisites of lib/getopt*.
17875 for ac_header in getopt.h
17877 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17879 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17880 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17881 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17882 echo $ECHO_N "(cached
) $ECHO_C" >&6
17884 ac_res=`eval echo '${'$as_ac_Header'}'`
17885 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17886 echo "${ECHO_T}$ac_res" >&6; }
17888 # Is the header compilable?
17889 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17890 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 $ac_includes_default
17898 #include <$ac_header>
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_compile") 2>conftest.er1
17909 grep -v '^ *+' conftest.er1 >conftest.err
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17913 (exit $ac_status); } && {
17914 test -z "$ac_c_werror_flag" ||
17915 test ! -s conftest.err
17916 } && test -s conftest.$ac_objext; then
17917 ac_header_compiler=yes
17919 echo "$as_me: failed program was
:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 ac_header_compiler=no
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17927 echo "${ECHO_T}$ac_header_compiler" >&6; }
17929 # Is the header present?
17930 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17931 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <$ac_header>
17940 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17952 (exit $ac_status); } >/dev/null && {
17953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17954 test ! -s conftest.err
17956 ac_header_preproc=yes
17958 echo "$as_me: failed program was
:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_header_preproc=no
17964 rm -f conftest.err conftest.$ac_ext
17965 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17966 echo "${ECHO_T}$ac_header_preproc" >&6; }
17968 # So? What about this header?
17969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17971 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17972 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17973 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17975 ac_header_preproc=yes
17978 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17979 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17980 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17981 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17982 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17983 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17984 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17985 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17986 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17988 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17989 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17993 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17994 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17995 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17996 echo $ECHO_N "(cached
) $ECHO_C" >&6
17998 eval "$as_ac_Header=\
$ac_header_preproc"
18000 ac_res=`eval echo '${'$as_ac_Header'}'`
18001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18002 echo "${ECHO_T}$ac_res" >&6; }
18005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18006 cat >>confdefs.h <<_ACEOF
18007 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18016 if test -z "$GETOPT_H"; then
18018 for ac_func in getopt_long_only
18020 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18021 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18022 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18023 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18024 echo $ECHO_N "(cached
) $ECHO_C" >&6
18026 cat >conftest.$ac_ext <<_ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18034 #define $ac_func innocuous_$ac_func
18036 /* System header to define __stub macros and hopefully few prototypes,
18037 which can conflict with char $ac_func (); below.
18038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18039 <limits.h> exists even on freestanding compilers. */
18042 # include <limits.h>
18044 # include <assert.h>
18049 /* Override any GCC internal prototype to avoid an error.
18050 Use char because int might match the return type of a GCC
18051 builtin and then its argument prototype would still apply. */
18056 /* The GNU C library defines this for functions which it implements
18057 to always fail with ENOSYS. Some functions are actually named
18058 something starting with __ and the normal name is an alias. */
18059 #if defined __stub_$ac_func || defined __stub___$ac_func
18066 return $ac_func ();
18071 rm -f conftest.$ac_objext conftest$ac_exeext
18072 if { (ac_try="$ac_link"
18073 case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_link") 2>conftest.er1
18080 grep -v '^ *+' conftest.er1 >conftest.err
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18084 (exit $ac_status); } && {
18085 test -z "$ac_c_werror_flag" ||
18086 test ! -s conftest.err
18087 } && test -s conftest$ac_exeext &&
18088 $as_test_x conftest$ac_exeext; then
18089 eval "$as_ac_var=yes"
18091 echo "$as_me: failed program was
:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18094 eval "$as_ac_var=no
"
18097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18098 conftest$ac_exeext conftest.$ac_ext
18100 ac_res=`eval echo '${'$as_ac_var'}'`
18101 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18102 echo "${ECHO_T}$ac_res" >&6; }
18103 if test `eval echo '${'$as_ac_var'}'` = yes; then
18104 cat >>confdefs.h <<_ACEOF
18105 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18115 if test -z "$GETOPT_H"; then
18116 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18117 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18118 if test "${ac_cv_have_decl_optreset+set}" = set; then
18119 echo $ECHO_N "(cached
) $ECHO_C" >&6
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 #include <getopt.h>
18140 rm -f conftest.$ac_objext
18141 if { (ac_try="$ac_compile"
18142 case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_compile") 2>conftest.er1
18149 grep -v '^ *+' conftest.er1 >conftest.err
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18153 (exit $ac_status); } && {
18154 test -z "$ac_c_werror_flag" ||
18155 test ! -s conftest.err
18156 } && test -s conftest.$ac_objext; then
18157 ac_cv_have_decl_optreset=yes
18159 echo "$as_me: failed program was
:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18162 ac_cv_have_decl_optreset=no
18165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18168 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18169 if test $ac_cv_have_decl_optreset = yes; then
18175 if test -z "$GETOPT_H"; then
18176 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18177 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18178 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18179 echo $ECHO_N "(cached
) $ECHO_C" >&6
18181 if test "$cross_compiling" = yes; then
18182 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18183 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18184 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18185 echo $ECHO_N "(cached
) $ECHO_C" >&6
18187 cat >conftest.$ac_ext <<_ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 #include <getopt.h>
18198 #ifndef getopt_clip
18199 (void) getopt_clip;
18206 rm -f conftest.$ac_objext
18207 if { (ac_try="$ac_compile"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 ac_cv_have_decl_getopt_clip=yes
18225 echo "$as_me: failed program was
:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_cv_have_decl_getopt_clip=no
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18234 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18235 if test $ac_cv_have_decl_getopt_clip = yes; then
18236 gl_cv_func_gnu_getopt=no
18238 gl_cv_func_gnu_getopt=yes
18242 cat >conftest.$ac_ext <<_ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include <getopt.h>
18254 myargv[0] = "conftest
";
18257 return getopt (2, myargv, "+a
") != '?';
18263 rm -f conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>&5
18272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 gl_cv_func_gnu_getopt=yes
18285 echo "$as_me: program exited with status
$ac_status" >&5
18286 echo "$as_me: failed program was
:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ( exit $ac_status )
18290 gl_cv_func_gnu_getopt=no
18292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18297 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18298 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18299 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18306 if test -n "$GETOPT_H"; then
18311 cat >>confdefs.h <<\_ACEOF
18312 #define __GETOPT_PREFIX rpl_
18318 GETOPTOBJS='getopt.o getopt1.o'
18325 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18326 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18327 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18328 echo $ECHO_N "(cached
) $ECHO_C" >&6
18330 # Use it with a single arg.
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 $ac_includes_default
18346 rm -f conftest.$ac_objext
18347 if { (ac_try="$ac_compile"
18348 case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_compile") 2>conftest.er1
18355 grep -v '^ *+' conftest.er1 >conftest.err
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18359 (exit $ac_status); } && {
18360 test -z "$ac_c_werror_flag" ||
18361 test ! -s conftest.err
18362 } && test -s conftest.$ac_objext; then
18363 ac_cv_func_getpgrp_void=no
18365 echo "$as_me: failed program was
:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_cv_func_getpgrp_void=yes
18371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18375 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18376 if test $ac_cv_func_getpgrp_void = yes; then
18378 cat >>confdefs.h <<\_ACEOF
18379 #define GETPGRP_VOID 1
18386 for ac_func in strftime
18388 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18389 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18390 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18391 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18392 echo $ECHO_N "(cached
) $ECHO_C" >&6
18394 cat >conftest.$ac_ext <<_ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18402 #define $ac_func innocuous_$ac_func
18404 /* System header to define __stub macros and hopefully few prototypes,
18405 which can conflict with char $ac_func (); below.
18406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 <limits.h> exists even on freestanding compilers. */
18410 # include <limits.h>
18412 # include <assert.h>
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18424 /* The GNU C library defines this for functions which it implements
18425 to always fail with ENOSYS. Some functions are actually named
18426 something starting with __ and the normal name is an alias. */
18427 #if defined __stub_$ac_func || defined __stub___$ac_func
18434 return $ac_func ();
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (ac_try="$ac_link"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_link") 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18452 (exit $ac_status); } && {
18453 test -z "$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 } && test -s conftest$ac_exeext &&
18456 $as_test_x conftest$ac_exeext; then
18457 eval "$as_ac_var=yes"
18459 echo "$as_me: failed program was
:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18462 eval "$as_ac_var=no
"
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466 conftest$ac_exeext conftest.$ac_ext
18468 ac_res=`eval echo '${'$as_ac_var'}'`
18469 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18470 echo "${ECHO_T}$ac_res" >&6; }
18471 if test `eval echo '${'$as_ac_var'}'` = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18477 # strftime is in -lintl on SCO UNIX.
18478 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18479 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18480 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18481 echo $ECHO_N "(cached
) $ECHO_C" >&6
18483 ac_check_lib_save_LIBS=$LIBS
18484 LIBS="-lintl $LIBS"
18485 cat >conftest.$ac_ext <<_ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18492 /* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18502 return strftime ();
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18520 (exit $ac_status); } && {
18521 test -z "$ac_c_werror_flag" ||
18522 test ! -s conftest.err
18523 } && test -s conftest$ac_exeext &&
18524 $as_test_x conftest$ac_exeext; then
18525 ac_cv_lib_intl_strftime=yes
18527 echo "$as_me: failed program was
:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 ac_cv_lib_intl_strftime=no
18533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18534 conftest$ac_exeext conftest.$ac_ext
18535 LIBS=$ac_check_lib_save_LIBS
18537 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18538 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18539 if test $ac_cv_lib_intl_strftime = yes; then
18540 cat >>confdefs.h <<\_ACEOF
18541 #define HAVE_STRFTIME 1
18544 LIBS="-lintl $LIBS"
18553 for ac_func in grantpt
18555 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18556 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18557 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18558 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18559 echo $ECHO_N "(cached
) $ECHO_C" >&6
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18569 #define $ac_func innocuous_$ac_func
18571 /* System header to define __stub macros and hopefully few prototypes,
18572 which can conflict with char $ac_func (); below.
18573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18574 <limits.h> exists even on freestanding compilers. */
18577 # include <limits.h>
18579 # include <assert.h>
18584 /* Override any GCC internal prototype to avoid an error.
18585 Use char because int might match the return type of a GCC
18586 builtin and then its argument prototype would still apply. */
18591 /* The GNU C library defines this for functions which it implements
18592 to always fail with ENOSYS. Some functions are actually named
18593 something starting with __ and the normal name is an alias. */
18594 #if defined __stub_$ac_func || defined __stub___$ac_func
18601 return $ac_func ();
18606 rm -f conftest.$ac_objext conftest$ac_exeext
18607 if { (ac_try="$ac_link"
18608 case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_link") 2>conftest.er1
18615 grep -v '^ *+' conftest.er1 >conftest.err
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18619 (exit $ac_status); } && {
18620 test -z "$ac_c_werror_flag" ||
18621 test ! -s conftest.err
18622 } && test -s conftest$ac_exeext &&
18623 $as_test_x conftest$ac_exeext; then
18624 eval "$as_ac_var=yes"
18626 echo "$as_me: failed program was
:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 eval "$as_ac_var=no
"
18632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18633 conftest$ac_exeext conftest.$ac_ext
18635 ac_res=`eval echo '${'$as_ac_var'}'`
18636 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18637 echo "${ECHO_T}$ac_res" >&6; }
18638 if test `eval echo '${'$as_ac_var'}'` = yes; then
18639 cat >>confdefs.h <<_ACEOF
18640 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18647 # PTY-related GNU extensions.
18649 for ac_func in getpt
18651 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18652 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18653 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18654 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18655 echo $ECHO_N "(cached
) $ECHO_C" >&6
18657 cat >conftest.$ac_ext <<_ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define $ac_func innocuous_$ac_func
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char $ac_func (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18673 # include <limits.h>
18675 # include <assert.h>
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined __stub_$ac_func || defined __stub___$ac_func
18697 return $ac_func ();
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (ac_try="$ac_link"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_link") 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest$ac_exeext &&
18719 $as_test_x conftest$ac_exeext; then
18720 eval "$as_ac_var=yes"
18722 echo "$as_me: failed program was
:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 eval "$as_ac_var=no
"
18728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18729 conftest$ac_exeext conftest.$ac_ext
18731 ac_res=`eval echo '${'$as_ac_var'}'`
18732 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18733 echo "${ECHO_T}$ac_res" >&6; }
18734 if test `eval echo '${'$as_ac_var'}'` = yes; then
18735 cat >>confdefs.h <<_ACEOF
18736 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18743 # Check this now, so that we will NOT find the above functions in ncurses.
18744 # That is because we have not set up to link ncurses in lib-src.
18745 # It's better to believe a function is not available
18746 # than to expect to find it in ncurses.
18748 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18749 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18750 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18751 echo $ECHO_N "(cached
) $ECHO_C" >&6
18753 ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lncurses $LIBS"
18755 cat >conftest.$ac_ext <<_ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest$ac_exeext &&
18794 $as_test_x conftest$ac_exeext; then
18795 ac_cv_lib_ncurses_tparm=yes
18797 echo "$as_me: failed program was
:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18800 ac_cv_lib_ncurses_tparm=no
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18807 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18808 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18809 if test $ac_cv_lib_ncurses_tparm = yes; then
18810 cat >>confdefs.h <<_ACEOF
18811 #define HAVE_LIBNCURSES 1
18814 LIBS="-lncurses $LIBS"
18819 # Do we need the Hesiod library to provide the support routines?
18820 if test "$with_hesiod" = yes ; then
18821 # Don't set $LIBS here -- see comments above.
18823 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18824 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18825 if test "${ac_cv_func_res_send+set}" = set; then
18826 echo $ECHO_N "(cached
) $ECHO_C" >&6
18828 cat >conftest.$ac_ext <<_ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18836 #define res_send innocuous_res_send
18838 /* System header to define __stub macros and hopefully few prototypes,
18839 which can conflict with char res_send (); below.
18840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18841 <limits.h> exists even on freestanding compilers. */
18844 # include <limits.h>
18846 # include <assert.h>
18851 /* Override any GCC internal prototype to avoid an error.
18852 Use char because int might match the return type of a GCC
18853 builtin and then its argument prototype would still apply. */
18858 /* The GNU C library defines this for functions which it implements
18859 to always fail with ENOSYS. Some functions are actually named
18860 something starting with __ and the normal name is an alias. */
18861 #if defined __stub_res_send || defined __stub___res_send
18868 return res_send ();
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18886 (exit $ac_status); } && {
18887 test -z "$ac_c_werror_flag" ||
18888 test ! -s conftest.err
18889 } && test -s conftest$ac_exeext &&
18890 $as_test_x conftest$ac_exeext; then
18891 ac_cv_func_res_send=yes
18893 echo "$as_me: failed program was
:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 ac_cv_func_res_send=no
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900 conftest$ac_exeext conftest.$ac_ext
18902 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
18903 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18904 if test $ac_cv_func_res_send = yes; then
18907 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
18908 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
18909 if test "${ac_cv_func___res_send+set}" = set; then
18910 echo $ECHO_N "(cached
) $ECHO_C" >&6
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18920 #define __res_send innocuous___res_send
18922 /* System header to define __stub macros and hopefully few prototypes,
18923 which can conflict with char __res_send (); below.
18924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925 <limits.h> exists even on freestanding compilers. */
18928 # include <limits.h>
18930 # include <assert.h>
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18941 char __res_send ();
18942 /* The GNU C library defines this for functions which it implements
18943 to always fail with ENOSYS. Some functions are actually named
18944 something starting with __ and the normal name is an alias. */
18945 #if defined __stub___res_send || defined __stub_____res_send
18952 return __res_send ();
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (ac_try="$ac_link"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_link") 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18970 (exit $ac_status); } && {
18971 test -z "$ac_c_werror_flag" ||
18972 test ! -s conftest.err
18973 } && test -s conftest$ac_exeext &&
18974 $as_test_x conftest$ac_exeext; then
18975 ac_cv_func___res_send=yes
18977 echo "$as_me: failed program was
:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 ac_cv_func___res_send=no
18983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18984 conftest$ac_exeext conftest.$ac_ext
18986 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
18987 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18988 if test $ac_cv_func___res_send = yes; then
18991 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
18992 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
18993 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18994 echo $ECHO_N "(cached
) $ECHO_C" >&6
18996 ac_check_lib_save_LIBS=$LIBS
18997 LIBS="-lresolv $LIBS"
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19005 /* Override any GCC internal prototype to avoid an error.
19006 Use char because int might match the return type of a GCC
19007 builtin and then its argument prototype would still apply. */
19015 return res_send ();
19020 rm -f conftest.$ac_objext conftest$ac_exeext
19021 if { (ac_try="$ac_link"
19022 case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_link") 2>conftest.er1
19029 grep -v '^ *+' conftest.er1 >conftest.err
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19033 (exit $ac_status); } && {
19034 test -z "$ac_c_werror_flag" ||
19035 test ! -s conftest.err
19036 } && test -s conftest$ac_exeext &&
19037 $as_test_x conftest$ac_exeext; then
19038 ac_cv_lib_resolv_res_send=yes
19040 echo "$as_me: failed program was
:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19043 ac_cv_lib_resolv_res_send=no
19046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19047 conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19050 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19051 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19052 if test $ac_cv_lib_resolv_res_send = yes; then
19055 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19056 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19057 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19058 echo $ECHO_N "(cached
) $ECHO_C" >&6
19060 ac_check_lib_save_LIBS=$LIBS
19061 LIBS="-lresolv $LIBS"
19062 cat >conftest.$ac_ext <<_ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19069 /* Override any GCC internal prototype to avoid an error.
19070 Use char because int might match the return type of a GCC
19071 builtin and then its argument prototype would still apply. */
19075 char __res_send ();
19079 return __res_send ();
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (ac_try="$ac_link"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_link") 2>conftest.er1
19093 grep -v '^ *+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest$ac_exeext &&
19101 $as_test_x conftest$ac_exeext; then
19102 ac_cv_lib_resolv___res_send=yes
19104 echo "$as_me: failed program was
:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 ac_cv_lib_resolv___res_send=no
19110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19111 conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19114 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19115 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19116 if test $ac_cv_lib_resolv___res_send = yes; then
19126 if test "$resolv" = yes ; then
19129 cat >>confdefs.h <<\_ACEOF
19130 #define HAVE_LIBRESOLV 1
19136 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19137 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19138 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19139 echo $ECHO_N "(cached
) $ECHO_C" >&6
19141 cat >conftest.$ac_ext <<_ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19149 #define hes_getmailhost innocuous_hes_getmailhost
19151 /* System header to define __stub macros and hopefully few prototypes,
19152 which can conflict with char hes_getmailhost (); below.
19153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154 <limits.h> exists even on freestanding compilers. */
19157 # include <limits.h>
19159 # include <assert.h>
19162 #undef hes_getmailhost
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19170 char hes_getmailhost ();
19171 /* The GNU C library defines this for functions which it implements
19172 to always fail with ENOSYS. Some functions are actually named
19173 something starting with __ and the normal name is an alias. */
19174 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19181 return hes_getmailhost ();
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_link") 2>conftest.er1
19195 grep -v '^ *+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest$ac_exeext &&
19203 $as_test_x conftest$ac_exeext; then
19204 ac_cv_func_hes_getmailhost=yes
19206 echo "$as_me: failed program was
:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_func_hes_getmailhost=no
19212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19213 conftest$ac_exeext conftest.$ac_ext
19215 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19216 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19217 if test $ac_cv_func_hes_getmailhost = yes; then
19220 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19221 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19222 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19223 echo $ECHO_N "(cached
) $ECHO_C" >&6
19225 ac_check_lib_save_LIBS=$LIBS
19226 LIBS="-lhesiod $RESOLVLIB $LIBS"
19227 cat >conftest.$ac_ext <<_ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19234 /* Override any GCC internal prototype to avoid an error.
19235 Use char because int might match the return type of a GCC
19236 builtin and then its argument prototype would still apply. */
19240 char hes_getmailhost ();
19244 return hes_getmailhost ();
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;;
19255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_link") 2>conftest.er1
19258 grep -v '^ *+' conftest.er1 >conftest.err
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 ac_cv_lib_hesiod_hes_getmailhost=yes
19269 echo "$as_me: failed program was
:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_cv_lib_hesiod_hes_getmailhost=no
19275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19276 conftest$ac_exeext conftest.$ac_ext
19277 LIBS=$ac_check_lib_save_LIBS
19279 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19280 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19281 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19283 cat >>confdefs.h <<\_ACEOF
19284 #define HAVE_LIBHESIOD 1
19295 # These tell us which Kerberos-related libraries to use.
19296 if test "${with_kerberos+set}" = set; then
19298 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19299 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19300 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19301 echo $ECHO_N "(cached
) $ECHO_C" >&6
19303 ac_check_lib_save_LIBS=$LIBS
19304 LIBS="-lcom_err $LIBS"
19305 cat >conftest.$ac_ext <<_ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19312 /* Override any GCC internal prototype to avoid an error.
19313 Use char because int might match the return type of a GCC
19314 builtin and then its argument prototype would still apply. */
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (ac_try="$ac_link"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_link") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest$ac_exeext &&
19344 $as_test_x conftest$ac_exeext; then
19345 ac_cv_lib_com_err_com_err=yes
19347 echo "$as_me: failed program was
:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_cv_lib_com_err_com_err=no
19353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19354 conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_check_lib_save_LIBS
19357 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19358 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19359 if test $ac_cv_lib_com_err_com_err = yes; then
19360 cat >>confdefs.h <<_ACEOF
19361 #define HAVE_LIBCOM_ERR 1
19364 LIBS="-lcom_err $LIBS"
19369 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19370 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19371 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19372 echo $ECHO_N "(cached
) $ECHO_C" >&6
19374 ac_check_lib_save_LIBS=$LIBS
19375 LIBS="-lk5crypto $LIBS"
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19383 /* Override any GCC internal prototype to avoid an error.
19384 Use char because int might match the return type of a GCC
19385 builtin and then its argument prototype would still apply. */
19389 char mit_des_cbc_encrypt ();
19393 return mit_des_cbc_encrypt ();
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (ac_try="$ac_link"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_link") 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest$ac_exeext &&
19415 $as_test_x conftest$ac_exeext; then
19416 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19418 echo "$as_me: failed program was
:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19425 conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19428 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19429 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19430 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_LIBK5CRYPTO 1
19435 LIBS="-lk5crypto $LIBS"
19440 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19441 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19442 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19443 echo $ECHO_N "(cached
) $ECHO_C" >&6
19445 ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-lcrypto $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19460 char mit_des_cbc_encrypt ();
19464 return mit_des_cbc_encrypt ();
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_link") 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest$ac_exeext &&
19486 $as_test_x conftest$ac_exeext; then
19487 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19489 echo "$as_me: failed program was
:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19499 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19500 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19501 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19502 cat >>confdefs.h <<_ACEOF
19503 #define HAVE_LIBCRYPTO 1
19506 LIBS="-lcrypto $LIBS"
19511 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19512 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19513 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19514 echo $ECHO_N "(cached
) $ECHO_C" >&6
19516 ac_check_lib_save_LIBS=$LIBS
19517 LIBS="-lkrb5 $LIBS"
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19525 /* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19531 char krb5_init_context ();
19535 return krb5_init_context ();
19540 rm -f conftest.$ac_objext conftest$ac_exeext
19541 if { (ac_try="$ac_link"
19542 case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_link") 2>conftest.er1
19549 grep -v '^ *+' conftest.er1 >conftest.err
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest$ac_exeext &&
19557 $as_test_x conftest$ac_exeext; then
19558 ac_cv_lib_krb5_krb5_init_context=yes
19560 echo "$as_me: failed program was
:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_cv_lib_krb5_krb5_init_context=no
19566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19571 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19572 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_LIBKRB5 1
19577 LIBS="-lkrb5 $LIBS"
19581 if test "${with_kerberos5+set}" != set; then
19583 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19584 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19585 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19586 echo $ECHO_N "(cached
) $ECHO_C" >&6
19588 ac_check_lib_save_LIBS=$LIBS
19589 LIBS="-ldes425 $LIBS"
19590 cat >conftest.$ac_ext <<_ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19597 /* Override any GCC internal prototype to avoid an error.
19598 Use char because int might match the return type of a GCC
19599 builtin and then its argument prototype would still apply. */
19603 char des_cbc_encrypt ();
19607 return des_cbc_encrypt ();
19612 rm -f conftest.$ac_objext conftest$ac_exeext
19613 if { (ac_try="$ac_link"
19614 case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_link") 2>conftest.er1
19621 grep -v '^ *+' conftest.er1 >conftest.err
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19625 (exit $ac_status); } && {
19626 test -z "$ac_c_werror_flag" ||
19627 test ! -s conftest.err
19628 } && test -s conftest$ac_exeext &&
19629 $as_test_x conftest$ac_exeext; then
19630 ac_cv_lib_des425_des_cbc_encrypt=yes
19632 echo "$as_me: failed program was
:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 ac_cv_lib_des425_des_cbc_encrypt=no
19638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19639 conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19642 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19643 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19644 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19645 cat >>confdefs.h <<_ACEOF
19646 #define HAVE_LIBDES425 1
19649 LIBS="-ldes425 $LIBS"
19653 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19654 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19655 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19656 echo $ECHO_N "(cached
) $ECHO_C" >&6
19658 ac_check_lib_save_LIBS=$LIBS
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19673 char des_cbc_encrypt ();
19677 return des_cbc_encrypt ();
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1 >conftest.err
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest$ac_exeext &&
19699 $as_test_x conftest$ac_exeext; then
19700 ac_cv_lib_des_des_cbc_encrypt=yes
19702 echo "$as_me: failed program was
:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_lib_des_des_cbc_encrypt=no
19708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19709 conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19712 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19713 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19714 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE_LIBDES 1
19726 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19727 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19728 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19729 echo $ECHO_N "(cached
) $ECHO_C" >&6
19731 ac_check_lib_save_LIBS=$LIBS
19732 LIBS="-lkrb4 $LIBS"
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19740 /* Override any GCC internal prototype to avoid an error.
19741 Use char because int might match the return type of a GCC
19742 builtin and then its argument prototype would still apply. */
19746 char krb_get_cred ();
19750 return krb_get_cred ();
19755 rm -f conftest.$ac_objext conftest$ac_exeext
19756 if { (ac_try="$ac_link"
19757 case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19762 (eval "$ac_link") 2>conftest.er1
19764 grep -v '^ *+' conftest.er1 >conftest.err
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19768 (exit $ac_status); } && {
19769 test -z "$ac_c_werror_flag" ||
19770 test ! -s conftest.err
19771 } && test -s conftest$ac_exeext &&
19772 $as_test_x conftest$ac_exeext; then
19773 ac_cv_lib_krb4_krb_get_cred=yes
19775 echo "$as_me: failed program was
:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19778 ac_cv_lib_krb4_krb_get_cred=no
19781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19782 conftest$ac_exeext conftest.$ac_ext
19783 LIBS=$ac_check_lib_save_LIBS
19785 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19786 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19787 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19788 cat >>confdefs.h <<_ACEOF
19789 #define HAVE_LIBKRB4 1
19792 LIBS="-lkrb4 $LIBS"
19796 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19797 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19798 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19799 echo $ECHO_N "(cached
) $ECHO_C" >&6
19801 ac_check_lib_save_LIBS=$LIBS
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 /* Override any GCC internal prototype to avoid an error.
19811 Use char because int might match the return type of a GCC
19812 builtin and then its argument prototype would still apply. */
19816 char krb_get_cred ();
19820 return krb_get_cred ();
19825 rm -f conftest.$ac_objext conftest$ac_exeext
19826 if { (ac_try="$ac_link"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_link") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest$ac_exeext &&
19842 $as_test_x conftest$ac_exeext; then
19843 ac_cv_lib_krb_krb_get_cred=yes
19845 echo "$as_me: failed program was
:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19848 ac_cv_lib_krb_krb_get_cred=no
19851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19852 conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19855 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19856 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19857 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19858 cat >>confdefs.h <<_ACEOF
19859 #define HAVE_LIBKRB 1
19870 if test "${with_kerberos5+set}" = set; then
19872 for ac_header in krb5.h
19874 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19875 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19876 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19877 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19879 echo $ECHO_N "(cached
) $ECHO_C" >&6
19881 ac_res=`eval echo '${'$as_ac_Header'}'`
19882 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19883 echo "${ECHO_T}$ac_res" >&6; }
19885 # Is the header compilable?
19886 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19887 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 $ac_includes_default
19895 #include <$ac_header>
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_header_compiler=yes
19916 echo "$as_me: failed program was
:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_header_compiler=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19928 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <$ac_header>
19937 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19949 (exit $ac_status); } >/dev/null && {
19950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19951 test ! -s conftest.err
19953 ac_header_preproc=yes
19955 echo "$as_me: failed program was
:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_header_preproc=no
19961 rm -f conftest.err conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19963 echo "${ECHO_T}$ac_header_preproc" >&6; }
19965 # So? What about this header?
19966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19968 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19969 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19970 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19972 ac_header_preproc=yes
19975 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19976 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19977 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19978 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19979 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19980 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19981 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19982 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19983 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19985 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19986 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19990 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19991 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached
) $ECHO_C" >&6
19995 eval "$as_ac_Header=\
$ac_header_preproc"
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20013 for ac_header in des.h
20015 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20016 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20017 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20018 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20019 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20020 echo $ECHO_N "(cached
) $ECHO_C" >&6
20022 ac_res=`eval echo '${'$as_ac_Header'}'`
20023 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20024 echo "${ECHO_T}$ac_res" >&6; }
20026 # Is the header compilable?
20027 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20028 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 $ac_includes_default
20036 #include <$ac_header>
20038 rm -f conftest.$ac_objext
20039 if { (ac_try="$ac_compile"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_compile") 2>conftest.er1
20047 grep -v '^ *+' conftest.er1 >conftest.err
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20051 (exit $ac_status); } && {
20052 test -z "$ac_c_werror_flag" ||
20053 test ! -s conftest.err
20054 } && test -s conftest.$ac_objext; then
20055 ac_header_compiler=yes
20057 echo "$as_me: failed program was
:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 ac_header_compiler=no
20063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20064 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20065 echo "${ECHO_T}$ac_header_compiler" >&6; }
20067 # Is the header present?
20068 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20069 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 #include <$ac_header>
20078 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20086 grep -v '^ *+' conftest.er1 >conftest.err
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20090 (exit $ac_status); } >/dev/null && {
20091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20092 test ! -s conftest.err
20094 ac_header_preproc=yes
20096 echo "$as_me: failed program was
:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20099 ac_header_preproc=no
20102 rm -f conftest.err conftest.$ac_ext
20103 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20104 echo "${ECHO_T}$ac_header_preproc" >&6; }
20106 # So? What about this header?
20107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20109 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20110 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20111 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20113 ac_header_preproc=yes
20116 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20117 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20118 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20119 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20120 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20121 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20122 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20123 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20124 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20126 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20127 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20131 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20132 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20133 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20134 echo $ECHO_N "(cached
) $ECHO_C" >&6
20136 eval "$as_ac_Header=\
$ac_header_preproc"
20138 ac_res=`eval echo '${'$as_ac_Header'}'`
20139 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20150 for ac_header in kerberosIV/des.h
20152 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20154 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20155 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20157 echo $ECHO_N "(cached
) $ECHO_C" >&6
20159 ac_res=`eval echo '${'$as_ac_Header'}'`
20160 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20161 echo "${ECHO_T}$ac_res" >&6; }
20163 # Is the header compilable?
20164 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20165 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 $ac_includes_default
20173 #include <$ac_header>
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20192 ac_header_compiler=yes
20194 echo "$as_me: failed program was
:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_header_compiler=no
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20202 echo "${ECHO_T}$ac_header_compiler" >&6; }
20204 # Is the header present?
20205 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20206 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20207 cat >conftest.$ac_ext <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 #include <$ac_header>
20215 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20227 (exit $ac_status); } >/dev/null && {
20228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20231 ac_header_preproc=yes
20233 echo "$as_me: failed program was
:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_header_preproc=no
20239 rm -f conftest.err conftest.$ac_ext
20240 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20241 echo "${ECHO_T}$ac_header_preproc" >&6; }
20243 # So? What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20246 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20247 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20248 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20250 ac_header_preproc=yes
20253 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20254 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20255 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20256 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20257 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20258 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20259 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20260 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20261 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20263 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20264 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20268 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20269 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20271 echo $ECHO_N "(cached
) $ECHO_C" >&6
20273 eval "$as_ac_Header=\
$ac_header_preproc"
20275 ac_res=`eval echo '${'$as_ac_Header'}'`
20276 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20277 echo "${ECHO_T}$ac_res" >&6; }
20280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20281 cat >>confdefs.h <<_ACEOF
20282 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20287 for ac_header in kerberos/des.h
20289 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20290 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20291 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20292 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20293 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20294 echo $ECHO_N "(cached
) $ECHO_C" >&6
20296 ac_res=`eval echo '${'$as_ac_Header'}'`
20297 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20298 echo "${ECHO_T}$ac_res" >&6; }
20300 # Is the header compilable?
20301 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20302 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 $ac_includes_default
20310 #include <$ac_header>
20312 rm -f conftest.$ac_objext
20313 if { (ac_try="$ac_compile"
20314 case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_compile") 2>conftest.er1
20321 grep -v '^ *+' conftest.er1 >conftest.err
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20325 (exit $ac_status); } && {
20326 test -z "$ac_c_werror_flag" ||
20327 test ! -s conftest.err
20328 } && test -s conftest.$ac_objext; then
20329 ac_header_compiler=yes
20331 echo "$as_me: failed program was
:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_header_compiler=no
20337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20338 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20339 echo "${ECHO_T}$ac_header_compiler" >&6; }
20341 # Is the header present?
20342 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20343 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 #include <$ac_header>
20352 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20360 grep -v '^ *+' conftest.er1 >conftest.err
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20364 (exit $ac_status); } >/dev/null && {
20365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20368 ac_header_preproc=yes
20370 echo "$as_me: failed program was
:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_header_preproc=no
20376 rm -f conftest.err conftest.$ac_ext
20377 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20378 echo "${ECHO_T}$ac_header_preproc" >&6; }
20380 # So? What about this header?
20381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20383 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20384 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20385 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20387 ac_header_preproc=yes
20390 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20391 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20392 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20393 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20394 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20395 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20396 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20397 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20398 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20400 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20401 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20405 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20406 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20407 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20408 echo $ECHO_N "(cached
) $ECHO_C" >&6
20410 eval "$as_ac_Header=\
$ac_header_preproc"
20412 ac_res=`eval echo '${'$as_ac_Header'}'`
20413 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20414 echo "${ECHO_T}$ac_res" >&6; }
20417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20418 cat >>confdefs.h <<_ACEOF
20419 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20435 for ac_header in krb.h
20437 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20438 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20439 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20440 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20441 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20442 echo $ECHO_N "(cached
) $ECHO_C" >&6
20444 ac_res=`eval echo '${'$as_ac_Header'}'`
20445 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20446 echo "${ECHO_T}$ac_res" >&6; }
20448 # Is the header compilable?
20449 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20450 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 $ac_includes_default
20458 #include <$ac_header>
20460 rm -f conftest.$ac_objext
20461 if { (ac_try="$ac_compile"
20462 case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_compile") 2>conftest.er1
20469 grep -v '^ *+' conftest.er1 >conftest.err
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20473 (exit $ac_status); } && {
20474 test -z "$ac_c_werror_flag" ||
20475 test ! -s conftest.err
20476 } && test -s conftest.$ac_objext; then
20477 ac_header_compiler=yes
20479 echo "$as_me: failed program was
:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_header_compiler=no
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20487 echo "${ECHO_T}$ac_header_compiler" >&6; }
20489 # Is the header present?
20490 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20491 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <$ac_header>
20500 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20512 (exit $ac_status); } >/dev/null && {
20513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20516 ac_header_preproc=yes
20518 echo "$as_me: failed program was
:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_header_preproc=no
20524 rm -f conftest.err conftest.$ac_ext
20525 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20526 echo "${ECHO_T}$ac_header_preproc" >&6; }
20528 # So? What about this header?
20529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20531 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20532 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20533 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20535 ac_header_preproc=yes
20538 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20539 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20540 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20541 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20542 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20543 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20544 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20545 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20546 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20548 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20549 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20553 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20554 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20555 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20556 echo $ECHO_N "(cached
) $ECHO_C" >&6
20558 eval "$as_ac_Header=\
$ac_header_preproc"
20560 ac_res=`eval echo '${'$as_ac_Header'}'`
20561 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20562 echo "${ECHO_T}$ac_res" >&6; }
20565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20566 cat >>confdefs.h <<_ACEOF
20567 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20572 for ac_header in kerberosIV/krb.h
20574 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20575 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20576 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20577 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20578 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20579 echo $ECHO_N "(cached
) $ECHO_C" >&6
20581 ac_res=`eval echo '${'$as_ac_Header'}'`
20582 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20585 # Is the header compilable?
20586 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20587 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 $ac_includes_default
20595 #include <$ac_header>
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.$ac_objext; then
20614 ac_header_compiler=yes
20616 echo "$as_me: failed program was
:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 ac_header_compiler=no
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20624 echo "${ECHO_T}$ac_header_compiler" >&6; }
20626 # Is the header present?
20627 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20628 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <$ac_header>
20637 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20645 grep -v '^ *+' conftest.er1 >conftest.err
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20649 (exit $ac_status); } >/dev/null && {
20650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20653 ac_header_preproc=yes
20655 echo "$as_me: failed program was
:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 ac_header_preproc=no
20661 rm -f conftest.err conftest.$ac_ext
20662 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20663 echo "${ECHO_T}$ac_header_preproc" >&6; }
20665 # So? What about this header?
20666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20668 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20669 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20670 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20672 ac_header_preproc=yes
20675 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20676 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20677 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20678 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20679 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20680 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20681 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20682 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20683 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20685 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20686 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20690 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20691 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20692 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20693 echo $ECHO_N "(cached
) $ECHO_C" >&6
20695 eval "$as_ac_Header=\
$ac_header_preproc"
20697 ac_res=`eval echo '${'$as_ac_Header'}'`
20698 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20703 cat >>confdefs.h <<_ACEOF
20704 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20709 for ac_header in kerberos/krb.h
20711 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20712 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20713 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20714 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20715 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20716 echo $ECHO_N "(cached
) $ECHO_C" >&6
20718 ac_res=`eval echo '${'$as_ac_Header'}'`
20719 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20720 echo "${ECHO_T}$ac_res" >&6; }
20722 # Is the header compilable?
20723 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20724 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 $ac_includes_default
20732 #include <$ac_header>
20734 rm -f conftest.$ac_objext
20735 if { (ac_try="$ac_compile"
20736 case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_compile") 2>conftest.er1
20743 grep -v '^ *+' conftest.er1 >conftest.err
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20747 (exit $ac_status); } && {
20748 test -z "$ac_c_werror_flag" ||
20749 test ! -s conftest.err
20750 } && test -s conftest.$ac_objext; then
20751 ac_header_compiler=yes
20753 echo "$as_me: failed program was
:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 ac_header_compiler=no
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20761 echo "${ECHO_T}$ac_header_compiler" >&6; }
20763 # Is the header present?
20764 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20765 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 #include <$ac_header>
20774 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20786 (exit $ac_status); } >/dev/null && {
20787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20790 ac_header_preproc=yes
20792 echo "$as_me: failed program was
:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_header_preproc=no
20798 rm -f conftest.err conftest.$ac_ext
20799 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20800 echo "${ECHO_T}$ac_header_preproc" >&6; }
20802 # So? What about this header?
20803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20805 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20806 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20807 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20809 ac_header_preproc=yes
20812 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20813 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20814 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20815 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20816 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20817 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20818 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20819 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20820 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20822 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20823 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20827 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20828 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20829 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20830 echo $ECHO_N "(cached
) $ECHO_C" >&6
20832 eval "$as_ac_Header=\
$ac_header_preproc"
20834 ac_res=`eval echo '${'$as_ac_Header'}'`
20835 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20836 echo "${ECHO_T}$ac_res" >&6; }
20839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20840 cat >>confdefs.h <<_ACEOF
20841 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20858 for ac_header in com_err.h
20860 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20861 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20862 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20863 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20864 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20865 echo $ECHO_N "(cached
) $ECHO_C" >&6
20867 ac_res=`eval echo '${'$as_ac_Header'}'`
20868 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20869 echo "${ECHO_T}$ac_res" >&6; }
20871 # Is the header compilable?
20872 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20873 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20874 cat >conftest.$ac_ext <<_ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 $ac_includes_default
20881 #include <$ac_header>
20883 rm -f conftest.$ac_objext
20884 if { (ac_try="$ac_compile"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_compile") 2>conftest.er1
20892 grep -v '^ *+' conftest.er1 >conftest.err
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20896 (exit $ac_status); } && {
20897 test -z "$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20899 } && test -s conftest.$ac_objext; then
20900 ac_header_compiler=yes
20902 echo "$as_me: failed program was
:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_header_compiler=no
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20910 echo "${ECHO_T}$ac_header_compiler" >&6; }
20912 # Is the header present?
20913 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20914 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20915 cat >conftest.$ac_ext <<_ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <$ac_header>
20923 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20931 grep -v '^ *+' conftest.er1 >conftest.err
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20935 (exit $ac_status); } >/dev/null && {
20936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20939 ac_header_preproc=yes
20941 echo "$as_me: failed program was
:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_header_preproc=no
20947 rm -f conftest.err conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20949 echo "${ECHO_T}$ac_header_preproc" >&6; }
20951 # So? What about this header?
20952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20954 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20955 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20956 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20958 ac_header_preproc=yes
20961 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20962 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20963 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20964 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20965 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20966 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20967 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20968 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20969 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20971 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20972 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20976 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20977 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20978 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20979 echo $ECHO_N "(cached
) $ECHO_C" >&6
20981 eval "$as_ac_Header=\
$ac_header_preproc"
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20989 cat >>confdefs.h <<_ACEOF
20990 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20999 # Solaris requires -lintl if you want strerror (which calls dgettext)
21000 # to return localized messages.
21002 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21003 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21004 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21005 echo $ECHO_N "(cached
) $ECHO_C" >&6
21007 ac_check_lib_save_LIBS=$LIBS
21008 LIBS="-lintl $LIBS"
21009 cat >conftest.$ac_ext <<_ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21016 /* Override any GCC internal prototype to avoid an error.
21017 Use char because int might match the return type of a GCC
21018 builtin and then its argument prototype would still apply. */
21026 return dgettext ();
21031 rm -f conftest.$ac_objext conftest$ac_exeext
21032 if { (ac_try="$ac_link"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_link") 2>conftest.er1
21040 grep -v '^ *+' conftest.er1 >conftest.err
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21044 (exit $ac_status); } && {
21045 test -z "$ac_c_werror_flag" ||
21046 test ! -s conftest.err
21047 } && test -s conftest$ac_exeext &&
21048 $as_test_x conftest$ac_exeext; then
21049 ac_cv_lib_intl_dgettext=yes
21051 echo "$as_me: failed program was
:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 ac_cv_lib_intl_dgettext=no
21057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21058 conftest$ac_exeext conftest.$ac_ext
21059 LIBS=$ac_check_lib_save_LIBS
21061 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21062 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21063 if test $ac_cv_lib_intl_dgettext = yes; then
21064 cat >>confdefs.h <<_ACEOF
21065 #define HAVE_LIBINTL 1
21068 LIBS="-lintl $LIBS"
21073 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21074 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21075 if test "${emacs_cv_localtime_cache+set}" = set; then
21076 echo $ECHO_N "(cached
) $ECHO_C" >&6
21078 if test x$ac_cv_func_tzset = xyes; then
21079 if test "$cross_compiling" = yes; then
21080 # If we have tzset, assume the worst when cross-compiling.
21081 emacs_cv_localtime_cache=yes
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21090 extern char **environ;
21094 for (to = from = environ; (*to = *from); from++)
21095 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21098 char TZ_GMT0[] = "TZ
=GMT0
";
21099 char TZ_PST8[] = "TZ
=PST8
";
21102 time_t now = time ((time_t *) 0);
21103 int hour_GMT0, hour_unset;
21104 if (putenv (TZ_GMT0) != 0)
21106 hour_GMT0 = localtime (&now)->tm_hour;
21108 hour_unset = localtime (&now)->tm_hour;
21109 if (putenv (TZ_PST8) != 0)
21111 if (localtime (&now)->tm_hour == hour_GMT0)
21114 if (localtime (&now)->tm_hour != hour_unset)
21119 rm -f conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_link") 2>&5
21128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21130 { (case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_try") 2>&5
21137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 emacs_cv_localtime_cache=no
21141 echo "$as_me: program exited with status
$ac_status" >&5
21142 echo "$as_me: failed program was
:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ( exit $ac_status )
21146 emacs_cv_localtime_cache=yes
21148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21153 # If we lack tzset, report that localtime does not cache TZ,
21154 # since we can't invalidate the cache if we don't have tzset.
21155 emacs_cv_localtime_cache=no
21158 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21159 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21160 if test $emacs_cv_localtime_cache = yes; then
21162 cat >>confdefs.h <<\_ACEOF
21163 #define LOCALTIME_CACHE 1
21168 if test "x
$HAVE_TIMEVAL" = xyes; then
21170 for ac_func in gettimeofday
21172 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21173 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21174 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21175 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached
) $ECHO_C" >&6
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21186 #define $ac_func innocuous_$ac_func
21188 /* System header to define __stub macros and hopefully few prototypes,
21189 which can conflict with char $ac_func (); below.
21190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21191 <limits.h> exists even on freestanding compilers. */
21194 # include <limits.h>
21196 # include <assert.h>
21201 /* Override any GCC internal prototype to avoid an error.
21202 Use char because int might match the return type of a GCC
21203 builtin and then its argument prototype would still apply. */
21208 /* The GNU C library defines this for functions which it implements
21209 to always fail with ENOSYS. Some functions are actually named
21210 something starting with __ and the normal name is an alias. */
21211 #if defined __stub_$ac_func || defined __stub___$ac_func
21218 return $ac_func ();
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_link") 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21236 (exit $ac_status); } && {
21237 test -z "$ac_c_werror_flag" ||
21238 test ! -s conftest.err
21239 } && test -s conftest$ac_exeext &&
21240 $as_test_x conftest$ac_exeext; then
21241 eval "$as_ac_var=yes"
21243 echo "$as_me: failed program was
:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 eval "$as_ac_var=no
"
21249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21250 conftest$ac_exeext conftest.$ac_ext
21252 ac_res=`eval echo '${'$as_ac_var'}'`
21253 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21254 echo "${ECHO_T}$ac_res" >&6; }
21255 if test `eval echo '${'$as_ac_var'}'` = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21263 if test $ac_cv_func_gettimeofday = yes; then
21264 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21265 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21266 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21267 echo $ECHO_N "(cached
) $ECHO_C" >&6
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21276 #ifdef TIME_WITH_SYS_TIME
21277 #include <sys/time.h>
21280 #ifdef HAVE_SYS_TIME_H
21281 #include <sys/time.h>
21289 struct timeval time;
21290 gettimeofday (&time, 0);
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21304 grep -v '^ *+' conftest.er1 >conftest.err
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.$ac_objext; then
21312 emacs_cv_gettimeofday_two_arguments=yes
21314 echo "$as_me: failed program was
:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 emacs_cv_gettimeofday_two_arguments=no
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21323 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21324 if test $emacs_cv_gettimeofday_two_arguments = no; then
21326 cat >>confdefs.h <<\_ACEOF
21327 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21335 { echo "$as_me:$LINENO: checking
for socket
" >&5
21336 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21337 if test "${ac_cv_func_socket+set}" = set; then
21338 echo $ECHO_N "(cached
) $ECHO_C" >&6
21340 cat >conftest.$ac_ext <<_ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21348 #define socket innocuous_socket
21350 /* System header to define __stub macros and hopefully few prototypes,
21351 which can conflict with char socket (); below.
21352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21353 <limits.h> exists even on freestanding compilers. */
21356 # include <limits.h>
21358 # include <assert.h>
21363 /* Override any GCC internal prototype to avoid an error.
21364 Use char because int might match the return type of a GCC
21365 builtin and then its argument prototype would still apply. */
21370 /* The GNU C library defines this for functions which it implements
21371 to always fail with ENOSYS. Some functions are actually named
21372 something starting with __ and the normal name is an alias. */
21373 #if defined __stub_socket || defined __stub___socket
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext &&
21402 $as_test_x conftest$ac_exeext; then
21403 ac_cv_func_socket=yes
21405 echo "$as_me: failed program was
:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_cv_func_socket=no
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21414 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21415 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21416 if test $ac_cv_func_socket = yes; then
21422 if test $ok_so_far = yes; then
21423 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21424 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21425 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21426 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21427 echo $ECHO_N "(cached
) $ECHO_C" >&6
21429 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21430 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21432 # Is the header compilable?
21433 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21434 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 $ac_includes_default
21442 #include <netinet/in.h>
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_compile") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21457 (exit $ac_status); } && {
21458 test -z "$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 } && test -s conftest.$ac_objext; then
21461 ac_header_compiler=yes
21463 echo "$as_me: failed program was
:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_header_compiler=no
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21471 echo "${ECHO_T}$ac_header_compiler" >&6; }
21473 # Is the header present?
21474 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21475 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 #include <netinet/in.h>
21484 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21492 grep -v '^ *+' conftest.er1 >conftest.err
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21496 (exit $ac_status); } >/dev/null && {
21497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21500 ac_header_preproc=yes
21502 echo "$as_me: failed program was
:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ac_header_preproc=no
21508 rm -f conftest.err conftest.$ac_ext
21509 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21510 echo "${ECHO_T}$ac_header_preproc" >&6; }
21512 # So? What about this header?
21513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21516 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21517 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21518 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21519 ac_header_preproc=yes
21522 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21523 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21524 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21525 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21526 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21527 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21528 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21529 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21530 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21531 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21532 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21533 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21537 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21538 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21539 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21540 echo $ECHO_N "(cached
) $ECHO_C" >&6
21542 ac_cv_header_netinet_in_h=$ac_header_preproc
21544 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21545 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21548 if test $ac_cv_header_netinet_in_h = yes; then
21556 if test $ok_so_far = yes; then
21557 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21558 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21559 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21560 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21561 echo $ECHO_N "(cached
) $ECHO_C" >&6
21563 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21564 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21566 # Is the header compilable?
21567 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21568 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 #include <arpa/inet.h>
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest.$ac_objext; then
21595 ac_header_compiler=yes
21597 echo "$as_me: failed program was
:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_header_compiler=no
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21605 echo "${ECHO_T}$ac_header_compiler" >&6; }
21607 # Is the header present?
21608 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21609 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <arpa/inet.h>
21618 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21630 (exit $ac_status); } >/dev/null && {
21631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21634 ac_header_preproc=yes
21636 echo "$as_me: failed program was
:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ac_header_preproc=no
21642 rm -f conftest.err conftest.$ac_ext
21643 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21644 echo "${ECHO_T}$ac_header_preproc" >&6; }
21646 # So? What about this header?
21647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21649 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21650 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21651 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21652 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21653 ac_header_preproc=yes
21656 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21657 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21658 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21659 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21660 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21661 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21662 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21663 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21664 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21665 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21666 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21667 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21671 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21672 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21673 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21674 echo $ECHO_N "(cached
) $ECHO_C" >&6
21676 ac_cv_header_arpa_inet_h=$ac_header_preproc
21678 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21679 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21682 if test $ac_cv_header_arpa_inet_h = yes; then
21690 if test $ok_so_far = yes; then
21692 cat >>confdefs.h <<\_ACEOF
21693 #define HAVE_INET_SOCKETS 1
21699 for ac_header in sys/ioctl.h
21701 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21702 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21703 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21704 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21705 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21706 echo $ECHO_N "(cached
) $ECHO_C" >&6
21708 ac_res=`eval echo '${'$as_ac_Header'}'`
21709 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21710 echo "${ECHO_T}$ac_res" >&6; }
21712 # Is the header compilable?
21713 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21714 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21715 cat >conftest.$ac_ext <<_ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 $ac_includes_default
21722 #include <$ac_header>
21724 rm -f conftest.$ac_objext
21725 if { (ac_try="$ac_compile"
21726 case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_compile") 2>conftest.er1
21733 grep -v '^ *+' conftest.er1 >conftest.err
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest.$ac_objext; then
21741 ac_header_compiler=yes
21743 echo "$as_me: failed program was
:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21746 ac_header_compiler=no
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21751 echo "${ECHO_T}$ac_header_compiler" >&6; }
21753 # Is the header present?
21754 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21755 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 #include <$ac_header>
21764 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21770 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21772 grep -v '^ *+' conftest.er1 >conftest.err
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21776 (exit $ac_status); } >/dev/null && {
21777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21778 test ! -s conftest.err
21780 ac_header_preproc=yes
21782 echo "$as_me: failed program was
:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 ac_header_preproc=no
21788 rm -f conftest.err conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21790 echo "${ECHO_T}$ac_header_preproc" >&6; }
21792 # So? What about this header?
21793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21795 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21796 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21797 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21799 ac_header_preproc=yes
21802 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21803 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21804 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21805 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21806 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21807 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21808 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21809 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21810 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21812 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21813 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21817 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21818 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21819 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21820 echo $ECHO_N "(cached
) $ECHO_C" >&6
21822 eval "$as_ac_Header=\
$ac_header_preproc"
21824 ac_res=`eval echo '${'$as_ac_Header'}'`
21825 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21826 echo "${ECHO_T}$ac_res" >&6; }
21829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21830 cat >>confdefs.h <<_ACEOF
21831 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21839 if test -f /usr/lpp/X11/bin/smt.exp; then
21841 cat >>confdefs.h <<\_ACEOF
21842 #define HAVE_AIX_SMT_EXP 1
21847 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21848 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21849 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21850 { echo "$as_me:$LINENO: result
: yes" >&5
21851 echo "${ECHO_T}yes" >&6; }
21853 cat >>confdefs.h <<\_ACEOF
21854 #define HAVE_DEV_PTMX 1
21858 { echo "$as_me:$LINENO: result
: no
" >&5
21859 echo "${ECHO_T}no
" >&6; }
21862 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21863 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21864 if test "${ac_cv_type_pid_t+set}" = set; then
21865 echo $ECHO_N "(cached
) $ECHO_C" >&6
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 $ac_includes_default
21874 typedef pid_t ac__type_new_;
21878 if ((ac__type_new_ *) 0)
21880 if (sizeof (ac__type_new_))
21886 rm -f conftest.$ac_objext
21887 if { (ac_try="$ac_compile"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_compile") 2>conftest.er1
21895 grep -v '^ *+' conftest.er1 >conftest.err
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest.$ac_objext; then
21903 ac_cv_type_pid_t=yes
21905 echo "$as_me: failed program was
:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 ac_cv_type_pid_t=no
21911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21913 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
21914 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21915 if test $ac_cv_type_pid_t = yes; then
21919 cat >>confdefs.h <<_ACEOF
21926 for ac_header in vfork.h
21928 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21929 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21930 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21931 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21932 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21933 echo $ECHO_N "(cached
) $ECHO_C" >&6
21935 ac_res=`eval echo '${'$as_ac_Header'}'`
21936 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21937 echo "${ECHO_T}$ac_res" >&6; }
21939 # Is the header compilable?
21940 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21941 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21942 cat >conftest.$ac_ext <<_ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 $ac_includes_default
21949 #include <$ac_header>
21951 rm -f conftest.$ac_objext
21952 if { (ac_try="$ac_compile"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_compile") 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest.$ac_objext; then
21968 ac_header_compiler=yes
21970 echo "$as_me: failed program was
:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21973 ac_header_compiler=no
21976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21978 echo "${ECHO_T}$ac_header_compiler" >&6; }
21980 # Is the header present?
21981 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21982 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21983 cat >conftest.$ac_ext <<_ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 #include <$ac_header>
21991 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21992 case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21999 grep -v '^ *+' conftest.er1 >conftest.err
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22003 (exit $ac_status); } >/dev/null && {
22004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22005 test ! -s conftest.err
22007 ac_header_preproc=yes
22009 echo "$as_me: failed program was
:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22012 ac_header_preproc=no
22015 rm -f conftest.err conftest.$ac_ext
22016 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22017 echo "${ECHO_T}$ac_header_preproc" >&6; }
22019 # So? What about this header?
22020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22022 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22023 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22024 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22026 ac_header_preproc=yes
22029 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22030 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22031 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22032 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22033 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22034 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22035 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22036 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22037 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22039 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22040 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22044 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22045 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22047 echo $ECHO_N "(cached
) $ECHO_C" >&6
22049 eval "$as_ac_Header=\
$ac_header_preproc"
22051 ac_res=`eval echo '${'$as_ac_Header'}'`
22052 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22053 echo "${ECHO_T}$ac_res" >&6; }
22056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22057 cat >>confdefs.h <<_ACEOF
22058 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22067 for ac_func in fork vfork
22069 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22070 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22071 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22072 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22073 echo $ECHO_N "(cached
) $ECHO_C" >&6
22075 cat >conftest.$ac_ext <<_ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22083 #define $ac_func innocuous_$ac_func
22085 /* System header to define __stub macros and hopefully few prototypes,
22086 which can conflict with char $ac_func (); below.
22087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22088 <limits.h> exists even on freestanding compilers. */
22091 # include <limits.h>
22093 # include <assert.h>
22098 /* Override any GCC internal prototype to avoid an error.
22099 Use char because int might match the return type of a GCC
22100 builtin and then its argument prototype would still apply. */
22105 /* The GNU C library defines this for functions which it implements
22106 to always fail with ENOSYS. Some functions are actually named
22107 something starting with __ and the normal name is an alias. */
22108 #if defined __stub_$ac_func || defined __stub___$ac_func
22115 return $ac_func ();
22120 rm -f conftest.$ac_objext conftest$ac_exeext
22121 if { (ac_try="$ac_link"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_link") 2>conftest.er1
22129 grep -v '^ *+' conftest.er1 >conftest.err
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest$ac_exeext &&
22137 $as_test_x conftest$ac_exeext; then
22138 eval "$as_ac_var=yes"
22140 echo "$as_me: failed program was
:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 eval "$as_ac_var=no
"
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22149 ac_res=`eval echo '${'$as_ac_var'}'`
22150 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22151 echo "${ECHO_T}$ac_res" >&6; }
22152 if test `eval echo '${'$as_ac_var'}'` = yes; then
22153 cat >>confdefs.h <<_ACEOF
22154 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22160 if test "x
$ac_cv_func_fork" = xyes; then
22161 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22162 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22163 if test "${ac_cv_func_fork_works+set}" = set; then
22164 echo $ECHO_N "(cached
) $ECHO_C" >&6
22166 if test "$cross_compiling" = yes; then
22167 ac_cv_func_fork_works=cross
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 $ac_includes_default
22180 /* By Ruediger Kuhlmann. */
22181 return fork () < 0;
22187 rm -f conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>&5
22196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22198 { (case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_try") 2>&5
22205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_func_fork_works=yes
22209 echo "$as_me: program exited with status
$ac_status" >&5
22210 echo "$as_me: failed program was
:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 ( exit $ac_status )
22214 ac_cv_func_fork_works=no
22216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22221 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22222 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22225 ac_cv_func_fork_works=$ac_cv_func_fork
22227 if test "x
$ac_cv_func_fork_works" = xcross; then
22229 *-*-amigaos* | *-*-msdosdjgpp*)
22230 # Override, as these systems have only a dummy fork() stub
22231 ac_cv_func_fork_works=no
22234 ac_cv_func_fork_works=yes
22237 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22238 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22240 ac_cv_func_vfork_works=$ac_cv_func_vfork
22241 if test "x
$ac_cv_func_vfork" = xyes; then
22242 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22243 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22244 if test "${ac_cv_func_vfork_works+set}" = set; then
22245 echo $ECHO_N "(cached
) $ECHO_C" >&6
22247 if test "$cross_compiling" = yes; then
22248 ac_cv_func_vfork_works=cross
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 /* Thanks to Paul Eggert for this test. */
22257 $ac_includes_default
22258 #include <sys/wait.h>
22259 #ifdef HAVE_VFORK_H
22260 # include <vfork.h>
22262 /* On some sparc systems, changes by the child to local and incoming
22263 argument registers are propagated back to the parent. The compiler
22264 is told about this with #include <vfork.h>, but some compilers
22265 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22266 static variable whose address is put into a register that is
22267 clobbered by the vfork. */
22270 sparc_address_test (int arg)
22272 sparc_address_test (arg) int arg;
22275 static pid_t child;
22293 pid_t parent = getpid ();
22296 sparc_address_test (0);
22301 /* Here is another test for sparc vfork register problems. This
22302 test uses lots of local variables, at least as many local
22303 variables as main has allocated so far including compiler
22304 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22305 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22306 reuse the register of parent for one of the local variables,
22307 since it will think that parent can't possibly be used any more
22308 in this routine. Assigning to the local variable will thus
22309 munge parent in the parent process. */
22311 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22312 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22313 /* Convince the compiler that p..p7 are live; otherwise, it might
22314 use the same hardware register for all 8 local variables. */
22315 if (p != p1 || p != p2 || p != p3 || p != p4
22316 || p != p5 || p != p6 || p != p7)
22319 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22320 from child file descriptors. If the child closes a descriptor
22321 before it execs or exits, this munges the parent's descriptor
22322 as well. Test for this by closing stdout in the child. */
22323 _exit(close(fileno(stdout)) != 0);
22328 while (wait(&status) != child)
22331 /* Was there some problem with vforking? */
22334 /* Did the child fail? (This shouldn't happen.) */
22337 /* Did the vfork/compiler bug occur? */
22338 || parent != getpid()
22340 /* Did the file descriptor bug occur? */
22341 || fstat(fileno(stdout), &st) != 0
22346 rm -f conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_link") 2>&5
22355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22357 { (case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_try") 2>&5
22364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 ac_cv_func_vfork_works=yes
22368 echo "$as_me: program exited with status
$ac_status" >&5
22369 echo "$as_me: failed program was
:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 ( exit $ac_status )
22373 ac_cv_func_vfork_works=no
22375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22380 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22381 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22384 if test "x
$ac_cv_func_fork_works" = xcross; then
22385 ac_cv_func_vfork_works=$ac_cv_func_vfork
22386 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22387 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22390 if test "x
$ac_cv_func_vfork_works" = xyes; then
22392 cat >>confdefs.h <<\_ACEOF
22393 #define HAVE_WORKING_VFORK 1
22398 cat >>confdefs.h <<\_ACEOF
22403 if test "x
$ac_cv_func_fork_works" = xyes; then
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_WORKING_FORK 1
22412 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22413 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22414 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22415 echo $ECHO_N "(cached
) $ECHO_C" >&6
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 #include <langinfo.h>
22427 char* cs = nl_langinfo(CODESET);
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_link") 2>conftest.er1
22441 grep -v '^ *+' conftest.er1 >conftest.err
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest$ac_exeext &&
22449 $as_test_x conftest$ac_exeext; then
22450 emacs_cv_langinfo_codeset=yes
22452 echo "$as_me: failed program was
:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 emacs_cv_langinfo_codeset=no
22458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22459 conftest$ac_exeext conftest.$ac_ext
22462 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22463 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22464 if test $emacs_cv_langinfo_codeset = yes; then
22466 cat >>confdefs.h <<\_ACEOF
22467 #define HAVE_LANGINFO_CODESET 1
22472 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22473 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22474 if test "${ac_cv_type_size_t+set}" = set; then
22475 echo $ECHO_N "(cached
) $ECHO_C" >&6
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 $ac_includes_default
22484 typedef size_t ac__type_new_;
22488 if ((ac__type_new_ *) 0)
22490 if (sizeof (ac__type_new_))
22496 rm -f conftest.$ac_objext
22497 if { (ac_try="$ac_compile"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_compile") 2>conftest.er1
22505 grep -v '^ *+' conftest.er1 >conftest.err
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest.$ac_objext; then
22513 ac_cv_type_size_t=yes
22515 echo "$as_me: failed program was
:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22518 ac_cv_type_size_t=no
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22524 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22525 if test $ac_cv_type_size_t = yes; then
22527 cat >>confdefs.h <<_ACEOF
22528 #define HAVE_SIZE_T 1
22535 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22536 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22537 if test "${ac_cv_type_mbstate_t+set}" = set; then
22538 echo $ECHO_N "(cached
) $ECHO_C" >&6
22540 cat >conftest.$ac_ext <<_ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h. */
22546 $ac_includes_default
22547 # include <wchar.h>
22551 mbstate_t x; return sizeof x;
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22565 grep -v '^ *+' conftest.er1 >conftest.err
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_cv_type_mbstate_t=yes
22575 echo "$as_me: failed program was
:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_cv_type_mbstate_t=no
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22584 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22585 if test $ac_cv_type_mbstate_t = yes; then
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_MBSTATE_T 1
22593 cat >>confdefs.h <<\_ACEOF
22594 #define mbstate_t int
22599 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22600 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22601 if test "${emacs_cv_c_restrict+set}" = set; then
22602 echo $ECHO_N "(cached
) $ECHO_C" >&6
22604 cat >conftest.$ac_ext <<_ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610 void fred (int *restrict x);
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 emacs_cv_c_restrict=yes
22638 echo "$as_me: failed program was
:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 cat >conftest.$ac_ext <<_ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 void fred (int *__restrict x);
22656 rm -f conftest.$ac_objext
22657 if { (ac_try="$ac_compile"
22658 case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_compile") 2>conftest.er1
22665 grep -v '^ *+' conftest.er1 >conftest.err
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest.$ac_objext; then
22673 emacs_cv_c_restrict=__restrict
22675 echo "$as_me: failed program was
:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22678 emacs_cv_c_restrict=no
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22687 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22688 case "$emacs_cv_c_restrict" in
22689 yes) emacs_restrict=restrict;;
22690 no) emacs_restrict="";;
22691 *) emacs_restrict="$emacs_cv_c_restrict";;
22693 if test "$emacs_restrict" != __restrict; then
22695 cat >>confdefs.h <<_ACEOF
22696 #define __restrict $emacs_restrict
22701 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22702 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22703 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22704 echo $ECHO_N "(cached
) $ECHO_C" >&6
22706 cat >conftest.$ac_ext <<_ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 void fred (int x[__restrict]);
22721 rm -f conftest.$ac_objext
22722 if { (ac_try="$ac_compile"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_compile") 2>conftest.er1
22730 grep -v '^ *+' conftest.er1 >conftest.err
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22734 (exit $ac_status); } && {
22735 test -z "$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22737 } && test -s conftest.$ac_objext; then
22738 emacs_cv_c_restrict_arr=yes
22740 echo "$as_me: failed program was
:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22743 emacs_cv_c_restrict_arr=no
22746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22749 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22750 if test "$emacs_cv_c_restrict_arr" = yes; then
22752 cat >>confdefs.h <<\_ACEOF
22753 #define __restrict_arr __restrict
22760 # Set up the CFLAGS for real compilation, so we can substitute it.
22761 CFLAGS="$REAL_CFLAGS"
22762 CPPFLAGS="$REAL_CPPFLAGS"
22764 #### Find out which version of Emacs this is.
22765 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22766 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22767 if test x"${version}" = x; then
22768 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22769 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22770 { (exit 1); exit 1; }; }
22773 ### Specify what sort of things we'll be editing into Makefile and config.h.
22774 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22810 cat >>confdefs.h <<_ACEOF
22811 #define EMACS_CONFIGURATION "${canonical}"
22815 cat >>confdefs.h <<_ACEOF
22816 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22820 cat >>confdefs.h <<_ACEOF
22821 #define config_machfile "${machfile}"
22825 cat >>confdefs.h <<_ACEOF
22826 #define config_opsysfile "${opsysfile}"
22830 cat >>confdefs.h <<_ACEOF
22831 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22835 cat >>confdefs.h <<_ACEOF
22836 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22840 cat >>confdefs.h <<_ACEOF
22841 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22845 cat >>confdefs.h <<_ACEOF
22846 #define UNEXEC_SRC ${UNEXEC_SRC}
22850 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_X_WINDOWS 1
22857 if test "${USE_X_TOOLKIT}" != "none
" ; then
22859 cat >>confdefs.h <<\_ACEOF
22860 #define USE_X_TOOLKIT 1
22864 if test "${HAVE_X11}" = "yes" ; then
22866 cat >>confdefs.h <<\_ACEOF
22871 if test "${HAVE_XFREE386}" = "yes" ; then
22873 cat >>confdefs.h <<\_ACEOF
22874 #define HAVE_XFREE386 1
22878 if test "${HAVE_MENUS}" = "yes" ; then
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_MENUS 1
22885 if test "${GNU_MALLOC}" = "yes" ; then
22887 cat >>confdefs.h <<\_ACEOF
22888 #define GNU_MALLOC 1
22892 if test "${REL_ALLOC}" = "yes" ; then
22894 cat >>confdefs.h <<\_ACEOF
22895 #define REL_ALLOC 1
22904 #### Report on what we decided to do.
22905 #### Report GTK as a toolkit, even if it doesn't use Xt.
22906 #### It makes printing result more understandable as using GTK sets
22907 #### toolkit_scroll_bars to yes by default.
22908 if test "${HAVE_GTK}" = "yes"; then
22913 Configured
for \
`${canonical}'.
22915 Where should the build process find the source code? ${srcdir}
22916 What operating system and machine description files should Emacs use?
22917 \`${opsysfile}' and \`${machfile}'
22918 What compiler should emacs be built with?
${CC} ${CFLAGS}
22919 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
22920 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
22921 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
22922 What window system should Emacs use?
${window_system}
22923 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
22925 if test -n "${x_includes}"; then
22926 echo " Where
do we
find X Windows header files?
${x_includes}"
22928 echo " Where
do we
find X Windows header files? Standard
dirs"
22930 if test -n "${x_libraries}"; then
22931 echo " Where
do we
find X Windows libraries?
${x_libraries}"
22933 echo " Where
do we
find X Windows libraries? Standard
dirs"
22936 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
22937 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
22938 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
22939 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
22940 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
22941 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
22942 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
22945 if test $USE_XASSERTS = yes; then
22946 echo " Compiling with asserts turned on.
"
22947 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22953 # Remove any trailing slashes in these variables.
22954 test "${prefix}" != NONE &&
22955 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22956 test "${exec_prefix}" != NONE &&
22957 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22959 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22960 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22961 ## from Makefile.c can correctly provide the arg `-traditional' to the
22964 cat >conftest.$ac_ext <<_ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22972 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22973 $EGREP "yes..
yes" >/dev/null 2>&1; then
22974 CPP_NEED_TRADITIONAL=no
22976 CPP_NEED_TRADITIONAL=yes
22981 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
22983 ac_config_commands="$ac_config_commands default
"
22985 cat >confcache <<\_ACEOF
22986 # This file is a shell script that caches the results of configure
22987 # tests run on this system so they can be shared between configure
22988 # scripts and configure runs, see configure's option --config-cache.
22989 # It is not useful on other systems. If it contains results you don't
22990 # want to keep, you may remove or edit it.
22992 # config.status only pays attention to the cache file if you give it
22993 # the --recheck option to rerun configure.
22995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22997 # following values.
23001 # The following way of writing the cache mishandles newlines in values,
23002 # but we know of no workaround that is simple, portable, and efficient.
23003 # So, we kill variables containing newlines.
23004 # Ultrix sh set writes to stderr and can't be redirected directly,
23005 # and sets the high bit in the cache file unless we assign to the vars.
23007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23008 eval ac_val=\$$ac_var
23012 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23013 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23016 _ | IFS | as_nl) ;; #(
23017 *) $as_unset $ac_var ;;
23023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23024 *${as_nl}ac_space=\ *)
23025 # `set' does not quote correctly, so add quotes (double-quote
23026 # substitution turns \\\\ into \\, and sed turns \\ into \).
23029 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23032 # `set' quotes correctly as required by POSIX, so do not add quotes.
23033 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23047 if test -w "$cache_file"; then
23048 test "x
$cache_file" != "x
/dev
/null
" &&
23049 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23050 echo "$as_me: updating cache
$cache_file" >&6;}
23051 cat confcache >$cache_file
23053 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23054 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23059 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23060 # Let make expand exec_prefix.
23061 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23063 DEFS=-DHAVE_CONFIG_H
23067 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23068 # 1. Remove the extension, and $U if already installed.
23069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23070 ac_i=`echo "$ac_i" | sed "$ac_script"`
23071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23072 # will be set to the directory where LIBOBJS objects are built.
23073 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23074 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23076 LIBOBJS=$ac_libobjs
23078 LTLIBOBJS=$ac_ltlibobjs
23082 : ${CONFIG_STATUS=./config.status}
23083 ac_clean_files_save=$ac_clean_files
23084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23085 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23086 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23087 cat >$CONFIG_STATUS <<_ACEOF
23089 # Generated by $as_me.
23090 # Run this file to recreate the current configuration.
23091 # Compiler output produced by configure, useful for debugging
23092 # configure, is in config.log if it exists.
23095 ac_cs_recheck=false
23097 SHELL=\${CONFIG_SHELL-$SHELL}
23100 cat >>$CONFIG_STATUS <<\_ACEOF
23101 ## --------------------- ##
23102 ## M4sh Initialization. ##
23103 ## --------------------- ##
23105 # Be more Bourne compatible
23106 DUALCASE=1; export DUALCASE # for MKS sh
23107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23111 # is contrary to our usage. Disable this feature.
23112 alias -g '${1+"$@"}'='"$@
"'
23113 setopt NO_GLOB_SUBST
23115 case `(set -o) 2>/dev/null` in
23116 *posix*) set -o posix ;;
23125 # Avoid depending upon Character Ranges.
23126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23129 as_cr_digits='0123456789'
23130 as_cr_alnum=$as_cr_Letters$as_cr_digits
23132 # The user is always right.
23133 if test "${PATH_SEPARATOR+set}" != set; then
23134 echo "#! /bin/sh" >conf$$.sh
23135 echo "exit 0" >>conf$$.sh
23137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23145 # Support unset when possible.
23146 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23154 # We need space, tab and new line, in precisely that order. Quoting is
23155 # there to prevent editors from complaining about space-tab.
23156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23157 # splitting by setting IFS to empty value.)
23162 # Find who we are. Look in the path if we contain no directory separator.
23164 *[\\/]* ) as_myself
=$0 ;;
23165 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23166 for as_dir
in $PATH
23169 test -z "$as_dir" && as_dir
=.
23170 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23176 # We did not find ourselves, most probably we were run as `sh COMMAND'
23177 # in which case we are not to be found in the path.
23178 if test "x$as_myself" = x
; then
23181 if test ! -f "$as_myself"; then
23182 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23183 { (exit 1); exit 1; }
23186 # Work around bugs in pre-3.0 UWIN ksh.
23187 for as_var
in ENV MAIL MAILPATH
23188 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23196 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23197 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23198 LC_TELEPHONE LC_TIME
23200 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23201 eval $as_var=C
; export $as_var
23203 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23207 # Required to use basename.
23208 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23209 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23215 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23216 as_basename
=basename
23222 # Name of the executable.
23223 as_me
=`$as_basename -- "$0" ||
23224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23225 X"$0" : 'X\(//\)$' \| \
23226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23228 sed '/^.*\/\([^/][^/]*\)\/*$/{
23247 as_lineno_1
=$LINENO
23248 as_lineno_2
=$LINENO
23249 test "x$as_lineno_1" != "x$as_lineno_2" &&
23250 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23253 # uniformly replaced by the line number. The first 'sed' inserts a
23254 # line-number line after each line using $LINENO; the second 'sed'
23255 # does the real work. The second script uses 'N' to pair each
23256 # line-number line with the line containing $LINENO, and appends
23257 # trailing '-' during substitution so that $LINENO is not a special
23258 # case at line end.
23259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23260 # scripts with optimization help from Paolo Bonzini. Blame Lee
23261 # E. McMahon (1931-1989) for sed's syntax. :-)
23273 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23276 ' >$as_me.lineno
&&
23277 chmod +x
"$as_me.lineno" ||
23278 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23279 { (exit 1); exit 1; }; }
23281 # Don't try to exec as it changes $[0], causing all sort of problems
23282 # (the dirname of $[0] is not the place where we might find the
23283 # original and so on. Autoconf is especially sensitive to this).
23284 .
"./$as_me.lineno"
23285 # Exit status is that of the last command.
23290 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23296 ECHO_C
= ECHO_N
= ECHO_T
=
23297 case `echo -n x` in
23299 case `echo 'x\c'` in
23300 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23307 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23308 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23314 rm -f conf$$ conf$$.exe conf$$.
file
23315 if test -d conf$$.dir
; then
23316 rm -f conf$$.dir
/conf$$.
file
23322 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23324 # ... but there are two gotchas:
23325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23327 # In both cases, we have to default to `cp -p'.
23328 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23330 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23335 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23336 rmdir conf$$.dir
2>/dev
/null
23338 if mkdir
-p .
2>/dev
/null
; then
23341 test -d .
/-p && rmdir .
/-p
23345 if test -x / >/dev
/null
2>&1; then
23346 as_test_x
='test -x'
23348 if ls -dL / >/dev
/null
2>&1; then
23355 if test -d "$1"; then
23361 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23362 ???[sx]*):;;*)false;;esac;fi
23366 as_executable_p
=$as_test_x
23368 # Sed expression to map a string onto a valid CPP name.
23369 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23371 # Sed expression to map a string onto a valid variable name.
23372 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23377 # Save the log message, to keep $[0] and so on meaningful, and to
23378 # report actual input values of CONFIG_FILES etc. instead of their
23379 # values after options handling.
23381 This file was extended by $as_me, which was
23382 generated by GNU Autoconf 2.61. Invocation command line was
23384 CONFIG_FILES = $CONFIG_FILES
23385 CONFIG_HEADERS = $CONFIG_HEADERS
23386 CONFIG_LINKS = $CONFIG_LINKS
23387 CONFIG_COMMANDS = $CONFIG_COMMANDS
23390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23395 cat >>$CONFIG_STATUS <<_ACEOF
23396 # Files that config.status was made for.
23397 config_files="$ac_config_files"
23398 config_headers="$ac_config_headers"
23399 config_commands="$ac_config_commands"
23403 cat >>$CONFIG_STATUS <<\_ACEOF
23405 \`$as_me' instantiates files from templates according to the
23406 current configuration.
23408 Usage: $0 [OPTIONS] [FILE]...
23410 -h, --help print this help, then exit
23411 -V, --version print version number and configuration settings, then exit
23412 -q, --quiet do not print progress messages
23413 -d, --debug don't remove temporary files
23414 --recheck update $as_me by reconfiguring in the same conditions
23415 --file=FILE[:TEMPLATE]
23416 instantiate the configuration file FILE
23417 --header=FILE[:TEMPLATE]
23418 instantiate the configuration header FILE
23420 Configuration files:
23423 Configuration headers:
23426 Configuration commands:
23429 Report bugs to <bug-autoconf@gnu.org>."
23432 cat >>$CONFIG_STATUS <<_ACEOF
23435 configured by $0, generated by GNU Autoconf 2.61,
23436 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23438 Copyright (C) 2006 Free Software Foundation, Inc.
23439 This config.status script is free software; the Free Software Foundation
23440 gives unlimited permission to copy, distribute and modify it."
23447 cat >>$CONFIG_STATUS <<\_ACEOF
23448 # If no file are specified by the user, then we need to provide default
23449 # value. By we need to know if files were specified by the user.
23455 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23456 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23467 # Handling of the options.
23468 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23470 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23471 echo "$ac_cs_version"; exit ;;
23472 --debug |
--debu |
--deb |
--de |
--d |
-d )
23474 --file |
--fil |
--fi |
--f )
23476 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23477 ac_need_defaults
=false
;;
23478 --header |
--heade |
--head |
--hea )
23480 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23481 ac_need_defaults
=false
;;
23483 # Conflict between --help and --header
23484 { echo "$as_me: error: ambiguous option: $1
23485 Try \`$0 --help' for more information." >&2
23486 { (exit 1); exit 1; }; };;
23487 --help |
--hel |
-h )
23488 echo "$ac_cs_usage"; exit ;;
23489 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23490 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23493 # This is an error.
23494 -*) { echo "$as_me: error: unrecognized option: $1
23495 Try \`$0 --help' for more information." >&2
23496 { (exit 1); exit 1; }; } ;;
23498 *) ac_config_targets
="$ac_config_targets $1"
23499 ac_need_defaults
=false
;;
23505 ac_configure_extra_args
=
23507 if $ac_cs_silent; then
23509 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23513 cat >>$CONFIG_STATUS <<_ACEOF
23514 if \$ac_cs_recheck; then
23515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23516 CONFIG_SHELL=$SHELL
23517 export CONFIG_SHELL
23518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23522 cat >>$CONFIG_STATUS <<\_ACEOF
23526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23527 ## Running $as_me. ##
23533 cat >>$CONFIG_STATUS <<_ACEOF
23537 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23541 cat >>$CONFIG_STATUS <<\_ACEOF
23543 # Handling of arguments.
23544 for ac_config_target
in $ac_config_targets
23546 case $ac_config_target in
23547 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23548 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23549 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23550 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23551 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23552 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23553 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23554 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23555 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23556 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23557 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23558 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23560 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23561 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23562 { (exit 1); exit 1; }; };;
23567 # If the user did not use the arguments to specify the items to instantiate,
23568 # then the envvar interface is used. Set only those that are not.
23569 # We use the long form for the default assignment because of an extremely
23570 # bizarre bug on SunOS 4.1.3.
23571 if $ac_need_defaults; then
23572 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23573 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23577 # Have a temporary directory for convenience. Make it in the build tree
23578 # simply because there is no reason against having it here, and in addition,
23579 # creating and moving files from /tmp can sometimes cause problems.
23580 # Hook for its removal unless debugging.
23581 # Note that there is a small window in which the directory will not be cleaned:
23582 # after its creation but before its name has been assigned to `$tmp'.
23586 trap 'exit_status=$?
23587 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23589 trap '{ (exit 1); exit 1; }' 1 2 13 15
23591 # Create a (secure) tmp directory for tmp files.
23594 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23595 test -n "$tmp" && test -d "$tmp"
23598 tmp
=.
/conf$$
-$RANDOM
23599 (umask 077 && mkdir
"$tmp")
23602 echo "$me: cannot create a temporary directory in ." >&2
23603 { (exit 1); exit 1; }
23607 # Set up the sed scripts for CONFIG_FILES section.
23610 # No need to generate the scripts if there are no CONFIG_FILES.
23611 # This happens for instance when ./config.status config.h
23612 if test -n "$CONFIG_FILES"; then
23619 for ac_last_try
in false false false false false
:; do
23620 cat >conf$
$subs.
sed <<_ACEOF
23621 SHELL!$SHELL$ac_delim
23622 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23623 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23624 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23625 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23626 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23627 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23628 exec_prefix!$exec_prefix$ac_delim
23629 prefix!$prefix$ac_delim
23630 program_transform_name!$program_transform_name$ac_delim
23631 bindir!$bindir$ac_delim
23632 sbindir!$sbindir$ac_delim
23633 libexecdir!$libexecdir$ac_delim
23634 datarootdir!$datarootdir$ac_delim
23635 datadir!$datadir$ac_delim
23636 sysconfdir!$sysconfdir$ac_delim
23637 sharedstatedir!$sharedstatedir$ac_delim
23638 localstatedir!$localstatedir$ac_delim
23639 includedir!$includedir$ac_delim
23640 oldincludedir!$oldincludedir$ac_delim
23641 docdir!$docdir$ac_delim
23642 infodir!$infodir$ac_delim
23643 htmldir!$htmldir$ac_delim
23644 dvidir!$dvidir$ac_delim
23645 pdfdir!$pdfdir$ac_delim
23646 psdir!$psdir$ac_delim
23647 libdir!$libdir$ac_delim
23648 localedir!$localedir$ac_delim
23649 mandir!$mandir$ac_delim
23650 DEFS!$DEFS$ac_delim
23651 ECHO_C!$ECHO_C$ac_delim
23652 ECHO_N!$ECHO_N$ac_delim
23653 ECHO_T!$ECHO_T$ac_delim
23654 LIBS!$LIBS$ac_delim
23655 build_alias!$build_alias$ac_delim
23656 host_alias!$host_alias$ac_delim
23657 target_alias!$target_alias$ac_delim
23658 MAINT!$MAINT$ac_delim
23659 build!$build$ac_delim
23660 build_cpu!$build_cpu$ac_delim
23661 build_vendor!$build_vendor$ac_delim
23662 build_os!$build_os$ac_delim
23663 host!$host$ac_delim
23664 host_cpu!$host_cpu$ac_delim
23665 host_vendor!$host_vendor$ac_delim
23666 host_os!$host_os$ac_delim
23668 CFLAGS!$CFLAGS$ac_delim
23669 LDFLAGS!$LDFLAGS$ac_delim
23670 CPPFLAGS!$CPPFLAGS$ac_delim
23671 ac_ct_CC!$ac_ct_CC$ac_delim
23672 EXEEXT!$EXEEXT$ac_delim
23673 OBJEXT!$OBJEXT$ac_delim
23675 GREP!$GREP$ac_delim
23676 EGREP!$EGREP$ac_delim
23677 LN_S!$LN_S$ac_delim
23678 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23679 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23680 INSTALL_DATA!$INSTALL_DATA$ac_delim
23681 RANLIB!$RANLIB$ac_delim
23682 INSTALL_INFO!$INSTALL_INFO$ac_delim
23683 GZIP_PROG!$GZIP_PROG$ac_delim
23684 LIBSOUND!$LIBSOUND$ac_delim
23685 PKG_CONFIG!$PKG_CONFIG$ac_delim
23686 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23687 ALSA_LIBS!$ALSA_LIBS$ac_delim
23688 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23689 SET_MAKE!$SET_MAKE$ac_delim
23690 XMKMF!$XMKMF$ac_delim
23691 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23692 GTK_LIBS!$GTK_LIBS$ac_delim
23693 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23694 XFT_LIBS!$XFT_LIBS$ac_delim
23695 ALLOCA!$ALLOCA$ac_delim
23696 liblockfile!$liblockfile$ac_delim
23697 LIBOBJS!$LIBOBJS$ac_delim
23698 NEED_SETGID!$NEED_SETGID$ac_delim
23699 KMEM_GROUP!$KMEM_GROUP$ac_delim
23700 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23701 GETOPT_H!$GETOPT_H$ac_delim
23702 GETOPTOBJS!$GETOPTOBJS$ac_delim
23703 version!$version$ac_delim
23704 configuration!$configuration$ac_delim
23705 canonical!$canonical$ac_delim
23706 srcdir!$srcdir$ac_delim
23707 lispdir!$lispdir$ac_delim
23708 locallisppath!$locallisppath$ac_delim
23709 lisppath!$lisppath$ac_delim
23710 x_default_search_path!$x_default_search_path$ac_delim
23711 etcdir!$etcdir$ac_delim
23712 archlibdir!$archlibdir$ac_delim
23713 bitmapdir!$bitmapdir$ac_delim
23714 gamedir!$gamedir$ac_delim
23715 gameuser!$gameuser$ac_delim
23716 c_switch_system!$c_switch_system$ac_delim
23717 c_switch_machine!$c_switch_machine$ac_delim
23720 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23722 elif $ac_last_try; then
23723 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23724 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23725 { (exit 1); exit 1; }; }
23727 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23731 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23732 if test -n "$ac_eof"; then
23733 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23734 ac_eof
=`expr $ac_eof + 1`
23737 cat >>$CONFIG_STATUS <<_ACEOF
23738 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23742 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23743 s/^/s,@/; s/!/@,|#_!!_#|/
23746 s/'"$ac_delim"'$/,g/; t
23748 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23749 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23750 rm -f conf$
$subs.
sed
23751 cat >>$CONFIG_STATUS <<_ACEOF
23757 for ac_last_try
in false false false false false
:; do
23758 cat >conf$
$subs.
sed <<_ACEOF
23759 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23760 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23761 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23762 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23763 machfile!$machfile$ac_delim
23764 opsysfile!$opsysfile$ac_delim
23765 carbon_appdir!$carbon_appdir$ac_delim
23766 LTLIBOBJS!$LTLIBOBJS$ac_delim
23769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23771 elif $ac_last_try; then
23772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23774 { (exit 1); exit 1; }; }
23776 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23780 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23781 if test -n "$ac_eof"; then
23782 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23783 ac_eof
=`expr $ac_eof + 1`
23786 cat >>$CONFIG_STATUS <<_ACEOF
23787 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23792 s/^/s,@/; s/!/@,|#_!!_#|/
23795 s/'"$ac_delim"'$/,g/; t
23797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23798 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23799 rm -f conf$
$subs.
sed
23800 cat >>$CONFIG_STATUS <<_ACEOF
23807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23809 # trailing colons and then remove the whole line if VPATH becomes empty
23810 # (actually we leave an empty line to preserve line numbers).
23811 if test "x$srcdir" = x.
; then
23812 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23813 s/:*\$(srcdir):*/:/
23814 s/:*\${srcdir}:*/:/
23816 s/^\([^=]*=[ ]*\):*/\1/
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 fi # test -n "$CONFIG_FILES"
23826 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23829 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23831 case $ac_mode$ac_tag in
23833 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23834 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23835 { (exit 1); exit 1; }; };;
23836 :[FH
]-) ac_tag
=-:-;;
23837 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23854 -) ac_f
="$tmp/stdin";;
23855 *) # Look for the file first in the build tree, then in the source tree
23856 # (if the path is not absolute). The absolute path cannot be DOS-style,
23857 # because $ac_f cannot contain `:'.
23861 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23863 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23864 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23865 { (exit 1); exit 1; }; };;
23867 ac_file_inputs
="$ac_file_inputs $ac_f"
23870 # Let's still pretend it is `configure' which instantiates (i.e., don't
23871 # use $as_me), people would be surprised to read:
23872 # /* config.h. Generated by config.status. */
23873 configure_input
="Generated from "`IFS=:
23874 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23875 if test x
"$ac_file" != x-
; then
23876 configure_input
="$ac_file. $configure_input"
23877 { echo "$as_me:$LINENO: creating $ac_file" >&5
23878 echo "$as_me: creating $ac_file" >&6;}
23882 *:-:* |
*:-) cat >"$tmp/stdin";;
23887 ac_dir
=`$as_dirname -- "$ac_file" ||
23888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889 X"$ac_file" : 'X\(//\)[^/]' \| \
23890 X"$ac_file" : 'X\(//\)$' \| \
23891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23897 /^X\(\/\/\)[^/].*/{
23912 -*) as_dir
=.
/$as_dir;;
23914 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23918 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23919 *) as_qdir
=$as_dir;;
23921 as_dirs
="'$as_qdir' $as_dirs"
23922 as_dir
=`$as_dirname -- "$as_dir" ||
23923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23924 X"$as_dir" : 'X\(//\)[^/]' \| \
23925 X"$as_dir" : 'X\(//\)$' \| \
23926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23932 /^X\(\/\/\)[^/].*/{
23945 test -d "$as_dir" && break
23947 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23948 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23949 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23950 { (exit 1); exit 1; }; }; }
23954 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23956 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23957 # A ".." for each directory in $ac_dir_suffix.
23958 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23959 case $ac_top_builddir_sub in
23960 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23961 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23964 ac_abs_top_builddir
=$ac_pwd
23965 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23966 # for backward compatibility:
23967 ac_top_builddir
=$ac_top_build_prefix
23970 .
) # We are building in place.
23972 ac_top_srcdir
=$ac_top_builddir_sub
23973 ac_abs_top_srcdir
=$ac_pwd ;;
23974 [\\/]* | ?
:[\\/]* ) # Absolute name.
23975 ac_srcdir
=$srcdir$ac_dir_suffix;
23976 ac_top_srcdir
=$srcdir
23977 ac_abs_top_srcdir
=$srcdir ;;
23978 *) # Relative name.
23979 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23980 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23981 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23983 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23993 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23994 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23998 cat >>$CONFIG_STATUS <<\_ACEOF
23999 # If the template does not know about datarootdir, expand it.
24000 # FIXME: This hack should be removed a few years after 2.60.
24001 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24003 case `sed -n '/datarootdir/ {
24012 ' $ac_file_inputs` in
24013 *datarootdir
*) ac_datarootdir_seen
=yes;;
24014 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24015 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24016 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24018 cat >>$CONFIG_STATUS <<_ACEOF
24019 ac_datarootdir_hack='
24020 s&@datadir@&$datadir&g
24021 s&@docdir@&$docdir&g
24022 s&@infodir@&$infodir&g
24023 s&@localedir@&$localedir&g
24024 s&@mandir@&$mandir&g
24025 s&\\\${datarootdir}&$datarootdir&g' ;;
24029 # Neutralize VPATH when `$srcdir' = `.'.
24030 # Shell code in configure.ac might set extrasub.
24031 # FIXME: do we really want to maintain this feature?
24032 cat >>$CONFIG_STATUS <<_ACEOF
24036 cat >>$CONFIG_STATUS <<\_ACEOF
24038 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24039 s
&@configure_input@
&$configure_input&;t t
24040 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24041 s
&@srcdir@
&$ac_srcdir&;t t
24042 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24043 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24044 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24045 s
&@builddir@
&$ac_builddir&;t t
24046 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24047 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24048 s
&@INSTALL@
&$ac_INSTALL&;t t
24049 $ac_datarootdir_hack
24050 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24053 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24055 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24056 which seems to be undefined. Please make sure it is defined." >&5
24057 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24058 which seems to be undefined. Please make sure it is defined." >&2;}
24062 -) cat "$tmp/out"; rm -f "$tmp/out";;
24063 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24072 # Transform confdefs.h into a sed script `conftest.defines', that
24073 # substitutes the proper values into config.h.in to produce config.h.
24074 rm -f conftest.defines conftest.
tail
24075 # First, append a space to every undef/define line, to ease matching.
24076 echo 's/$/ /' >conftest.defines
24077 # Then, protect against being on the right side of a sed subst, or in
24078 # an unquoted here document, in config.status. If some macros were
24079 # called several times there might be several #defines for the same
24080 # symbol, which is useless. But do not sort them, since the last
24081 # AC_DEFINE must be honored.
24082 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24083 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24084 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24085 # PARAMS is the parameter list in the macro definition--in most cases, it's
24086 # just an empty string.
24087 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24088 ac_dB
='\\)[ (].*,\\1define\\2'
24096 s/^[ ]*#[ ]*define[ ][ ]*//
24101 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24102 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24103 ' >>conftest.defines
24105 # Remove the space that was appended to ease matching.
24106 # Then replace #undef with comments. This is necessary, for
24107 # example, in the case of _POSIX_SOURCE, which is predefined and required
24108 # on some systems where configure will not decide to define it.
24109 # (The regexp can be short, since the line contains either #define or #undef.)
24111 s,^[ #]*u.*,/* & */,' >>conftest.defines
24113 # Break up conftest.defines:
24114 ac_max_sed_lines
=50
24116 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24117 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24118 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24120 ac_in
='$ac_file_inputs'
24121 ac_out
='"$tmp/out1"'
24122 ac_nxt
='"$tmp/out2"'
24126 # Write a here document:
24127 cat >>$CONFIG_STATUS <<_ACEOF
24128 # First, check the format of the line:
24129 cat >"\$tmp/defines.sed" <<\\CEOF
24130 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24131 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24135 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24137 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24138 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24139 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24140 grep . conftest.
tail >/dev
/null ||
break
24141 rm -f conftest.defines
24142 mv conftest.
tail conftest.defines
24144 rm -f conftest.defines conftest.
tail
24146 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24147 cat >>$CONFIG_STATUS <<\_ACEOF
24148 if test x
"$ac_file" != x-
; then
24149 echo "/* $configure_input */" >"$tmp/config.h"
24150 cat "$ac_result" >>"$tmp/config.h"
24151 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24152 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24153 echo "$as_me: $ac_file is unchanged" >&6;}
24156 mv "$tmp/config.h" $ac_file
24159 echo "/* $configure_input */"
24165 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24166 echo "$as_me: executing $ac_file commands" >&6;}
24171 case $ac_file$ac_mode in
24174 ### Make the necessary directories, if they don't exist.
24175 for dir
in etc lisp
; do
24176 test -d ${dir} || mkdir
${dir}
24179 # Build src/Makefile from ${srcdir}/src/Makefile.c
24180 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24181 # This must be done after src/config.h is built, since we rely on that file.
24183 # Now get this: Some word that is part of the ${srcdir} directory name
24184 # or the ${configuration} value might, just might, happen to be an
24185 # identifier like `sun4' or `i386' or something, and be predefined by
24186 # the C preprocessor to some helpful value like 1, or maybe the empty
24187 # string. Needless to say consequent macro substitutions are less
24188 # than conducive to the makefile finding the correct directory.
24189 undefs
="`echo $top_srcdir $configuration $canonical |
24190 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24191 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24194 echo creating src
/epaths.h
24195 ${MAKE-make} epaths-force
24197 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24198 # `..' to `. .' unless invoked with -traditional
24200 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24201 CPPFLAGS
="$CPPFLAGS -traditional"
24204 echo creating lib-src
/Makefile
24206 rm -f junk.c junk1.c junk2.c
24207 sed -e '/start of cpp stuff/q' \
24208 < Makefile.c
> junk1.c
24209 sed -e '1,/start of cpp stuff/d'\
24210 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24211 < Makefile.c
> junk.c
24212 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24213 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24214 cat junk1.c junk2.c
> Makefile.new
24215 rm -f junk.c junk1.c junk2.c
24216 chmod 444 Makefile.new
24217 mv -f Makefile.new Makefile
24220 echo creating src
/Makefile
24222 rm -f junk.c junk1.c junk2.c
24223 sed -e '/start of cpp stuff/q' \
24224 < Makefile.c
> junk1.c
24225 sed -e '1,/start of cpp stuff/d'\
24226 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24227 < Makefile.c
> junk.c
24228 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24229 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24230 cat junk1.c junk2.c
> Makefile.new
24231 rm -f junk.c junk1.c junk2.c
24232 chmod 444 Makefile.new
24233 mv -f Makefile.new Makefile
24236 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24237 echo creating src
/.gdbinit
24238 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24241 # This is how we know whether to re-run configure in certain cases.
24242 touch src
/config.stamp
24250 { (exit 0); exit 0; }
24252 chmod +x
$CONFIG_STATUS
24253 ac_clean_files
=$ac_clean_files_save
24256 # configure is writing to config.log, and then calls config.status.
24257 # config.status does its own redirection, appending to config.log.
24258 # Unfortunately, on DOS this fails, as config.log is still kept open
24259 # by configure, so config.status won't be able to write to it; its
24260 # output is simply discarded. So we exec the FD to /dev/null,
24261 # effectively closing config.log, so it can be properly (re)opened and
24262 # appended to by config.status. When coming back to configure, we
24263 # need to make the FD available again.
24264 if test "$no_create" != yes; then
24266 ac_config_status_args
=
24267 test "$silent" = yes &&
24268 ac_config_status_args
="$ac_config_status_args --quiet"
24270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24273 # would make configure fail if this is the last instruction.
24274 $ac_cs_success ||
{ (exit 1); exit 1; }