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-gpm use -lgpm for mouse support on a GNU/Linux console
1344 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1345 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1346 --without-toolkit-scroll-bars
1347 don't use Motif or Xaw3d scroll bars
1348 --without-xim don
't use X11 XIM
1349 --without-carbon don't use Carbon GUI on Mac OS X
1350 --with-x use the X Window System
1352 Some influential environment variables
:
1353 CC C compiler
command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1356 nonstandard directory
<lib dir
>
1357 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1358 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1359 you have headers
in a nonstandard directory
<include dir
>
1361 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1363 Use these variables to override the choices made by
`configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1393 .) # We are building in place.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1427 generated by GNU Autoconf 2.61
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.61. Invocation command line was
1453 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1454 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1455 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1456 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1457 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1459 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1460 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1462 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1463 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1464 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1465 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1466 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1467 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1468 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1501 ac_must_keep_next=false
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1512 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 -* ) ac_must_keep_next=true ;;
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1557 # The following way of writing the cache mishandles newlines in values,
1559 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1560 eval ac_val=\$$ac_var
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1574 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1594 for ac_var in $ac_subst_vars
1596 eval ac_val=\$$ac_var
1598 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 echo "$ac_var='\''$ac_val'\''"
1604 if test -n "$ac_subst_files"; then
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1611 for ac_var in $ac_subst_files
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1622 if test -s confdefs.h; then
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1648 # Predefined preprocessor variables.
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1713 ac_header_list="$ac_header_list sys/time.h"
1714 ac_header_list="$ac_header_list unistd.h"
1715 ac_func_list="$ac_func_list alarm"
1716 # Check that the precious variables saved in the cache have kept the same
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1727 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1731 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1738 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1739 echo "$as_me: former value
: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1741 echo "$as_me: current value
: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1759 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1760 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s
,x
,x
', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1805 lispdir='${datadir}/emacs
/${version}/lisp
'
1806 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1807 '${datadir}/emacs
/site-lisp
'
1808 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1809 etcdir='${datadir}/emacs
/${version}/etc
'
1810 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1811 docdir='${datadir}/emacs
/${version}/etc
'
1812 gamedir='${localstatedir}/games
/emacs
'
1817 # Check whether --with-gcc was given.
1818 if test "${with_gcc+set}" = set; then
1823 # Check whether --with-pop was given.
1824 if test "${with_pop+set}" = set; then
1825 withval=$with_pop; if test "$withval" = yes; then
1826 cat >>confdefs.h <<\_ACEOF
1827 #define MAIL_USE_POP 1
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1841 # Check whether --with-kerberos was given.
1842 if test "${with_kerberos+set}" = set; then
1843 withval=$with_kerberos; if test "$withval" = yes; then
1844 cat >>confdefs.h <<\_ACEOF
1853 # Check whether --with-kerberos5 was given.
1854 if test "${with_kerberos5+set}" = set; then
1855 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1856 if test "${with_kerberos+set}" != set; then
1858 cat >>confdefs.h <<\_ACEOF
1864 cat >>confdefs.h <<\_ACEOF
1872 # Check whether --with-hesiod was given.
1873 if test "${with_hesiod+set}" = set; then
1874 withval=$with_hesiod; if test "$withval" = yes; then
1876 cat >>confdefs.h <<\_ACEOF
1885 # Check whether --with-sound was given.
1886 if test "${with_sound+set}" = set; then
1887 withval=$with_sound;
1892 # Check whether --with-x-toolkit was given.
1893 if test "${with_x_toolkit+set}" = set; then
1894 withval=$with_x_toolkit; case "${withval}" in
1895 y | ye | yes ) val=athena ;;
1897 l | lu | luc | luci | lucid ) val=lucid ;;
1898 a | at | ath | athe | athen | athena ) val=athena ;;
1899 m | mo | mot | moti | motif ) val=motif ;;
1900 g | gt | gtk ) val=gtk ;;
1902 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1903 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1904 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1905 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1906 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1907 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1908 { (exit 1); exit 1; }; }
1916 # Check whether --with-xpm was given.
1917 if test "${with_xpm+set}" = set; then
1922 # Check whether --with-jpeg was given.
1923 if test "${with_jpeg+set}" = set; then
1928 # Check whether --with-tiff was given.
1929 if test "${with_tiff+set}" = set; then
1934 # Check whether --with-gif was given.
1935 if test "${with_gif+set}" = set; then
1940 # Check whether --with-png was given.
1941 if test "${with_png+set}" = set; then
1946 # Check whether --with-gpm was given.
1947 if test "${with_gpm+set}" = set; then
1952 # Check whether --with-gtk was given.
1953 if test "${with_gtk+set}" = set; then
1958 # Check whether --with-pkg-config-prog was given.
1959 if test "${with_pkg_config_prog+set}" = set; then
1960 withval=$with_pkg_config_prog;
1964 # Check whether --with-toolkit-scroll-bars was given.
1965 if test "${with_toolkit_scroll_bars+set}" = set; then
1966 withval=$with_toolkit_scroll_bars;
1970 # Check whether --with-xim was given.
1971 if test "${with_xim+set}" = set; then
1976 # Check whether --with-carbon was given.
1977 if test "${with_carbon+set}" = set; then
1978 withval=$with_carbon;
1981 # Check whether --enable-carbon-app was given.
1982 if test "${enable_carbon_app+set}" = set; then
1983 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1987 # Check whether --enable-asserts was given.
1988 if test "${enable_asserts+set}" = set; then
1989 enableval=$enable_asserts; USE_XASSERTS=$enableval
1995 # Check whether --enable-maintainer-mode was given.
1996 if test "${enable_maintainer_mode+set}" = set; then
1997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1999 USE_MAINTAINER_MODE=no
2002 if test $USE_MAINTAINER_MODE = yes; then
2009 # Check whether --enable-locallisppath was given.
2010 if test "${enable_locallisppath+set}" = set; then
2011 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2013 elif test "${enableval}" != "yes"; then
2014 locallisppath=${enableval}
2019 #### Make srcdir absolute, if it isn't already. It
's important to
2020 #### avoid running the path through pwd unnecessarily, since pwd can
2021 #### give you automounter prefixes, which can go away. We do all this
2022 #### so Emacs can find its files when run uninstalled.
2023 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2028 ## We may be able to use the $PWD environment variable to make this
2029 ## absolute. But sometimes PWD is inaccurate.
2030 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2031 ## but that tested only for a well-formed and valid PWD,
2032 ## it did not object when PWD was well-formed and valid but just wrong.
2033 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2037 srcdir
="`(cd ${srcdir}; pwd)`"
2040 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2043 #### Check if the source directory already has a configured system in it.
2044 if test `pwd` != `(cd ${srcdir} && pwd)` \
2045 && test -f "${srcdir}/src/config.h" ; then
2046 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2047 as a build directory right now; it has been configured in its own
2048 right. To configure in another directory as well, you MUST
2049 use GNU make. If you do not have GNU make, then you must
2050 now do \`make distclean' in ${srcdir},
2051 and then run $0 again." >&5
2052 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2053 as a build directory right now; it has been configured in its own
2054 right. To configure in another directory as well, you MUST
2055 use GNU make. If you do not have GNU make, then you must
2056 now do \`make distclean' in ${srcdir},
2057 and then run $0 again." >&2;}
2060 #### Given the configuration name, set machfile and opsysfile to the
2061 #### names of the m/*.h and s/*.h files we should use.
2063 ### Canonicalize the configuration name.
2066 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2067 if test -f "$ac_dir/install-sh"; then
2069 ac_install_sh
="$ac_aux_dir/install-sh -c"
2071 elif test -f "$ac_dir/install.sh"; then
2073 ac_install_sh
="$ac_aux_dir/install.sh -c"
2075 elif test -f "$ac_dir/shtool"; then
2077 ac_install_sh
="$ac_aux_dir/shtool install -c"
2081 if test -z "$ac_aux_dir"; then
2082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084 { (exit 1); exit 1; }; }
2087 # These three variables are undocumented and unsupported,
2088 # and are intended to be withdrawn in a future Autoconf release.
2089 # They can cause serious problems if a builder's source tree is in a directory
2090 # whose full name contains unusual characters.
2091 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 ac_build_alias
=$build_alias
2108 test "x$ac_build_alias" = x
&&
2109 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x
&&
2111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2129 ac_save_IFS
=$IFS; IFS
='-'
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2139 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test "x$host_alias" = x
; then
2148 ac_cv_host
=$ac_cv_build
2150 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2166 ac_save_IFS
=$IFS; IFS
='-'
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2176 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2180 configuration
=${host_alias-$host}
2184 ### If you add support for a new configuration, add code to this
2185 ### switch statement to recognize your configuration name and select
2186 ### the appropriate operating system and machine description files.
2188 ### You would hope that you could choose an m/*.h file pretty much
2189 ### based on the machine portion of the configuration name, and an s-
2190 ### file based on the operating system portion. However, it turns out
2191 ### that each m/*.h file is pretty manufacturer-specific - for
2192 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2193 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2194 ### machines. So we basically have to have a special case for each
2195 ### configuration name.
2197 ### As far as handling version numbers on operating systems is
2198 ### concerned, make sure things will fail in a fixable way. If
2199 ### /etc/MACHINES doesn't say anything about version numbers, be
2200 ### prepared to handle anything reasonably. If version numbers
2201 ### matter, be sure /etc/MACHINES says something about it.
2203 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2204 ### "System V Release 4"; he writes, "The old convention encouraged
2205 ### confusion between `system' and `release' levels'."
2207 machine
='' opsys
='' unported
=no
2208 case "${canonical}" in
2213 case "${canonical}" in
2214 alpha
*-*-freebsd*) machine
=alpha
;;
2215 ia64-
*-freebsd*) machine
=ia64
;;
2216 sparc64-
*-freebsd*) machine
=sparc
;;
2217 powerpc-
*-freebsd*) machine
=macppc
;;
2218 i
[3456]86-*-freebsd*) machine
=intel386
;;
2219 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2226 if test -f /usr
/lib
/crti.o
; then
2228 cat >>confdefs.h
<<\_ACEOF
2234 case "${canonical}" in
2235 alpha
*-*-netbsd*) machine
=alpha
;;
2236 i
[3456]86-*-netbsd*) machine
=intel386
;;
2238 # This is somewhat bogus.
2239 machine
=hp9000s300
;;
2240 mips-
*-netbsd*) machine
=pmax
;;
2241 mipsel-
*-netbsd*) machine
=pmax
;;
2242 mipseb-
*-netbsd*) machine
=pmax
;;
2243 ns32k-
*-netbsd*) machine
=ns32000
;;
2244 powerpc-
*-netbsd*) machine
=macppc
;;
2245 sparc
*-*-netbsd*) machine
=sparc
;;
2246 vax-
*-netbsd*) machine
=vax
;;
2247 arm-
*-netbsd*) machine
=arm
;;
2248 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2249 hppa-
*-netbsd*) machine
=hp800
;;
2250 shle-
*-netbsd*) machine
=sh3el
;;
2257 case "${canonical}" in
2258 alpha
*-*-openbsd*) machine
=alpha
;;
2259 arm-
*-openbsd*) machine
=arm
;;
2260 hppa-
*-openbsd*) machine
=hp9000s300
;;
2261 i386-
*-openbsd*) machine
=intel386
;;
2262 m68k-
*-openbsd*) machine
=hp9000s300
;;
2263 m88k-
*-openbsd*) machine
=aviion
;;
2264 mips64-
*-openbsd*) machine
=mips64
;;
2265 powerpc-
*-openbsd*) machine
=macppc
;;
2266 sh-
*-openbsd*) machine
=sh3el
;;
2267 sparc
*-*-openbsd*) machine
=sparc
;;
2268 vax-
*-openbsd*) machine
=vax
;;
2269 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2276 case "${canonical}" in
2277 i
[3456]86-*-lynxos*) machine
=intel386
;;
2278 powerpc-
*-lynxos*) machine
=powerpc
;;
2283 arm-acorn-riscix1.1
* )
2284 machine
=acorn opsys
=riscix1-1
2286 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2287 ## This name is riscix12 instead of riscix1.2
2288 ## to avoid a file name conflict on MSDOS.
2289 machine
=acorn opsys
=riscix12
2295 case "${canonical}" in
2296 i
[345]86-*-bsdi*) machine
=intel386
;;
2297 sparc-
*-bsdi*) machine
=sparc
;;
2298 powerpc-
*-bsdi*) machine
=macppc
;;
2300 case "${canonical}" in
2301 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2302 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2303 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2304 *-*-bsdi3* ) opsys
=bsdos3
;;
2305 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2310 ## Strictly speaking, we need the version of the alliant operating
2311 ## system to choose the right machine file, but currently the
2312 ## configuration name doesn't tell us enough to choose the right
2313 ## one; we need to give alliants their own operating system name to
2314 ## do this right. When someone cares, they can help us.
2316 machine
=alliant4 opsys
=bsd4-2
2319 machine
=alliant-2800 opsys
=bsd4-3
2322 ## Alpha (DEC) machines.
2324 machine
=alpha opsys
=osf1
2325 # This is needed to find X11R6.1 libraries for certain tests.
2326 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2327 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2328 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2329 # due to non-traditional preprocessing with the current compiler
2330 # defaults. OSF 4 can also have that compiler version, and there
2331 # seems always to have been a usable /usr/bin/cpp.
2332 NON_GNU_CPP
=/usr
/bin
/cpp
2333 case "${canonical}" in
2334 alpha
*-dec-osf[5-9]*)
2339 alpha
*-*-linux-gnu* )
2340 machine
=alpha opsys
=gnu-linux
2344 machine
=arm opsys
=gnu-linux
2349 machine
=altos opsys
=usg5-2
2354 machine
=amdahl opsys
=usg5-2-2
2357 ## Apollo, Domain/OS
2359 machine
=apollo opsys
=bsd4-3
2362 ## Apple Darwin / Mac OS X
2364 case "${canonical}" in
2365 i
[3456]86-* ) machine
=intel386
;;
2366 powerpc-
* ) machine
=powermac
;;
2370 # Define CPP as follows to make autoconf work correctly.
2371 CPP
="${CC-cc} -E -no-cpp-precomp"
2372 # Use fink packages if available.
2373 if test -d /sw
/include
&& test -d /sw
/lib
; then
2374 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2375 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2376 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2380 ## AT&T 3b2, 3b5, 3b15, 3b20
2382 machine
=att3b opsys
=usg5-2-2
2385 ## AT&T 3b1 - The Mighty Unix PC!
2387 machine
=7300 opsys
=usg5-2-2
2392 machine
=ibmrs6000 opsys
=aix3-2
2397 machine
=dpx2 opsys
=usg5-3
2402 machine
=sps7 opsys
=usg5-2
2405 ## CCI 5/32, 6/32 -- see "Tahoe".
2408 ## I don't know what configuration name to use for this; config.sub
2409 ## doesn't seem to know anything about it. Hey, Celerity users, get
2410 ## in touch with us!
2411 celerity-celerity-bsd
* )
2412 machine
=celerity opsys
=bsd4-2
2416 ## What operating systems does this chip run that Emacs has been
2420 ## We'll use the catch-all code at the bottom to guess the
2421 ## operating system.
2425 mips-compaq-nonstopux
* )
2426 machine
=nonstopux opsys
=nonstopux
2430 *-convex-bsd* |
*-convex-convexos* )
2431 machine
=convex opsys
=bsd4-3
2432 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2433 NON_GNU_CPP
="cc -E -P"
2437 i
[3456]86-cubix-sysv* )
2438 machine
=intel386 opsys
=usg5-3
2442 cydra
*-cydrome-sysv* )
2443 machine
=cydra5 opsys
=usg5-3
2446 ## Data General AViiON Machines
2447 ## DG changed naming conventions with the release of 5.4.4.10, they
2448 ## dropped the initial 5.4 but left the intervening R. Because of the
2449 ## R this shouldn't conflict with older versions of the OS (which I
2450 ## think were named like dgux4.*). In addition, DG new AViiONs series
2451 ## uses either Motorola M88k or Intel Pentium CPUs.
2452 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2453 machine
=aviion opsys
=dgux4
2455 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2456 ## This name is dgux5-4-3 instead of dgux5-4r3
2457 ## to avoid a file name conflict on MSDOS.
2458 machine
=aviion opsys
=dgux5-4-3
2460 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2461 machine
=aviion opsys
=dgux5-4r2
2464 machine
=aviion opsys
=dgux
2467 ## Data General AViiON Intel (x86) Machines
2468 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2469 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2470 i
[345]86-dg-dguxR4* )
2471 machine
=aviion-intel opsys
=dgux4
2475 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2476 machine
=pmax opsys
=bsd4-2
2478 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2479 machine
=pmax opsys
=bsd4-3
2482 machine
=pmax opsys
=ultrix4-3
2485 machine
=pmax opsys
=osf1
2487 mips-dec-mach_bsd4.3
* )
2488 machine
=pmax opsys
=mach-bsd4-3
2491 ## Motorola Delta machines
2492 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2493 machine
=delta opsys
=usg5-3
2494 if test -z "`type gnucc | grep 'not found'`"
2496 if test -s /etc
/167config
2497 then CC
="gnucc -m68040"
2498 else CC
="gnucc -m68881"
2501 if test -z "`type gcc | grep 'not found'`"
2507 m88k-motorola-sysv4
* )
2508 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2509 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2510 # I hope there are not other 4.0 versions for this machine
2511 # which really need usg5-4 instead.
2512 machine
=delta88k opsys
=usg5-4-2
2514 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2515 machine
=delta88k opsys
=usg5-3
2520 machine
=dual opsys
=usg5-2
2522 m68
*-dual-uniplus* )
2523 machine
=dual opsys
=unipl5-2
2528 machine
=elxsi opsys
=usg5-2
2533 machine
=ns16000 opsys
=umax
2536 ## The GEC 63 - apparently, this port isn't really finished yet.
2537 # I'm sure we finished off the last of the machines, though. -- fx
2539 ## Gould Power Node and NP1
2541 machine
=gould opsys
=bsd4-2
2544 machine
=gould opsys
=bsd4-3
2547 machine
=gould-np1 opsys
=bsd4-3
2550 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2551 ## as far as Emacs is concerned).
2553 # Build needs to be different on 7.0 and later releases
2554 case "`uname -r`" in
2555 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2556 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2558 NON_GNU_CPP
="/lib/cpp"
2560 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2562 machine
=nh3000 opsys
=cxux
2564 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2565 powerpc-harris-powerunix
)
2566 machine
=nh6000 opsys
=powerunix
2567 NON_GNU_CPP
="cc -Xo -E -P"
2569 ## SR2001/SR2201 running HI-UX/MPP
2570 hppa1.1
-hitachi-hiuxmpp* )
2571 machine
=sr2k opsys
=hiuxmpp
2573 hppa1.1
-hitachi-hiuxwe2* )
2574 machine
=sr2k opsys
=hiuxwe2
2577 xps
*-honeywell-sysv* )
2578 machine
=xps100 opsys
=usg5-2
2581 ## HP 9000 series 200 or 300
2583 machine
=hp9000s300 opsys
=bsd4-3
2585 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2587 case "`uname -r`" in
2588 ## Someone's system reports A.B8.05 for this.
2589 ## I wonder what other possibilities there are.
2590 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2591 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2592 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2593 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2594 *) machine
=hp9000s300 opsys
=hpux
;;
2598 ## HP 9000 series 700 and 800, running HP/UX
2600 machine
=hp800 opsys
=hpux
2603 machine
=hp800 opsys
=hpux8
2605 hppa
*-hp-hpux9shr* )
2606 machine
=hp800 opsys
=hpux9shr
2609 machine
=hp800 opsys
=hpux9
2611 hppa
*-hp-hpux10.2
* )
2612 machine
=hp800 opsys
=hpux10-20
2615 machine
=hp800 opsys
=hpux10
2617 hppa
*-hp-hpux1[1-9]* )
2618 machine
=hp800 opsys
=hpux11
2619 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2622 hppa
*-*-linux-gnu* )
2623 machine
=hp800 opsys
=gnu-linux
2626 ## HP 9000 series 700 and 800, running HP/UX
2628 ## Cross-compilation? Nah!
2629 case "`uname -r`" in
2630 ## Someone's system reports A.B8.05 for this.
2631 ## I wonder what other possibilities there are.
2632 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2633 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2634 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2635 *) machine
=hp800 opsys
=hpux10
;;
2639 machine
=hp800 opsys
=nextstep
2644 machine
=orion opsys
=bsd4-2
2646 clipper-orion-bsd
* )
2647 machine
=orion105 opsys
=bsd4-2
2651 i
[3456]86-ibm-aix1.1
* )
2652 machine
=ibmps2-aix opsys
=usg5-2-2
2654 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2655 machine
=ibmps2-aix opsys
=usg5-3
2658 machine
=ibm370aix opsys
=usg5-3
2661 machine
=ibms390 opsys
=gnu-linux
2663 s390x-
*-linux-gnu* )
2664 machine
=ibms390x opsys
=gnu-linux
2666 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2667 machine
=ibmrs6000 opsys
=aix3-1
2669 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2670 machine
=ibmrs6000 opsys
=aix3-2-5
2672 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2673 machine
=ibmrs6000 opsys
=aix4-1
2675 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2676 machine
=ibmrs6000 opsys
=aix4-2
2678 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2679 machine
=ibmrs6000 opsys
=aix4-2
2681 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2682 machine
=ibmrs6000 opsys
=aix4-2
2684 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2685 machine
=ibmrs6000 opsys
=aix4
2687 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2688 machine
=ibmrs6000 opsys
=aix4-1
2690 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2691 machine
=ibmrs6000 opsys
=aix3-2
2694 machine
=ibmrt opsys
=bsd4-3
2697 machine
=ibmrt opsys
=bsd4-2
2700 machine
=ibmrt opsys
=bsd4-3
2703 machine
=ibmrt opsys
=bsd4-2
2706 machine
=ibmrt opsys
=bsd4-3
2709 machine
=ibmrt opsys
=bsd4-3
2712 machine
=ibmrt-aix opsys
=usg5-2-2
2715 ## Integrated Solutions `Optimum V'
2717 machine
=isi-ov opsys
=bsd4-2
2720 machine
=isi-ov opsys
=bsd4-3
2723 ## Intel 386 machines where we do care about the manufacturer
2724 i
[3456]86-intsys-sysv* )
2725 machine
=is386 opsys
=usg5-2-2
2729 i
[3456]86-prime-sysv* )
2730 machine
=i386 opsys
=usg5-3
2733 ## Sequent Symmetry running Dynix
2734 i
[3456]86-sequent-bsd* )
2735 machine
=symmetry opsys
=bsd4-3
2738 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2739 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2740 machine
=sequent-ptx opsys
=ptx4
2741 NON_GNU_CPP
=/lib
/cpp
2744 ## Sequent Symmetry running DYNIX/ptx
2745 ## Use the old cpp rather than the newer ANSI one.
2746 i
[3456]86-sequent-ptx* )
2747 machine
=sequent-ptx opsys
=ptx
2748 NON_GNU_CPP
="/lib/cpp"
2751 ## ncr machine running svr4.3.
2752 i
[3456]86-ncr-sysv4.3
)
2753 machine
=ncr386 opsys
=usg5-4-3
2756 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2757 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2758 i
[3456]86-ncr-sysv* )
2759 machine
=ncr386 opsys
=usg5-4-2
2762 ## Intel Paragon OSF/1
2764 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2769 machine
=i860 opsys
=usg5-4
2770 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2771 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2774 ## Macintosh PowerPC
2775 powerpc
*-*-linux-gnu* )
2776 machine
=macppc opsys
=gnu-linux
2779 ## Masscomp machines
2780 m68
*-masscomp-rtu* )
2781 machine
=masscomp opsys
=rtu
2784 ## Megatest machines
2785 m68
*-megatest-bsd* )
2786 machine
=mega68 opsys
=bsd4-2
2789 ## Workstations sold by MIPS
2790 ## This is not necessarily all workstations using the MIPS processor -
2791 ## Irises are produced by SGI, and DECstations by DEC.
2793 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2794 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2795 ## it gives for choosing between the alternatives seems to be "Use
2796 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2797 ## the BSD world." I'll assume that these are instructions for
2798 ## handling two odd situations, and that every other situation
2799 ## should use mips.h and usg5-2-2, they being listed first.
2802 ## Fall through to the general code at the bottom to decide on the OS.
2804 mips-mips-riscos4
* )
2805 machine
=mips4 opsys
=bsd4-3
2806 NON_GNU_CC
="cc -systype bsd43"
2807 NON_GNU_CPP
="cc -systype bsd43 -E"
2809 mips-mips-riscos5
* )
2810 machine
=mips4 opsys
=riscos5
2811 NON_GNU_CC
="cc -systype bsd43"
2812 NON_GNU_CPP
="cc -systype bsd43 -E"
2815 machine
=mips opsys
=bsd4-3
2818 machine
=mips opsys
=usg5-2-2
2822 m68
*-next-* | m68k-
*-nextstep* )
2823 machine
=m68k opsys
=nextstep
2826 ## The complete machine from National Semiconductor
2828 machine
=ns32000 opsys
=usg5-2
2832 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2833 machine
=tower32 opsys
=usg5-2-2
2835 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2836 machine
=tower32v3 opsys
=usg5-3
2841 machine
=ews4800 opsys
=ux4800
2844 ## Nixdorf Targon 31
2845 m68
*-nixdorf-sysv* )
2846 machine
=targon31 opsys
=usg5-2-2
2851 machine
=nu opsys
=usg5-2
2856 machine
=plexus opsys
=usg5-2
2860 ## I don't really have any idea what sort of processor the Pyramid has,
2861 ## so I'm assuming it is its own architecture.
2862 pyramid-pyramid-bsd
* )
2863 machine
=pyramid opsys
=bsd4-2
2867 ns32k-sequent-bsd4.2
* )
2868 machine
=sequent opsys
=bsd4-2
2870 ns32k-sequent-bsd4.3
* )
2871 machine
=sequent opsys
=bsd4-3
2875 mips-siemens-sysv
* | mips-sni-sysv
*)
2876 machine
=mips-siemens opsys
=usg5-4
2877 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2878 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2881 ## Silicon Graphics machines
2882 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2884 machine
=irist opsys
=iris3-5
2886 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2887 machine
=irist opsys
=iris3-6
2891 machine
=iris4d opsys
=irix3-3
2894 machine
=iris4d opsys
=irix4-0
2897 machine
=iris4d opsys
=irix6-5
2898 # Without defining _LANGUAGE_C, things get masked out in the headers
2899 # so that, for instance, grepping for `free' in stdlib.h fails and
2900 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2901 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2902 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2905 machine
=iris4d opsys
=irix6-0
2906 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2907 # but presumably it does no harm.
2908 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2909 # -32 probably isn't necessary in later v.6s -- anyone know which?
2910 NON_GCC_TEST_OPTIONS
=-32
2912 mips-sgi-irix5.
[01]* )
2913 machine
=iris4d opsys
=irix5-0
2915 mips-sgi-irix5
* | mips-sgi-irix
* )
2916 machine
=iris4d opsys
=irix5-2
2921 machine
=news opsys
=bsd4-2
2924 machine
=news opsys
=bsd4-3
2926 m68
*-sony-newsos3* | m68
*-sony-news3*)
2927 machine
=news opsys
=bsd4-3
2929 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2930 machine
=news-risc opsys
=bsd4-3
2932 mips-sony-newsos6
* )
2933 machine
=news-r6 opsys
=newsos6
2936 machine
=news-risc opsys
=newsos5
2941 machine
=stride opsys
=usg5-2
2945 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2946 machine
=sparc opsys
=gnu-linux
2949 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2950 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2951 | rs6000-
*-solaris2*)
2952 case "${canonical}" in
2953 m68
*-sunos1* ) machine
=sun1
;;
2954 m68
*-sunos2* ) machine
=sun2
;;
2955 m68
* ) machine
=sun3
;;
2956 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2957 i
[3456]86-*-* ) machine
=intel386
;;
2958 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2959 powerpcle
* ) machine
=powerpcle
;;
2960 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2961 sparc
* ) machine
=sparc
;;
2964 case "${canonical}" in
2965 ## The Sun386 didn't get past 4.0.
2966 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2967 *-sunos4.0
* ) opsys
=sunos4-0
;;
2968 *-sunos4.1.
[3-9]*noshare
)
2969 ## This name is sunos413 instead of sunos4-1-3
2970 ## to avoid a file name conflict on MSDOS.
2972 NON_GNU_CPP
=/usr
/lib
/cpp
2973 NON_GCC_TEST_OPTIONS
=-Bstatic
2974 GCC_TEST_OPTIONS
=-static
2976 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2978 NON_GNU_CPP
=/usr
/lib
/cpp
2980 *-sunos4* |
*-sunos )
2982 NON_GCC_TEST_OPTIONS
=-Bstatic
2983 GCC_TEST_OPTIONS
=-static
2985 *-sunos5.3
* |
*-solaris2.3
* )
2987 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2989 *-sunos5.4
* |
*-solaris2.4
* )
2991 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2994 *-sunos5.5
* |
*-solaris2.5
* )
2996 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2999 *-sunos5.6
* |
*-solaris2.6
* )
3001 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3004 *-sunos5* |
*-solaris* )
3006 ## FIXME: make this into a proper fix that checks the compiler type,
3007 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3008 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3009 ## -Xs prevents spurious whitespace.
3010 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3012 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3017 ## Watch out for a compiler that we know will not work.
3018 case "${canonical}" in
3019 *-solaris* |
*-sunos5* )
3020 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3021 ## /usr/ucb/cc doesn't work;
3022 ## we should find some other compiler that does work.
3030 machine
=sparc opsys
=nextstep
3034 m68
*-tadpole-sysv* )
3035 machine
=tad68k opsys
=usg5-3
3039 tahoe-tahoe-bsd4.2
* )
3040 machine
=tahoe opsys
=bsd4-2
3042 tahoe-tahoe-bsd4.3
* )
3043 machine
=tahoe opsys
=bsd4-3
3046 ## Tandem Integrity S2
3048 machine
=tandem-s2 opsys
=usg5-3
3052 m88k-tektronix-sysv3
* )
3053 machine
=tekxd88 opsys
=usg5-3
3056 ## Tektronix 16000 box (6130?)
3057 ns16k-tektronix-bsd
* )
3058 machine
=ns16000 opsys
=bsd4-2
3061 ## src/m/tek4300.h hints that this is a m68k machine.
3062 m68
*-tektronix-bsd* )
3063 machine
=tek4300 opsys
=bsd4-3
3067 ## We seem to have lost the machine-description file titan.h!
3069 machine
=titan opsys
=usg5-3
3072 ## Ustation E30 (SS5E)
3073 m68
*-unisys-uniplus* )
3074 machine
=ustation opsystem
=unipl5-2
3080 case "${canonical}" in
3081 *-bsd4.1
* ) opsys
=bsd4-1
;;
3082 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3083 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3084 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3085 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3086 *-vms* ) opsys
=vms
;;
3092 ns16k-whitechapel-
* )
3094 ## We don't know what sort of OS runs on these; we'll let the
3095 ## operating system guessing code below try.
3100 machine
=wicat opsys
=usg5-2
3105 machine
=ia64 opsys
=gnu-linux
3108 ## Intel 386 machines where we don't care about the manufacturer
3111 case "${canonical}" in
3112 *-cygwin ) opsys
=cygwin
;;
3113 *-darwin* ) opsys
=darwin
3114 CPP
="${CC-cc} -E -no-cpp-precomp"
3116 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3117 *-isc2.2
* ) opsys
=isc2-2
;;
3118 *-isc4.0
* ) opsys
=isc4-0
;;
3119 *-isc4.
* ) opsys
=isc4-1
3120 GCC_TEST_OPTIONS
=-posix
3121 NON_GCC_TEST_OPTIONS
=-Xp
3123 *-isc* ) opsys
=isc3-0
;;
3124 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3125 *-esix* ) opsys
=esix
;;
3126 *-xenix* ) opsys
=xenix
;;
3127 *-linux-gnu* ) opsys
=gnu-linux
;;
3128 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3129 *-sco3.2v5
* ) opsys
=sco5
3130 NON_GNU_CPP
=/lib
/cpp
3131 # Prevent -belf from being passed to $CPP.
3132 # /lib/cpp does not accept it.
3133 OVERRIDE_CPPFLAGS
=" "
3135 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3136 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3137 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3138 *-386bsd* ) opsys
=386bsd
;;
3139 *-nextstep* ) opsys
=nextstep
;;
3140 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3144 ## m68k Linux-based GNU system
3146 machine
=m68k opsys
=gnu-linux
3149 ## Mips Linux-based GNU system
3150 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3151 machine
=mips opsys
=gnu-linux
3155 sparc-fujitsu-sysv4
* )
3156 machine
=sparc opsys
=uxpds
3157 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3162 f301-fujitsu-uxpv4.1
)
3163 machine
=f301 opsys
=uxpv
3166 ## AMD x86-64 Linux-based GNU system
3167 x86_64-
*-linux-gnu* )
3168 machine
=amdx86-64 opsys
=gnu-linux
3171 ## Tensilica Xtensa Linux-based GNU system
3172 xtensa-
*-linux-gnu* )
3173 machine
=xtensa opsys
=gnu-linux
3181 ### If the code above didn't choose an operating system, just choose
3182 ### an operating system based on the configuration name. You really
3183 ### only want to use this when you have no idea what the right
3184 ### operating system is; if you know what operating systems a machine
3185 ### runs, it's cleaner to make it explicit in the case statement
3187 if test x
"${opsys}" = x
; then
3188 case "${canonical}" in
3189 *-gnu* ) opsys
=gnu
;;
3190 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3191 *-bsd4.2
) opsys
=bsd4-2
;;
3192 *-bsd4.3
) opsys
=bsd4-3
;;
3193 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3194 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3195 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3196 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3197 *-sysv4.2uw
* ) opsys
=unixware
;;
3198 *-sysv5uw* ) opsys
=unixware
;;
3199 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3200 *-sysv4.1
* |
*-sysvr4.1
* )
3201 NON_GNU_CPP
=/usr
/lib
/cpp
3203 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3204 if [ x
$NON_GNU_CPP = x
]; then
3205 if [ -f /usr
/ccs
/lib
/cpp
]; then
3206 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3208 NON_GNU_CPP
=/lib
/cpp
3212 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3221 if test $unported = yes; then
3222 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3223 Check \`etc/MACHINES' for recognized configuration names." >&5
3224 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3225 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3226 { (exit 1); exit 1; }; }
3229 machfile
="m/${machine}.h"
3230 opsysfile
="s/${opsys}.h"
3233 #### Choose a compiler.
3234 test -n "$CC" && cc_specified
=yes
3236 # Save the value of CFLAGS that the user specified.
3237 SPECIFIED_CFLAGS
="$CFLAGS"
3240 "yes" ) CC
="gcc" GCC
=yes ;;
3241 "no" ) : ${CC=cc} ;;
3245 ac_cpp
='$CPP $CPPFLAGS'
3246 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3249 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3251 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC
="$CC" # Let the user override the test.
3260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir
=.
3265 for ac_exec_ext
in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 if test -n "$CC"; then
3279 { echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6; }
3282 { echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6; }
3288 if test -z "$ac_cv_prog_CC"; then
3290 # Extract the first word of "gcc", so it can be a program name with args.
3291 set dummy gcc
; ac_word
=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir
=.
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_prog_ac_ct_CC
="gcc"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320 echo "${ECHO_T}$ac_ct_CC" >&6; }
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3326 if test "x$ac_ct_CC" = x
; then
3329 case $cross_compiling:$ac_tool_warned in
3331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3332 whose name does not start with the host triplet. If you think this
3333 configuration is useful to you, please write to autoconf@gnu.org." >&5
3334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3335 whose name does not start with the host triplet. If you think this
3336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3337 ac_tool_warned
=yes ;;
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_CC+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC
="$CC" # Let the user override the test.
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test -n "$CC"; then
3376 { echo "$as_me:$LINENO: result: $CC" >&5
3377 echo "${ECHO_T}$CC" >&6; }
3379 { echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6; }
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc
; ac_word
=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_CC+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC
="$CC" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406 ac_prog_rejected
=yes
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy
$ac_cv_prog_CC
3421 if test $# != 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3432 if test -n "$CC"; then
3433 { echo "$as_me:$LINENO: result: $CC" >&5
3434 echo "${ECHO_T}$CC" >&6; }
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3442 if test -z "$CC"; then
3443 if test -n "$ac_tool_prefix"; then
3444 for ac_prog
in cl.exe
3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC
="$CC" # Let the user override the test.
3456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir
=.
3461 for ac_exec_ext
in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test -n "$CC"; then
3475 { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3483 test -n "$CC" && break
3486 if test -z "$CC"; then
3488 for ac_prog
in cl.exe
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy
$ac_prog; ac_word
=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir
=.
3505 for ac_exec_ext
in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC
="$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3520 echo "${ECHO_T}$ac_ct_CC" >&6; }
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3527 test -n "$ac_ct_CC" && break
3530 if test "x$ac_ct_CC" = x
; then
3533 case $cross_compiling:$ac_tool_warned in
3535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3536 whose name does not start with the host triplet. If you think this
3537 configuration is useful to you, please write to autoconf@gnu.org." >&5
3538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3539 whose name does not start with the host triplet. If you think this
3540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3541 ac_tool_warned
=yes ;;
3550 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details." >&5
3552 echo "$as_me: error: no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
3556 # Provide some information about the compiler.
3557 echo "$as_me:$LINENO: checking for C compiler version" >&5
3558 ac_compiler
=`set X $ac_compile; echo $2`
3559 { (ac_try
="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569 { (ac_try="$ac_compiler -v >&5"
3571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3572 *) ac_try_echo
=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compiler -v >&5") 2>&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3579 { (ac_try
="$ac_compiler -V >&5"
3581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compiler -V >&5") 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 ac_clean_files_save=$ac_clean_files
3606 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3607 # Try to create an executable without -o first, disregard a.out.
3608 # It will help us diagnose broken compilers, and finding out an intuition
3610 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3611 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3612 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3614 # List of possible output files, starting from the most likely.
3615 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3616 # only as a last resort. b.out is created by i960 compilers.
3617 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3619 # The IRIX 6 linker writes into existing files which may not be
3620 # executable, retaining their permissions. Remove them first so a
3621 # subsequent execution test works.
3623 for ac_file in $ac_files
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3632 if { (ac_try="$ac_link_default"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_link_default") 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
3642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3645 # so that the user can short-circuit this test for compilers unknown to
3647 for ac_file
in $ac_files ''
3649 test -f "$ac_file" ||
continue
3651 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3654 # We found the default executable, but exeext='' is most
3658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3660 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662 # We set ac_cv_exeext here because the later test for it is not
3663 # safe: cross compilers may not add the suffix if given an `-o'
3664 # argument, so we may need to know it at that point already.
3665 # Even if this section looks crufty: it has the advantage of
3672 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3678 { echo "$as_me:$LINENO: result: $ac_file" >&5
3679 echo "${ECHO_T}$ac_file" >&6; }
3680 if test -z "$ac_file"; then
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3684 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: C compiler cannot create executables
3687 See \`config.log' for more details." >&2;}
3688 { (exit 77); exit 77; }; }
3691 ac_exeext
=$ac_cv_exeext
3693 # Check that the compiler produces executables we can run. If not, either
3694 # the compiler is broken, or we cross compile.
3695 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3696 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3697 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3698 # If not cross compiling, check that we can run a simple program.
3699 if test "$cross_compiling" != yes; then
3700 if { ac_try
='./$ac_file'
3701 { (case "(($ac_try" in
3702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3712 if test "$cross_compiling" = maybe; then
3715 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3716 If you meant to cross compile, use \`--host'.
3717 See \`config.log' for more details.
" >&5
3718 echo "$as_me: error
: cannot run C compiled programs.
3719 If you meant to cross compile
, use \
`--host'.
3720 See \`config.log
' for more details." >&2;}
3721 { (exit 1); exit 1; }; }
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3728 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3733 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3734 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3735 echo "${ECHO_T}$cross_compiling" >&6; }
3737 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3738 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3739 if { (ac_try="$ac_link"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_link") 2>&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; then
3749 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3750 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3751 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3753 for ac_file
in conftest.exe conftest conftest.
*; do
3754 test -f "$ac_file" ||
continue
3756 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3757 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3770 rm -f conftest
$ac_cv_exeext
3771 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3772 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3774 rm -f conftest.
$ac_ext
3775 EXEEXT
=$ac_cv_exeext
3777 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3778 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3779 if test "${ac_cv_objext+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 cat >conftest.
$ac_ext <<_ACEOF
3785 cat confdefs.h
>>conftest.
$ac_ext
3786 cat >>conftest.
$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3797 rm -f conftest.o conftest.obj
3798 if { (ac_try
="$ac_compile"
3800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; then
3808 for ac_file in conftest.o conftest.obj conftest.*; do
3809 test -f "$ac_file" || continue;
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3821 See \`config.log
' for more details." >&5
3822 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3823 See \`config.log' for more details.
" >&2;}
3824 { (exit 1); exit 1; }; }
3827 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3829 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3830 echo "${ECHO_T}$ac_cv_objext" >&6; }
3831 OBJEXT=$ac_cv_objext
3833 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3834 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3835 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3836 echo $ECHO_N "(cached
) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3875 echo "$as_me: failed program was
:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3885 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3887 GCC=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CFLAGS=${CFLAGS+set}
3889 ac_save_CFLAGS=$CFLAGS
3890 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3891 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3892 if test "${ac_cv_prog_cc_g+set}" = set; then
3893 echo $ECHO_N "(cached
) $ECHO_C" >&6
3895 ac_save_c_werror_flag=$ac_c_werror_flag
3896 ac_c_werror_flag=yes
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3933 echo "$as_me: failed program was
:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3971 echo "$as_me: failed program was
:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4010 echo "$as_me: failed program was
:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4036 if test "$GCC" = yes; then
4042 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4043 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4044 if test "${ac_cv_prog_cc_c89+set}" = set; then
4045 echo $ECHO_N "(cached
) $ECHO_C" >&6
4047 ac_cv_prog_cc_c89=no
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4057 #include <sys/types.h>
4058 #include <sys/stat.h>
4059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4060 struct buf { int x; };
4061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062 static char *e (p, i)
4068 static char *f (char * (*g) (char **, int), char **p, ...)
4073 s = g (p, va_arg (v,int));
4078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4079 function prototypes and stuff, but not '\xHH' hex character constants.
4080 These don't provoke an error unfortunately, instead are silently treated
4081 as 'x'. The following induces an error, until -std is added to get
4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4083 array size at least. It's necessary to write '\x00'==0 to get something
4084 that's true only with -std. */
4085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088 inside strings and character constants. */
4090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4109 CC="$ac_save_CC $ac_arg"
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest.$ac_objext; then
4127 ac_cv_prog_cc_c89=$ac_arg
4129 echo "$as_me: failed program was
:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4135 rm -f core conftest.err conftest.$ac_objext
4136 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4138 rm -f conftest.$ac_ext
4143 case "x
$ac_cv_prog_cc_c89" in
4145 { echo "$as_me:$LINENO: result
: none needed
" >&5
4146 echo "${ECHO_T}none needed
" >&6; } ;;
4148 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4149 echo "${ECHO_T}unsupported
" >&6; } ;;
4151 CC="$CC $ac_cv_prog_cc_c89"
4152 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4153 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4169 #### Some systems specify a CPP to use unless we are using GCC.
4170 #### Now that we know whether we are using GCC, we can decide whether
4171 #### to use that one.
4172 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4177 #### Some systems specify a CC to use unless we are using GCC.
4178 #### Now that we know whether we are using GCC, we can decide whether
4179 #### to use that one.
4180 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4181 test x$cc_specified != xyes
4186 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4188 CC="$CC $GCC_TEST_OPTIONS"
4191 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4193 CC="$CC $NON_GCC_TEST_OPTIONS"
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4203 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4204 # On Suns, sometimes $CPP names a directory.
4205 if test -n "$CPP" && test -d "$CPP"; then
4208 if test -z "$CPP"; then
4209 if test "${ac_cv_prog_CPP+set}" = set; then
4210 echo $ECHO_N "(cached
) $ECHO_C" >&6
4212 # Double quotes because CPP needs to be expanded
4213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4216 for ac_c_preproc_warn_flag in '' yes
4218 # Use a header file that comes with gcc, so configuring glibc
4219 # with a fresh cross-compiler works.
4220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4221 # <limits.h> exists even on freestanding compilers.
4222 # On the NeXT, cc -E runs the code through the compiler's parser,
4223 # not just through cpp. "Syntax error
" is here to catch this case.
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4231 # include <limits.h>
4233 # include <assert.h>
4237 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4255 echo "$as_me: failed program was
:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 # Broken: fails on valid input.
4262 rm -f conftest.err conftest.$ac_ext
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <ac_nonexistent.h>
4274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4286 (exit $ac_status); } >/dev/null && {
4287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4290 # Broken: success on invalid input.
4293 echo "$as_me: failed program was
:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 # Passes both tests.
4301 rm -f conftest.err conftest.$ac_ext
4304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 rm -f conftest.err conftest.$ac_ext
4306 if $ac_preproc_ok; then
4318 { echo "$as_me:$LINENO: result
: $CPP" >&5
4319 echo "${ECHO_T}$CPP" >&6; }
4321 for ac_c_preproc_warn_flag in '' yes
4323 # Use a header file that comes with gcc, so configuring glibc
4324 # with a fresh cross-compiler works.
4325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 # <limits.h> exists even on freestanding compilers.
4327 # On the NeXT, cc -E runs the code through the compiler's parser,
4328 # not just through cpp. "Syntax error
" is here to catch this case.
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4336 # include <limits.h>
4338 # include <assert.h>
4342 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4354 (exit $ac_status); } >/dev/null && {
4355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4360 echo "$as_me: failed program was
:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # Broken: fails on valid input.
4367 rm -f conftest.err conftest.$ac_ext
4369 # OK, works on sane cases. Now check whether nonexistent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <ac_nonexistent.h>
4379 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4391 (exit $ac_status); } >/dev/null && {
4392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4395 # Broken: success on invalid input.
4398 echo "$as_me: failed program was
:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 # Passes both tests.
4406 rm -f conftest.err conftest.$ac_ext
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then
4414 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4415 See \
`config.log' for more details." >&5
4416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4417 See \`config.log
' for more details." >&2;}
4418 { (exit 1); exit 1; }; }
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4424 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4429 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4430 if test "${ac_cv_path_GREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 # Extract the first word of "grep ggrep" to use in msg output
4434 if test -z "$GREP"; then
4435 set dummy grep ggrep; ac_prog_name=$2
4436 if test "${ac_cv_path_GREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 ac_path_GREP_found=false
4440 # Loop through the user's path and
test for each of PROGNAME-LIST
4441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4442 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4445 test -z "$as_dir" && as_dir
=.
4446 for ac_prog
in grep ggrep
; do
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4450 # Check for GNU ac_path_GREP and select it if it is found.
4451 # Check for GNU $ac_path_GREP
4452 case `"$ac_path_GREP" --version 2>&1` in
4454 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 echo 'GREP' >> "conftest.nl"
4464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4465 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4466 ac_count
=`expr $ac_count + 1`
4467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_GREP
="$ac_path_GREP"
4470 ac_path_GREP_max
=$ac_count
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4475 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4479 $ac_path_GREP_found && break 3
4489 GREP
="$ac_cv_path_GREP"
4490 if test -z "$GREP"; then
4491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4493 { (exit 1); exit 1; }; }
4497 ac_cv_path_GREP
=$GREP
4502 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4503 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4504 GREP
="$ac_cv_path_GREP"
4507 { echo "$as_me:$LINENO: checking for egrep" >&5
4508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4513 then ac_cv_path_EGREP
="$GREP -E"
4515 # Extract the first word of "egrep" to use in msg output
4516 if test -z "$EGREP"; then
4517 set dummy
egrep; ac_prog_name
=$2
4518 if test "${ac_cv_path_EGREP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_path_EGREP_found
=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4524 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4527 test -z "$as_dir" && as_dir
=.
4528 for ac_prog
in egrep; do
4529 for ac_exec_ext
in '' $ac_executable_extensions; do
4530 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4536 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4547 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4548 ac_count
=`expr $ac_count + 1`
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP
="$ac_path_EGREP"
4552 ac_path_EGREP_max
=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4561 $ac_path_EGREP_found && break 3
4571 EGREP
="$ac_cv_path_EGREP"
4572 if test -z "$EGREP"; then
4573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4574 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4575 { (exit 1); exit 1; }; }
4579 ac_cv_path_EGREP
=$EGREP
4585 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4586 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4587 EGREP
="$ac_cv_path_EGREP"
4591 { echo "$as_me:$LINENO: checking for AIX" >&5
4592 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4593 cat >conftest.
$ac_ext <<_ACEOF
4596 cat confdefs.h
>>conftest.
$ac_ext
4597 cat >>conftest.
$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "yes" >/dev
/null
2>&1; then
4606 { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4608 cat >>confdefs.h
<<\_ACEOF
4609 #define _ALL_SOURCE 1
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4620 cat >>confdefs.h
<<\_ACEOF
4621 #define _GNU_SOURCE 1
4626 ### Use -Wno-pointer-sign if the compiler supports it
4627 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4628 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4629 SAVE_CFLAGS
="$CFLAGS"
4630 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4631 cat >conftest.
$ac_ext <<_ACEOF
4634 cat confdefs.h
>>conftest.
$ac_ext
4635 cat >>conftest.
$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4646 rm -f conftest.
$ac_objext
4647 if { (ac_try
="$ac_compile"
4649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_compile") 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest.$ac_objext; then
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 if test $has_option = yes; then
4673 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4675 { echo "$as_me:$LINENO: result: $has_option" >&5
4676 echo "${ECHO_T}$has_option" >&6; }
4677 CFLAGS="$SAVE_CFLAGS"
4681 #### Some other nice autoconf tests.
4683 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4684 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4686 if test "$LN_S" = "ln -s"; then
4687 { echo "$as_me:$LINENO: result: yes" >&5
4688 echo "${ECHO_T}yes" >&6; }
4690 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4691 echo "${ECHO_T}no, using $LN_S" >&6; }
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4700 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4701 # On Suns, sometimes $CPP names a directory.
4702 if test -n "$CPP" && test -d "$CPP"; then
4705 if test -z "$CPP"; then
4706 if test "${ac_cv_prog_CPP+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 # Double quotes because CPP needs to be expanded
4710 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4713 for ac_c_preproc_warn_flag in '' yes
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4728 # include <limits.h>
4730 # include <assert.h>
4734 if { (ac_try="$ac_cpp conftest.$ac_ext"
4736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4737 *) ac_try_echo
=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742 grep -v '^ *+' conftest.er1
>conftest.err
4744 cat conftest.err
>&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev
/null
&& {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.
$ac_ext >&5
4755 # Broken: fails on valid input.
4759 rm -f conftest.err conftest.
$ac_ext
4761 # OK, works on sane cases. Now check whether nonexistent headers
4762 # can be detected and how.
4763 cat >conftest.
$ac_ext <<_ACEOF
4766 cat confdefs.h
>>conftest.
$ac_ext
4767 cat >>conftest.
$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
4771 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4787 # Broken: success on invalid input.
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4793 # Passes both tests.
4798 rm -f conftest.err conftest.$ac_ext
4801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802 rm -f conftest.err conftest.
$ac_ext
4803 if $ac_preproc_ok; then
4815 { echo "$as_me:$LINENO: result: $CPP" >&5
4816 echo "${ECHO_T}$CPP" >&6; }
4818 for ac_c_preproc_warn_flag
in '' yes
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.
$ac_ext <<_ACEOF
4829 cat confdefs.h
>>conftest.
$ac_ext
4830 cat >>conftest.
$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4833 # include <limits.h>
4835 # include <assert.h>
4839 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null && {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 # Broken: fails on valid input.
4864 rm -f conftest.err conftest.$ac_ext
4866 # OK, works on sane cases. Now check whether nonexistent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <ac_nonexistent.h>
4876 if { (ac_try="$ac_cpp conftest.$ac_ext"
4878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4879 *) ac_try_echo
=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 grep -v '^ *+' conftest.er1
>conftest.err
4886 cat conftest.err
>&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } >/dev
/null
&& {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4892 # Broken: success on invalid input.
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.
$ac_ext >&5
4898 # Passes both tests.
4903 rm -f conftest.err conftest.
$ac_ext
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.
$ac_ext
4908 if $ac_preproc_ok; then
4911 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&5
4913 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details." >&2;}
4915 { (exit 1); exit 1; }; }
4919 ac_cpp
='$CPP $CPPFLAGS'
4920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4924 # Find a good install program. We prefer a C program (faster),
4925 # so one script is as good as another. But avoid the broken or
4926 # incompatible versions:
4927 # SysV /etc/install, /usr/sbin/install
4928 # SunOS /usr/etc/install
4929 # IRIX /sbin/install
4931 # AmigaOS /C/install, which installs bootblocks on floppy discs
4932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4935 # OS/2's system install, which has a completely different semantic
4936 # ./install, which can be erroneously created by make from ./install.sh.
4937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4939 if test -z "$INSTALL"; then
4940 if test "${ac_cv_path_install+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir
=.
4948 # Account for people who put trailing slashes in PATH elements.
4950 .
/ | .
// |
/cC
/* | \
4951 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4952 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4955 # OSF1 and SCO ODT 3.0 have their own names for install.
4956 # Don't use installbsd from OSF since it installs stuff as root
4958 for ac_prog
in ginstall scoinst
install; do
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4961 if test $ac_prog = install &&
4962 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4963 # AIX install. It has an incompatible calling convention.
4965 elif test $ac_prog = install &&
4966 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4967 # program-specific install script used by HP pwplus--don't use.
4970 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4983 if test "${ac_cv_path_install+set}" = set; then
4984 INSTALL
=$ac_cv_path_install
4986 # As a last resort, use the slow shell script. Don't cache a
4987 # value for INSTALL within a source directory, because that will
4988 # break other packages using the cache if that directory is
4989 # removed, or if the value is a relative name.
4990 INSTALL
=$ac_install_sh
4993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4994 echo "${ECHO_T}$INSTALL" >&6; }
4996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4997 # It thinks the first close brace ends the variable substitution.
4998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5002 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5004 if test "x$RANLIB" = x
; then
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5007 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_RANLIB+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 if test -n "$RANLIB"; then
5014 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir
=.
5021 for ac_exec_ext
in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 RANLIB
=$ac_cv_prog_RANLIB
5034 if test -n "$RANLIB"; then
5035 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5036 echo "${ECHO_T}$RANLIB" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5044 if test -z "$ac_cv_prog_RANLIB"; then
5045 ac_ct_RANLIB
=$RANLIB
5046 # Extract the first word of "ranlib", so it can be a program name with args.
5047 set dummy ranlib
; ac_word
=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 if test -n "$ac_ct_RANLIB"; then
5054 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5074 if test -n "$ac_ct_RANLIB"; then
5075 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5078 { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5082 if test "x$ac_ct_RANLIB" = x
; then
5085 case $cross_compiling:$ac_tool_warned in
5087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5088 whose name does not start with the host triplet. If you think this
5089 configuration is useful to you, please write to autoconf@gnu.org." >&5
5090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet. If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5093 ac_tool_warned
=yes ;;
5095 RANLIB
=$ac_ct_RANLIB
5098 RANLIB
="$ac_cv_prog_RANLIB"
5102 # Extract the first word of "install-info", so it can be a program name with args.
5103 set dummy install-info
; ac_word
=$2
5104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5106 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 case $INSTALL_INFO in
5111 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_exec_ext
in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5133 if test -n "$INSTALL_INFO"; then
5134 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5135 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5142 # Extract the first word of "install-info", so it can be a program name with args.
5143 set dummy install-info
; ac_word
=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 case $INSTALL_INFO in
5151 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5155 for as_dir
in /usr
/sbin
5158 test -z "$as_dir" && as_dir
=.
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5173 if test -n "$INSTALL_INFO"; then
5174 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5175 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5177 { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5182 # Extract the first word of "install-info", so it can be a program name with args.
5183 set dummy install-info
; ac_word
=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 case $INSTALL_INFO in
5191 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_exec_ext
in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5213 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5214 if test -n "$INSTALL_INFO"; then
5215 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5216 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5218 { echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6; }
5223 # Extract the first word of "gzip", so it can be a program name with args.
5224 set dummy
gzip; ac_word
=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5239 test -z "$as_dir" && as_dir
=.
5240 for ac_exec_ext
in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5254 if test -n "$GZIP_PROG"; then
5255 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5256 echo "${ECHO_T}$GZIP_PROG" >&6; }
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5265 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5267 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5270 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5272 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5276 late_LDFLAGS
=$LDFLAGS
5277 if test "$GCC" = yes; then
5278 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5280 LDFLAGS
="$LDFLAGS -znocombreloc"
5283 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5284 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5285 cat >conftest.
$ac_ext <<_ACEOF
5288 rm -f conftest.
$ac_objext conftest
$ac_exeext
5289 if { (ac_try
="$ac_link"
5291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest$ac_exeext &&
5305 $as_test_x conftest$ac_exeext; then
5306 { echo "$as_me:$LINENO: result: yes" >&5
5307 echo "${ECHO_T}yes" >&6; }
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 LDFLAGS=$late_LDFLAGS
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5318 conftest$ac_exeext conftest.$ac_ext
5320 #### Extract some information from the operating system and machine files.
5322 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5323 - which libraries the lib-src programs will want, and
5324 - whether the GNU malloc routines are usable..." >&5
5325 echo "$as_me: checking the machine- and system-dependent files to find out
5326 - which libraries the lib-src programs will want, and
5327 - whether the GNU malloc routines are usable..." >&6;}
5329 ### First figure out CFLAGS (which we use for running the compiler here)
5330 ### and REAL_CFLAGS (which we use for real compilation).
5331 ### The two are the same except on a few systems, where they are made
5332 ### different to work around various lossages. For example,
5333 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5334 ### as implying static linking.
5336 ### If the CFLAGS env var is specified, we use that value
5337 ### instead of the default.
5339 ### It's not important that this name contain the PID; you can't run
5340 ### two configures in the same directory and have anything work
5342 tempcname="conftest.c"
5345 #include "'${srcdir}'/src/'${opsysfile}'"
5346 #include "'${srcdir}'/src/'${machfile}'"
5347 #ifndef LIBS_MACHINE
5348 #define LIBS_MACHINE
5353 #ifndef C_SWITCH_SYSTEM
5354 #define C_SWITCH_SYSTEM
5356 #ifndef C_SWITCH_MACHINE
5357 #define C_SWITCH_MACHINE
5359 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5360 configure___ c_switch_system=C_SWITCH_SYSTEM
5361 configure___ c_switch_machine=C_SWITCH_MACHINE
5364 #define LIB_X11_LIB -lX11
5367 #ifndef LIBX11_MACHINE
5368 #define LIBX11_MACHINE
5371 #ifndef LIBX11_SYSTEM
5372 #define LIBX11_SYSTEM
5374 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5377 configure___ unexec=UNEXEC
5379 configure___ unexec=unexec.o
5382 #ifdef SYSTEM_MALLOC
5383 configure___ system_malloc=yes
5385 configure___ system_malloc=no
5388 #ifdef USE_MMAP_FOR_BUFFERS
5389 configure___ use_mmap_for_buffers=yes
5391 configure___ use_mmap_for_buffers=no
5394 #ifndef C_DEBUG_SWITCH
5395 #define C_DEBUG_SWITCH -g
5398 #ifndef C_OPTIMIZE_SWITCH
5400 #define C_OPTIMIZE_SWITCH -O2
5402 #define C_OPTIMIZE_SWITCH -O
5406 #ifndef C_WARNINGS_SWITCH
5407 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5410 #ifndef LD_SWITCH_MACHINE
5411 #define LD_SWITCH_MACHINE
5414 #ifndef LD_SWITCH_SYSTEM
5415 #define LD_SWITCH_SYSTEM
5418 #ifndef LD_SWITCH_X_SITE_AUX
5419 #define LD_SWITCH_X_SITE_AUX
5422 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5423 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5425 #ifdef THIS_IS_CONFIGURE
5427 /* Get the CFLAGS for tests in configure. */
5429 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5431 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5434 #else /* not THIS_IS_CONFIGURE */
5436 /* Get the CFLAGS for real compilation. */
5438 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5440 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5443 #endif /* not THIS_IS_CONFIGURE */
5446 # The value of CPP is a quoted variable reference, so we need to do this
5447 # to get its actual value...
5448 CPP=`eval "echo $CPP"`
5449 eval `${CPP} -Isrc ${tempcname} \
5450 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5451 if test "x$SPECIFIED_CFLAGS" = x; then
5452 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5453 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5455 REAL_CFLAGS="$CFLAGS"
5459 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5461 ### Make sure subsequent tests use flags consistent with the build flags.
5463 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5464 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5466 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5471 # Check whether --enable-largefile was given.
5472 if test "${enable_largefile+set}" = set; then
5473 enableval=$enable_largefile;
5476 if test "$enable_largefile" != no; then
5478 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5479 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5480 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 ac_cv_sys_largefile_CC=no
5484 if test "$GCC" != yes; then
5487 # IRIX 6.2 and later do not support large files by default,
5488 # so use the C compiler's -n32 option if that helps.
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5516 *) ac_try_echo
=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1
>conftest.err
5523 cat conftest.err
>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.
$ac_objext; then
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.
$ac_ext >&5
5537 rm -f core conftest.err conftest.
$ac_objext
5539 rm -f conftest.
$ac_objext
5540 if { (ac_try
="$ac_compile"
5542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_compile") 2>conftest.er1
5548 grep -v '^ *+' conftest.er1 >conftest.err
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
5556 ac_cv_sys_largefile_CC=' -n32'; break
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5564 rm -f core conftest.err conftest.$ac_objext
5568 rm -f conftest.$ac_ext
5571 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5572 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5573 if test "$ac_cv_sys_largefile_CC" != no; then
5574 CC=$CC$ac_cv_sys_largefile_CC
5577 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5578 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5579 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <sys/types.h>
5590 /* Check that off_t can represent 2**63 - 1 correctly.
5591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5592 since some C++ compilers masquerading as C compilers
5593 incorrectly reject 9223372036854775807. */
5594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5596 && LARGE_OFF_T % 2147483647 == 1)
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5610 *) ac_try_echo
=$ac_try;;
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5615 grep -v '^ *+' conftest.er1
>conftest.err
5617 cat conftest.err
>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.
$ac_objext; then
5623 ac_cv_sys_file_offset_bits
=no
; break
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.
$ac_ext >&5
5631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5632 cat >conftest.
$ac_ext <<_ACEOF
5635 cat confdefs.h
>>conftest.
$ac_ext
5636 cat >>conftest.
$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #define _FILE_OFFSET_BITS 64
5639 #include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642 since some C++ compilers masquerading as C compilers
5643 incorrectly reject 9223372036854775807. */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646 && LARGE_OFF_T % 2147483647 == 1)
5656 rm -f conftest.
$ac_objext
5657 if { (ac_try
="$ac_compile"
5659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 ac_cv_sys_file_offset_bits=64; break
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 ac_cv_sys_file_offset_bits=unknown
5686 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5687 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5688 case $ac_cv_sys_file_offset_bits in #(
5691 cat >>confdefs.h <<_ACEOF
5692 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5697 if test $ac_cv_sys_file_offset_bits = unknown; then
5698 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5699 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5700 if test "${ac_cv_sys_large_files+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <sys/types.h>
5711 /* Check that off_t can represent 2**63 - 1 correctly.
5712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5713 since some C++ compilers masquerading as C compilers
5714 incorrectly reject 9223372036854775807. */
5715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5717 && LARGE_OFF_T % 2147483647 == 1)
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5731 *) ac_try_echo
=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5736 grep -v '^ *+' conftest.er1
>conftest.err
5738 cat conftest.err
>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.
$ac_objext; then
5744 ac_cv_sys_large_files
=no
; break
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.
$ac_ext >&5
5752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5753 cat >conftest.
$ac_ext <<_ACEOF
5756 cat confdefs.h
>>conftest.
$ac_ext
5757 cat >>conftest.
$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5777 rm -f conftest.
$ac_objext
5778 if { (ac_try
="$ac_compile"
5780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 ac_cv_sys_large_files=1; break
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 ac_cv_sys_large_files=unknown
5807 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5808 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5809 case $ac_cv_sys_large_files in #(
5812 cat >>confdefs.h <<_ACEOF
5813 #define _LARGE_FILES $ac_cv_sys_large_files
5823 ### The standard library on x86-64 GNU/Linux distributions can
5824 ### be located in either /usr/lib64 or /usr/lib.
5825 case "${canonical}" in
5826 x86_64-*-linux-gnu* )
5827 if test -d /usr/lib64; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_X86_64_LIB64_DIR 1
5839 if test "${with_sound}" != "no"; then
5840 # Sound support for GNU/Linux and the free BSDs.
5841 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5843 if test "${ac_cv_header_stdc+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5869 *) ac_try_echo
=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1
>conftest.err
5876 cat conftest.err
>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.
$ac_objext; then
5882 ac_cv_header_stdc
=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 ac_cv_header_stdc
=no
5890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5892 if test $ac_cv_header_stdc = yes; then
5893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5894 cat >conftest.
$ac_ext <<_ACEOF
5897 cat confdefs.h
>>conftest.
$ac_ext
5898 cat >>conftest.
$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "memchr" >/dev
/null
2>&1; then
5907 ac_cv_header_stdc
=no
5913 if test $ac_cv_header_stdc = yes; then
5914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5915 cat >conftest.
$ac_ext <<_ACEOF
5918 cat confdefs.h
>>conftest.
$ac_ext
5919 cat >>conftest.
$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "free" >/dev
/null
2>&1; then
5928 ac_cv_header_stdc
=no
5934 if test $ac_cv_header_stdc = yes; then
5935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5936 if test "$cross_compiling" = yes; then
5939 cat >conftest.
$ac_ext <<_ACEOF
5942 cat confdefs.h
>>conftest.
$ac_ext
5943 cat >>conftest.
$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5947 #if ((' ' & 0x0FF) == 0x020)
5948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 # define ISLOWER(c) \
5952 (('a' <= (c) && (c) <= 'i') \
5953 || ('j' <= (c) && (c) <= 'r') \
5954 || ('s' <= (c) && (c) <= 'z'))
5955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5963 for (i = 0; i < 256; i++)
5964 if (XOR (islower (i), ISLOWER (i))
5965 || toupper (i) != TOUPPER (i))
5970 rm -f conftest
$ac_exeext
5971 if { (ac_try
="$ac_link"
5973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_link") 2>&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5981 { (case "(($ac_try" in
5982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5983 *) ac_try_echo
=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_try") 2>&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5992 echo "$as_me: program exited with status $ac_status" >&5
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.
$ac_ext >&5
5997 ac_cv_header_stdc
=no
5999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6005 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6006 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6007 if test $ac_cv_header_stdc = yes; then
6009 cat >>confdefs.h
<<\_ACEOF
6010 #define STDC_HEADERS 1
6015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6025 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6026 inttypes.h stdint.h unistd.h
6028 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6031 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 cat >conftest.
$ac_ext <<_ACEOF
6037 cat confdefs.h
>>conftest.
$ac_ext
6038 cat >>conftest.
$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $ac_includes_default
6042 #include <$ac_header>
6044 rm -f conftest.
$ac_objext
6045 if { (ac_try
="$ac_compile"
6047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6061 eval "$as_ac_Header=yes"
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 eval "$as_ac_Header=no"
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 ac_res=`eval echo '${'$as_ac_Header'}'`
6072 { echo "$as_me:$LINENO: result: $ac_res" >&5
6073 echo "${ECHO_T}$ac_res" >&6; }
6074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6075 cat >>confdefs.h <<_ACEOF
6076 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6087 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6089 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_res=`eval echo '${'$as_ac_Header'}'`
6097 { echo "$as_me:$LINENO: result: $ac_res" >&5
6098 echo "${ECHO_T}$ac_res" >&6; }
6100 # Is the header compilable?
6101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6103 cat >conftest.$ac_ext <<_ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6110 #include <$ac_header>
6112 rm -f conftest.$ac_objext
6113 if { (ac_try="$ac_compile"
6115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6116 *) ac_try_echo
=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1
>conftest.err
6123 cat conftest.err
>&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.
$ac_objext; then
6129 ac_header_compiler
=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.
$ac_ext >&5
6134 ac_header_compiler
=no
6137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6139 echo "${ECHO_T}$ac_header_compiler" >&6; }
6141 # Is the header present?
6142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6144 cat >conftest.
$ac_ext <<_ACEOF
6147 cat confdefs.h
>>conftest.
$ac_ext
6148 cat >>conftest.
$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <$ac_header>
6152 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev/null && {
6165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6168 ac_header_preproc=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_header_preproc=no
6176 rm -f conftest.err conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6178 echo "${ECHO_T}$ac_header_preproc" >&6; }
6180 # So? What about this header?
6181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6187 ac_header_preproc=yes
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 eval "$as_ac_Header=\$ac_header_preproc"
6212 ac_res=`eval echo '${'$as_ac_Header'}'`
6213 { echo "$as_me:$LINENO: result: $ac_res" >&5
6214 echo "${ECHO_T}$ac_res" >&6; }
6217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6218 cat >>confdefs.h <<_ACEOF
6219 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6226 # Emulation library used on NetBSD.
6227 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6228 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6229 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 ac_check_lib_save_LIBS=$LIBS
6233 LIBS="-lossaudio $LIBS"
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6241 /* Override any GCC internal prototype to avoid an error.
6242 Use char because int might match the return type of a GCC
6243 builtin and then its argument prototype would still apply. */
6251 return _oss_ioctl ();
6256 rm -f conftest.$ac_objext conftest$ac_exeext
6257 if { (ac_try="$ac_link"
6259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6260 *) ac_try_echo
=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_link") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1
>conftest.err
6267 cat conftest.err
>&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest
$ac_exeext &&
6273 $as_test_x conftest
$ac_exeext; then
6274 ac_cv_lib_ossaudio__oss_ioctl
=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6279 ac_cv_lib_ossaudio__oss_ioctl
=no
6282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6283 conftest
$ac_exeext conftest.
$ac_ext
6284 LIBS
=$ac_check_lib_save_LIBS
6286 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6287 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6288 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6297 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6298 if test "X${with_pkg_config_prog}" != X
; then
6299 PKG_CONFIG
="${with_pkg_config_prog}"
6304 if test -z "$PKG_CONFIG"; then
6305 # Extract the first word of "pkg-config", so it can be a program name with args.
6306 set dummy pkg-config
; ac_word
=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir
=.
6322 for ac_exec_ext
in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6336 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6337 if test -n "$PKG_CONFIG"; then
6338 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6339 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6348 if test "$PKG_CONFIG" = "no" ; then
6351 PKG_CONFIG_MIN_VERSION
=0.9.0
6352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6353 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6354 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6356 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6357 { echo "$as_me:$LINENO: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6; }
6361 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6362 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6363 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6364 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6365 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6367 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6368 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6369 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6370 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6371 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6373 { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6377 ## If we have a custom action on failure, don't print errors, but
6378 ## do set a variable so people can do so.
6379 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6391 if test $succeeded = yes; then
6397 if test $HAVE_ALSA = yes; then
6398 SAVE_CFLAGS
="$CFLAGS"
6399 SAVE_LDFLAGS
="$LDFLAGS"
6400 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6401 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6402 cat >conftest.
$ac_ext <<_ACEOF
6405 cat confdefs.h
>>conftest.
$ac_ext
6406 cat >>conftest.
$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <asoundlib.h>
6412 snd_lib_error_set_handler (0);
6417 rm -f conftest.
$ac_objext
6418 if { (ac_try
="$ac_compile"
6420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 emacs_alsa_normal=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 emacs_alsa_normal=no
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 if test "$emacs_alsa_normal" != yes; then
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include <alsa/asoundlib.h>
6454 snd_lib_error_set_handler (0);
6459 rm -f conftest.$ac_objext
6460 if { (ac_try="$ac_compile"
6462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6463 *) ac_try_echo
=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6468 grep -v '^ *+' conftest.er1
>conftest.err
6470 cat conftest.err
>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest.
$ac_objext; then
6476 emacs_alsa_subdir
=yes
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.
$ac_ext >&5
6481 emacs_alsa_subdir
=no
6484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6485 if test "$emacs_alsa_subdir" != yes; then
6486 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6487 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6488 { (exit 1); exit 1; }; }
6490 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6493 CFLAGS
="$SAVE_CFLAGS"
6494 LDFLAGS
="$SAVE_LDFLAGS"
6495 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6496 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6498 cat >>confdefs.h
<<\_ACEOF
6532 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6533 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6534 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6535 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6538 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6539 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 ac_res
=`eval echo '${'$as_ac_Header'}'`
6546 { echo "$as_me:$LINENO: result: $ac_res" >&5
6547 echo "${ECHO_T}$ac_res" >&6; }
6549 # Is the header compilable?
6550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6552 cat >conftest.
$ac_ext <<_ACEOF
6555 cat confdefs.h
>>conftest.
$ac_ext
6556 cat >>conftest.
$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 $ac_includes_default
6559 #include <$ac_header>
6561 rm -f conftest.
$ac_objext
6562 if { (ac_try
="$ac_compile"
6564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_header_compiler=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_header_compiler=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6588 echo "${ECHO_T}$ac_header_compiler" >&6; }
6590 # Is the header present?
6591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6593 cat >conftest.$ac_ext <<_ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <$ac_header>
6601 if { (ac_try="$ac_cpp conftest.$ac_ext"
6603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6604 *) ac_try_echo
=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } >/dev
/null
&& {
6614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6617 ac_header_preproc
=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.
$ac_ext >&5
6622 ac_header_preproc
=no
6625 rm -f conftest.err conftest.
$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6627 echo "${ECHO_T}$ac_header_preproc" >&6; }
6629 # So? What about this header?
6630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6636 ac_header_preproc
=yes
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 eval "$as_ac_Header=\$ac_header_preproc"
6661 ac_res
=`eval echo '${'$as_ac_Header'}'`
6662 { echo "$as_me:$LINENO: result: $ac_res" >&5
6663 echo "${ECHO_T}$ac_res" >&6; }
6666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667 cat >>confdefs.h
<<_ACEOF
6668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6676 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6677 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6678 cat >conftest.
$ac_ext <<_ACEOF
6681 cat confdefs.h
>>conftest.
$ac_ext
6682 cat >>conftest.
$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <sys/personality.h>
6688 personality (PER_LINUX32)
6693 rm -f conftest.
$ac_objext
6694 if { (ac_try
="$ac_compile"
6696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 emacs_cv_personality_linux32=yes
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 emacs_cv_personality_linux32=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6720 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6722 if test $emacs_cv_personality_linux32 = yes; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_PERSONALITY_LINUX32 1
6731 for ac_header in term.h
6733 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <$ac_header>
6747 if { (ac_try="$ac_cpp conftest.$ac_ext"
6749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6750 *) ac_try_echo
=$ac_try;;
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6755 grep -v '^ *+' conftest.er1
>conftest.err
6757 cat conftest.err
>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } >/dev
/null
&& {
6760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6763 eval "$as_ac_Header=yes"
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.
$ac_ext >&5
6768 eval "$as_ac_Header=no"
6771 rm -f conftest.err conftest.
$ac_ext
6773 ac_res
=`eval echo '${'$as_ac_Header'}'`
6774 { echo "$as_me:$LINENO: result: $ac_res" >&5
6775 echo "${ECHO_T}$ac_res" >&6; }
6776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6777 cat >>confdefs.h
<<_ACEOF
6778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6785 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6786 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6787 if test "${ac_cv_header_stdc+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 cat >conftest.
$ac_ext <<_ACEOF
6793 cat confdefs.h
>>conftest.
$ac_ext
6794 cat >>conftest.
$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6809 rm -f conftest.
$ac_objext
6810 if { (ac_try
="$ac_compile"
6812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_header_stdc=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_header_stdc=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 if test $ac_cv_header_stdc = yes; then
6837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 $EGREP "memchr" >/dev/null 2>&1; then
6851 ac_cv_header_stdc=no
6857 if test $ac_cv_header_stdc = yes; then
6858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "free" >/dev/null 2>&1; then
6872 ac_cv_header_stdc=no
6878 if test $ac_cv_header_stdc = yes; then
6879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6880 if test "$cross_compiling" = yes; then
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6891 #if ((' ' & 0x0FF) == 0x020)
6892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6895 # define ISLOWER(c) \
6896 (('a' <= (c) && (c) <= 'i') \
6897 || ('j' <= (c) && (c) <= 'r') \
6898 || ('s' <= (c) && (c) <= 'z'))
6899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6907 for (i = 0; i < 256; i++)
6908 if (XOR (islower (i), ISLOWER (i))
6909 || toupper (i) != TOUPPER (i))
6914 rm -f conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6918 *) ac_try_echo
=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6925 { (case "(($ac_try" in
6926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930 (eval "$ac_try") 2>&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6936 echo "$as_me: program exited with status $ac_status" >&5
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_cv_header_stdc=no
6943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6949 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6950 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6951 if test $ac_cv_header_stdc = yes; then
6953 cat >>confdefs.h <<\_ACEOF
6954 #define STDC_HEADERS 1
6959 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6960 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6961 if test "${ac_cv_header_time+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 #include <sys/types.h>
6971 #include <sys/time.h>
6977 if ((struct tm *) 0)
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6987 *) ac_try_echo
=$ac_try;;
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6992 grep -v '^ *+' conftest.er1
>conftest.err
6994 cat conftest.err
>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.
$ac_objext; then
7000 ac_cv_header_time
=yes
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.
$ac_ext >&5
7005 ac_cv_header_time
=no
7008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7010 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7011 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7012 if test $ac_cv_header_time = yes; then
7014 cat >>confdefs.h
<<\_ACEOF
7015 #define TIME_WITH_SYS_TIME 1
7020 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7021 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7022 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 cat >conftest.
$ac_ext <<_ACEOF
7028 cat confdefs.h
>>conftest.
$ac_ext
7029 cat >>conftest.
$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7043 rm -f conftest.
$ac_objext
7044 if { (ac_try
="$ac_compile"
7046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7052 grep -v '^ *+' conftest.er1 >conftest.err
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_cv_have_decl_sys_siglist=yes
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_cv_have_decl_sys_siglist=no
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7071 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7072 if test $ac_cv_have_decl_sys_siglist = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define HAVE_DECL_SYS_SIGLIST 1
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_DECL_SYS_SIGLIST 0
7088 if test $ac_cv_have_decl_sys_siglist != yes; then
7089 # For Tru64, at least:
7090 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7091 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7092 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7105 #ifndef __sys_siglist
7106 (void) __sys_siglist;
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7117 *) ac_try_echo
=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1
>conftest.err
7124 cat conftest.err
>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.
$ac_objext; then
7130 ac_cv_have_decl___sys_siglist
=yes
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.
$ac_ext >&5
7135 ac_cv_have_decl___sys_siglist
=no
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7141 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7142 if test $ac_cv_have_decl___sys_siglist = yes; then
7144 cat >>confdefs.h
<<_ACEOF
7145 #define HAVE_DECL___SYS_SIGLIST 1
7150 cat >>confdefs.h
<<_ACEOF
7151 #define HAVE_DECL___SYS_SIGLIST 0
7158 if test $ac_cv_have_decl___sys_siglist = yes; then
7160 cat >>confdefs.h
<<\_ACEOF
7161 #define sys_siglist __sys_siglist
7166 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7167 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7168 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 cat >conftest.
$ac_ext <<_ACEOF
7174 cat confdefs.h
>>conftest.
$ac_ext
7175 cat >>conftest.
$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7178 #include <sys/wait.h>
7180 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7183 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7196 rm -f conftest.
$ac_objext
7197 if { (ac_try
="$ac_compile"
7199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_header_sys_wait_h=yes
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_header_sys_wait_h=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7224 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7225 if test $ac_cv_header_sys_wait_h = yes; then
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_SYS_WAIT_H 1
7234 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7235 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7236 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #ifdef TIME_WITH_SYS_TIME
7246 #include <sys/time.h>
7249 #ifdef HAVE_SYS_TIME_H
7250 #include <sys/time.h>
7261 static struct utimbuf x; x.actime = x.modtime;
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7270 *) ac_try_echo
=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1
>conftest.err
7277 cat conftest.err
>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.
$ac_objext; then
7283 emacs_cv_struct_utimbuf
=yes
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.
$ac_ext >&5
7288 emacs_cv_struct_utimbuf
=no
7291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7293 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7294 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7295 if test $emacs_cv_struct_utimbuf = yes; then
7297 cat >>confdefs.h
<<\_ACEOF
7298 #define HAVE_STRUCT_UTIMBUF 1
7303 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7304 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7305 if test "${ac_cv_type_signal+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7320 return *(signal (0, 0)) (0) == 1;
7325 rm -f conftest.
$ac_objext
7326 if { (ac_try
="$ac_compile"
7328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_cv_type_signal=int
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_cv_type_signal=void
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7353 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7355 cat >>confdefs.h <<_ACEOF
7356 #define RETSIGTYPE $ac_cv_type_signal
7361 { echo "$as_me:$LINENO: checking for speed_t" >&5
7362 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7363 if test "${emacs_cv_speed_t+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <termios.h>
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7385 *) ac_try_echo
=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1
>conftest.err
7392 cat conftest.err
>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.
$ac_objext; then
7398 emacs_cv_speed_t
=yes
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.
$ac_ext >&5
7406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7409 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7410 if test $emacs_cv_speed_t = yes; then
7412 cat >>confdefs.h
<<\_ACEOF
7413 #define HAVE_SPEED_T 1
7418 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7419 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7420 if test "${emacs_cv_struct_timeval+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.
$ac_ext <<_ACEOF
7426 cat confdefs.h
>>conftest.
$ac_ext
7427 cat >>conftest.
$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #ifdef TIME_WITH_SYS_TIME
7430 #include <sys/time.h>
7433 #ifdef HAVE_SYS_TIME_H
7434 #include <sys/time.h>
7442 static struct timeval x; x.tv_sec = x.tv_usec;
7447 rm -f conftest.
$ac_objext
7448 if { (ac_try
="$ac_compile"
7450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 emacs_cv_struct_timeval=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 emacs_cv_struct_timeval=no
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7475 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7476 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7477 if test $emacs_cv_struct_timeval = yes; then
7479 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_TIMEVAL 1
7485 { echo "$as_me:$LINENO: checking for struct exception" >&5
7486 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7487 if test "${emacs_cv_struct_exception+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7500 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7505 rm -f conftest.$ac_objext
7506 if { (ac_try="$ac_compile"
7508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7509 *) ac_try_echo
=$ac_try;;
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7514 grep -v '^ *+' conftest.er1
>conftest.err
7516 cat conftest.err
>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.
$ac_objext; then
7522 emacs_cv_struct_exception
=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.
$ac_ext >&5
7527 emacs_cv_struct_exception
=no
7530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7532 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7533 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7534 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7535 if test $emacs_cv_struct_exception != yes; then
7537 cat >>confdefs.h
<<\_ACEOF
7538 #define NO_MATHERR 1
7544 for ac_header
in sys
/socket.h
7546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7550 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_res
=`eval echo '${'$as_ac_Header'}'`
7554 { echo "$as_me:$LINENO: result: $ac_res" >&5
7555 echo "${ECHO_T}$ac_res" >&6; }
7557 # Is the header compilable?
7558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7560 cat >conftest.
$ac_ext <<_ACEOF
7563 cat confdefs.h
>>conftest.
$ac_ext
7564 cat >>conftest.
$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #include <$ac_header>
7569 rm -f conftest.
$ac_objext
7570 if { (ac_try
="$ac_compile"
7572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7578 grep -v '^ *+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 ac_header_compiler=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_header_compiler=no
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7596 echo "${ECHO_T}$ac_header_compiler" >&6; }
7598 # Is the header present?
7599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 #include <$ac_header>
7609 if { (ac_try="$ac_cpp conftest.$ac_ext"
7611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7612 *) ac_try_echo
=$ac_try;;
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7617 grep -v '^ *+' conftest.er1
>conftest.err
7619 cat conftest.err
>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } >/dev
/null
&& {
7622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7625 ac_header_preproc
=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.
$ac_ext >&5
7630 ac_header_preproc
=no
7633 rm -f conftest.err conftest.
$ac_ext
7634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 echo "${ECHO_T}$ac_header_preproc" >&6; }
7637 # So? What about this header?
7638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7644 ac_header_preproc
=yes
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7664 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 eval "$as_ac_Header=\$ac_header_preproc"
7669 ac_res
=`eval echo '${'$as_ac_Header'}'`
7670 { echo "$as_me:$LINENO: result: $ac_res" >&5
7671 echo "${ECHO_T}$ac_res" >&6; }
7674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7675 cat >>confdefs.h
<<_ACEOF
7676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684 for ac_header
in net
/if.h
7686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7689 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 cat >conftest.
$ac_ext <<_ACEOF
7695 cat confdefs.h
>>conftest.
$ac_ext
7696 cat >>conftest.
$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 #if HAVE_SYS_SOCKET_H
7700 #include <sys/socket.h>
7703 #include <$ac_header>
7705 rm -f conftest.
$ac_objext
7706 if { (ac_try
="$ac_compile"
7708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7714 grep -v '^ *+' conftest.er1 >conftest.err
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 eval "$as_ac_Header=yes"
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 eval "$as_ac_Header=no"
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 ac_res=`eval echo '${'$as_ac_Header'}'`
7733 { echo "$as_me:$LINENO: result: $ac_res" >&5
7734 echo "${ECHO_T}$ac_res" >&6; }
7735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7745 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7746 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7747 if test "${ac_cv_struct_tm+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #include <sys/types.h>
7763 int *p = &tm.tm_sec;
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7773 *) ac_try_echo
=$ac_try;;
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_compile") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1
>conftest.err
7780 cat conftest.err
>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest.
$ac_objext; then
7786 ac_cv_struct_tm
=time.h
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.
$ac_ext >&5
7791 ac_cv_struct_tm
=sys
/time.h
7794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7796 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7797 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7798 if test $ac_cv_struct_tm = sys
/time.h
; then
7800 cat >>confdefs.h
<<\_ACEOF
7801 #define TM_IN_SYS_TIME 1
7806 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7807 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7808 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <sys/types.h>
7818 #include <$ac_cv_struct_tm>
7824 static struct tm ac_aggr;
7825 if (ac_aggr.tm_zone)
7831 rm -f conftest.
$ac_objext
7832 if { (ac_try
="$ac_compile"
7834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_compile") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest.$ac_objext; then
7848 ac_cv_member_struct_tm_tm_zone=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <sys/types.h>
7860 #include <$ac_cv_struct_tm>
7866 static struct tm ac_aggr;
7867 if (sizeof ac_aggr.tm_zone)
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7877 *) ac_try_echo
=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7882 grep -v '^ *+' conftest.er1
>conftest.err
7884 cat conftest.err
>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.
$ac_objext; then
7890 ac_cv_member_struct_tm_tm_zone
=yes
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.
$ac_ext >&5
7895 ac_cv_member_struct_tm_tm_zone
=no
7898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7903 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7904 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7905 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7907 cat >>confdefs.h
<<_ACEOF
7908 #define HAVE_STRUCT_TM_TM_ZONE 1
7914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7916 cat >>confdefs.h
<<\_ACEOF
7917 #define HAVE_TM_ZONE 1
7921 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7922 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7923 if test "${ac_cv_have_decl_tzname+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 cat >conftest.
$ac_ext <<_ACEOF
7929 cat confdefs.h
>>conftest.
$ac_ext
7930 cat >>conftest.
$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7945 rm -f conftest.
$ac_objext
7946 if { (ac_try
="$ac_compile"
7948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_compile") 2>conftest.er1
7954 grep -v '^ *+' conftest.er1 >conftest.err
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && {
7959 test -z "$ac_c_werror_flag" ||
7960 test ! -s conftest.err
7961 } && test -s conftest.$ac_objext; then
7962 ac_cv_have_decl_tzname=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_have_decl_tzname=no
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7973 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7974 if test $ac_cv_have_decl_tzname = yes; then
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DECL_TZNAME 1
7982 cat >>confdefs.h <<_ACEOF
7983 #define HAVE_DECL_TZNAME 0
7990 { echo "$as_me:$LINENO: checking for tzname" >&5
7991 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7992 if test "${ac_cv_var_tzname+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8002 #if !HAVE_DECL_TZNAME
8003 extern char *tzname[];
8009 return tzname[0][0];
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8018 *) ac_try_echo
=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1
>conftest.err
8025 cat conftest.err
>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest
$ac_exeext &&
8031 $as_test_x conftest
$ac_exeext; then
8032 ac_cv_var_tzname
=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.
$ac_ext >&5
8040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8041 conftest
$ac_exeext conftest.
$ac_ext
8043 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8044 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8045 if test $ac_cv_var_tzname = yes; then
8047 cat >>confdefs.h
<<\_ACEOF
8048 #define HAVE_TZNAME 1
8054 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8055 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8056 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 cat >conftest.
$ac_ext <<_ACEOF
8062 cat confdefs.h
>>conftest.
$ac_ext
8063 cat >>conftest.
$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8070 static struct tm ac_aggr;
8071 if (ac_aggr.tm_gmtoff)
8077 rm -f conftest.
$ac_objext
8078 if { (ac_try
="$ac_compile"
8080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8086 grep -v '^ *+' conftest.er1 >conftest.err
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_gmtoff=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8110 static struct tm ac_aggr;
8111 if (sizeof ac_aggr.tm_gmtoff)
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8121 *) ac_try_echo
=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1
>conftest.err
8128 cat conftest.err
>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.
$ac_objext; then
8134 ac_cv_member_struct_tm_tm_gmtoff
=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.
$ac_ext >&5
8139 ac_cv_member_struct_tm_tm_gmtoff
=no
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8147 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8148 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8149 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8151 cat >>confdefs.h
<<\_ACEOF
8152 #define HAVE_TM_GMTOFF 1
8157 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8158 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8159 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 cat >conftest.
$ac_ext <<_ACEOF
8165 cat confdefs.h
>>conftest.
$ac_ext
8166 cat >>conftest.
$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 $ac_includes_default
8169 #if HAVE_SYS_SOCKET_H
8170 #include <sys/socket.h>
8179 static struct ifreq ac_aggr;
8180 if (ac_aggr.ifr_flags)
8186 rm -f conftest.
$ac_objext
8187 if { (ac_try
="$ac_compile"
8189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_compile") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest.$ac_objext; then
8203 ac_cv_member_struct_ifreq_ifr_flags=yes
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8225 static struct ifreq ac_aggr;
8226 if (sizeof ac_aggr.ifr_flags)
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8236 *) ac_try_echo
=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
8241 grep -v '^ *+' conftest.er1
>conftest.err
8243 cat conftest.err
>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.
$ac_objext; then
8249 ac_cv_member_struct_ifreq_ifr_flags
=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.
$ac_ext >&5
8254 ac_cv_member_struct_ifreq_ifr_flags
=no
8257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8262 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8263 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8264 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8266 cat >>confdefs.h
<<_ACEOF
8267 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8272 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8273 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8274 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 cat >conftest.
$ac_ext <<_ACEOF
8280 cat confdefs.h
>>conftest.
$ac_ext
8281 cat >>conftest.
$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 #if HAVE_SYS_SOCKET_H
8285 #include <sys/socket.h>
8294 static struct ifreq ac_aggr;
8295 if (ac_aggr.ifr_hwaddr)
8301 rm -f conftest.
$ac_objext
8302 if { (ac_try
="$ac_compile"
8304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8340 static struct ifreq ac_aggr;
8341 if (sizeof ac_aggr.ifr_hwaddr)
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8351 *) ac_try_echo
=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1
>conftest.err
8358 cat conftest.err
>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.
$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.
$ac_ext >&5
8369 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8377 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8378 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8379 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8381 cat >>confdefs.h
<<_ACEOF
8382 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8387 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8388 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8389 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 cat >conftest.
$ac_ext <<_ACEOF
8395 cat confdefs.h
>>conftest.
$ac_ext
8396 cat >>conftest.
$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 $ac_includes_default
8399 #if HAVE_SYS_SOCKET_H
8400 #include <sys/socket.h>
8409 static struct ifreq ac_aggr;
8410 if (ac_aggr.ifr_netmask)
8416 rm -f conftest.
$ac_objext
8417 if { (ac_try
="$ac_compile"
8419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8433 ac_cv_member_struct_ifreq_ifr_netmask=yes
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8455 static struct ifreq ac_aggr;
8456 if (sizeof ac_aggr.ifr_netmask)
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8466 *) ac_try_echo
=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1
>conftest.err
8473 cat conftest.err
>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.
$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.
$ac_ext >&5
8484 ac_cv_member_struct_ifreq_ifr_netmask
=no
8487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8493 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8494 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8496 cat >>confdefs.h
<<_ACEOF
8497 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8502 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8503 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8504 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 cat >conftest.
$ac_ext <<_ACEOF
8510 cat confdefs.h
>>conftest.
$ac_ext
8511 cat >>conftest.
$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 $ac_includes_default
8514 #if HAVE_SYS_SOCKET_H
8515 #include <sys/socket.h>
8524 static struct ifreq ac_aggr;
8525 if (ac_aggr.ifr_broadaddr)
8531 rm -f conftest.
$ac_objext
8532 if { (ac_try
="$ac_compile"
8534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #if HAVE_SYS_SOCKET_H
8561 #include <sys/socket.h>
8570 static struct ifreq ac_aggr;
8571 if (sizeof ac_aggr.ifr_broadaddr)
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8581 *) ac_try_echo
=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1
>conftest.err
8588 cat conftest.err
>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.
$ac_objext; then
8594 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8608 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8609 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8611 cat >>confdefs.h
<<_ACEOF
8612 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8617 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8618 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8619 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 cat >conftest.
$ac_ext <<_ACEOF
8625 cat confdefs.h
>>conftest.
$ac_ext
8626 cat >>conftest.
$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 #if HAVE_SYS_SOCKET_H
8630 #include <sys/socket.h>
8639 static struct ifreq ac_aggr;
8640 if (ac_aggr.ifr_addr)
8646 rm -f conftest.
$ac_objext
8647 if { (ac_try
="$ac_compile"
8649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_cv_member_struct_ifreq_ifr_addr=yes
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8685 static struct ifreq ac_aggr;
8686 if (sizeof ac_aggr.ifr_addr)
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8696 *) ac_try_echo
=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1
>conftest.err
8703 cat conftest.err
>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.
$ac_objext; then
8709 ac_cv_member_struct_ifreq_ifr_addr
=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.
$ac_ext >&5
8714 ac_cv_member_struct_ifreq_ifr_addr
=no
8717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8723 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8724 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8726 cat >>confdefs.h
<<_ACEOF
8727 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8735 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8736 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8737 if test "$ac_cv_prog_cc_c89" != no
; then
8738 { echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6; }
8741 cat >>confdefs.h
<<\_ACEOF
8742 #define PROTOTYPES 1
8746 cat >>confdefs.h
<<\_ACEOF
8747 #define __PROTOTYPES 1
8751 { echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6; }
8755 { echo "$as_me:$LINENO: checking for working volatile" >&5
8756 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8757 if test "${ac_cv_c_volatile+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 cat >conftest.
$ac_ext <<_ACEOF
8763 cat confdefs.h
>>conftest.
$ac_ext
8764 cat >>conftest.
$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8772 int * volatile y = (int *) 0;
8778 rm -f conftest.
$ac_objext
8779 if { (ac_try
="$ac_compile"
8781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_c_volatile=yes
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8806 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8807 if test $ac_cv_c_volatile = no; then
8809 cat >>confdefs.h <<\_ACEOF
8815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8817 if test "${ac_cv_c_const+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8830 /* FIXME: Include the comments suggested by Paul. */
8832 /* Ultrix mips cc rejects this. */
8833 typedef int charset[2];
8835 /* SunOS 4.1.1 cc rejects this. */
8836 char const *const *pcpcc;
8838 /* NEC SVR4.0.2 mips cc rejects this. */
8839 struct point {int x, y;};
8840 static struct point const zero = {0,0};
8841 /* AIX XL C 1.02.0.0 rejects this.
8842 It does not let you subtract one const X* pointer from another in
8843 an arm of an if-expression whose if-part is not a constant
8845 const char *g = "string";
8846 pcpcc = &g + (g ? g-g : 0);
8847 /* HPUX 7.0 cc rejects these. */
8849 ppc = (char**) pcpcc;
8850 pcpcc = (char const *const *) ppc;
8851 { /* SCO 3.2v4 cc rejects this. */
8853 char const *s = 0 ? (char *) 0 : (char const *) 0;
8858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8860 const int *foo = &x[0];
8863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8864 typedef const int *iptr;
8868 { /* AIX XL C 1.02.0.0 rejects this saying
8869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8870 struct s { int j; const int *ap[3]; };
8871 struct s *b; b->j = 5;
8873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8877 return !cs[0] && !zero.x;
8884 rm -f conftest.$ac_objext
8885 if { (ac_try="$ac_compile"
8887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8888 *) ac_try_echo
=$ac_try;;
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1
>conftest.err
8895 cat conftest.err
>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.
$ac_objext; then
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.
$ac_ext >&5
8909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8913 if test $ac_cv_c_const = no
; then
8915 cat >>confdefs.h
<<\_ACEOF
8921 { echo "$as_me:$LINENO: checking for void * support" >&5
8922 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8923 if test "${emacs_cv_void_star+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 cat >conftest.
$ac_ext <<_ACEOF
8929 cat confdefs.h
>>conftest.
$ac_ext
8930 cat >>conftest.
$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8941 rm -f conftest.
$ac_objext
8942 if { (ac_try
="$ac_compile"
8944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8958 emacs_cv_void_star=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 emacs_cv_void_star=no
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8969 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8970 if test $emacs_cv_void_star = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE void
8976 cat >>confdefs.h <<\_ACEOF
8977 #define POINTER_TYPE char
8986 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8987 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8988 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8989 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 cat >conftest.make <<\_ACEOF
8995 @echo '@@@%%%=$(MAKE)=@@@%%%'
8997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8998 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9000 eval ac_cv_prog_make_${ac_make}_set=yes;;
9002 eval ac_cv_prog_make_${ac_make}_set=no;;
9006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9007 { echo "$as_me:$LINENO: result: yes" >&5
9008 echo "${ECHO_T}yes" >&6; }
9011 { echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6; }
9013 SET_MAKE="MAKE=${MAKE-make}"
9017 { echo "$as_me:$LINENO: checking for long file names" >&5
9018 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9019 if test "${ac_cv_sys_long_file_names+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 ac_cv_sys_long_file_names=yes
9023 # Test for long file names in all the places we know might matter:
9024 # . the current directory, where building will happen
9025 # $prefix/lib where we will be installing things
9026 # $exec_prefix/lib likewise
9027 # $TMPDIR if set, where it might want to write temporary files
9028 # /tmp where it might want to write temporary files
9031 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9032 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9033 # in the usual case where exec_prefix is '${prefix}'.
9035 . | /* | ?:[\\/]*) ;; #(
9038 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9039 ac_xdir=$ac_dir/cf$$
9040 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9041 ac_tf1=$ac_xdir/conftest9012345
9042 ac_tf2=$ac_xdir/conftest9012346
9043 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9044 ac_cv_sys_long_file_names=no
9045 rm -f -r "$ac_xdir" 2>/dev/null
9046 test $ac_cv_sys_long_file_names = no && break
9049 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9050 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9051 if test $ac_cv_sys_long_file_names = yes; then
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_LONG_FILE_NAMES 1
9060 #### Choose a window system.
9062 { echo "$as_me:$LINENO: checking for X" >&5
9063 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9066 # Check whether --with-x was given.
9067 if test "${with_x+set}" = set; then
9071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9072 if test "x$with_x" = xno; then
9073 # The user explicitly disabled X.
9076 case $x_includes,$x_libraries in #(
9077 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9078 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9079 { (exit 1); exit 1; }; };; #(
9080 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 # One or both of the vars are not set, and there is no cached value.
9084 ac_x_includes=no ac_x_libraries=no
9085 rm -f -r conftest.dir
9086 if mkdir conftest.dir; then
9088 cat >Imakefile <<'_ACEOF'
9090 @echo incroot='${INCROOT}'
9092 @echo usrlibdir='${USRLIBDIR}'
9094 @echo libdir='${LIBDIR}'
9096 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9098 for ac_var in incroot usrlibdir libdir; do
9099 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9101 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9102 for ac_extension in a so sl; do
9103 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9104 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9105 ac_im_usrlibdir=$ac_im_libdir; break
9108 # Screen out bogus values from the imake configuration. They are
9109 # bogus both because they are the default anyway, and because
9110 # using them would break gcc on systems where it needs fixed includes.
9111 case $ac_im_incroot in
9112 /usr/include) ac_x_includes= ;;
9113 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9115 case $ac_im_usrlibdir in
9117 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9121 rm -f -r conftest.dir
9124 # Standard set of common directories for X headers.
9125 # Check X11 before X11Rn because it is often a symlink to the current release.
9137 /usr/local/X11/include
9138 /usr/local/X11R6/include
9139 /usr/local/X11R5/include
9140 /usr/local/X11R4/include
9142 /usr/local/include/X11
9143 /usr/local/include/X11R6
9144 /usr/local/include/X11R5
9145 /usr/local/include/X11R4
9149 /usr/XFree86/include/X11
9153 /usr/unsupported/include
9155 /usr/local/x11r5/include
9156 /usr/lpp/Xamples/include
9158 /usr/openwin/include
9159 /usr/openwin/share/include'
9161 if test "$ac_x_includes" = no; then
9162 # Guess where to find include files, by looking for Xlib.h.
9163 # First, try using that file with no special directory specified.
9164 cat >conftest.$ac_ext <<_ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <X11/Xlib.h>
9172 if { (ac_try="$ac_cpp conftest.$ac_ext"
9174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9175 *) ac_try_echo
=$ac_try;;
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9180 grep -v '^ *+' conftest.er1
>conftest.err
9182 cat conftest.err
>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } >/dev
/null
&& {
9185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9188 # We can compile using X headers with no special include directory.
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.
$ac_ext >&5
9194 for ac_dir
in $ac_x_header_dirs; do
9195 if test -r "$ac_dir/X11/Xlib.h"; then
9196 ac_x_includes
=$ac_dir
9202 rm -f conftest.err conftest.
$ac_ext
9203 fi # $ac_x_includes = no
9205 if test "$ac_x_libraries" = no
; then
9206 # Check for the libraries.
9207 # See if we find them without any special options.
9208 # Don't add to $LIBS permanently.
9211 cat >conftest.
$ac_ext <<_ACEOF
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <X11/Xlib.h>
9226 rm -f conftest.
$ac_objext conftest
$ac_exeext
9227 if { (ac_try
="$ac_link"
9229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_link") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext &&
9243 $as_test_x conftest$ac_exeext; then
9245 # We can link X programs with no special library path.
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9252 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9254 # Don't even attempt the hair of trying to link an X program!
9255 for ac_extension in a so sl; do
9256 if test -r "$ac_dir/libX11.$ac_extension"; then
9257 ac_x_libraries=$ac_dir
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265 conftest$ac_exeext conftest.$ac_ext
9266 fi # $ac_x_libraries = no
9268 case $ac_x_includes,$ac_x_libraries in #(
9270 # Didn't find X, or a directory has "'" in its name.
9271 ac_cv_have_x="have_x=no";; #(
9273 # Record where we found X for the cache.
9274 ac_cv_have_x="have_x=yes\
9275 ac_x_includes='$ac_x_includes'\
9276 ac_x_libraries='$ac_x_libraries'"
9282 eval "$ac_cv_have_x"
9285 if test "$have_x" != yes; then
9286 { echo "$as_me:$LINENO: result: $have_x" >&5
9287 echo "${ECHO_T}$have_x" >&6; }
9290 # If each of the values was on the command line, it overrides each guess.
9291 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9292 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9293 # Update the cache value to reflect the command line values.
9294 ac_cv_have_x="have_x=yes\
9295 ac_x_includes='$x_includes'\
9296 ac_x_libraries='$x_libraries'"
9297 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9298 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9301 if test "$no_x" = yes; then
9307 if test "${x_libraries}" != NONE; then
9308 if test -n "${x_libraries}"; then
9309 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9310 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9312 x_default_search_path=""
9313 x_search_path=${x_libraries}
9314 if test -z "${x_search_path}"; then
9315 x_search_path=/usr/lib
9317 for x_library in `echo ${x_search_path}: | \
9318 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9320 ${x_library}/X11/%L/%T/%N%C%S:\
9321 ${x_library}/X11/%l/%T/%N%C%S:\
9322 ${x_library}/X11/%T/%N%C%S:\
9323 ${x_library}/X11/%L/%T/%N%S:\
9324 ${x_library}/X11/%l/%T/%N%S:\
9325 ${x_library}/X11/%T/%N%S"
9326 if test x"${x_default_search_path}" = x; then
9327 x_default_search_path=${x_search_path}
9329 x_default_search_path="${x_search_path}:${x_default_search_path}"
9333 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9334 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9337 if test x"${x_includes}" = x; then
9338 bitmapdir=/usr/include/X11/bitmaps
9340 # accumulate include directories that have X11 bitmap subdirectories
9342 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9343 if test -d "${bmd}/X11/bitmaps"; then
9344 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9346 if test -d "${bmd}/bitmaps"; then
9347 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9350 if test ${bmd_acc} != "dummyval"; then
9351 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9356 if test "${with_carbon}" != no; then
9357 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9358 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9359 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9360 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9364 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9366 # Is the header compilable?
9367 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9368 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9376 #include <Carbon/Carbon.h>
9378 rm -f conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9382 *) ac_try_echo
=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1
>conftest.err
9389 cat conftest.err
>&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.
$ac_objext; then
9395 ac_header_compiler
=yes
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.
$ac_ext >&5
9400 ac_header_compiler
=no
9403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9405 echo "${ECHO_T}$ac_header_compiler" >&6; }
9407 # Is the header present?
9408 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9409 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9410 cat >conftest.
$ac_ext <<_ACEOF
9413 cat confdefs.h
>>conftest.
$ac_ext
9414 cat >>conftest.
$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <Carbon/Carbon.h>
9418 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } >/dev/null && {
9431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9434 ac_header_preproc=yes
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_preproc=no
9442 rm -f conftest.err conftest.$ac_ext
9443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444 echo "${ECHO_T}$ac_header_preproc" >&6; }
9446 # So? What about this header?
9447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9453 ac_header_preproc=yes
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9459 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9467 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9471 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9472 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9473 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9478 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9479 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9482 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9488 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9489 if test "${with_carbon+set}" != set \
9490 && test "${carbon_appdir_x+set}" != set; then
9491 for var in with_x with_x_toolkit with_gtk with_xim \
9492 with_xpm with_jpeg with_tiff with_gif with_png; do
9493 if eval test \"\${$var+set}\" = set; then
9500 if test "${HAVE_CARBON}" = yes; then
9504 case "${window_system}" in
9508 case "${with_x_toolkit}" in
9509 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9510 motif ) USE_X_TOOLKIT=MOTIF ;;
9512 USE_X_TOOLKIT=none ;;
9513 no ) USE_X_TOOLKIT=none ;;
9514 * ) USE_X_TOOLKIT=maybe ;;
9524 ### If we're using X11, we should use the X menu package.
9527 yes ) HAVE_MENUS=yes ;;
9530 if test "${opsys}" = "hpux9"; then
9531 case "${x_libraries}" in
9533 opsysfile="s/hpux9-x11r4.h"
9538 if test "${opsys}" = "hpux9shr"; then
9539 case "${x_libraries}" in
9541 opsysfile="s/hpux9shxr4.h"
9546 ### Compute the unexec source name from the object name.
9547 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9549 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9550 # Assume not, until told otherwise.
9553 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9554 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9566 #define malloc_get_state innocuous_malloc_get_state
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char malloc_get_state (); below.
9570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9571 <limits.h> exists even on freestanding compilers. */
9574 # include <limits.h>
9576 # include <assert.h>
9579 #undef malloc_get_state
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9587 char malloc_get_state ();
9588 /* The GNU C library defines this for functions which it implements
9589 to always fail with ENOSYS. Some functions are actually named
9590 something starting with __ and the normal name is an alias. */
9591 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9598 return malloc_get_state ();
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (ac_try="$ac_link"
9606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9607 *) ac_try_echo
=$ac_try;;
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_link") 2>conftest.er1
9612 grep -v '^ *+' conftest.er1
>conftest.err
9614 cat conftest.err
>&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && {
9617 test -z "$ac_c_werror_flag" ||
9618 test ! -s conftest.err
9619 } && test -s conftest
$ac_exeext &&
9620 $as_test_x conftest
$ac_exeext; then
9621 ac_cv_func_malloc_get_state
=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.
$ac_ext >&5
9626 ac_cv_func_malloc_get_state
=no
9629 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9630 conftest
$ac_exeext conftest.
$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9633 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9634 if test $ac_cv_func_malloc_get_state = yes; then
9640 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9641 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define malloc_set_state innocuous_malloc_set_state
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char malloc_set_state (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9661 # include <limits.h>
9663 # include <assert.h>
9666 #undef malloc_set_state
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9674 char malloc_set_state ();
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9685 return malloc_set_state ();
9690 rm -f conftest.
$ac_objext conftest
$ac_exeext
9691 if { (ac_try
="$ac_link"
9693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
9708 ac_cv_func_malloc_set_state=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_cv_func_malloc_set_state=no
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717 conftest$ac_exeext conftest.$ac_ext
9719 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9720 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9721 if test $ac_cv_func_malloc_set_state = yes; then
9727 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9728 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9729 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 extern void (* __after_morecore_hook)();
9742 __after_morecore_hook = 0
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9751 *) ac_try_echo
=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1
>conftest.err
9758 cat conftest.err
>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest
$ac_exeext &&
9764 $as_test_x conftest
$ac_exeext; then
9765 emacs_cv_var___after_morecore_hook
=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.
$ac_ext >&5
9770 emacs_cv_var___after_morecore_hook
=no
9773 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9774 conftest
$ac_exeext conftest.
$ac_ext
9776 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9777 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9778 if test $emacs_cv_var___after_morecore_hook = no
; then
9781 if test "${system_malloc}" = "yes"; then
9784 (The GNU allocators don't work with this system configuration.)"
9786 if test "$doug_lea_malloc" = "yes" ; then
9787 if test "$GNU_MALLOC" = yes ; then
9789 (Using Doug Lea's new malloc from the GNU C Library.)"
9792 cat >>confdefs.h
<<\_ACEOF
9793 #define DOUG_LEA_MALLOC 1
9798 if test x
"${REL_ALLOC}" = x
; then
9799 REL_ALLOC
=${GNU_MALLOC}
9805 for ac_header
in stdlib.h unistd.h
9807 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 ac_res
=`eval echo '${'$as_ac_Header'}'`
9815 { echo "$as_me:$LINENO: result: $ac_res" >&5
9816 echo "${ECHO_T}$ac_res" >&6; }
9818 # Is the header compilable?
9819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9821 cat >conftest.
$ac_ext <<_ACEOF
9824 cat confdefs.h
>>conftest.
$ac_ext
9825 cat >>conftest.
$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9828 #include <$ac_header>
9830 rm -f conftest.
$ac_objext
9831 if { (ac_try
="$ac_compile"
9833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_header_compiler=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_compiler=no
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 echo "${ECHO_T}$ac_header_compiler" >&6; }
9859 # Is the header present?
9860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <$ac_header>
9870 if { (ac_try="$ac_cpp conftest.$ac_ext"
9872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9873 *) ac_try_echo
=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1
>conftest.err
9880 cat conftest.err
>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev
/null
&& {
9883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9886 ac_header_preproc
=yes
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.
$ac_ext >&5
9891 ac_header_preproc
=no
9894 rm -f conftest.err conftest.
$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896 echo "${ECHO_T}$ac_header_preproc" >&6; }
9898 # So? What about this header?
9899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc
=yes
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9925 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 eval "$as_ac_Header=\$ac_header_preproc"
9930 ac_res
=`eval echo '${'$as_ac_Header'}'`
9931 { echo "$as_me:$LINENO: result: $ac_res" >&5
9932 echo "${ECHO_T}$ac_res" >&6; }
9935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9936 cat >>confdefs.h
<<_ACEOF
9937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9945 for ac_func
in getpagesize
9947 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9950 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 cat >conftest.
$ac_ext <<_ACEOF
9956 cat confdefs.h
>>conftest.
$ac_ext
9957 cat >>conftest.
$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9961 #define $ac_func innocuous_$ac_func
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func (); below.
9965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9966 <limits.h> exists even on freestanding compilers. */
9969 # include <limits.h>
9971 # include <assert.h>
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9983 /* The GNU C library defines this for functions which it implements
9984 to always fail with ENOSYS. Some functions are actually named
9985 something starting with __ and the normal name is an alias. */
9986 #if defined __stub_$ac_func || defined __stub___$ac_func
9998 rm -f conftest.
$ac_objext conftest
$ac_exeext
9999 if { (ac_try
="$ac_link"
10000 case "(($ac_try" in
10001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_link") 2>conftest.er1
10007 grep -v '^ *+' conftest.er1 >conftest.err
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && {
10012 test -z "$ac_c_werror_flag" ||
10013 test ! -s conftest.err
10014 } && test -s conftest$ac_exeext &&
10015 $as_test_x conftest$ac_exeext; then
10016 eval "$as_ac_var=yes"
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 eval "$as_ac_var=no"
10024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10025 conftest$ac_exeext conftest.$ac_ext
10027 ac_res=`eval echo '${'$as_ac_var'}'`
10028 { echo "$as_me:$LINENO: result: $ac_res" >&5
10029 echo "${ECHO_T}$ac_res" >&6; }
10030 if test `eval echo '${'$as_ac_var'}'` = yes; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10038 { echo "$as_me:$LINENO: checking for working mmap" >&5
10039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 if test "$cross_compiling" = yes; then
10044 ac_cv_func_mmap_fixed_mapped=no
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 $ac_includes_default
10053 /* malloc might have been renamed as rpl_malloc. */
10056 /* Thanks to Mike Haertel and Jim Avera for this test.
10057 Here is a matrix of mmap possibilities:
10058 mmap private not fixed
10059 mmap private fixed at somewhere currently unmapped
10060 mmap private fixed at somewhere already mapped
10061 mmap shared not fixed
10062 mmap shared fixed at somewhere currently unmapped
10063 mmap shared fixed at somewhere already mapped
10064 For private mappings, we should verify that changes cannot be read()
10065 back from the file, nor mmap's back from the file at a different
10066 address. (There have been systems where private was not correctly
10067 implemented like the infamous i386 svr4.0, and systems where the
10068 VM page cache was not coherent with the file system buffer cache
10069 like early versions of FreeBSD and possibly contemporary NetBSD.)
10070 For shared mappings, we should conversely verify that changes get
10071 propagated back to all the places they're supposed to be.
10073 Grep wants private fixed already mapped.
10074 The main things grep needs to know about mmap are:
10075 * does it exist and is it safe to write into the mmap'd area
10076 * how to use it (BSD variants) */
10079 #include <sys/mman.h>
10081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10085 /* This mess was copied from the GNU getpagesize.h. */
10086 #ifndef HAVE_GETPAGESIZE
10087 /* Assume that all systems that can run configure have sys/param.h. */
10088 # ifndef HAVE_SYS_PARAM_H
10089 # define HAVE_SYS_PARAM_H 1
10092 # ifdef _SC_PAGESIZE
10093 # define getpagesize() sysconf(_SC_PAGESIZE)
10094 # else /* no _SC_PAGESIZE */
10095 # ifdef HAVE_SYS_PARAM_H
10096 # include <sys/param.h>
10097 # ifdef EXEC_PAGESIZE
10098 # define getpagesize() EXEC_PAGESIZE
10099 # else /* no EXEC_PAGESIZE */
10101 # define getpagesize() NBPG * CLSIZE
10104 # endif /* no CLSIZE */
10105 # else /* no NBPG */
10107 # define getpagesize() NBPC
10108 # else /* no NBPC */
10110 # define getpagesize() PAGESIZE
10111 # endif /* PAGESIZE */
10112 # endif /* no NBPC */
10113 # endif /* no NBPG */
10114 # endif /* no EXEC_PAGESIZE */
10115 # else /* no HAVE_SYS_PARAM_H */
10116 # define getpagesize() 8192 /* punt totally */
10117 # endif /* no HAVE_SYS_PARAM_H */
10118 # endif /* no _SC_PAGESIZE */
10120 #endif /* no HAVE_GETPAGESIZE */
10125 char *data, *data2, *data3;
10129 pagesize = getpagesize ();
10131 /* First, make a file with some known garbage in it. */
10132 data = (char *) malloc (pagesize);
10135 for (i = 0; i < pagesize; ++i)
10136 *(data + i) = rand ();
10138 fd = creat ("conftest.mmap", 0600);
10141 if (write (fd, data, pagesize) != pagesize)
10145 /* Next, try to mmap the file at a fixed address which already has
10146 something else allocated at it. If we can, also make sure that
10147 we see the same garbage. */
10148 fd = open ("conftest.mmap", O_RDWR);
10151 data2 = (char *) malloc (2 * pagesize);
10154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10158 for (i = 0; i < pagesize; ++i)
10159 if (*(data + i) != *(data2 + i))
10162 /* Finally, make sure that changes to the mapped area do not
10163 percolate back to the file as seen by read(). (This is a bug on
10164 some variants of i386 svr4.0.) */
10165 for (i = 0; i < pagesize; ++i)
10166 *(data2 + i) = *(data2 + i) + 1;
10167 data3 = (char *) malloc (pagesize);
10170 if (read (fd, data3, pagesize) != pagesize)
10172 for (i = 0; i < pagesize; ++i)
10173 if (*(data + i) != *(data3 + i))
10179 rm -f conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10183 *) ac_try_echo
=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10190 { (case "(($ac_try" in
10191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_try") 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_mmap_fixed_mapped=yes
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ( exit $ac_status )
10206 ac_cv_func_mmap_fixed_mapped=no
10208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10217 cat >>confdefs.h <<\_ACEOF
10218 #define HAVE_MMAP 1
10222 rm -f conftest.mmap
10224 if test $use_mmap_for_buffers = yes; then
10228 LIBS="$libsrc_libs $LIBS"
10231 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10232 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10233 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 ac_check_lib_save_LIBS=$LIBS
10237 LIBS="-ldnet $LIBS"
10238 cat >conftest.$ac_ext <<_ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10255 return dnet_ntoa ();
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10264 *) ac_try_echo
=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
10269 grep -v '^ *+' conftest.er1
>conftest.err
10271 cat conftest.err
>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest
$ac_exeext &&
10277 $as_test_x conftest
$ac_exeext; then
10278 ac_cv_lib_dnet_dnet_ntoa
=yes
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.
$ac_ext >&5
10283 ac_cv_lib_dnet_dnet_ntoa
=no
10286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10287 conftest
$ac_exeext conftest.
$ac_ext
10288 LIBS
=$ac_check_lib_save_LIBS
10290 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10291 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10292 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10293 cat >>confdefs.h
<<_ACEOF
10294 #define HAVE_LIBDNET 1
10297 LIBS
="-ldnet $LIBS"
10302 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10303 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10304 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 ac_check_lib_save_LIBS
=$LIBS
10308 LIBS
="-lXbsd $LIBS"
10309 cat >conftest.
$ac_ext <<_ACEOF
10312 cat confdefs.h
>>conftest.
$ac_ext
10313 cat >>conftest.
$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10325 rm -f conftest.
$ac_objext conftest
$ac_exeext
10326 if { (ac_try
="$ac_link"
10327 case "(($ac_try" in
10328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest$ac_exeext &&
10342 $as_test_x conftest$ac_exeext; then
10343 ac_cv_lib_Xbsd_main=yes
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ac_cv_lib_Xbsd_main=no
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10355 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10356 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10357 if test $ac_cv_lib_Xbsd_main = yes; then
10358 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10363 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10364 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10365 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lpthreads $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10377 /* Override any GCC internal prototype to avoid an error.
10378 Use char because int might match the return type of a GCC
10379 builtin and then its argument prototype would still apply. */
10387 return cma_open ();
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10396 *) ac_try_echo
=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1
>conftest.err
10403 cat conftest.err
>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest
$ac_exeext &&
10409 $as_test_x conftest
$ac_exeext; then
10410 ac_cv_lib_pthreads_cma_open
=yes
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.
$ac_ext >&5
10415 ac_cv_lib_pthreads_cma_open
=no
10418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10419 conftest
$ac_exeext conftest.
$ac_ext
10420 LIBS
=$ac_check_lib_save_LIBS
10422 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10423 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10424 if test $ac_cv_lib_pthreads_cma_open = yes; then
10425 cat >>confdefs.h
<<_ACEOF
10426 #define HAVE_LIBPTHREADS 1
10429 LIBS
="-lpthreads $LIBS"
10434 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10435 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10436 if test -d /usr
/X386
/include
; then
10438 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10442 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10443 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10448 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10449 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10450 if test "${gdb_cv_bigtoc+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10456 *) gdb_cv_bigtoc
=-bbigtoc ;;
10459 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10460 cat >conftest.
$ac_ext <<_ACEOF
10463 cat confdefs.h
>>conftest.
$ac_ext
10464 cat >>conftest.
$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10475 rm -f conftest.
$ac_objext conftest
$ac_exeext
10476 if { (ac_try
="$ac_link"
10477 case "(($ac_try" in
10478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10505 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10506 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10510 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10511 # used for the tests that follow. We set them back to REAL_CFLAGS and
10512 # REAL_CPPFLAGS later on.
10514 REAL_CPPFLAGS="$CPPFLAGS"
10516 if test "${HAVE_X11}" = "yes"; then
10517 DEFS="$C_SWITCH_X_SITE $DEFS"
10518 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10520 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10521 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10523 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10524 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10525 # but it's more convenient here to set LD_RUN_PATH
10526 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10527 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10528 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10532 if test "${opsys}" = "gnu-linux"; then
10533 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10534 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10545 XOpenDisplay ("foo");
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10554 *) ac_try_echo
=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_link") 2>conftest.er1
10559 grep -v '^ *+' conftest.er1
>conftest.err
10561 cat conftest.err
>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest
$ac_exeext &&
10567 $as_test_x conftest
$ac_exeext; then
10568 xlinux_first_failure
=no
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.
$ac_ext >&5
10573 xlinux_first_failure
=yes
10576 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10577 conftest
$ac_exeext conftest.
$ac_ext
10578 if test "${xlinux_first_failure}" = "yes"; then
10579 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10580 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10581 OLD_CPPFLAGS
="$CPPFLAGS"
10583 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10584 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10585 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10586 LIBS
="$LIBS -b i486-linuxaout"
10587 cat >conftest.
$ac_ext <<_ACEOF
10590 cat confdefs.h
>>conftest.
$ac_ext
10591 cat >>conftest.
$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10597 XOpenDisplay ("foo");
10602 rm -f conftest.
$ac_objext conftest
$ac_exeext
10603 if { (ac_try
="$ac_link"
10604 case "(($ac_try" in
10605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && {
10616 test -z "$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext &&
10619 $as_test_x conftest$ac_exeext; then
10620 xlinux_second_failure=no
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 xlinux_second_failure=yes
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629 conftest$ac_exeext conftest.$ac_ext
10630 if test "${xlinux_second_failure}" = "yes"; then
10631 # If we get the same failure with -b, there is no use adding -b.
10632 # So take it out. This plays safe.
10633 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10634 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10635 CPPFLAGS="$OLD_CPPFLAGS"
10637 { echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6; }
10640 { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10644 { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10649 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10650 # header files included from there.
10651 { echo "$as_me:$LINENO: checking for Xkb" >&5
10652 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10653 cat >conftest.$ac_ext <<_ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <X11/Xlib.h>
10660 #include <X11/XKBlib.h>
10664 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10673 *) ac_try_echo
=$ac_try;;
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1
>conftest.err
10680 cat conftest.err
>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest
$ac_exeext &&
10686 $as_test_x conftest
$ac_exeext; then
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.
$ac_ext >&5
10695 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10696 conftest
$ac_exeext conftest.
$ac_ext
10697 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10698 echo "${ECHO_T}$emacs_xkb" >&6; }
10699 if test $emacs_xkb = yes; then
10701 cat >>confdefs.h
<<\_ACEOF
10702 #define HAVE_XKBGETKEYBOARD 1
10711 for ac_func
in XrmSetDatabase XScreenResourceString \
10712 XScreenNumberOfScreen XSetWMProtocols
10714 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10717 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 cat >conftest.
$ac_ext <<_ACEOF
10723 cat confdefs.h
>>conftest.
$ac_ext
10724 cat >>conftest.
$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10728 #define $ac_func innocuous_$ac_func
10730 /* System header to define __stub macros and hopefully few prototypes,
10731 which can conflict with char $ac_func (); below.
10732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733 <limits.h> exists even on freestanding compilers. */
10736 # include <limits.h>
10738 # include <assert.h>
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined __stub_$ac_func || defined __stub___$ac_func
10760 return $ac_func ();
10765 rm -f conftest.
$ac_objext conftest
$ac_exeext
10766 if { (ac_try
="$ac_link"
10767 case "(($ac_try" in
10768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext &&
10782 $as_test_x conftest$ac_exeext; then
10783 eval "$as_ac_var=yes"
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 eval "$as_ac_var=no"
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10794 ac_res=`eval echo '${'$as_ac_var'}'`
10795 { echo "$as_me:$LINENO: result: $ac_res" >&5
10796 echo "${ECHO_T}$ac_res" >&6; }
10797 if test `eval echo '${'$as_ac_var'}'` = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10807 if test "${window_system}" = "x11"; then
10808 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10809 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10810 if test "${emacs_cv_x11_version_6+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <X11/Xlib.h>
10823 #if XlibSpecificationRelease < 6
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10835 *) ac_try_echo
=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10840 grep -v '^ *+' conftest.er1
>conftest.err
10842 cat conftest.err
>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest
$ac_exeext &&
10848 $as_test_x conftest
$ac_exeext; then
10849 emacs_cv_x11_version_6
=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.
$ac_ext >&5
10854 emacs_cv_x11_version_6
=no
10857 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10858 conftest
$ac_exeext conftest.
$ac_ext
10861 if test $emacs_cv_x11_version_6 = yes; then
10862 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10863 echo "${ECHO_T}6 or newer" >&6; }
10865 cat >>confdefs.h
<<\_ACEOF
10866 #define HAVE_X11R6 1
10870 { echo "$as_me:$LINENO: result: before 6" >&5
10871 echo "${ECHO_T}before 6" >&6; }
10875 if test "${window_system}" = "x11"; then
10876 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10877 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10878 if test "${emacs_cv_x11_version_5+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.
$ac_ext <<_ACEOF
10884 cat confdefs.h
>>conftest.
$ac_ext
10885 cat >>conftest.
$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <X11/Xlib.h>
10891 #if XlibSpecificationRelease < 5
10899 rm -f conftest.
$ac_objext conftest
$ac_exeext
10900 if { (ac_try
="$ac_link"
10901 case "(($ac_try" in
10902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10908 grep -v '^ *+' conftest.er1 >conftest.err
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
10917 emacs_cv_x11_version_5=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 emacs_cv_x11_version_5=no
10925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926 conftest$ac_exeext conftest.$ac_ext
10929 if test $emacs_cv_x11_version_5 = yes; then
10930 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10931 echo "${ECHO_T}5 or newer" >&6; }
10934 cat >>confdefs.h <<\_ACEOF
10935 #define HAVE_X11R5 1
10940 { echo "$as_me:$LINENO: result: before 5" >&5
10941 echo "${ECHO_T}before 5" >&6; }
10946 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10949 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10950 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10951 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10952 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10953 { (exit 1); exit 1; }; };
10957 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10959 if test "X${with_pkg_config_prog}" != X; then
10960 PKG_CONFIG="${with_pkg_config_prog}"
10965 if test -z "$PKG_CONFIG"; then
10966 # Extract the first word of "pkg-config", so it can be a program name with args.
10967 set dummy pkg-config; ac_word=$2
10968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 case $PKG_CONFIG in
10975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10998 if test -n "$PKG_CONFIG"; then
10999 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11000 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11002 { echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6; }
11009 if test "$PKG_CONFIG" = "no" ; then
11010 { { echo "$as_me:$LINENO: error:
11011 *** 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
11012 echo "$as_me: error:
11013 *** 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;}
11014 { (exit 1); exit 1; }; }
11016 PKG_CONFIG_MIN_VERSION=0.9.0
11017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11018 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11019 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11021 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11022 { echo "$as_me:$LINENO: result: yes" >&5
11023 echo "${ECHO_T}yes" >&6; }
11026 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11027 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11028 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11029 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11030 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11032 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11033 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11034 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11035 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11036 echo "${ECHO_T}$GTK_LIBS" >&6; }
11038 { echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6; }
11042 ## If we have a custom action on failure, don't print errors, but
11043 ## do set a variable so people can do so.
11044 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11045 echo $GTK_PKG_ERRORS
11051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11056 if test $succeeded = yes; then
11059 { { 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
11060 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;}
11061 { (exit 1); exit 1; }; }
11066 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11067 CFLAGS="$CFLAGS $GTK_CFLAGS"
11068 LIBS="$GTK_LIBS $LIBS"
11071 for ac_func in gtk_main
11073 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087 #define $ac_func innocuous_$ac_func
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char $ac_func (); below.
11091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 <limits.h> exists even on freestanding compilers. */
11095 # include <limits.h>
11097 # include <assert.h>
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11109 /* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112 #if defined __stub_$ac_func || defined __stub___$ac_func
11119 return $ac_func ();
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (ac_try="$ac_link"
11126 case "(($ac_try" in
11127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11128 *) ac_try_echo
=$ac_try;;
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_link") 2>conftest.er1
11133 grep -v '^ *+' conftest.er1
>conftest.err
11135 cat conftest.err
>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest
$ac_exeext &&
11141 $as_test_x conftest
$ac_exeext; then
11142 eval "$as_ac_var=yes"
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.
$ac_ext >&5
11147 eval "$as_ac_var=no"
11150 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11151 conftest
$ac_exeext conftest.
$ac_ext
11153 ac_res
=`eval echo '${'$as_ac_var'}'`
11154 { echo "$as_me:$LINENO: result: $ac_res" >&5
11155 echo "${ECHO_T}$ac_res" >&6; }
11156 if test `eval echo '${'$as_ac_var'}'` = yes; then
11157 cat >>confdefs.h
<<_ACEOF
11158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11164 if test "${GTK_COMPILES}" != "yes"; then
11165 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11166 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11167 { (exit 1); exit 1; }; };
11172 cat >>confdefs.h
<<\_ACEOF
11178 if test "$with_toolkit_scroll_bars" != no
; then
11179 with_toolkit_scroll_bars
=yes
11182 HAVE_GTK_MULTIDISPLAY
=no
11184 for ac_func
in gdk_display_open
11186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11189 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 cat >conftest.
$ac_ext <<_ACEOF
11195 cat confdefs.h
>>conftest.
$ac_ext
11196 cat >>conftest.
$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11200 #define $ac_func innocuous_$ac_func
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func (); below.
11204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11205 <limits.h> exists even on freestanding compilers. */
11208 # include <limits.h>
11210 # include <assert.h>
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined __stub_$ac_func || defined __stub___$ac_func
11232 return $ac_func ();
11237 rm -f conftest.
$ac_objext conftest
$ac_exeext
11238 if { (ac_try
="$ac_link"
11239 case "(($ac_try" in
11240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_link") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext &&
11254 $as_test_x conftest$ac_exeext; then
11255 eval "$as_ac_var=yes"
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 eval "$as_ac_var=no"
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11266 ac_res=`eval echo '${'$as_ac_var'}'`
11267 { echo "$as_me:$LINENO: result: $ac_res" >&5
11268 echo "${ECHO_T}$ac_res" >&6; }
11269 if test `eval echo '${'$as_ac_var'}'` = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11273 HAVE_GTK_MULTIDISPLAY=yes
11277 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_GTK_MULTIDISPLAY 1
11284 HAVE_GTK_FILE_SELECTION=no
11286 for ac_func in gtk_file_selection_new
11288 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11302 #define $ac_func innocuous_$ac_func
11304 /* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func (); below.
11306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11307 <limits.h> exists even on freestanding compilers. */
11310 # include <limits.h>
11312 # include <assert.h>
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined __stub_$ac_func || defined __stub___$ac_func
11334 return $ac_func ();
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11343 *) ac_try_echo
=$ac_try;;
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_link") 2>conftest.er1
11348 grep -v '^ *+' conftest.er1
>conftest.err
11350 cat conftest.err
>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest
$ac_exeext &&
11356 $as_test_x conftest
$ac_exeext; then
11357 eval "$as_ac_var=yes"
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.
$ac_ext >&5
11362 eval "$as_ac_var=no"
11365 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11366 conftest
$ac_exeext conftest.
$ac_ext
11368 ac_res
=`eval echo '${'$as_ac_var'}'`
11369 { echo "$as_me:$LINENO: result: $ac_res" >&5
11370 echo "${ECHO_T}$ac_res" >&6; }
11371 if test `eval echo '${'$as_ac_var'}'` = yes; then
11372 cat >>confdefs.h
<<_ACEOF
11373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11375 HAVE_GTK_FILE_SELECTION
=yes
11380 HAVE_GTK_FILE_CHOOSER
=no
11382 for ac_func
in gtk_file_chooser_dialog_new
11384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.
$ac_ext <<_ACEOF
11393 cat confdefs.h
>>conftest.
$ac_ext
11394 cat >>conftest.
$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11406 # include <limits.h>
11408 # include <assert.h>
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11420 /* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423 #if defined __stub_$ac_func || defined __stub___$ac_func
11430 return $ac_func ();
11435 rm -f conftest.
$ac_objext conftest
$ac_exeext
11436 if { (ac_try
="$ac_link"
11437 case "(($ac_try" in
11438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11444 grep -v '^ *+' conftest.er1 >conftest.err
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest$ac_exeext &&
11452 $as_test_x conftest$ac_exeext; then
11453 eval "$as_ac_var=yes"
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 eval "$as_ac_var=no"
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11464 ac_res=`eval echo '${'$as_ac_var'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11471 HAVE_GTK_FILE_CHOOSER=yes
11476 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11477 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_GTK_FILE_BOTH 1
11485 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11486 HAVE_GTK_AND_PTHREAD=no
11488 for ac_header in pthread.h
11490 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11501 # Is the header compilable?
11502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11517 *) ac_try_echo
=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_compile") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1
>conftest.err
11524 cat conftest.err
>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest.
$ac_objext; then
11530 ac_header_compiler
=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.
$ac_ext >&5
11535 ac_header_compiler
=no
11538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11540 echo "${ECHO_T}$ac_header_compiler" >&6; }
11542 # Is the header present?
11543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11545 cat >conftest.
$ac_ext <<_ACEOF
11548 cat confdefs.h
>>conftest.
$ac_ext
11549 cat >>conftest.
$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <$ac_header>
11553 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null && {
11566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11569 ac_header_preproc=yes
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_header_preproc=no
11577 rm -f conftest.err conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6; }
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 eval "$as_ac_Header=\$ac_header_preproc"
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11627 if test "$ac_cv_header_pthread_h"; then
11628 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11629 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11630 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-lpthread $LIBS"
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11648 char pthread_self ();
11652 return pthread_self ();
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11661 *) ac_try_echo
=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1
>conftest.err
11668 cat conftest.err
>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest
$ac_exeext &&
11674 $as_test_x conftest
$ac_exeext; then
11675 ac_cv_lib_pthread_pthread_self
=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.
$ac_ext >&5
11680 ac_cv_lib_pthread_pthread_self
=no
11683 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11684 conftest
$ac_exeext conftest.
$ac_ext
11685 LIBS
=$ac_check_lib_save_LIBS
11687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11688 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11689 if test $ac_cv_lib_pthread_pthread_self = yes; then
11690 HAVE_GTK_AND_PTHREAD
=yes
11694 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11695 GTK_LIBS
="$GTK_LIBS -lpthread"
11697 cat >>confdefs.h
<<\_ACEOF
11698 #define HAVE_GTK_AND_PTHREAD 1
11705 ### Link with -lXft if available to work around a bug.
11707 if test "${HAVE_GTK}" = "yes"; then
11708 if test "X${with_pkg_config_prog}" != X
; then
11709 PKG_CONFIG
="${with_pkg_config_prog}"
11715 if test -z "$PKG_CONFIG"; then
11716 # Extract the first word of "pkg-config", so it can be a program name with args.
11717 set dummy pkg-config
; ac_word
=$2
11718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 case $PKG_CONFIG in
11725 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11729 for as_dir
in $PATH
11732 test -z "$as_dir" && as_dir
=.
11733 for ac_exec_ext
in '' $ac_executable_extensions; do
11734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11747 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11748 if test -n "$PKG_CONFIG"; then
11749 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11750 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11752 { echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6; }
11759 if test "$PKG_CONFIG" = "no" ; then
11762 PKG_CONFIG_MIN_VERSION
=0.9.0
11763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11764 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11765 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11767 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11768 { echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6; }
11772 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11773 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11774 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11775 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11776 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11778 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11779 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11780 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11781 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11782 echo "${ECHO_T}$XFT_LIBS" >&6; }
11784 { echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6; }
11788 ## If we have a custom action on failure, don't print errors, but
11789 ## do set a variable so people can do so.
11790 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11802 if test $succeeded = yes; then
11808 if test "$HAVE_XFT" != no
; then
11809 OLD_CFLAGS
="$CPPFLAGS"
11810 OLD_CPPFLAGS
="$CFLAGS"
11812 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11813 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11814 LIBS
="$XFT_LIBS $LIBS"
11815 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11816 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11817 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11818 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11822 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11824 # Is the header compilable?
11825 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11826 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11827 cat >conftest.
$ac_ext <<_ACEOF
11830 cat confdefs.h
>>conftest.
$ac_ext
11831 cat >>conftest.
$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 $ac_includes_default
11834 #include <X11/Xft/Xft.h>
11836 rm -f conftest.
$ac_objext
11837 if { (ac_try
="$ac_compile"
11838 case "(($ac_try" in
11839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_header_compiler=yes
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_header_compiler=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863 echo "${ECHO_T}$ac_header_compiler" >&6; }
11865 # Is the header present?
11866 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11867 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11868 cat >conftest.$ac_ext <<_ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 #include <X11/Xft/Xft.h>
11876 if { (ac_try="$ac_cpp conftest.$ac_ext"
11877 case "(($ac_try" in
11878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11879 *) ac_try_echo
=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11884 grep -v '^ *+' conftest.er1
>conftest.err
11886 cat conftest.err
>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } >/dev
/null
&& {
11889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11890 test ! -s conftest.err
11892 ac_header_preproc
=yes
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.
$ac_ext >&5
11897 ac_header_preproc
=no
11900 rm -f conftest.err conftest.
$ac_ext
11901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11902 echo "${ECHO_T}$ac_header_preproc" >&6; }
11904 # So? What about this header?
11905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11911 ac_header_preproc
=yes
11914 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11915 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11917 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11919 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11921 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11923 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11925 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11929 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11930 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11931 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11936 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11937 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11940 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11941 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11942 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11943 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 ac_check_lib_save_LIBS
=$LIBS
11947 LIBS
="-lXft $XFT_LIBS $LIBS"
11948 cat >conftest.
$ac_ext <<_ACEOF
11951 cat confdefs.h
>>conftest.
$ac_ext
11952 cat >>conftest.
$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11961 char XftFontOpen ();
11965 return XftFontOpen ();
11970 rm -f conftest.
$ac_objext conftest
$ac_exeext
11971 if { (ac_try
="$ac_link"
11972 case "(($ac_try" in
11973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext &&
11987 $as_test_x conftest$ac_exeext; then
11988 ac_cv_lib_Xft_XftFontOpen=yes
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_cv_lib_Xft_XftFontOpen=no
11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
12000 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12001 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12002 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12010 if test "${HAVE_XFT}" = "yes"; then
12012 cat >>confdefs.h <<\_ACEOF
12017 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12019 CFLAGS="$OLD_CPPFLAGS"
12020 CFLAGS="$OLD_CFLAGS"
12026 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12027 if test x"${HAVE_X11R5}" = xyes; then
12028 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12029 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12030 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12040 #include <X11/Intrinsic.h>
12041 #include <X11/Xaw/Simple.h>
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (ac_try="$ac_link"
12052 case "(($ac_try" in
12053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12054 *) ac_try_echo
=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_link") 2>conftest.er1
12059 grep -v '^ *+' conftest.er1
>conftest.err
12061 cat conftest.err
>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } && {
12064 test -z "$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 } && test -s conftest
$ac_exeext &&
12067 $as_test_x conftest
$ac_exeext; then
12068 emacs_cv_x11_version_5_with_xaw
=yes
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.
$ac_ext >&5
12073 emacs_cv_x11_version_5_with_xaw
=no
12076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12077 conftest
$ac_exeext conftest.
$ac_ext
12080 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12081 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12082 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12083 USE_X_TOOLKIT
=LUCID
12085 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12086 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12087 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12088 { (exit 1); exit 1; }; }
12090 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12091 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12100 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12102 if test "${USE_X_TOOLKIT}" != "none"; then
12103 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12104 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12105 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 cat >conftest.
$ac_ext <<_ACEOF
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include <X11/Intrinsic.h>
12118 #if XtSpecificationRelease < 6
12126 rm -f conftest.
$ac_objext conftest
$ac_exeext
12127 if { (ac_try
="$ac_link"
12128 case "(($ac_try" in
12129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_link") 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } && {
12140 test -z "$ac_c_werror_flag" ||
12141 test ! -s conftest.err
12142 } && test -s conftest$ac_exeext &&
12143 $as_test_x conftest$ac_exeext; then
12144 emacs_cv_x11_toolkit_version_6=yes
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 emacs_cv_x11_toolkit_version_6=no
12152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12153 conftest$ac_exeext conftest.$ac_ext
12156 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12157 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12158 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12159 echo "${ECHO_T}6 or newer" >&6; }
12161 cat >>confdefs.h <<\_ACEOF
12162 #define HAVE_X11XTR6 1
12166 { echo "$as_me:$LINENO: result: before 6" >&5
12167 echo "${ECHO_T}before 6" >&6; }
12171 if test x$HAVE_X11XTR6 = xyes; then
12172 LIBS="-lXt -lSM -lICE $LIBS"
12177 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12178 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12179 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 ac_check_lib_save_LIBS=$LIBS
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12197 char XmuConvertStandardSelection ();
12201 return XmuConvertStandardSelection ();
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12210 *) ac_try_echo
=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_link") 2>conftest.er1
12215 grep -v '^ *+' conftest.er1
>conftest.err
12217 cat conftest.err
>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest
$ac_exeext &&
12223 $as_test_x conftest
$ac_exeext; then
12224 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.
$ac_ext >&5
12229 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12232 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12233 conftest
$ac_exeext conftest.
$ac_ext
12234 LIBS
=$ac_check_lib_save_LIBS
12236 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12237 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12238 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12239 cat >>confdefs.h
<<_ACEOF
12240 #define HAVE_LIBXMU 1
12247 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12250 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12251 if test "${HAVE_X11}" = "yes"; then
12252 if test "${USE_X_TOOLKIT}" != "none"; then
12254 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12255 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12256 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 ac_check_lib_save_LIBS
=$LIBS
12260 LIBS
="-lXext $LIBS"
12261 cat >conftest.
$ac_ext <<_ACEOF
12264 cat confdefs.h
>>conftest.
$ac_ext
12265 cat >>conftest.
$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12274 char XShapeQueryExtension ();
12278 return XShapeQueryExtension ();
12283 rm -f conftest.
$ac_objext conftest
$ac_exeext
12284 if { (ac_try
="$ac_link"
12285 case "(($ac_try" in
12286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } && {
12297 test -z "$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12299 } && test -s conftest$ac_exeext &&
12300 $as_test_x conftest$ac_exeext; then
12301 ac_cv_lib_Xext_XShapeQueryExtension=yes
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 ac_cv_lib_Xext_XShapeQueryExtension=no
12309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12313 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12314 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12315 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_LIBXEXT 1
12320 LIBS="-lXext $LIBS"
12327 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12328 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12329 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12330 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 cat >conftest.$ac_ext <<_ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12343 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12346 Motif version prior to 2.1.
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12356 *) ac_try_echo
=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1
>conftest.err
12363 cat conftest.err
>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest.
$ac_objext; then
12369 emacs_cv_motif_version_2_1
=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.
$ac_ext >&5
12374 emacs_cv_motif_version_2_1
=no
12377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12379 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12380 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12381 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12382 if test $emacs_cv_motif_version_2_1 = yes; then
12385 cat >>confdefs.h
<<\_ACEOF
12386 #define HAVE_MOTIF_2_1 1
12389 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12390 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12391 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 ac_check_lib_save_LIBS
=$LIBS
12396 cat >conftest.
$ac_ext <<_ACEOF
12399 cat confdefs.h
>>conftest.
$ac_ext
12400 cat >>conftest.
$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12409 char XpCreateContext ();
12413 return XpCreateContext ();
12418 rm -f conftest.
$ac_objext conftest
$ac_exeext
12419 if { (ac_try
="$ac_link"
12420 case "(($ac_try" in
12421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest$ac_exeext &&
12435 $as_test_x conftest$ac_exeext; then
12436 ac_cv_lib_Xp_XpCreateContext=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_lib_Xp_XpCreateContext=no
12444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12449 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12450 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12454 if test ${HAVE_LIBXP} = yes; then
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_LIBXP 1
12462 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12463 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12464 if test "${emacs_cv_lesstif+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 # We put this in CFLAGS temporarily to precede other -I options
12468 # that might be in CFLAGS temporarily.
12469 # We put this in CPPFLAGS where it precedes the other -I options.
12470 OLD_CPPFLAGS=$CPPFLAGS
12472 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12473 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12489 rm -f conftest.$ac_objext
12490 if { (ac_try="$ac_compile"
12491 case "(($ac_try" in
12492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12493 *) ac_try_echo
=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_compile") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1
>conftest.err
12500 cat conftest.err
>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest.
$ac_objext; then
12506 emacs_cv_lesstif
=yes
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.
$ac_ext >&5
12511 emacs_cv_lesstif
=no
12514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12516 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12517 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12518 if test $emacs_cv_lesstif = yes; then
12519 # Make sure this -I option remains in CPPFLAGS after it is set
12520 # back to REAL_CPPFLAGS.
12521 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12522 # have those other -I options anyway. Ultimately, having this
12523 # directory ultimately in CPPFLAGS will be enough.
12524 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12525 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12528 CPPFLAGS
=$OLD_CPPFLAGS
12533 ### Is -lXaw3d available?
12535 if test "${HAVE_X11}" = "yes"; then
12536 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12537 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12538 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12539 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 cat >conftest.
$ac_ext <<_ACEOF
12545 cat confdefs.h
>>conftest.
$ac_ext
12546 cat >>conftest.
$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #include <X11/Xaw3d/Scrollbar.h>
12550 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12551 case "(($ac_try" in
12552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } >/dev/null && {
12563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12566 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12574 rm -f conftest.err conftest.$ac_ext
12576 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12577 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12578 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12579 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12580 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12581 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-lXaw3d $LIBS"
12586 cat >conftest.$ac_ext <<_ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12599 char XawScrollbarSetThumb ();
12603 return XawScrollbarSetThumb ();
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (ac_try="$ac_link"
12610 case "(($ac_try" in
12611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12612 *) ac_try_echo
=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_link") 2>conftest.er1
12617 grep -v '^ *+' conftest.er1
>conftest.err
12619 cat conftest.err
>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && {
12622 test -z "$ac_c_werror_flag" ||
12623 test ! -s conftest.err
12624 } && test -s conftest
$ac_exeext &&
12625 $as_test_x conftest
$ac_exeext; then
12626 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.
$ac_ext >&5
12631 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12635 conftest
$ac_exeext conftest.
$ac_ext
12636 LIBS
=$ac_check_lib_save_LIBS
12638 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12639 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12640 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12647 if test "${HAVE_XAW3D}" = "yes"; then
12649 cat >>confdefs.h
<<\_ACEOF
12650 #define HAVE_XAW3D 1
12659 USE_TOOLKIT_SCROLL_BARS
=no
12660 if test "${with_toolkit_scroll_bars}" != "no"; then
12661 if test "${USE_X_TOOLKIT}" != "none"; then
12662 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define USE_TOOLKIT_SCROLL_BARS 1
12668 USE_TOOLKIT_SCROLL_BARS
=yes
12669 elif test "${HAVE_XAW3D}" = "yes"; then
12670 cat >>confdefs.h
<<\_ACEOF
12671 #define USE_TOOLKIT_SCROLL_BARS 1
12674 USE_TOOLKIT_SCROLL_BARS
=yes
12676 elif test "${HAVE_GTK}" = "yes"; then
12677 cat >>confdefs.h
<<\_ACEOF
12678 #define USE_TOOLKIT_SCROLL_BARS 1
12681 USE_TOOLKIT_SCROLL_BARS
=yes
12682 elif test "${HAVE_CARBON}" = "yes"; then
12683 cat >>confdefs.h
<<\_ACEOF
12684 #define USE_TOOLKIT_SCROLL_BARS 1
12687 USE_TOOLKIT_SCROLL_BARS
=yes
12691 cat >conftest.
$ac_ext <<_ACEOF
12694 cat confdefs.h
>>conftest.
$ac_ext
12695 cat >>conftest.
$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12698 #include <X11/Xlib.h>
12699 #include <X11/Xresource.h>
12708 rm -f conftest.
$ac_objext
12709 if { (ac_try
="$ac_compile"
12710 case "(($ac_try" in
12711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
12727 cat >>confdefs.h <<\_ACEOF
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 if test "${with_xim}" != "no"; then
12743 cat >>confdefs.h <<\_ACEOF
12750 if test "${HAVE_XIM}" != "no"; then
12751 late_CFLAGS=$CFLAGS
12752 if test "$GCC" = yes; then
12753 CFLAGS="$CFLAGS --pedantic-errors"
12755 cat >conftest.$ac_ext <<_ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12762 #include <X11/Xlib.h>
12763 #include <X11/Xresource.h>
12772 XPointer *client_data;
12774 /* If we're not using GCC, it's probably not XFree86, and this is
12775 probably right, but we can't use something like --pedantic-errors. */
12776 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12777 char*, XIMProc, XPointer*);
12779 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12789 *) ac_try_echo
=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1
>conftest.err
12796 cat conftest.err
>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest.
$ac_objext; then
12802 emacs_cv_arg6_star
=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.
$ac_ext >&5
12810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12812 if test "$emacs_cv_arg6_star" = yes; then
12813 cat >>confdefs.h
<<\_ACEOF
12814 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12818 cat >>confdefs.h
<<\_ACEOF
12819 #define XRegisterIMInstantiateCallback_arg6 XPointer
12823 CFLAGS
=$late_CFLAGS
12826 ### Use -lXpm if available, unless `--with-xpm=no'.
12828 if test "${HAVE_X11}" = "yes"; then
12829 if test "${with_xpm}" != "no"; then
12830 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12831 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12832 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12833 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12837 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12839 # Is the header compilable?
12840 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12841 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12842 cat >conftest.
$ac_ext <<_ACEOF
12845 cat confdefs.h
>>conftest.
$ac_ext
12846 cat >>conftest.
$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 $ac_includes_default
12849 #include <X11/xpm.h>
12851 rm -f conftest.
$ac_objext
12852 if { (ac_try
="$ac_compile"
12853 case "(($ac_try" in
12854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_compile") 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && {
12865 test -z "$ac_c_werror_flag" ||
12866 test ! -s conftest.err
12867 } && test -s conftest.$ac_objext; then
12868 ac_header_compiler=yes
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_header_compiler=no
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12878 echo "${ECHO_T}$ac_header_compiler" >&6; }
12880 # Is the header present?
12881 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12882 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <X11/xpm.h>
12891 if { (ac_try="$ac_cpp conftest.$ac_ext"
12892 case "(($ac_try" in
12893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12894 *) ac_try_echo
=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12899 grep -v '^ *+' conftest.er1
>conftest.err
12901 cat conftest.err
>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } >/dev
/null
&& {
12904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12907 ac_header_preproc
=yes
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.
$ac_ext >&5
12912 ac_header_preproc
=no
12915 rm -f conftest.err conftest.
$ac_ext
12916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12917 echo "${ECHO_T}$ac_header_preproc" >&6; }
12919 # So? What about this header?
12920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12926 ac_header_preproc
=yes
12929 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12930 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12932 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12934 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12936 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12938 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12940 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12944 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12945 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12946 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12951 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12952 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12955 if test $ac_cv_header_X11_xpm_h = yes; then
12956 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12957 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12958 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 ac_check_lib_save_LIBS
=$LIBS
12962 LIBS
="-lXpm -lX11 $LIBS"
12963 cat >conftest.
$ac_ext <<_ACEOF
12966 cat confdefs.h
>>conftest.
$ac_ext
12967 cat >>conftest.
$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12970 /* Override any GCC internal prototype to avoid an error.
12971 Use char because int might match the return type of a GCC
12972 builtin and then its argument prototype would still apply. */
12976 char XpmReadFileToPixmap ();
12980 return XpmReadFileToPixmap ();
12985 rm -f conftest.
$ac_objext conftest
$ac_exeext
12986 if { (ac_try
="$ac_link"
12987 case "(($ac_try" in
12988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12994 grep -v '^ *+' conftest.er1 >conftest.err
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } && {
12999 test -z "$ac_c_werror_flag" ||
13000 test ! -s conftest.err
13001 } && test -s conftest$ac_exeext &&
13002 $as_test_x conftest$ac_exeext; then
13003 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13012 conftest$ac_exeext conftest.$ac_ext
13013 LIBS=$ac_check_lib_save_LIBS
13015 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13016 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13017 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13024 if test "${HAVE_XPM}" = "yes"; then
13025 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13026 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 #include "X11/xpm.h"
13034 #ifndef XpmReturnAllocPixels
13035 no_return_alloc_pixels
13039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13040 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13048 if test "${HAVE_XPM}" = "yes"; then
13049 { echo "$as_me:$LINENO: result: yes" >&5
13050 echo "${ECHO_T}yes" >&6; }
13052 { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13058 if test "${HAVE_XPM}" = "yes"; then
13060 cat >>confdefs.h <<\_ACEOF
13067 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13069 if test "${HAVE_X11}" = "yes"; then
13070 if test "${with_jpeg}" != "no"; then
13071 if test "${ac_cv_header_jerror_h+set}" = set; then
13072 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13073 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13074 if test "${ac_cv_header_jerror_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13080 # Is the header compilable?
13081 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13082 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 #include <jerror.h>
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_compile") 2>conftest.er1
13101 grep -v '^
*+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } && {
13106 test -z "$ac_c_werror_flag" ||
13107 test ! -s conftest.err
13108 } && test -s conftest.$ac_objext; then
13109 ac_header_compiler=yes
13111 echo "$as_me: failed program was:" >&5
13112 sed 's
/^
/|
/' conftest.$ac_ext >&5
13114 ac_header_compiler=no
13117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119 echo "${ECHO_T}$ac_header_compiler" >&6; }
13121 # Is the header present?
13122 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13123 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <jerror.h>
13132 if { (ac_try="$ac_cpp conftest.$ac_ext"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13140 grep -v '^
*+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } >/dev/null && {
13145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13148 ac_header_preproc=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's
/^
/|
/' conftest.$ac_ext >&5
13153 ac_header_preproc=no
13156 rm -f conftest.err conftest.$ac_ext
13157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13158 echo "${ECHO_T}$ac_header_preproc" >&6; }
13160 # So? What about this header?
13161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13164 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13166 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13167 ac_header_preproc=yes
13170 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13171 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13173 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13175 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13177 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13179 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13181 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13185 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13186 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13187 if test "${ac_cv_header_jerror_h+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 ac_cv_header_jerror_h=$ac_header_preproc
13192 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13196 if test $ac_cv_header_jerror_h = yes; then
13197 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13198 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13199 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-ljpeg $LIBS"
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13217 char jpeg_destroy_compress ();
13221 return jpeg_destroy_compress ();
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>conftest.er1
13235 grep -v '^
*+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } && {
13240 test -z "$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 } && test -s conftest$ac_exeext &&
13243 $as_test_x conftest$ac_exeext; then
13244 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13246 echo "$as_me: failed program was:" >&5
13247 sed 's
/^
/|
/' conftest.$ac_ext >&5
13249 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13257 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13258 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13268 if test "${HAVE_JPEG}" = "yes"; then
13269 cat >>confdefs.h <<\_ACEOF
13270 #define HAVE_JPEG 1
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 #include <jpeglib.h>
13280 version=JPEG_LIB_VERSION
13283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13284 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_JPEG 1
13290 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13291 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13299 ### Use -lpng if available, unless `--with-png=no'.
13301 if test "${HAVE_X11}" = "yes"; then
13302 if test "${with_png}" != "no"; then
13303 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13304 # in /usr/include/libpng.
13307 for ac_header
in png.h libpng
/png.h
13309 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13310 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 ac_res
=`eval echo '${'$as_ac_Header'}'`
13317 { echo "$as_me:$LINENO: result: $ac_res" >&5
13318 echo "${ECHO_T}$ac_res" >&6; }
13320 # Is the header compilable?
13321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13323 cat >conftest.
$ac_ext <<_ACEOF
13326 cat confdefs.h
>>conftest.
$ac_ext
13327 cat >>conftest.
$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329 $ac_includes_default
13330 #include <$ac_header>
13332 rm -f conftest.
$ac_objext
13333 if { (ac_try
="$ac_compile"
13334 case "(($ac_try" in
13335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13341 grep -v '^ *+' conftest.er1 >conftest.err
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13349 ac_header_compiler=yes
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_header_compiler=no
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6; }
13361 # Is the header present?
13362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include <$ac_header>
13372 if { (ac_try="$ac_cpp conftest.$ac_ext"
13373 case "(($ac_try" in
13374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13375 *) ac_try_echo
=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13380 grep -v '^ *+' conftest.er1
>conftest.err
13382 cat conftest.err
>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } >/dev
/null
&& {
13385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13388 ac_header_preproc
=yes
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.
$ac_ext >&5
13393 ac_header_preproc
=no
13396 rm -f conftest.err conftest.
$ac_ext
13397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13398 echo "${ECHO_T}$ac_header_preproc" >&6; }
13400 # So? What about this header?
13401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13407 ac_header_preproc
=yes
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13427 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 eval "$as_ac_Header=\$ac_header_preproc"
13432 ac_res
=`eval echo '${'$as_ac_Header'}'`
13433 { echo "$as_me:$LINENO: result: $ac_res" >&5
13434 echo "${ECHO_T}$ac_res" >&6; }
13437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13438 cat >>confdefs.h
<<_ACEOF
13439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13446 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13447 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13448 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13449 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 ac_check_lib_save_LIBS
=$LIBS
13453 LIBS
="-lpng -lz -lm $LIBS"
13454 cat >conftest.
$ac_ext <<_ACEOF
13457 cat confdefs.h
>>conftest.
$ac_ext
13458 cat >>conftest.
$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13461 /* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
13467 char png_get_channels ();
13471 return png_get_channels ();
13476 rm -f conftest.
$ac_objext conftest
$ac_exeext
13477 if { (ac_try
="$ac_link"
13478 case "(($ac_try" in
13479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } && {
13490 test -z "$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13492 } && test -s conftest$ac_exeext &&
13493 $as_test_x conftest$ac_exeext; then
13494 ac_cv_lib_png_png_get_channels=yes
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_cv_lib_png_png_get_channels=no
13502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13503 conftest$ac_exeext conftest.$ac_ext
13504 LIBS=$ac_check_lib_save_LIBS
13506 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13507 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13508 if test $ac_cv_lib_png_png_get_channels = yes; then
13515 if test "${HAVE_PNG}" = "yes"; then
13517 cat >>confdefs.h <<\_ACEOF
13524 ### Use -ltiff if available, unless `--with-tiff=no
'.
13526 if test "${HAVE_X11}" = "yes"; then
13527 if test "${with_tiff}" != "no"; then
13528 if test "${ac_cv_header_tiffio_h+set}" = set; then
13529 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13530 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13531 if test "${ac_cv_header_tiffio_h+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13537 # Is the header compilable?
13538 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13539 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 #include <tiffio.h>
13549 rm -f conftest.$ac_objext
13550 if { (ac_try="$ac_compile"
13551 case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_compile") 2>conftest.er1
13558 grep -v '^
*+' conftest.er1 >conftest.err
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } && {
13563 test -z "$ac_c_werror_flag" ||
13564 test ! -s conftest.err
13565 } && test -s conftest.$ac_objext; then
13566 ac_header_compiler=yes
13568 echo "$as_me: failed program was:" >&5
13569 sed 's
/^
/|
/' conftest.$ac_ext >&5
13571 ac_header_compiler=no
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13576 echo "${ECHO_T}$ac_header_compiler" >&6; }
13578 # Is the header present?
13579 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13580 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 #include <tiffio.h>
13589 if { (ac_try="$ac_cpp conftest.$ac_ext"
13590 case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13597 grep -v '^
*+' conftest.er1 >conftest.err
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } >/dev/null && {
13602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13603 test ! -s conftest.err
13605 ac_header_preproc=yes
13607 echo "$as_me: failed program was:" >&5
13608 sed 's
/^
/|
/' conftest.$ac_ext >&5
13610 ac_header_preproc=no
13613 rm -f conftest.err conftest.$ac_ext
13614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13615 echo "${ECHO_T}$ac_header_preproc" >&6; }
13617 # So? What about this header?
13618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13621 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13623 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13624 ac_header_preproc=yes
13627 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13628 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13630 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13632 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13634 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13636 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13638 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13642 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13643 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13644 if test "${ac_cv_header_tiffio_h+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 ac_cv_header_tiffio_h=$ac_header_preproc
13649 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13650 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13653 if test $ac_cv_header_tiffio_h = yes; then
13655 # At least one tiff package requires the jpeg library.
13656 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13657 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13658 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13659 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 ac_check_lib_save_LIBS=$LIBS
13663 LIBS="-ltiff $tifflibs $LIBS"
13664 cat >conftest.$ac_ext <<_ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13671 /* Override any GCC internal prototype to avoid an error.
13672 Use char because int might match the return type of a GCC
13673 builtin and then its argument prototype would still apply. */
13677 char TIFFGetVersion ();
13681 return TIFFGetVersion ();
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (ac_try="$ac_link"
13688 case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_link") 2>conftest.er1
13695 grep -v '^
*+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest$ac_exeext &&
13703 $as_test_x conftest$ac_exeext; then
13704 ac_cv_lib_tiff_TIFFGetVersion=yes
13706 echo "$as_me: failed program was:" >&5
13707 sed 's
/^
/|
/' conftest.$ac_ext >&5
13709 ac_cv_lib_tiff_TIFFGetVersion=no
13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13713 conftest$ac_exeext conftest.$ac_ext
13714 LIBS=$ac_check_lib_save_LIBS
13716 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13717 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13718 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13727 if test "${HAVE_TIFF}" = "yes"; then
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_TIFF 1
13736 ### Use -lgif if available, unless `--with-gif=no'.
13738 if test "${HAVE_X11}" = "yes"; then
13739 if test "${with_gif}" != "no"; then
13740 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13741 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13742 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13749 # Is the header compilable?
13750 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13751 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13752 cat >conftest.
$ac_ext <<_ACEOF
13755 cat confdefs.h
>>conftest.
$ac_ext
13756 cat >>conftest.
$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13759 #include <gif_lib.h>
13761 rm -f conftest.
$ac_objext
13762 if { (ac_try
="$ac_compile"
13763 case "(($ac_try" in
13764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_compile") 2>conftest.er1
13770 grep -v '^ *+' conftest.er1 >conftest.err
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && {
13775 test -z "$ac_c_werror_flag" ||
13776 test ! -s conftest.err
13777 } && test -s conftest.$ac_objext; then
13778 ac_header_compiler=yes
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 ac_header_compiler=no
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788 echo "${ECHO_T}$ac_header_compiler" >&6; }
13790 # Is the header present?
13791 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13792 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <gif_lib.h>
13801 if { (ac_try="$ac_cpp conftest.$ac_ext"
13802 case "(($ac_try" in
13803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13804 *) ac_try_echo
=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13809 grep -v '^ *+' conftest.er1
>conftest.err
13811 cat conftest.err
>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev
/null
&& {
13814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13817 ac_header_preproc
=yes
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.
$ac_ext >&5
13822 ac_header_preproc
=no
13825 rm -f conftest.err conftest.
$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827 echo "${ECHO_T}$ac_header_preproc" >&6; }
13829 # So? What about this header?
13830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13835 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13836 ac_header_preproc
=yes
13839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13848 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13854 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13855 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13856 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 ac_cv_header_gif_lib_h
=$ac_header_preproc
13861 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13862 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13865 if test $ac_cv_header_gif_lib_h = yes; then
13866 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13867 # Earlier versions can crash Emacs.
13868 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13869 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13870 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 ac_check_lib_save_LIBS
=$LIBS
13874 LIBS
="-lungif $LIBS"
13875 cat >conftest.
$ac_ext <<_ACEOF
13878 cat confdefs.h
>>conftest.
$ac_ext
13879 cat >>conftest.
$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13888 char EGifPutExtensionLast ();
13892 return EGifPutExtensionLast ();
13897 rm -f conftest.
$ac_objext conftest
$ac_exeext
13898 if { (ac_try
="$ac_link"
13899 case "(($ac_try" in
13900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest$ac_exeext &&
13914 $as_test_x conftest$ac_exeext; then
13915 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_lib_ungif_EGifPutExtensionLast=no
13923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13924 conftest$ac_exeext conftest.$ac_ext
13925 LIBS=$ac_check_lib_save_LIBS
13927 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13928 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13929 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13938 if test "${HAVE_GIF}" = "yes"; then
13940 cat >>confdefs.h <<\_ACEOF
13947 ### Use -lgpm if available, unless `--with-gpm=no
'.
13949 if test "${with_gpm}" != "no"; then
13950 if test "${ac_cv_header_gpm_h+set}" = set; then
13951 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13952 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_gpm_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13959 # Is the header compilable?
13960 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13961 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13971 rm -f conftest.$ac_objext
13972 if { (ac_try="$ac_compile"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_compile") 2>conftest.er1
13980 grep -v '^
*+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest.$ac_objext; then
13988 ac_header_compiler=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's
/^
/|
/' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14002 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14011 if { (ac_try="$ac_cpp conftest.$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14019 grep -v '^
*+' conftest.er1 >conftest.err
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } >/dev/null && {
14024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14027 ac_header_preproc=yes
14029 echo "$as_me: failed program was:" >&5
14030 sed 's
/^
/|
/' conftest.$ac_ext >&5
14032 ac_header_preproc=no
14035 rm -f conftest.err conftest.$ac_ext
14036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6; }
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14042 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result
" >&5
14045 echo "$as_me: WARNING
: gpm.h
: proceeding with the compiler
's result" >&2;}
14046 ac_header_preproc=yes
14049 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result
" >&5
14058 echo "$as_me: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14064 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14065 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_gpm_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_cv_header_gpm_h=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14075 if test $ac_cv_header_gpm_h = yes; then
14076 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14077 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14078 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 ac_check_lib_save_LIBS=$LIBS
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14090 /* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14100 return Gpm_Open ();
14105 rm -f conftest.$ac_objext conftest$ac_exeext
14106 if { (ac_try="$ac_link"
14107 case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_link") 2>conftest.er1
14114 grep -v '^
*+' conftest.er1 >conftest.err
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && {
14119 test -z "$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 } && test -s conftest$ac_exeext &&
14122 $as_test_x conftest$ac_exeext; then
14123 ac_cv_lib_gpm_Gpm_Open=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's
/^
/|
/' conftest.$ac_ext >&5
14128 ac_cv_lib_gpm_Gpm_Open=no
14131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14132 conftest$ac_exeext conftest.$ac_ext
14133 LIBS=$ac_check_lib_save_LIBS
14135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14136 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14137 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14146 if test "${HAVE_GPM}" = "yes"; then
14148 cat >>confdefs.h <<\_ACEOF
14154 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14155 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14156 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14157 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14161 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14163 # Is the header compilable?
14164 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14165 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14166 cat >conftest.$ac_ext <<_ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14172 $ac_includes_default
14173 #include <malloc/malloc.h>
14175 rm -f conftest.$ac_objext
14176 if { (ac_try="$ac_compile"
14177 case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_compile") 2>conftest.er1
14184 grep -v '^
*+' conftest.er1 >conftest.err
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && {
14189 test -z "$ac_c_werror_flag" ||
14190 test ! -s conftest.err
14191 } && test -s conftest.$ac_objext; then
14192 ac_header_compiler=yes
14194 echo "$as_me: failed program was:" >&5
14195 sed 's
/^
/|
/' conftest.$ac_ext >&5
14197 ac_header_compiler=no
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14202 echo "${ECHO_T}$ac_header_compiler" >&6; }
14204 # Is the header present?
14205 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14206 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14207 cat >conftest.$ac_ext <<_ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14213 #include <malloc/malloc.h>
14215 if { (ac_try="$ac_cpp conftest.$ac_ext"
14216 case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14223 grep -v '^
*+' conftest.er1 >conftest.err
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } >/dev/null && {
14228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14229 test ! -s conftest.err
14231 ac_header_preproc=yes
14233 echo "$as_me: failed program was:" >&5
14234 sed 's
/^
/|
/' conftest.$ac_ext >&5
14236 ac_header_preproc=no
14239 rm -f conftest.err conftest.$ac_ext
14240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14241 echo "${ECHO_T}$ac_header_preproc" >&6; }
14243 # So? What about this header?
14244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14246 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14247 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
14249 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
14250 ac_header_preproc=yes
14253 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14254 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14256 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14258 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14260 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
14262 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14264 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14268 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14269 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14270 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14275 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14276 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14279 if test $ac_cv_header_malloc_malloc_h = yes; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_MALLOC_MALLOC_H 1
14289 ### Use Mac OS X Carbon API to implement GUI.
14290 if test "${HAVE_CARBON}" = "yes"; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_CARBON 1
14296 ## Specify the install directory
14298 if test "${carbon_appdir_x}" != ""; then
14299 case ${carbon_appdir_x} in
14300 y | ye | yes) carbon_appdir=/Applications ;;
14301 * ) carbon_appdir=${carbon_appdir_x} ;;
14304 # We also have mouse menus.
14308 ### Use session management (-lSM -lICE) if available
14310 if test "${HAVE_X11}" = "yes"; then
14311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14312 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14313 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14314 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14318 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14320 # Is the header compilable?
14321 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14322 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14330 #include <X11/SM/SMlib.h>
14332 rm -f conftest.$ac_objext
14333 if { (ac_try="$ac_compile"
14334 case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_compile") 2>conftest.er1
14341 grep -v '^
*+' conftest.er1 >conftest.err
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest.$ac_objext; then
14349 ac_header_compiler=yes
14351 echo "$as_me: failed program was:" >&5
14352 sed 's
/^
/|
/' conftest.$ac_ext >&5
14354 ac_header_compiler=no
14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14359 echo "${ECHO_T}$ac_header_compiler" >&6; }
14361 # Is the header present?
14362 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14363 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <X11/SM/SMlib.h>
14372 if { (ac_try="$ac_cpp conftest.$ac_ext"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14380 grep -v '^
*+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } >/dev/null && {
14385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14388 ac_header_preproc=yes
14390 echo "$as_me: failed program was:" >&5
14391 sed 's
/^
/|
/' conftest.$ac_ext >&5
14393 ac_header_preproc=no
14396 rm -f conftest.err conftest.$ac_ext
14397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14398 echo "${ECHO_T}$ac_header_preproc" >&6; }
14400 # So? What about this header?
14401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14403 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14404 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
14406 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
14407 ac_header_preproc=yes
14410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14411 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14413 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14415 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14417 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
14419 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14421 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14425 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14426 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14427 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14432 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14433 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14436 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14437 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14438 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14439 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-lSM -lICE $LIBS"
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14457 char SmcOpenConnection ();
14461 return SmcOpenConnection ();
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (ac_try="$ac_link"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_link") 2>conftest.er1
14475 grep -v '^
*+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest$ac_exeext &&
14483 $as_test_x conftest$ac_exeext; then
14484 ac_cv_lib_SM_SmcOpenConnection=yes
14486 echo "$as_me: failed program was:" >&5
14487 sed 's
/^
/|
/' conftest.$ac_ext >&5
14489 ac_cv_lib_SM_SmcOpenConnection=no
14492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14493 conftest$ac_exeext conftest.$ac_ext
14494 LIBS=$ac_check_lib_save_LIBS
14496 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14497 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14498 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14506 if test "${HAVE_X_SM}" = "yes"; then
14508 cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_X_SM 1
14514 *) LIBS="-lSM -lICE $LIBS" ;;
14519 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
14520 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14521 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14522 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 cat >conftest.
$ac_ext <<_ACEOF
14528 cat confdefs.h
>>conftest.
$ac_ext
14529 cat >>conftest.
$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14540 rm -f conftest.
$ac_objext conftest
$ac_exeext
14541 if { (ac_try
="$ac_link"
14542 case "(($ac_try" in
14543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_link") 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest$ac_exeext &&
14557 $as_test_x conftest$ac_exeext; then
14558 emacs_cv_netdb_declares_h_errno=yes
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14563 emacs_cv_netdb_declares_h_errno=no
14566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14567 conftest$ac_exeext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14570 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14571 if test $emacs_cv_netdb_declares_h_errno = yes; then
14573 cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_H_ERRNO 1
14579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14580 # for constant arguments. Useless!
14581 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14582 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14583 if test "${ac_cv_working_alloca_h+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 cat >conftest.$ac_ext <<_ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <alloca.h>
14596 char *p = (char *) alloca (2 * sizeof (int));
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (ac_try="$ac_link"
14604 case "(($ac_try" in
14605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14606 *) ac_try_echo
=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_link") 2>conftest.er1
14611 grep -v '^ *+' conftest.er1
>conftest.err
14613 cat conftest.err
>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest
$ac_exeext &&
14619 $as_test_x conftest
$ac_exeext; then
14620 ac_cv_working_alloca_h
=yes
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.
$ac_ext >&5
14625 ac_cv_working_alloca_h
=no
14628 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14629 conftest
$ac_exeext conftest.
$ac_ext
14631 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14632 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14633 if test $ac_cv_working_alloca_h = yes; then
14635 cat >>confdefs.h
<<\_ACEOF
14636 #define HAVE_ALLOCA_H 1
14641 { echo "$as_me:$LINENO: checking for alloca" >&5
14642 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14643 if test "${ac_cv_func_alloca_works+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 cat >conftest.
$ac_ext <<_ACEOF
14649 cat confdefs.h
>>conftest.
$ac_ext
14650 cat >>conftest.
$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14653 # define alloca __builtin_alloca
14656 # include <malloc.h>
14657 # define alloca _alloca
14659 # ifdef HAVE_ALLOCA_H
14660 # include <alloca.h>
14665 # ifndef alloca /* predefined by HP cc +Olibcalls */
14676 char *p = (char *) alloca (1);
14682 rm -f conftest.
$ac_objext conftest
$ac_exeext
14683 if { (ac_try
="$ac_link"
14684 case "(($ac_try" in
14685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_link") 2>conftest.er1
14691 grep -v '^ *+' conftest.er1 >conftest.err
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } && {
14696 test -z "$ac_c_werror_flag" ||
14697 test ! -s conftest.err
14698 } && test -s conftest$ac_exeext &&
14699 $as_test_x conftest$ac_exeext; then
14700 ac_cv_func_alloca_works=yes
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_cv_func_alloca_works=no
14708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14709 conftest$ac_exeext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14712 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14714 if test $ac_cv_func_alloca_works = yes; then
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_ALLOCA 1
14721 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14722 # that cause trouble. Some versions do not even contain alloca or
14723 # contain a buggy version. If you still want to use their alloca,
14724 # use ar to extract alloca.o from them instead of compiling alloca.c.
14726 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14728 cat >>confdefs.h <<\_ACEOF
14733 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14734 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14735 if test "${ac_cv_os_cray+set}" = set; then
14736 echo $ECHO_N "(cached
) $ECHO_C" >&6
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #if defined CRAY && ! defined CRAY2
14751 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14752 $EGREP "webecray
" >/dev/null 2>&1; then
14760 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14761 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14762 if test $ac_cv_os_cray = yes; then
14763 for ac_func in _getb67 GETB67 getb67; do
14764 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14765 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14766 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14767 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14768 echo $ECHO_N "(cached
) $ECHO_C" >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14778 #define $ac_func innocuous_$ac_func
14780 /* System header to define __stub macros and hopefully few prototypes,
14781 which can conflict with char $ac_func (); below.
14782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14783 <limits.h> exists even on freestanding compilers. */
14786 # include <limits.h>
14788 # include <assert.h>
14793 /* Override any GCC internal prototype to avoid an error.
14794 Use char because int might match the return type of a GCC
14795 builtin and then its argument prototype would still apply. */
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined __stub_$ac_func || defined __stub___$ac_func
14810 return $ac_func ();
14815 rm -f conftest.$ac_objext conftest$ac_exeext
14816 if { (ac_try="$ac_link"
14817 case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_link") 2>conftest.er1
14824 grep -v '^ *+' conftest.er1 >conftest.err
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest$ac_exeext &&
14832 $as_test_x conftest$ac_exeext; then
14833 eval "$as_ac_var=yes"
14835 echo "$as_me: failed program was
:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 eval "$as_ac_var=no
"
14841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14842 conftest$ac_exeext conftest.$ac_ext
14844 ac_res=`eval echo '${'$as_ac_var'}'`
14845 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 if test `eval echo '${'$as_ac_var'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850 #define CRAY_STACKSEG_END $ac_func
14859 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14860 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14861 if test "${ac_cv_c_stack_direction+set}" = set; then
14862 echo $ECHO_N "(cached
) $ECHO_C" >&6
14864 if test "$cross_compiling" = yes; then
14865 ac_cv_c_stack_direction=0
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 $ac_includes_default
14875 find_stack_direction ()
14877 static char *addr = 0;
14882 return find_stack_direction ();
14885 return (&dummy > addr) ? 1 : -1;
14891 return find_stack_direction () < 0;
14894 rm -f conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_link") 2>&5
14903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
14912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_c_stack_direction=1
14916 echo "$as_me: program exited with status
$ac_status" >&5
14917 echo "$as_me: failed program was
:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ( exit $ac_status )
14921 ac_cv_c_stack_direction=-1
14923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14931 cat >>confdefs.h <<_ACEOF
14932 #define STACK_DIRECTION $ac_cv_c_stack_direction
14939 # fmod, logb, and frexp are found in -lm on most systems.
14940 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14942 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14943 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14944 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14945 echo $ECHO_N "(cached
) $ECHO_C" >&6
14947 ac_check_lib_save_LIBS=$LIBS
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>conftest.er1
14980 grep -v '^ *+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest$ac_exeext &&
14988 $as_test_x conftest$ac_exeext; then
14989 ac_cv_lib_m_sqrt=yes
14991 echo "$as_me: failed program was
:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_cv_lib_m_sqrt=no
14997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15002 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15003 if test $ac_cv_lib_m_sqrt = yes; then
15004 cat >>confdefs.h <<_ACEOF
15005 #define HAVE_LIBM 1
15013 # Check for mail-locking functions in a "mail" library. Probably this should
15014 # have the same check as for liblockfile below.
15016 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15017 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15018 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15019 echo $ECHO_N "(cached
) $ECHO_C" >&6
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lmail $LIBS"
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15040 return maillock ();
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_link") 2>conftest.er1
15054 grep -v '^ *+' conftest.er1 >conftest.err
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext &&
15062 $as_test_x conftest$ac_exeext; then
15063 ac_cv_lib_mail_maillock=yes
15065 echo "$as_me: failed program was
:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_cv_lib_mail_maillock=no
15071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15075 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15076 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15077 if test $ac_cv_lib_mail_maillock = yes; then
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_LIBMAIL 1
15082 LIBS="-lmail $LIBS"
15087 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15088 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15089 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15090 echo $ECHO_N "(cached
) $ECHO_C" >&6
15092 ac_check_lib_save_LIBS=$LIBS
15093 LIBS="-llockfile $LIBS"
15094 cat >conftest.$ac_ext <<_ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15101 /* Override any GCC internal prototype to avoid an error.
15102 Use char because int might match the return type of a GCC
15103 builtin and then its argument prototype would still apply. */
15111 return maillock ();
15116 rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (ac_try="$ac_link"
15118 case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_link") 2>conftest.er1
15125 grep -v '^ *+' conftest.er1 >conftest.err
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest$ac_exeext &&
15133 $as_test_x conftest$ac_exeext; then
15134 ac_cv_lib_lockfile_maillock=yes
15136 echo "$as_me: failed program was
:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_cv_lib_lockfile_maillock=no
15142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15143 conftest$ac_exeext conftest.$ac_ext
15144 LIBS=$ac_check_lib_save_LIBS
15146 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15147 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15148 if test $ac_cv_lib_lockfile_maillock = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_LIBLOCKFILE 1
15153 LIBS="-llockfile $LIBS"
15157 # If we have the shared liblockfile, assume we must use it for mail
15158 # locking (e.g. Debian). If we couldn't link against liblockfile
15159 # (no liblockfile.a installed), ensure that we don't need to.
15160 if test "$ac_cv_lib_lockfile_maillock" = no; then
15161 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15162 set dummy liblockfile.so; ac_word=$2
15163 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15164 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15165 if test "${ac_cv_prog_liblockfile+set}" = set; then
15166 echo $ECHO_N "(cached
) $ECHO_C" >&6
15168 if test -n "$liblockfile"; then
15169 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15173 for as_dir in $as_dummy
15176 test -z "$as_dir" && as_dir=.
15177 for ac_exec_ext in '' $ac_executable_extensions; do
15178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15179 ac_cv_prog_liblockfile="yes"
15180 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15187 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15190 liblockfile=$ac_cv_prog_liblockfile
15191 if test -n "$liblockfile"; then
15192 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15193 echo "${ECHO_T}$liblockfile" >&6; }
15195 { echo "$as_me:$LINENO: result
: no
" >&5
15196 echo "${ECHO_T}no
" >&6; }
15200 if test $ac_cv_prog_liblockfile = yes; then
15201 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15202 This probably means that movemail could lose mail.
15203 There may be a \`development' package to
install containing liblockfile.
" >&5
15204 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15205 This probably means that movemail could lose mail.
15206 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15207 { (exit 1); exit 1; }; }
15212 for ac_func in touchlock
15214 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15215 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15216 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15217 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15218 echo $ECHO_N "(cached
) $ECHO_C" >&6
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15228 #define $ac_func innocuous_$ac_func
15230 /* System header to define __stub macros and hopefully few prototypes,
15231 which can conflict with char $ac_func (); below.
15232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15233 <limits.h> exists even on freestanding compilers. */
15236 # include <limits.h>
15238 # include <assert.h>
15243 /* Override any GCC internal prototype to avoid an error.
15244 Use char because int might match the return type of a GCC
15245 builtin and then its argument prototype would still apply. */
15250 /* The GNU C library defines this for functions which it implements
15251 to always fail with ENOSYS. Some functions are actually named
15252 something starting with __ and the normal name is an alias. */
15253 #if defined __stub_$ac_func || defined __stub___$ac_func
15260 return $ac_func ();
15265 rm -f conftest.$ac_objext conftest$ac_exeext
15266 if { (ac_try="$ac_link"
15267 case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_link") 2>conftest.er1
15274 grep -v '^ *+' conftest.er1 >conftest.err
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15278 (exit $ac_status); } && {
15279 test -z "$ac_c_werror_flag" ||
15280 test ! -s conftest.err
15281 } && test -s conftest$ac_exeext &&
15282 $as_test_x conftest$ac_exeext; then
15283 eval "$as_ac_var=yes"
15285 echo "$as_me: failed program was
:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 eval "$as_ac_var=no
"
15291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15292 conftest$ac_exeext conftest.$ac_ext
15294 ac_res=`eval echo '${'$as_ac_var'}'`
15295 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15296 echo "${ECHO_T}$ac_res" >&6; }
15297 if test `eval echo '${'$as_ac_var'}'` = yes; then
15298 cat >>confdefs.h <<_ACEOF
15299 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15306 for ac_header in maillock.h
15308 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15309 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15310 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15311 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15312 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15313 echo $ECHO_N "(cached
) $ECHO_C" >&6
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15319 # Is the header compilable?
15320 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15321 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 $ac_includes_default
15329 #include <$ac_header>
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15340 grep -v '^ *+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest.$ac_objext; then
15348 ac_header_compiler=yes
15350 echo "$as_me: failed program was
:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_header_compiler=no
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15358 echo "${ECHO_T}$ac_header_compiler" >&6; }
15360 # Is the header present?
15361 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15362 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <$ac_header>
15371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15379 grep -v '^ *+' conftest.er1 >conftest.err
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15383 (exit $ac_status); } >/dev/null && {
15384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15387 ac_header_preproc=yes
15389 echo "$as_me: failed program was
:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_header_preproc=no
15395 rm -f conftest.err conftest.$ac_ext
15396 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6; }
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15403 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15406 ac_header_preproc=yes
15409 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15410 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15411 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15412 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15413 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15414 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15415 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15416 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15419 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15420 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15424 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15425 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15427 echo $ECHO_N "(cached
) $ECHO_C" >&6
15429 eval "$as_ac_Header=\
$ac_header_preproc"
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437 cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15515 for ac_func in gethostname getdomainname dup2 \
15516 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15517 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15518 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15519 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15520 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15521 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15522 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15523 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
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
15618 for ac_header in sys/un.h
15620 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15621 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15622 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15623 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached
) $ECHO_C" >&6
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15631 # Is the header compilable?
15632 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15633 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 #include <$ac_header>
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_compile") 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest.$ac_objext; then
15660 ac_header_compiler=yes
15662 echo "$as_me: failed program was
:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_header_compiler=no
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15670 echo "${ECHO_T}$ac_header_compiler" >&6; }
15672 # Is the header present?
15673 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15674 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15675 cat >conftest.$ac_ext <<_ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 #include <$ac_header>
15683 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15695 (exit $ac_status); } >/dev/null && {
15696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15699 ac_header_preproc=yes
15701 echo "$as_me: failed program was
:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 ac_header_preproc=no
15707 rm -f conftest.err conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6; }
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15714 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15715 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15718 ac_header_preproc=yes
15721 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15722 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15723 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15724 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15725 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15726 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15727 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15728 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15731 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15732 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15736 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15737 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached
) $ECHO_C" >&6
15741 eval "$as_ac_Header=\
$ac_header_preproc"
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15762 for ac_header in $ac_header_list
15764 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15765 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15766 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15767 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15768 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15769 echo $ECHO_N "(cached
) $ECHO_C" >&6
15771 ac_res=`eval echo '${'$as_ac_Header'}'`
15772 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15773 echo "${ECHO_T}$ac_res" >&6; }
15775 # Is the header compilable?
15776 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15777 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15778 cat >conftest.$ac_ext <<_ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 $ac_includes_default
15785 #include <$ac_header>
15787 rm -f conftest.$ac_objext
15788 if { (ac_try="$ac_compile"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_compile") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest.$ac_objext; then
15804 ac_header_compiler=yes
15806 echo "$as_me: failed program was
:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_compiler=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15818 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <$ac_header>
15827 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15839 (exit $ac_status); } >/dev/null && {
15840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15843 ac_header_preproc=yes
15845 echo "$as_me: failed program was
:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_header_preproc=no
15851 rm -f conftest.err conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6; }
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15859 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15862 ac_header_preproc=yes
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15866 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15867 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15868 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15869 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15870 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15871 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15872 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15875 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15876 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15880 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15881 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15882 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15883 echo $ECHO_N "(cached
) $ECHO_C" >&6
15885 eval "$as_ac_Header=\
$ac_header_preproc"
15887 ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15889 echo "${ECHO_T}$ac_res" >&6; }
15892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15909 for ac_func in $ac_func_list
15911 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15912 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15913 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15914 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15915 echo $ECHO_N "(cached
) $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15925 #define $ac_func innocuous_$ac_func
15927 /* System header to define __stub macros and hopefully few prototypes,
15928 which can conflict with char $ac_func (); below.
15929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15930 <limits.h> exists even on freestanding compilers. */
15933 # include <limits.h>
15935 # include <assert.h>
15940 /* Override any GCC internal prototype to avoid an error.
15941 Use char because int might match the return type of a GCC
15942 builtin and then its argument prototype would still apply. */
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined __stub_$ac_func || defined __stub___$ac_func
15957 return $ac_func ();
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (ac_try="$ac_link"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_link") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest$ac_exeext &&
15979 $as_test_x conftest$ac_exeext; then
15980 eval "$as_ac_var=yes"
15982 echo "$as_me: failed program was
:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 eval "$as_ac_var=no
"
15988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15989 conftest$ac_exeext conftest.$ac_ext
15991 ac_res=`eval echo '${'$as_ac_var'}'`
15992 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994 if test `eval echo '${'$as_ac_var'}'` = yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16018 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16019 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16020 if test "${ac_cv_func_working_mktime+set}" = set; then
16021 echo $ECHO_N "(cached
) $ECHO_C" >&6
16023 if test "$cross_compiling" = yes; then
16024 ac_cv_func_working_mktime=no
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 /* Test program from Paul Eggert and Tony Leneis. */
16033 #ifdef TIME_WITH_SYS_TIME
16034 # include <sys/time.h>
16037 # ifdef HAVE_SYS_TIME_H
16038 # include <sys/time.h>
16044 #include <stdlib.h>
16046 #ifdef HAVE_UNISTD_H
16047 # include <unistd.h>
16051 # define alarm(X) /* empty */
16054 /* Work around redefinition to rpl_putenv by other config tests. */
16057 static time_t time_t_max;
16058 static time_t time_t_min;
16060 /* Values we'll use to set the TZ environment variable. */
16061 static char *tz_strings[] = {
16062 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16063 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16065 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16067 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16068 Based on a problem report from Andreas Jaeger. */
16070 spring_forward_gap ()
16072 /* glibc (up to about 1998-10-07) failed this test. */
16075 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16076 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16077 on systems that don't support the Olson extension, or don't have the
16078 full zoneinfo tables installed. */
16079 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16088 return mktime (&tm) != (time_t) -1;
16096 return ! (lt = localtime (&now)) || mktime (lt) == now;
16103 return (mktime_test1 (now)
16104 && mktime_test1 ((time_t) (time_t_max - now))
16105 && mktime_test1 ((time_t) (time_t_min + now)));
16111 /* Based on code from Ariel Faigon. */
16121 return tm.tm_mon == 2 && tm.tm_mday == 31;
16130 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16131 now = mktime (&tm);
16132 if (now != (time_t) -1)
16134 struct tm *lt = localtime (&now);
16136 && lt->tm_year == tm.tm_year
16137 && lt->tm_mon == tm.tm_mon
16138 && lt->tm_mday == tm.tm_mday
16139 && lt->tm_hour == tm.tm_hour
16140 && lt->tm_min == tm.tm_min
16141 && lt->tm_sec == tm.tm_sec
16142 && lt->tm_yday == tm.tm_yday
16143 && lt->tm_wday == tm.tm_wday
16144 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16145 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16154 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16155 ignoring leap seconds. */
16156 unsigned long int answer = 2527315200UL;
16160 tm.tm_year = 2050 - 1900;
16163 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16166 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16167 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16168 on systems that don't support the Olson extension, or don't have the
16169 full zoneinfo tables installed. */
16170 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16174 /* Check that the result is either a failure, or close enough
16175 to the correct answer that we can assume the discrepancy is
16176 due to leap seconds. */
16177 return (t == (time_t) -1
16178 || (0 < t && answer - 120 <= t && t <= answer + 120));
16187 /* This test makes some buggy mktime implementations loop.
16188 Give up after 60 seconds; a mktime slower than that
16189 isn't worth using anyway. */
16192 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16195 if ((time_t) -1 < 0)
16196 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16198 delta = time_t_max / 997; /* a suitable prime number */
16199 for (i = 0; i < N_STRINGS; i++)
16202 putenv (tz_strings[i]);
16204 for (t = 0; t <= time_t_max - delta; t += delta)
16205 if (! mktime_test (t))
16207 if (! (mktime_test ((time_t) 1)
16208 && mktime_test ((time_t) (60 * 60))
16209 && mktime_test ((time_t) (60 * 60 * 24))))
16212 for (j = 1; 0 < j; j *= 2)
16213 if (! bigtime_test (j))
16215 if (! bigtime_test (j - 1))
16218 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16221 rm -f conftest$ac_exeext
16222 if { (ac_try="$ac_link"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_link") 2>&5
16230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_func_working_mktime=yes
16243 echo "$as_me: program exited with status
$ac_status" >&5
16244 echo "$as_me: failed program was
:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ( exit $ac_status )
16248 ac_cv_func_working_mktime=no
16250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16256 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16257 if test $ac_cv_func_working_mktime = no; then
16258 case " $LIBOBJS " in
16259 *" mktime.
$ac_objext "* ) ;;
16260 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16266 if test "$ac_cv_func_working_mktime" = no; then
16268 cat >>confdefs.h <<\_ACEOF
16269 #define BROKEN_MKTIME 1
16274 ac_have_func=no # yes means we've found a way to get the load average.
16276 # Make sure getloadavg.c is where it belongs, at configure-time.
16277 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16278 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16279 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16280 { (exit 1); exit 1; }; }
16284 # Check for getloadavg, but be sure not to touch the cache variable.
16285 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16286 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16287 if test "${ac_cv_func_getloadavg+set}" = set; then
16288 echo $ECHO_N "(cached
) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16298 #define getloadavg innocuous_getloadavg
16300 /* System header to define __stub macros and hopefully few prototypes,
16301 which can conflict with char getloadavg (); below.
16302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16303 <limits.h> exists even on freestanding compilers. */
16306 # include <limits.h>
16308 # include <assert.h>
16313 /* Override any GCC internal prototype to avoid an error.
16314 Use char because int might match the return type of a GCC
16315 builtin and then its argument prototype would still apply. */
16319 char getloadavg ();
16320 /* The GNU C library defines this for functions which it implements
16321 to always fail with ENOSYS. Some functions are actually named
16322 something starting with __ and the normal name is an alias. */
16323 #if defined __stub_getloadavg || defined __stub___getloadavg
16330 return getloadavg ();
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16353 ac_cv_func_getloadavg=yes
16355 echo "$as_me: failed program was
:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_cv_func_getloadavg=no
16361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16362 conftest$ac_exeext conftest.$ac_ext
16364 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16365 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16366 if test $ac_cv_func_getloadavg = yes; then
16371 ) && ac_have_func=yes
16373 # On HPUX9, an unprivileged user can get load averages through this function.
16375 for ac_func in pstat_getdynamic
16377 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16378 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16379 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16380 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached
) $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define $ac_func innocuous_$ac_func
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16399 # include <limits.h>
16401 # include <assert.h>
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined __stub_$ac_func || defined __stub___$ac_func
16423 return $ac_func ();
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 eval "$as_ac_var=yes"
16448 echo "$as_me: failed program was
:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 eval "$as_ac_var=no
"
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16457 ac_res=`eval echo '${'$as_ac_var'}'`
16458 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16469 # Solaris has libkstat which does not require root.
16471 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16472 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16473 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16474 echo $ECHO_N "(cached
) $ECHO_C" >&6
16476 ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-lkstat $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16491 char kstat_open ();
16495 return kstat_open ();
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 ac_cv_lib_kstat_kstat_open=yes
16520 echo "$as_me: failed program was
:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 ac_cv_lib_kstat_kstat_open=no
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16528 LIBS=$ac_check_lib_save_LIBS
16530 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16531 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16532 if test $ac_cv_lib_kstat_kstat_open = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_LIBKSTAT 1
16537 LIBS="-lkstat $LIBS"
16541 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16543 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16544 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16545 # to get the right answer into the cache.
16546 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16547 if test $ac_have_func = no; then
16548 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16549 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16550 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16551 echo $ECHO_N "(cached
) $ECHO_C" >&6
16553 ac_check_lib_save_LIBS=$LIBS
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16572 return elf_begin ();
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_link") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16590 (exit $ac_status); } && {
16591 test -z "$ac_c_werror_flag" ||
16592 test ! -s conftest.err
16593 } && test -s conftest$ac_exeext &&
16594 $as_test_x conftest$ac_exeext; then
16595 ac_cv_lib_elf_elf_begin=yes
16597 echo "$as_me: failed program was
:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_cv_lib_elf_elf_begin=no
16603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16607 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16608 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16609 if test $ac_cv_lib_elf_elf_begin = yes; then
16614 if test $ac_have_func = no; then
16615 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16616 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16617 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16618 echo $ECHO_N "(cached
) $ECHO_C" >&6
16620 ac_check_lib_save_LIBS=$LIBS
16622 cat >conftest.$ac_ext <<_ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16639 return kvm_open ();
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (ac_try="$ac_link"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_link") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext &&
16661 $as_test_x conftest$ac_exeext; then
16662 ac_cv_lib_kvm_kvm_open=yes
16664 echo "$as_me: failed program was
:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ac_cv_lib_kvm_kvm_open=no
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16674 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16675 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16676 if test $ac_cv_lib_kvm_kvm_open = yes; then
16680 # Check for the 4.4BSD definition of getloadavg.
16681 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16682 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16683 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16684 echo $ECHO_N "(cached
) $ECHO_C" >&6
16686 ac_check_lib_save_LIBS=$LIBS
16687 LIBS="-lutil $LIBS"
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16695 /* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16701 char getloadavg ();
16705 return getloadavg ();
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (ac_try="$ac_link"
16712 case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_link") 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest$ac_exeext &&
16727 $as_test_x conftest$ac_exeext; then
16728 ac_cv_lib_util_getloadavg=yes
16730 echo "$as_me: failed program was
:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_cv_lib_util_getloadavg=no
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16740 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16741 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16742 if test $ac_cv_lib_util_getloadavg = yes; then
16743 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16748 if test $ac_have_func = no; then
16749 # There is a commonly available library for RS/6000 AIX.
16750 # Since it is not a standard part of AIX, it might be installed locally.
16751 ac_getloadavg_LIBS=$LIBS
16752 LIBS="-L/usr
/local
/lib
$LIBS"
16753 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16754 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16755 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16756 echo $ECHO_N "(cached
) $ECHO_C" >&6
16758 ac_check_lib_save_LIBS=$LIBS
16759 LIBS="-lgetloadavg $LIBS"
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16773 char getloadavg ();
16777 return getloadavg ();
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16791 grep -v '^ *+' conftest.er1 >conftest.err
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 ac_cv_lib_getloadavg_getloadavg=yes
16802 echo "$as_me: failed program was
:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_cv_lib_getloadavg_getloadavg=no
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16812 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16814 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16815 LIBS="-lgetloadavg $LIBS"
16817 LIBS=$ac_getloadavg_LIBS
16822 # Make sure it is really in the library, if we think we found it,
16823 # otherwise set up the replacement function.
16825 for ac_func in getloadavg
16827 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16828 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16829 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16830 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16831 echo $ECHO_N "(cached
) $ECHO_C" >&6
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841 #define $ac_func innocuous_$ac_func
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char $ac_func (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16849 # include <limits.h>
16851 # include <assert.h>
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16863 /* The GNU C library defines this for functions which it implements
16864 to always fail with ENOSYS. Some functions are actually named
16865 something starting with __ and the normal name is an alias. */
16866 #if defined __stub_$ac_func || defined __stub___$ac_func
16873 return $ac_func ();
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16887 grep -v '^ *+' conftest.er1 >conftest.err
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext &&
16895 $as_test_x conftest$ac_exeext; then
16896 eval "$as_ac_var=yes"
16898 echo "$as_me: failed program was
:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 eval "$as_ac_var=no
"
16904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16905 conftest$ac_exeext conftest.$ac_ext
16907 ac_res=`eval echo '${'$as_ac_var'}'`
16908 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16909 echo "${ECHO_T}$ac_res" >&6; }
16910 if test `eval echo '${'$as_ac_var'}'` = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16916 case " $LIBOBJS " in
16917 *" getloadavg.
$ac_objext "* ) ;;
16918 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16923 cat >>confdefs.h <<\_ACEOF
16924 #define C_GETLOADAVG 1
16927 # Figure out what our getloadavg.c needs.
16929 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16930 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16931 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16932 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16933 echo $ECHO_N "(cached
) $ECHO_C" >&6
16935 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16936 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16938 # Is the header compilable?
16939 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16940 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 $ac_includes_default
16948 #include <sys/dg_sys_info.h>
16950 rm -f conftest.$ac_objext
16951 if { (ac_try="$ac_compile"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_compile") 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest.$ac_objext; then
16967 ac_header_compiler=yes
16969 echo "$as_me: failed program was
:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_header_compiler=no
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16977 echo "${ECHO_T}$ac_header_compiler" >&6; }
16979 # Is the header present?
16980 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16981 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <sys/dg_sys_info.h>
16990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16998 grep -v '^ *+' conftest.er1 >conftest.err
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17002 (exit $ac_status); } >/dev/null && {
17003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17006 ac_header_preproc=yes
17008 echo "$as_me: failed program was
:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17022 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17024 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17025 ac_header_preproc=yes
17028 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17029 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17030 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17031 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17032 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17033 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17034 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17035 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17037 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17038 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17039 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17043 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17044 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17045 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17046 echo $ECHO_N "(cached
) $ECHO_C" >&6
17048 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17050 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17051 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17054 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17057 cat >>confdefs.h <<\_ACEOF
17062 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17063 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17064 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17065 echo $ECHO_N "(cached
) $ECHO_C" >&6
17067 ac_check_lib_save_LIBS=$LIBS
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17082 char dg_sys_info ();
17086 return dg_sys_info ();
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest$ac_exeext &&
17108 $as_test_x conftest$ac_exeext; then
17109 ac_cv_lib_dgc_dg_sys_info=yes
17111 echo "$as_me: failed program was
:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_cv_lib_dgc_dg_sys_info=no
17117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS=$ac_check_lib_save_LIBS
17121 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17122 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17123 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17124 cat >>confdefs.h <<_ACEOF
17125 #define HAVE_LIBDGC 1
17136 if test "${ac_cv_header_locale_h+set}" = set; then
17137 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17138 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17139 if test "${ac_cv_header_locale_h+set}" = set; then
17140 echo $ECHO_N "(cached
) $ECHO_C" >&6
17142 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17143 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17145 # Is the header compilable?
17146 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17147 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 $ac_includes_default
17155 #include <locale.h>
17157 rm -f conftest.$ac_objext
17158 if { (ac_try="$ac_compile"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_compile") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest.$ac_objext; then
17174 ac_header_compiler=yes
17176 echo "$as_me: failed program was
:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ac_header_compiler=no
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17184 echo "${ECHO_T}$ac_header_compiler" >&6; }
17186 # Is the header present?
17187 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17188 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <locale.h>
17197 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17209 (exit $ac_status); } >/dev/null && {
17210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17213 ac_header_preproc=yes
17215 echo "$as_me: failed program was
:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_header_preproc=no
17221 rm -f conftest.err conftest.$ac_ext
17222 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17223 echo "${ECHO_T}$ac_header_preproc" >&6; }
17225 # So? What about this header?
17226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17228 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17229 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17230 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17231 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17232 ac_header_preproc=yes
17235 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17236 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17237 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17238 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17239 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17240 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17241 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17242 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17243 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17244 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17245 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17246 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17250 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17251 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17252 if test "${ac_cv_header_locale_h+set}" = set; then
17253 echo $ECHO_N "(cached
) $ECHO_C" >&6
17255 ac_cv_header_locale_h=$ac_header_preproc
17257 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17258 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17264 for ac_func in setlocale
17266 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17267 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17268 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17269 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17270 echo $ECHO_N "(cached
) $ECHO_C" >&6
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17280 #define $ac_func innocuous_$ac_func
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17288 # include <limits.h>
17290 # include <assert.h>
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined __stub_$ac_func || defined __stub___$ac_func
17312 return $ac_func ();
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_link") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17330 (exit $ac_status); } && {
17331 test -z "$ac_c_werror_flag" ||
17332 test ! -s conftest.err
17333 } && test -s conftest$ac_exeext &&
17334 $as_test_x conftest$ac_exeext; then
17335 eval "$as_ac_var=yes"
17337 echo "$as_me: failed program was
:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 eval "$as_ac_var=no
"
17343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17344 conftest$ac_exeext conftest.$ac_ext
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17358 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17359 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17360 # Irix 4.0.5F has the header but not the library.
17361 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17364 cat >>confdefs.h <<\_ACEOF
17370 if test $ac_have_func = no; then
17371 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17372 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17373 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17374 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17375 echo $ECHO_N "(cached
) $ECHO_C" >&6
17377 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17378 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17380 # Is the header compilable?
17381 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17382 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17390 #include <inq_stats/cpustats.h>
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_compile") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest.$ac_objext; then
17409 ac_header_compiler=yes
17411 echo "$as_me: failed program was
:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_header_compiler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17423 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <inq_stats/cpustats.h>
17432 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17440 grep -v '^ *+' conftest.er1 >conftest.err
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17444 (exit $ac_status); } >/dev/null && {
17445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17448 ac_header_preproc=yes
17450 echo "$as_me: failed program was
:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17453 ac_header_preproc=no
17456 rm -f conftest.err conftest.$ac_ext
17457 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17458 echo "${ECHO_T}$ac_header_preproc" >&6; }
17460 # So? What about this header?
17461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17463 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17464 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17465 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17466 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17467 ac_header_preproc=yes
17470 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17471 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17472 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17473 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17474 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17475 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17476 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17477 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17478 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17479 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17480 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17481 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17485 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17486 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17487 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17488 echo $ECHO_N "(cached
) $ECHO_C" >&6
17490 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17492 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17496 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17499 cat >>confdefs.h <<\_ACEOF
17504 cat >>confdefs.h <<\_ACEOF
17513 if test $ac_have_func = no; then
17514 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17515 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17516 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17517 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17518 echo $ECHO_N "(cached
) $ECHO_C" >&6
17520 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17521 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17523 # Is the header compilable?
17524 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17525 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17526 cat >conftest.$ac_ext <<_ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17533 #include <sys/cpustats.h>
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_compile") 2>conftest.er1
17544 grep -v '^ *+' conftest.er1 >conftest.err
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest.$ac_objext; then
17552 ac_header_compiler=yes
17554 echo "$as_me: failed program was
:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ac_header_compiler=no
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6; }
17564 # Is the header present?
17565 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17566 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17567 cat >conftest.$ac_ext <<_ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 #include <sys/cpustats.h>
17575 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17583 grep -v '^ *+' conftest.er1 >conftest.err
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17587 (exit $ac_status); } >/dev/null && {
17588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17589 test ! -s conftest.err
17591 ac_header_preproc=yes
17593 echo "$as_me: failed program was
:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 ac_header_preproc=no
17599 rm -f conftest.err conftest.$ac_ext
17600 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17601 echo "${ECHO_T}$ac_header_preproc" >&6; }
17603 # So? What about this header?
17604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17606 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17607 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17608 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17609 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17610 ac_header_preproc=yes
17613 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17614 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17615 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17616 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17617 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17618 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17619 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17620 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17621 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17622 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17623 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17624 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17628 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17629 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17630 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17631 echo $ECHO_N "(cached
) $ECHO_C" >&6
17633 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17635 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17636 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17639 if test $ac_cv_header_sys_cpustats_h = yes; then
17640 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17649 if test $ac_have_func = no; then
17651 for ac_header in mach/mach.h
17653 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17654 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17655 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17656 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached
) $ECHO_C" >&6
17660 ac_res=`eval echo '${'$as_ac_Header'}'`
17661 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17662 echo "${ECHO_T}$ac_res" >&6; }
17664 # Is the header compilable?
17665 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17666 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17667 cat >conftest.$ac_ext <<_ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17674 #include <$ac_header>
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_compile") 2>conftest.er1
17685 grep -v '^ *+' conftest.er1 >conftest.err
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17689 (exit $ac_status); } && {
17690 test -z "$ac_c_werror_flag" ||
17691 test ! -s conftest.err
17692 } && test -s conftest.$ac_objext; then
17693 ac_header_compiler=yes
17695 echo "$as_me: failed program was
:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_header_compiler=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17703 echo "${ECHO_T}$ac_header_compiler" >&6; }
17705 # Is the header present?
17706 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17707 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <$ac_header>
17716 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17728 (exit $ac_status); } >/dev/null && {
17729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17732 ac_header_preproc=yes
17734 echo "$as_me: failed program was
:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_header_preproc=no
17740 rm -f conftest.err conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17742 echo "${ECHO_T}$ac_header_preproc" >&6; }
17744 # So? What about this header?
17745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17747 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17748 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17749 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17751 ac_header_preproc=yes
17754 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17755 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17756 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17757 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17758 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17759 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17760 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17761 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17762 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17764 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17765 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17769 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17770 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17772 echo $ECHO_N "(cached
) $ECHO_C" >&6
17774 eval "$as_ac_Header=\
$ac_header_preproc"
17776 ac_res=`eval echo '${'$as_ac_Header'}'`
17777 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17782 cat >>confdefs.h <<_ACEOF
17783 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17793 for ac_header in nlist.h
17795 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17796 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17797 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17798 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17799 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17800 echo $ECHO_N "(cached
) $ECHO_C" >&6
17802 ac_res=`eval echo '${'$as_ac_Header'}'`
17803 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17804 echo "${ECHO_T}$ac_res" >&6; }
17806 # Is the header compilable?
17807 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17808 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17809 cat >conftest.$ac_ext <<_ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 $ac_includes_default
17816 #include <$ac_header>
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_compile") 2>conftest.er1
17827 grep -v '^ *+' conftest.er1 >conftest.err
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17831 (exit $ac_status); } && {
17832 test -z "$ac_c_werror_flag" ||
17833 test ! -s conftest.err
17834 } && test -s conftest.$ac_objext; then
17835 ac_header_compiler=yes
17837 echo "$as_me: failed program was
:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_header_compiler=no
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17845 echo "${ECHO_T}$ac_header_compiler" >&6; }
17847 # Is the header present?
17848 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17849 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include <$ac_header>
17858 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17866 grep -v '^ *+' conftest.er1 >conftest.err
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17870 (exit $ac_status); } >/dev/null && {
17871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17874 ac_header_preproc=yes
17876 echo "$as_me: failed program was
:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_header_preproc=no
17882 rm -f conftest.err conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17884 echo "${ECHO_T}$ac_header_preproc" >&6; }
17886 # So? What about this header?
17887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17889 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17890 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17891 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17893 ac_header_preproc=yes
17896 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17897 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17898 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17899 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17900 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17901 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17902 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17903 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17904 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17906 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17907 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17911 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17912 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17913 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17914 echo $ECHO_N "(cached
) $ECHO_C" >&6
17916 eval "$as_ac_Header=\
$ac_header_preproc"
17918 ac_res=`eval echo '${'$as_ac_Header'}'`
17919 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17920 echo "${ECHO_T}$ac_res" >&6; }
17923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17927 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17928 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17929 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17930 echo $ECHO_N "(cached
) $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. */
17943 static struct nlist ac_aggr;
17944 if (ac_aggr.n_un.n_name)
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_cv_member_struct_nlist_n_un_n_name=yes
17969 echo "$as_me: failed program was
:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17983 static struct nlist ac_aggr;
17984 if (sizeof ac_aggr.n_un.n_name)
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_compile") 2>conftest.er1
17999 grep -v '^ *+' conftest.er1 >conftest.err
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18003 (exit $ac_status); } && {
18004 test -z "$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 } && test -s conftest.$ac_objext; then
18007 ac_cv_member_struct_nlist_n_un_n_name=yes
18009 echo "$as_me: failed program was
:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_cv_member_struct_nlist_n_un_n_name=no
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18021 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18022 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18024 cat >>confdefs.h <<_ACEOF
18025 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18029 cat >>confdefs.h <<\_ACEOF
18030 #define NLIST_NAME_UNION 1
18044 # Some definitions of getloadavg require that the program be installed setgid.
18045 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18046 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18047 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18048 echo $ECHO_N "(cached
) $ECHO_C" >&6
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18057 #ifdef LDAV_PRIVILEGED
18058 Yowza Am I SETGID yet
18061 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18062 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18063 ac_cv_func_getloadavg_setgid=yes
18065 ac_cv_func_getloadavg_setgid=no
18070 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18071 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18072 if test $ac_cv_func_getloadavg_setgid = yes; then
18075 cat >>confdefs.h <<\_ACEOF
18076 #define GETLOADAVG_PRIVILEGED 1
18083 if test $ac_cv_func_getloadavg_setgid = yes; then
18084 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18085 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18086 if test "${ac_cv_group_kmem+set}" = set; then
18087 echo $ECHO_N "(cached
) $ECHO_C" >&6
18089 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18090 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18091 # If we got an error (system does not support symlinks), try without -L.
18092 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18093 ac_cv_group_kmem=`echo $ac_ls_output \
18094 | sed -ne 's/[ ][ ]*/ /g;
18095 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18099 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18100 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18101 KMEM_GROUP=$ac_cv_group_kmem
18103 if test "x
$ac_save_LIBS" = x; then
18104 GETLOADAVG_LIBS=$LIBS
18106 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18112 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18113 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18114 if test "${ac_cv_sys_largefile_source+set}" = set; then
18115 echo $ECHO_N "(cached
) $ECHO_C" >&6
18118 cat >conftest.$ac_ext <<_ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <sys/types.h> /* for off_t */
18129 int (*fp) (FILE *, off_t, int) = fseeko;
18130 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_link") 2>conftest.er1
18144 grep -v '^ *+' conftest.er1 >conftest.err
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18148 (exit $ac_status); } && {
18149 test -z "$ac_c_werror_flag" ||
18150 test ! -s conftest.err
18151 } && test -s conftest$ac_exeext &&
18152 $as_test_x conftest$ac_exeext; then
18153 ac_cv_sys_largefile_source=no; break
18155 echo "$as_me: failed program was
:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162 conftest$ac_exeext conftest.$ac_ext
18163 cat >conftest.$ac_ext <<_ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169 #define _LARGEFILE_SOURCE 1
18170 #include <sys/types.h> /* for off_t */
18175 int (*fp) (FILE *, off_t, int) = fseeko;
18176 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_link") 2>conftest.er1
18190 grep -v '^ *+' conftest.er1 >conftest.err
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18194 (exit $ac_status); } && {
18195 test -z "$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18197 } && test -s conftest$ac_exeext &&
18198 $as_test_x conftest$ac_exeext; then
18199 ac_cv_sys_largefile_source=1; break
18201 echo "$as_me: failed program was
:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18208 conftest$ac_exeext conftest.$ac_ext
18209 ac_cv_sys_largefile_source=unknown
18213 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18214 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18215 case $ac_cv_sys_largefile_source in #(
18218 cat >>confdefs.h <<_ACEOF
18219 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18225 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18226 # in glibc 2.1.3, but that breaks too many other things.
18227 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18228 if test $ac_cv_sys_largefile_source != unknown; then
18230 cat >>confdefs.h <<\_ACEOF
18231 #define HAVE_FSEEKO 1
18237 # Configure getopt.
18238 # getopt.m4 serial 10
18240 # The getopt module assume you want GNU getopt, with getopt_long etc,
18241 # rather than vanilla POSIX getopt. This means your your code should
18242 # always include <getopt.h> for the getopt prototypes.
18254 # Prerequisites of lib/getopt*.
18261 for ac_header in getopt.h
18263 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18265 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18266 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18267 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18268 echo $ECHO_N "(cached
) $ECHO_C" >&6
18270 ac_res=`eval echo '${'$as_ac_Header'}'`
18271 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18274 # Is the header compilable?
18275 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18276 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 $ac_includes_default
18284 #include <$ac_header>
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18299 (exit $ac_status); } && {
18300 test -z "$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 } && test -s conftest.$ac_objext; then
18303 ac_header_compiler=yes
18305 echo "$as_me: failed program was
:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_header_compiler=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18313 echo "${ECHO_T}$ac_header_compiler" >&6; }
18315 # Is the header present?
18316 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18317 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18318 cat >conftest.$ac_ext <<_ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 #include <$ac_header>
18326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18334 grep -v '^ *+' conftest.er1 >conftest.err
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18338 (exit $ac_status); } >/dev/null && {
18339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18342 ac_header_preproc=yes
18344 echo "$as_me: failed program was
:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_header_preproc=no
18350 rm -f conftest.err conftest.$ac_ext
18351 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18352 echo "${ECHO_T}$ac_header_preproc" >&6; }
18354 # So? What about this header?
18355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18357 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18358 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18361 ac_header_preproc=yes
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18365 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18367 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18369 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18370 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18371 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18372 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18374 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18375 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18382 echo $ECHO_N "(cached
) $ECHO_C" >&6
18384 eval "$as_ac_Header=\
$ac_header_preproc"
18386 ac_res=`eval echo '${'$as_ac_Header'}'`
18387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18388 echo "${ECHO_T}$ac_res" >&6; }
18391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18392 cat >>confdefs.h <<_ACEOF
18393 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18402 if test -z "$GETOPT_H"; then
18404 for ac_func in getopt_long_only
18406 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18407 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18408 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18409 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18410 echo $ECHO_N "(cached
) $ECHO_C" >&6
18412 cat >conftest.$ac_ext <<_ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18420 #define $ac_func innocuous_$ac_func
18422 /* System header to define __stub macros and hopefully few prototypes,
18423 which can conflict with char $ac_func (); below.
18424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18425 <limits.h> exists even on freestanding compilers. */
18428 # include <limits.h>
18430 # include <assert.h>
18435 /* Override any GCC internal prototype to avoid an error.
18436 Use char because int might match the return type of a GCC
18437 builtin and then its argument prototype would still apply. */
18442 /* The GNU C library defines this for functions which it implements
18443 to always fail with ENOSYS. Some functions are actually named
18444 something starting with __ and the normal name is an alias. */
18445 #if defined __stub_$ac_func || defined __stub___$ac_func
18452 return $ac_func ();
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (ac_try="$ac_link"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_link") 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18470 (exit $ac_status); } && {
18471 test -z "$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18473 } && test -s conftest$ac_exeext &&
18474 $as_test_x conftest$ac_exeext; then
18475 eval "$as_ac_var=yes"
18477 echo "$as_me: failed program was
:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 eval "$as_ac_var=no
"
18483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18484 conftest$ac_exeext conftest.$ac_ext
18486 ac_res=`eval echo '${'$as_ac_var'}'`
18487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18488 echo "${ECHO_T}$ac_res" >&6; }
18489 if test `eval echo '${'$as_ac_var'}'` = yes; then
18490 cat >>confdefs.h <<_ACEOF
18491 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18501 if test -z "$GETOPT_H"; then
18502 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18503 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18504 if test "${ac_cv_have_decl_optreset+set}" = set; then
18505 echo $ECHO_N "(cached
) $ECHO_C" >&6
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 #include <getopt.h>
18526 rm -f conftest.$ac_objext
18527 if { (ac_try="$ac_compile"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.$ac_objext; then
18543 ac_cv_have_decl_optreset=yes
18545 echo "$as_me: failed program was
:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 ac_cv_have_decl_optreset=no
18551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18554 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18555 if test $ac_cv_have_decl_optreset = yes; then
18561 if test -z "$GETOPT_H"; then
18562 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18563 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18564 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18565 echo $ECHO_N "(cached
) $ECHO_C" >&6
18567 if test "$cross_compiling" = yes; then
18568 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18569 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18570 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18571 echo $ECHO_N "(cached
) $ECHO_C" >&6
18573 cat >conftest.$ac_ext <<_ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 #include <getopt.h>
18584 #ifndef getopt_clip
18585 (void) getopt_clip;
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_compile") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest.$ac_objext; then
18609 ac_cv_have_decl_getopt_clip=yes
18611 echo "$as_me: failed program was
:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_have_decl_getopt_clip=no
18617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18619 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18620 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18621 if test $ac_cv_have_decl_getopt_clip = yes; then
18622 gl_cv_func_gnu_getopt=no
18624 gl_cv_func_gnu_getopt=yes
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #include <getopt.h>
18640 myargv[0] = "conftest
";
18643 return getopt (2, myargv, "+a
") != '?';
18649 rm -f conftest$ac_exeext
18650 if { (ac_try="$ac_link"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_link") 2>&5
18658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18660 { (case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_try") 2>&5
18667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 gl_cv_func_gnu_getopt=yes
18671 echo "$as_me: program exited with status
$ac_status" >&5
18672 echo "$as_me: failed program was
:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ( exit $ac_status )
18676 gl_cv_func_gnu_getopt=no
18678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18683 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18684 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18685 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18692 if test -n "$GETOPT_H"; then
18697 cat >>confdefs.h <<\_ACEOF
18698 #define __GETOPT_PREFIX rpl_
18704 GETOPTOBJS='getopt.o getopt1.o'
18711 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18712 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18713 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18714 echo $ECHO_N "(cached
) $ECHO_C" >&6
18716 # Use it with a single arg.
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 $ac_includes_default
18732 rm -f conftest.$ac_objext
18733 if { (ac_try="$ac_compile"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_compile") 2>conftest.er1
18741 grep -v '^ *+' conftest.er1 >conftest.err
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18745 (exit $ac_status); } && {
18746 test -z "$ac_c_werror_flag" ||
18747 test ! -s conftest.err
18748 } && test -s conftest.$ac_objext; then
18749 ac_cv_func_getpgrp_void=no
18751 echo "$as_me: failed program was
:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 ac_cv_func_getpgrp_void=yes
18757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18760 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18761 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18762 if test $ac_cv_func_getpgrp_void = yes; then
18764 cat >>confdefs.h <<\_ACEOF
18765 #define GETPGRP_VOID 1
18772 for ac_func in strftime
18774 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18775 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18776 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18777 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18778 echo $ECHO_N "(cached
) $ECHO_C" >&6
18780 cat >conftest.$ac_ext <<_ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18788 #define $ac_func innocuous_$ac_func
18790 /* System header to define __stub macros and hopefully few prototypes,
18791 which can conflict with char $ac_func (); below.
18792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18793 <limits.h> exists even on freestanding compilers. */
18796 # include <limits.h>
18798 # include <assert.h>
18803 /* Override any GCC internal prototype to avoid an error.
18804 Use char because int might match the return type of a GCC
18805 builtin and then its argument prototype would still apply. */
18810 /* The GNU C library defines this for functions which it implements
18811 to always fail with ENOSYS. Some functions are actually named
18812 something starting with __ and the normal name is an alias. */
18813 #if defined __stub_$ac_func || defined __stub___$ac_func
18820 return $ac_func ();
18825 rm -f conftest.$ac_objext conftest$ac_exeext
18826 if { (ac_try="$ac_link"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_link") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1 >conftest.err
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest$ac_exeext &&
18842 $as_test_x conftest$ac_exeext; then
18843 eval "$as_ac_var=yes"
18845 echo "$as_me: failed program was
:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 eval "$as_ac_var=no
"
18851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18852 conftest$ac_exeext conftest.$ac_ext
18854 ac_res=`eval echo '${'$as_ac_var'}'`
18855 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18856 echo "${ECHO_T}$ac_res" >&6; }
18857 if test `eval echo '${'$as_ac_var'}'` = yes; then
18858 cat >>confdefs.h <<_ACEOF
18859 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18863 # strftime is in -lintl on SCO UNIX.
18864 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18865 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18866 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18867 echo $ECHO_N "(cached
) $ECHO_C" >&6
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lintl $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18888 return strftime ();
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 ac_cv_lib_intl_strftime=yes
18913 echo "$as_me: failed program was
:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_cv_lib_intl_strftime=no
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18923 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18924 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18925 if test $ac_cv_lib_intl_strftime = yes; then
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE_STRFTIME 1
18930 LIBS="-lintl $LIBS"
18939 for ac_func in grantpt
18941 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18942 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18943 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18944 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18945 echo $ECHO_N "(cached
) $ECHO_C" >&6
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18955 #define $ac_func innocuous_$ac_func
18957 /* System header to define __stub macros and hopefully few prototypes,
18958 which can conflict with char $ac_func (); below.
18959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18960 <limits.h> exists even on freestanding compilers. */
18963 # include <limits.h>
18965 # include <assert.h>
18970 /* Override any GCC internal prototype to avoid an error.
18971 Use char because int might match the return type of a GCC
18972 builtin and then its argument prototype would still apply. */
18977 /* The GNU C library defines this for functions which it implements
18978 to always fail with ENOSYS. Some functions are actually named
18979 something starting with __ and the normal name is an alias. */
18980 #if defined __stub_$ac_func || defined __stub___$ac_func
18987 return $ac_func ();
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19001 grep -v '^ *+' conftest.er1 >conftest.err
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest$ac_exeext &&
19009 $as_test_x conftest$ac_exeext; then
19010 eval "$as_ac_var=yes"
19012 echo "$as_me: failed program was
:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 eval "$as_ac_var=no
"
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19021 ac_res=`eval echo '${'$as_ac_var'}'`
19022 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19023 echo "${ECHO_T}$ac_res" >&6; }
19024 if test `eval echo '${'$as_ac_var'}'` = yes; then
19025 cat >>confdefs.h <<_ACEOF
19026 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19033 # PTY-related GNU extensions.
19035 for ac_func in getpt
19037 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19038 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19039 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19040 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19041 echo $ECHO_N "(cached
) $ECHO_C" >&6
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19051 #define $ac_func innocuous_$ac_func
19053 /* System header to define __stub macros and hopefully few prototypes,
19054 which can conflict with char $ac_func (); below.
19055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19056 <limits.h> exists even on freestanding compilers. */
19059 # include <limits.h>
19061 # include <assert.h>
19066 /* Override any GCC internal prototype to avoid an error.
19067 Use char because int might match the return type of a GCC
19068 builtin and then its argument prototype would still apply. */
19073 /* The GNU C library defines this for functions which it implements
19074 to always fail with ENOSYS. Some functions are actually named
19075 something starting with __ and the normal name is an alias. */
19076 #if defined __stub_$ac_func || defined __stub___$ac_func
19083 return $ac_func ();
19088 rm -f conftest.$ac_objext conftest$ac_exeext
19089 if { (ac_try="$ac_link"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_link") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest$ac_exeext &&
19105 $as_test_x conftest$ac_exeext; then
19106 eval "$as_ac_var=yes"
19108 echo "$as_me: failed program was
:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 eval "$as_ac_var=no
"
19114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19115 conftest$ac_exeext conftest.$ac_ext
19117 ac_res=`eval echo '${'$as_ac_var'}'`
19118 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19119 echo "${ECHO_T}$ac_res" >&6; }
19120 if test `eval echo '${'$as_ac_var'}'` = yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19129 # Check this now, so that we will NOT find the above functions in ncurses.
19130 # That is because we have not set up to link ncurses in lib-src.
19131 # It's better to believe a function is not available
19132 # than to expect to find it in ncurses.
19134 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19135 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19136 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19137 echo $ECHO_N "(cached
) $ECHO_C" >&6
19139 ac_check_lib_save_LIBS=$LIBS
19140 LIBS="-lncurses $LIBS"
19141 cat >conftest.$ac_ext <<_ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19148 /* Override any GCC internal prototype to avoid an error.
19149 Use char because int might match the return type of a GCC
19150 builtin and then its argument prototype would still apply. */
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_link") 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19176 (exit $ac_status); } && {
19177 test -z "$ac_c_werror_flag" ||
19178 test ! -s conftest.err
19179 } && test -s conftest$ac_exeext &&
19180 $as_test_x conftest$ac_exeext; then
19181 ac_cv_lib_ncurses_tparm=yes
19183 echo "$as_me: failed program was
:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_cv_lib_ncurses_tparm=no
19189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19190 conftest$ac_exeext conftest.$ac_ext
19191 LIBS=$ac_check_lib_save_LIBS
19193 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19194 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19195 if test $ac_cv_lib_ncurses_tparm = yes; then
19196 cat >>confdefs.h <<_ACEOF
19197 #define HAVE_LIBNCURSES 1
19200 LIBS="-lncurses $LIBS"
19205 # Do we need the Hesiod library to provide the support routines?
19206 if test "$with_hesiod" = yes ; then
19207 # Don't set $LIBS here -- see comments above.
19209 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19210 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19211 if test "${ac_cv_func_res_send+set}" = set; then
19212 echo $ECHO_N "(cached
) $ECHO_C" >&6
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19222 #define res_send innocuous_res_send
19224 /* System header to define __stub macros and hopefully few prototypes,
19225 which can conflict with char res_send (); below.
19226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19227 <limits.h> exists even on freestanding compilers. */
19230 # include <limits.h>
19232 # include <assert.h>
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19244 /* The GNU C library defines this for functions which it implements
19245 to always fail with ENOSYS. Some functions are actually named
19246 something starting with __ and the normal name is an alias. */
19247 #if defined __stub_res_send || defined __stub___res_send
19254 return res_send ();
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_link") 2>conftest.er1
19268 grep -v '^ *+' conftest.er1 >conftest.err
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19272 (exit $ac_status); } && {
19273 test -z "$ac_c_werror_flag" ||
19274 test ! -s conftest.err
19275 } && test -s conftest$ac_exeext &&
19276 $as_test_x conftest$ac_exeext; then
19277 ac_cv_func_res_send=yes
19279 echo "$as_me: failed program was
:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_cv_func_res_send=no
19285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19286 conftest$ac_exeext conftest.$ac_ext
19288 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19289 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19290 if test $ac_cv_func_res_send = yes; then
19293 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19294 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19295 if test "${ac_cv_func___res_send+set}" = set; then
19296 echo $ECHO_N "(cached
) $ECHO_C" >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19304 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19306 #define __res_send innocuous___res_send
19308 /* System header to define __stub macros and hopefully few prototypes,
19309 which can conflict with char __res_send (); below.
19310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19311 <limits.h> exists even on freestanding compilers. */
19314 # include <limits.h>
19316 # include <assert.h>
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19327 char __res_send ();
19328 /* The GNU C library defines this for functions which it implements
19329 to always fail with ENOSYS. Some functions are actually named
19330 something starting with __ and the normal name is an alias. */
19331 #if defined __stub___res_send || defined __stub_____res_send
19338 return __res_send ();
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (ac_try="$ac_link"
19345 case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_link") 2>conftest.er1
19352 grep -v '^ *+' conftest.er1 >conftest.err
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19356 (exit $ac_status); } && {
19357 test -z "$ac_c_werror_flag" ||
19358 test ! -s conftest.err
19359 } && test -s conftest$ac_exeext &&
19360 $as_test_x conftest$ac_exeext; then
19361 ac_cv_func___res_send=yes
19363 echo "$as_me: failed program was
:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 ac_cv_func___res_send=no
19369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19370 conftest$ac_exeext conftest.$ac_ext
19372 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19373 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19374 if test $ac_cv_func___res_send = yes; then
19377 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19378 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19379 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19380 echo $ECHO_N "(cached
) $ECHO_C" >&6
19382 ac_check_lib_save_LIBS=$LIBS
19383 LIBS="-lresolv $LIBS"
19384 cat >conftest.$ac_ext <<_ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19401 return res_send ();
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19419 (exit $ac_status); } && {
19420 test -z "$ac_c_werror_flag" ||
19421 test ! -s conftest.err
19422 } && test -s conftest$ac_exeext &&
19423 $as_test_x conftest$ac_exeext; then
19424 ac_cv_lib_resolv_res_send=yes
19426 echo "$as_me: failed program was
:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_cv_lib_resolv_res_send=no
19432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19433 conftest$ac_exeext conftest.$ac_ext
19434 LIBS=$ac_check_lib_save_LIBS
19436 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19437 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19438 if test $ac_cv_lib_resolv_res_send = yes; then
19441 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19442 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19443 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19444 echo $ECHO_N "(cached
) $ECHO_C" >&6
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lresolv $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19461 char __res_send ();
19465 return __res_send ();
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest$ac_exeext &&
19487 $as_test_x conftest$ac_exeext; then
19488 ac_cv_lib_resolv___res_send=yes
19490 echo "$as_me: failed program was
:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 ac_cv_lib_resolv___res_send=no
19496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19501 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19502 if test $ac_cv_lib_resolv___res_send = yes; then
19512 if test "$resolv" = yes ; then
19515 cat >>confdefs.h <<\_ACEOF
19516 #define HAVE_LIBRESOLV 1
19522 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19523 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19524 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19525 echo $ECHO_N "(cached
) $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19535 #define hes_getmailhost innocuous_hes_getmailhost
19537 /* System header to define __stub macros and hopefully few prototypes,
19538 which can conflict with char hes_getmailhost (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19543 # include <limits.h>
19545 # include <assert.h>
19548 #undef hes_getmailhost
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19556 char hes_getmailhost ();
19557 /* The GNU C library defines this for functions which it implements
19558 to always fail with ENOSYS. Some functions are actually named
19559 something starting with __ and the normal name is an alias. */
19560 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19567 return hes_getmailhost ();
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_link") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest$ac_exeext &&
19589 $as_test_x conftest$ac_exeext; then
19590 ac_cv_func_hes_getmailhost=yes
19592 echo "$as_me: failed program was
:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_func_hes_getmailhost=no
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599 conftest$ac_exeext conftest.$ac_ext
19601 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19602 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19603 if test $ac_cv_func_hes_getmailhost = yes; then
19606 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19607 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19608 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19609 echo $ECHO_N "(cached
) $ECHO_C" >&6
19611 ac_check_lib_save_LIBS=$LIBS
19612 LIBS="-lhesiod $RESOLVLIB $LIBS"
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19626 char hes_getmailhost ();
19630 return hes_getmailhost ();
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (ac_try="$ac_link"
19637 case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_link") 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest$ac_exeext &&
19652 $as_test_x conftest$ac_exeext; then
19653 ac_cv_lib_hesiod_hes_getmailhost=yes
19655 echo "$as_me: failed program was
:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_lib_hesiod_hes_getmailhost=no
19661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19666 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19667 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE_LIBHESIOD 1
19681 # These tell us which Kerberos-related libraries to use.
19682 if test "${with_kerberos+set}" = set; then
19684 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19685 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19686 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19687 echo $ECHO_N "(cached
) $ECHO_C" >&6
19689 ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-lcom_err $LIBS"
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest$ac_exeext &&
19730 $as_test_x conftest$ac_exeext; then
19731 ac_cv_lib_com_err_com_err=yes
19733 echo "$as_me: failed program was
:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_cv_lib_com_err_com_err=no
19739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19744 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19745 if test $ac_cv_lib_com_err_com_err = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_LIBCOM_ERR 1
19750 LIBS="-lcom_err $LIBS"
19755 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19756 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19757 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19758 echo $ECHO_N "(cached
) $ECHO_C" >&6
19760 ac_check_lib_save_LIBS=$LIBS
19761 LIBS="-lk5crypto $LIBS"
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19769 /* Override any GCC internal prototype to avoid an error.
19770 Use char because int might match the return type of a GCC
19771 builtin and then its argument prototype would still apply. */
19775 char mit_des_cbc_encrypt ();
19779 return mit_des_cbc_encrypt ();
19784 rm -f conftest.$ac_objext conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_link") 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19797 (exit $ac_status); } && {
19798 test -z "$ac_c_werror_flag" ||
19799 test ! -s conftest.err
19800 } && test -s conftest$ac_exeext &&
19801 $as_test_x conftest$ac_exeext; then
19802 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19804 echo "$as_me: failed program was
:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19811 conftest$ac_exeext conftest.$ac_ext
19812 LIBS=$ac_check_lib_save_LIBS
19814 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19815 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19816 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19817 cat >>confdefs.h <<_ACEOF
19818 #define HAVE_LIBK5CRYPTO 1
19821 LIBS="-lk5crypto $LIBS"
19826 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19827 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19828 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19829 echo $ECHO_N "(cached
) $ECHO_C" >&6
19831 ac_check_lib_save_LIBS=$LIBS
19832 LIBS="-lcrypto $LIBS"
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19840 /* Override any GCC internal prototype to avoid an error.
19841 Use char because int might match the return type of a GCC
19842 builtin and then its argument prototype would still apply. */
19846 char mit_des_cbc_encrypt ();
19850 return mit_des_cbc_encrypt ();
19855 rm -f conftest.$ac_objext conftest$ac_exeext
19856 if { (ac_try="$ac_link"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_link") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest$ac_exeext &&
19872 $as_test_x conftest$ac_exeext; then
19873 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19875 echo "$as_me: failed program was
:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19882 conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_check_lib_save_LIBS
19885 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19886 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19887 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19888 cat >>confdefs.h <<_ACEOF
19889 #define HAVE_LIBCRYPTO 1
19892 LIBS="-lcrypto $LIBS"
19897 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19898 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19899 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19900 echo $ECHO_N "(cached
) $ECHO_C" >&6
19902 ac_check_lib_save_LIBS=$LIBS
19903 LIBS="-lkrb5 $LIBS"
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19917 char krb5_init_context ();
19921 return krb5_init_context ();
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_link") 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest$ac_exeext &&
19943 $as_test_x conftest$ac_exeext; then
19944 ac_cv_lib_krb5_krb5_init_context=yes
19946 echo "$as_me: failed program was
:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_cv_lib_krb5_krb5_init_context=no
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LIBS=$ac_check_lib_save_LIBS
19956 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19957 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19958 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define HAVE_LIBKRB5 1
19963 LIBS="-lkrb5 $LIBS"
19967 if test "${with_kerberos5+set}" != set; then
19969 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19970 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19971 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19972 echo $ECHO_N "(cached
) $ECHO_C" >&6
19974 ac_check_lib_save_LIBS=$LIBS
19975 LIBS="-ldes425 $LIBS"
19976 cat >conftest.$ac_ext <<_ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 /* Override any GCC internal prototype to avoid an error.
19984 Use char because int might match the return type of a GCC
19985 builtin and then its argument prototype would still apply. */
19989 char des_cbc_encrypt ();
19993 return des_cbc_encrypt ();
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (ac_try="$ac_link"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_link") 2>conftest.er1
20007 grep -v '^ *+' conftest.er1 >conftest.err
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest$ac_exeext &&
20015 $as_test_x conftest$ac_exeext; then
20016 ac_cv_lib_des425_des_cbc_encrypt=yes
20018 echo "$as_me: failed program was
:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_lib_des425_des_cbc_encrypt=no
20024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20025 conftest$ac_exeext conftest.$ac_ext
20026 LIBS=$ac_check_lib_save_LIBS
20028 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20029 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20030 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE_LIBDES425 1
20035 LIBS="-ldes425 $LIBS"
20039 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20040 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20041 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20042 echo $ECHO_N "(cached
) $ECHO_C" >&6
20044 ac_check_lib_save_LIBS=$LIBS
20046 cat >conftest.$ac_ext <<_ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20053 /* Override any GCC internal prototype to avoid an error.
20054 Use char because int might match the return type of a GCC
20055 builtin and then its argument prototype would still apply. */
20059 char des_cbc_encrypt ();
20063 return des_cbc_encrypt ();
20068 rm -f conftest.$ac_objext conftest$ac_exeext
20069 if { (ac_try="$ac_link"
20070 case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_link") 2>conftest.er1
20077 grep -v '^ *+' conftest.er1 >conftest.err
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20081 (exit $ac_status); } && {
20082 test -z "$ac_c_werror_flag" ||
20083 test ! -s conftest.err
20084 } && test -s conftest$ac_exeext &&
20085 $as_test_x conftest$ac_exeext; then
20086 ac_cv_lib_des_des_cbc_encrypt=yes
20088 echo "$as_me: failed program was
:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ac_cv_lib_des_des_cbc_encrypt=no
20094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20095 conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20098 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20099 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20100 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_LIBDES 1
20112 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20113 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20114 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20115 echo $ECHO_N "(cached
) $ECHO_C" >&6
20117 ac_check_lib_save_LIBS=$LIBS
20118 LIBS="-lkrb4 $LIBS"
20119 cat >conftest.$ac_ext <<_ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20126 /* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20132 char krb_get_cred ();
20136 return krb_get_cred ();
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (ac_try="$ac_link"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_link") 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest$ac_exeext &&
20158 $as_test_x conftest$ac_exeext; then
20159 ac_cv_lib_krb4_krb_get_cred=yes
20161 echo "$as_me: failed program was
:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_lib_krb4_krb_get_cred=no
20167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20168 conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20171 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20172 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20173 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20174 cat >>confdefs.h <<_ACEOF
20175 #define HAVE_LIBKRB4 1
20178 LIBS="-lkrb4 $LIBS"
20182 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20183 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20184 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20185 echo $ECHO_N "(cached
) $ECHO_C" >&6
20187 ac_check_lib_save_LIBS=$LIBS
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20196 /* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20202 char krb_get_cred ();
20206 return krb_get_cred ();
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (ac_try="$ac_link"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_link") 2>conftest.er1
20220 grep -v '^ *+' conftest.er1 >conftest.err
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20224 (exit $ac_status); } && {
20225 test -z "$ac_c_werror_flag" ||
20226 test ! -s conftest.err
20227 } && test -s conftest$ac_exeext &&
20228 $as_test_x conftest$ac_exeext; then
20229 ac_cv_lib_krb_krb_get_cred=yes
20231 echo "$as_me: failed program was
:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_lib_krb_krb_get_cred=no
20237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20238 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20241 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20242 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20243 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20244 cat >>confdefs.h <<_ACEOF
20245 #define HAVE_LIBKRB 1
20256 if test "${with_kerberos5+set}" = set; then
20258 for ac_header in krb5.h
20260 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20262 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20263 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20265 echo $ECHO_N "(cached
) $ECHO_C" >&6
20267 ac_res=`eval echo '${'$as_ac_Header'}'`
20268 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20269 echo "${ECHO_T}$ac_res" >&6; }
20271 # Is the header compilable?
20272 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20273 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20281 #include <$ac_header>
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_compile") 2>conftest.er1
20292 grep -v '^ *+' conftest.er1 >conftest.err
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest.$ac_objext; then
20300 ac_header_compiler=yes
20302 echo "$as_me: failed program was
:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_header_compiler=no
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20310 echo "${ECHO_T}$ac_header_compiler" >&6; }
20312 # Is the header present?
20313 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20314 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <$ac_header>
20323 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20335 (exit $ac_status); } >/dev/null && {
20336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20339 ac_header_preproc=yes
20341 echo "$as_me: failed program was
:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_header_preproc=no
20347 rm -f conftest.err conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20349 echo "${ECHO_T}$ac_header_preproc" >&6; }
20351 # So? What about this header?
20352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20354 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20355 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20356 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20358 ac_header_preproc=yes
20361 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20362 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20363 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20364 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20365 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20366 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20367 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20368 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20369 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20371 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20372 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20376 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20377 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20379 echo $ECHO_N "(cached
) $ECHO_C" >&6
20381 eval "$as_ac_Header=\
$ac_header_preproc"
20383 ac_res=`eval echo '${'$as_ac_Header'}'`
20384 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20385 echo "${ECHO_T}$ac_res" >&6; }
20388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20389 cat >>confdefs.h <<_ACEOF
20390 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20399 for ac_header in des.h
20401 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20403 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20404 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20405 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20406 echo $ECHO_N "(cached
) $ECHO_C" >&6
20408 ac_res=`eval echo '${'$as_ac_Header'}'`
20409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20410 echo "${ECHO_T}$ac_res" >&6; }
20412 # Is the header compilable?
20413 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20414 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 $ac_includes_default
20422 #include <$ac_header>
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20433 grep -v '^ *+' conftest.er1 >conftest.err
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_header_compiler=yes
20443 echo "$as_me: failed program was
:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_header_compiler=no
20449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20451 echo "${ECHO_T}$ac_header_compiler" >&6; }
20453 # Is the header present?
20454 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20455 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20456 cat >conftest.$ac_ext <<_ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20462 #include <$ac_header>
20464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20472 grep -v '^ *+' conftest.er1 >conftest.err
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20476 (exit $ac_status); } >/dev/null && {
20477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20480 ac_header_preproc=yes
20482 echo "$as_me: failed program was
:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_header_preproc=no
20488 rm -f conftest.err conftest.$ac_ext
20489 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6; }
20492 # So? What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20495 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20496 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20497 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20499 ac_header_preproc=yes
20502 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20503 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20504 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20505 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20506 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20507 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20508 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20509 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20510 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20512 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20513 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20517 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20518 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20520 echo $ECHO_N "(cached
) $ECHO_C" >&6
20522 eval "$as_ac_Header=\
$ac_header_preproc"
20524 ac_res=`eval echo '${'$as_ac_Header'}'`
20525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20526 echo "${ECHO_T}$ac_res" >&6; }
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20536 for ac_header in kerberosIV/des.h
20538 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20540 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20541 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20542 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20543 echo $ECHO_N "(cached
) $ECHO_C" >&6
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20549 # Is the header compilable?
20550 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20551 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <$ac_header>
20561 rm -f conftest.$ac_objext
20562 if { (ac_try="$ac_compile"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_compile") 2>conftest.er1
20570 grep -v '^ *+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20574 (exit $ac_status); } && {
20575 test -z "$ac_c_werror_flag" ||
20576 test ! -s conftest.err
20577 } && test -s conftest.$ac_objext; then
20578 ac_header_compiler=yes
20580 echo "$as_me: failed program was
:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_header_compiler=no
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20588 echo "${ECHO_T}$ac_header_compiler" >&6; }
20590 # Is the header present?
20591 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20592 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20593 cat >conftest.$ac_ext <<_ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 #include <$ac_header>
20601 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20613 (exit $ac_status); } >/dev/null && {
20614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20617 ac_header_preproc=yes
20619 echo "$as_me: failed program was
:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ac_header_preproc=no
20625 rm -f conftest.err conftest.$ac_ext
20626 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20627 echo "${ECHO_T}$ac_header_preproc" >&6; }
20629 # So? What about this header?
20630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20632 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20633 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20634 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20636 ac_header_preproc=yes
20639 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20640 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20641 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20642 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20643 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20644 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20645 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20646 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20647 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20649 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20650 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20654 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20655 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20656 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20657 echo $ECHO_N "(cached
) $ECHO_C" >&6
20659 eval "$as_ac_Header=\
$ac_header_preproc"
20661 ac_res=`eval echo '${'$as_ac_Header'}'`
20662 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20663 echo "${ECHO_T}$ac_res" >&6; }
20666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20667 cat >>confdefs.h <<_ACEOF
20668 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20673 for ac_header in kerberos/des.h
20675 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20677 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20678 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20679 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached
) $ECHO_C" >&6
20682 ac_res=`eval echo '${'$as_ac_Header'}'`
20683 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20686 # Is the header compilable?
20687 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20688 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 $ac_includes_default
20696 #include <$ac_header>
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest.$ac_objext; then
20715 ac_header_compiler=yes
20717 echo "$as_me: failed program was
:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_header_compiler=no
20723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20724 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20725 echo "${ECHO_T}$ac_header_compiler" >&6; }
20727 # Is the header present?
20728 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20729 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include <$ac_header>
20738 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20750 (exit $ac_status); } >/dev/null && {
20751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20754 ac_header_preproc=yes
20756 echo "$as_me: failed program was
:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_header_preproc=no
20762 rm -f conftest.err conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20764 echo "${ECHO_T}$ac_header_preproc" >&6; }
20766 # So? What about this header?
20767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20769 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20770 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20771 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20773 ac_header_preproc=yes
20776 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20777 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20778 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20779 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20781 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20782 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20783 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20784 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20786 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20787 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20791 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20792 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20793 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20794 echo $ECHO_N "(cached
) $ECHO_C" >&6
20796 eval "$as_ac_Header=\
$ac_header_preproc"
20798 ac_res=`eval echo '${'$as_ac_Header'}'`
20799 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20800 echo "${ECHO_T}$ac_res" >&6; }
20803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20821 for ac_header in krb.h
20823 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20824 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20825 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20826 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20827 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20828 echo $ECHO_N "(cached
) $ECHO_C" >&6
20830 ac_res=`eval echo '${'$as_ac_Header'}'`
20831 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20832 echo "${ECHO_T}$ac_res" >&6; }
20834 # Is the header compilable?
20835 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20836 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 $ac_includes_default
20844 #include <$ac_header>
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 ac_header_compiler=yes
20865 echo "$as_me: failed program was
:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_compiler=no
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20873 echo "${ECHO_T}$ac_header_compiler" >&6; }
20875 # Is the header present?
20876 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20877 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 #include <$ac_header>
20886 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20898 (exit $ac_status); } >/dev/null && {
20899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20902 ac_header_preproc=yes
20904 echo "$as_me: failed program was
:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_header_preproc=no
20910 rm -f conftest.err conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20912 echo "${ECHO_T}$ac_header_preproc" >&6; }
20914 # So? What about this header?
20915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20917 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20918 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20919 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20921 ac_header_preproc=yes
20924 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20925 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20926 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20927 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20928 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20929 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20930 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20931 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20932 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20934 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20935 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20939 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20940 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20941 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20942 echo $ECHO_N "(cached
) $ECHO_C" >&6
20944 eval "$as_ac_Header=\
$ac_header_preproc"
20946 ac_res=`eval echo '${'$as_ac_Header'}'`
20947 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20948 echo "${ECHO_T}$ac_res" >&6; }
20951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20952 cat >>confdefs.h <<_ACEOF
20953 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20958 for ac_header in kerberosIV/krb.h
20960 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20961 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20962 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20963 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20964 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20965 echo $ECHO_N "(cached
) $ECHO_C" >&6
20967 ac_res=`eval echo '${'$as_ac_Header'}'`
20968 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20969 echo "${ECHO_T}$ac_res" >&6; }
20971 # Is the header compilable?
20972 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20973 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20974 cat >conftest.$ac_ext <<_ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 $ac_includes_default
20981 #include <$ac_header>
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_compile") 2>conftest.er1
20992 grep -v '^ *+' conftest.er1 >conftest.err
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest.$ac_objext; then
21000 ac_header_compiler=yes
21002 echo "$as_me: failed program was
:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_header_compiler=no
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21010 echo "${ECHO_T}$ac_header_compiler" >&6; }
21012 # Is the header present?
21013 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21014 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 #include <$ac_header>
21023 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21031 grep -v '^ *+' conftest.er1 >conftest.err
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21035 (exit $ac_status); } >/dev/null && {
21036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21039 ac_header_preproc=yes
21041 echo "$as_me: failed program was
:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_preproc=no
21047 rm -f conftest.err conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21049 echo "${ECHO_T}$ac_header_preproc" >&6; }
21051 # So? What about this header?
21052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21054 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21055 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21056 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21058 ac_header_preproc=yes
21061 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21062 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21063 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21064 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21065 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21066 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21067 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21068 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21069 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21071 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21072 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21076 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21077 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21078 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21079 echo $ECHO_N "(cached
) $ECHO_C" >&6
21081 eval "$as_ac_Header=\
$ac_header_preproc"
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21095 for ac_header in kerberos/krb.h
21097 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21099 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21100 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21102 echo $ECHO_N "(cached
) $ECHO_C" >&6
21104 ac_res=`eval echo '${'$as_ac_Header'}'`
21105 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21106 echo "${ECHO_T}$ac_res" >&6; }
21108 # Is the header compilable?
21109 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21110 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21111 cat >conftest.$ac_ext <<_ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 $ac_includes_default
21118 #include <$ac_header>
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest.$ac_objext; then
21137 ac_header_compiler=yes
21139 echo "$as_me: failed program was
:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_header_compiler=no
21145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21147 echo "${ECHO_T}$ac_header_compiler" >&6; }
21149 # Is the header present?
21150 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21151 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #include <$ac_header>
21160 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21172 (exit $ac_status); } >/dev/null && {
21173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21176 ac_header_preproc=yes
21178 echo "$as_me: failed program was
:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_preproc=no
21184 rm -f conftest.err conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21186 echo "${ECHO_T}$ac_header_preproc" >&6; }
21188 # So? What about this header?
21189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21191 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21192 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21193 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21195 ac_header_preproc=yes
21198 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21199 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21200 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21201 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21202 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21203 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21204 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21205 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21206 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21208 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21209 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21213 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21214 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21216 echo $ECHO_N "(cached
) $ECHO_C" >&6
21218 eval "$as_ac_Header=\
$ac_header_preproc"
21220 ac_res=`eval echo '${'$as_ac_Header'}'`
21221 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21222 echo "${ECHO_T}$ac_res" >&6; }
21225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21226 cat >>confdefs.h <<_ACEOF
21227 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21244 for ac_header in com_err.h
21246 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached
) $ECHO_C" >&6
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21259 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21278 grep -v '^ *+' conftest.er1 >conftest.err
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21288 echo "$as_me: failed program was
:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_compiler=no
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21300 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21325 ac_header_preproc=yes
21327 echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_preproc=no
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21340 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21341 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21344 ac_header_preproc=yes
21347 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21348 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21349 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21350 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21351 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21352 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21353 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21354 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21358 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached
) $ECHO_C" >&6
21367 eval "$as_ac_Header=\
$ac_header_preproc"
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21385 # Solaris requires -lintl if you want strerror (which calls dgettext)
21386 # to return localized messages.
21388 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21389 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21390 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21391 echo $ECHO_N "(cached
) $ECHO_C" >&6
21393 ac_check_lib_save_LIBS=$LIBS
21394 LIBS="-lintl $LIBS"
21395 cat >conftest.$ac_ext <<_ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21402 /* Override any GCC internal prototype to avoid an error.
21403 Use char because int might match the return type of a GCC
21404 builtin and then its argument prototype would still apply. */
21412 return dgettext ();
21417 rm -f conftest.$ac_objext conftest$ac_exeext
21418 if { (ac_try="$ac_link"
21419 case "(($ac_try" in
21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421 *) ac_try_echo=$ac_try;;
21423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21424 (eval "$ac_link") 2>conftest.er1
21426 grep -v '^ *+' conftest.er1 >conftest.err
21428 cat conftest.err >&5
21429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21430 (exit $ac_status); } && {
21431 test -z "$ac_c_werror_flag" ||
21432 test ! -s conftest.err
21433 } && test -s conftest$ac_exeext &&
21434 $as_test_x conftest$ac_exeext; then
21435 ac_cv_lib_intl_dgettext=yes
21437 echo "$as_me: failed program was
:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_cv_lib_intl_dgettext=no
21443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21444 conftest$ac_exeext conftest.$ac_ext
21445 LIBS=$ac_check_lib_save_LIBS
21447 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21448 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21449 if test $ac_cv_lib_intl_dgettext = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_LIBINTL 1
21454 LIBS="-lintl $LIBS"
21459 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21460 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21461 if test "${emacs_cv_localtime_cache+set}" = set; then
21462 echo $ECHO_N "(cached
) $ECHO_C" >&6
21464 if test x$ac_cv_func_tzset = xyes; then
21465 if test "$cross_compiling" = yes; then
21466 # If we have tzset, assume the worst when cross-compiling.
21467 emacs_cv_localtime_cache=yes
21469 cat >conftest.$ac_ext <<_ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21476 extern char **environ;
21480 for (to = from = environ; (*to = *from); from++)
21481 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21484 char TZ_GMT0[] = "TZ
=GMT0
";
21485 char TZ_PST8[] = "TZ
=PST8
";
21488 time_t now = time ((time_t *) 0);
21489 int hour_GMT0, hour_unset;
21490 if (putenv (TZ_GMT0) != 0)
21492 hour_GMT0 = localtime (&now)->tm_hour;
21494 hour_unset = localtime (&now)->tm_hour;
21495 if (putenv (TZ_PST8) != 0)
21497 if (localtime (&now)->tm_hour == hour_GMT0)
21500 if (localtime (&now)->tm_hour != hour_unset)
21505 rm -f conftest$ac_exeext
21506 if { (ac_try="$ac_link"
21507 case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_link") 2>&5
21514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 emacs_cv_localtime_cache=no
21527 echo "$as_me: program exited with status
$ac_status" >&5
21528 echo "$as_me: failed program was
:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ( exit $ac_status )
21532 emacs_cv_localtime_cache=yes
21534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21539 # If we lack tzset, report that localtime does not cache TZ,
21540 # since we can't invalidate the cache if we don't have tzset.
21541 emacs_cv_localtime_cache=no
21544 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21545 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21546 if test $emacs_cv_localtime_cache = yes; then
21548 cat >>confdefs.h <<\_ACEOF
21549 #define LOCALTIME_CACHE 1
21554 if test "x
$HAVE_TIMEVAL" = xyes; then
21556 for ac_func in gettimeofday
21558 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21559 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21560 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21561 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached
) $ECHO_C" >&6
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21572 #define $ac_func innocuous_$ac_func
21574 /* System header to define __stub macros and hopefully few prototypes,
21575 which can conflict with char $ac_func (); below.
21576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21577 <limits.h> exists even on freestanding compilers. */
21580 # include <limits.h>
21582 # include <assert.h>
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21594 /* The GNU C library defines this for functions which it implements
21595 to always fail with ENOSYS. Some functions are actually named
21596 something starting with __ and the normal name is an alias. */
21597 #if defined __stub_$ac_func || defined __stub___$ac_func
21604 return $ac_func ();
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_link") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext &&
21626 $as_test_x conftest$ac_exeext; then
21627 eval "$as_ac_var=yes"
21629 echo "$as_me: failed program was
:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 eval "$as_ac_var=no
"
21635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21636 conftest$ac_exeext conftest.$ac_ext
21638 ac_res=`eval echo '${'$as_ac_var'}'`
21639 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21640 echo "${ECHO_T}$ac_res" >&6; }
21641 if test `eval echo '${'$as_ac_var'}'` = yes; then
21642 cat >>confdefs.h <<_ACEOF
21643 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21649 if test $ac_cv_func_gettimeofday = yes; then
21650 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21651 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21652 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21653 echo $ECHO_N "(cached
) $ECHO_C" >&6
21655 cat >conftest.$ac_ext <<_ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21662 #ifdef TIME_WITH_SYS_TIME
21663 #include <sys/time.h>
21666 #ifdef HAVE_SYS_TIME_H
21667 #include <sys/time.h>
21675 struct timeval time;
21676 gettimeofday (&time, 0);
21681 rm -f conftest.$ac_objext
21682 if { (ac_try="$ac_compile"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_compile") 2>conftest.er1
21690 grep -v '^ *+' conftest.er1 >conftest.err
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest.$ac_objext; then
21698 emacs_cv_gettimeofday_two_arguments=yes
21700 echo "$as_me: failed program was
:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 emacs_cv_gettimeofday_two_arguments=no
21706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21708 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21709 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21710 if test $emacs_cv_gettimeofday_two_arguments = no; then
21712 cat >>confdefs.h <<\_ACEOF
21713 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21721 { echo "$as_me:$LINENO: checking
for socket
" >&5
21722 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21723 if test "${ac_cv_func_socket+set}" = set; then
21724 echo $ECHO_N "(cached
) $ECHO_C" >&6
21726 cat >conftest.$ac_ext <<_ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21734 #define socket innocuous_socket
21736 /* System header to define __stub macros and hopefully few prototypes,
21737 which can conflict with char socket (); below.
21738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21739 <limits.h> exists even on freestanding compilers. */
21742 # include <limits.h>
21744 # include <assert.h>
21749 /* Override any GCC internal prototype to avoid an error.
21750 Use char because int might match the return type of a GCC
21751 builtin and then its argument prototype would still apply. */
21756 /* The GNU C library defines this for functions which it implements
21757 to always fail with ENOSYS. Some functions are actually named
21758 something starting with __ and the normal name is an alias. */
21759 #if defined __stub_socket || defined __stub___socket
21771 rm -f conftest.$ac_objext conftest$ac_exeext
21772 if { (ac_try="$ac_link"
21773 case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_link") 2>conftest.er1
21780 grep -v '^ *+' conftest.er1 >conftest.err
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21784 (exit $ac_status); } && {
21785 test -z "$ac_c_werror_flag" ||
21786 test ! -s conftest.err
21787 } && test -s conftest$ac_exeext &&
21788 $as_test_x conftest$ac_exeext; then
21789 ac_cv_func_socket=yes
21791 echo "$as_me: failed program was
:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ac_cv_func_socket=no
21797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21798 conftest$ac_exeext conftest.$ac_ext
21800 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21801 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21802 if test $ac_cv_func_socket = yes; then
21808 if test $ok_so_far = yes; then
21809 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21810 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21811 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21812 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21813 echo $ECHO_N "(cached
) $ECHO_C" >&6
21815 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21816 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21818 # Is the header compilable?
21819 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21820 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21821 cat >conftest.$ac_ext <<_ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827 $ac_includes_default
21828 #include <netinet/in.h>
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21839 grep -v '^ *+' conftest.er1 >conftest.err
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.$ac_objext; then
21847 ac_header_compiler=yes
21849 echo "$as_me: failed program was
:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_header_compiler=no
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21857 echo "${ECHO_T}$ac_header_compiler" >&6; }
21859 # Is the header present?
21860 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21861 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21862 cat >conftest.$ac_ext <<_ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 #include <netinet/in.h>
21870 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21878 grep -v '^ *+' conftest.er1 >conftest.err
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21882 (exit $ac_status); } >/dev/null && {
21883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21886 ac_header_preproc=yes
21888 echo "$as_me: failed program was
:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_header_preproc=no
21894 rm -f conftest.err conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21896 echo "${ECHO_T}$ac_header_preproc" >&6; }
21898 # So? What about this header?
21899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21901 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21902 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21903 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21904 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21905 ac_header_preproc=yes
21908 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21909 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21910 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21911 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21912 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21913 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21914 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21915 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21917 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21918 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21919 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21923 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21924 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21925 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21926 echo $ECHO_N "(cached
) $ECHO_C" >&6
21928 ac_cv_header_netinet_in_h=$ac_header_preproc
21930 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21931 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21934 if test $ac_cv_header_netinet_in_h = yes; then
21942 if test $ok_so_far = yes; then
21943 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21944 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21945 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21946 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21947 echo $ECHO_N "(cached
) $ECHO_C" >&6
21949 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21950 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21952 # Is the header compilable?
21953 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21954 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21955 cat >conftest.$ac_ext <<_ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21962 #include <arpa/inet.h>
21964 rm -f conftest.$ac_objext
21965 if { (ac_try="$ac_compile"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_compile") 2>conftest.er1
21973 grep -v '^ *+' conftest.er1 >conftest.err
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest.$ac_objext; then
21981 ac_header_compiler=yes
21983 echo "$as_me: failed program was
:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_header_compiler=no
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21991 echo "${ECHO_T}$ac_header_compiler" >&6; }
21993 # Is the header present?
21994 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21995 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 #include <arpa/inet.h>
22004 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22012 grep -v '^ *+' conftest.er1 >conftest.err
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22016 (exit $ac_status); } >/dev/null && {
22017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22020 ac_header_preproc=yes
22022 echo "$as_me: failed program was
:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 ac_header_preproc=no
22028 rm -f conftest.err conftest.$ac_ext
22029 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22030 echo "${ECHO_T}$ac_header_preproc" >&6; }
22032 # So? What about this header?
22033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22035 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22036 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22037 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22038 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22039 ac_header_preproc=yes
22042 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22043 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22044 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22045 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22046 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22047 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22048 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22049 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22050 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22051 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22052 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22053 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22057 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22058 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22059 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22060 echo $ECHO_N "(cached
) $ECHO_C" >&6
22062 ac_cv_header_arpa_inet_h=$ac_header_preproc
22064 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22065 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22068 if test $ac_cv_header_arpa_inet_h = yes; then
22076 if test $ok_so_far = yes; then
22078 cat >>confdefs.h <<\_ACEOF
22079 #define HAVE_INET_SOCKETS 1
22085 for ac_header in sys/ioctl.h
22087 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22088 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22089 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22090 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22091 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22092 echo $ECHO_N "(cached
) $ECHO_C" >&6
22094 ac_res=`eval echo '${'$as_ac_Header'}'`
22095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22096 echo "${ECHO_T}$ac_res" >&6; }
22098 # Is the header compilable?
22099 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22100 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22101 cat >conftest.$ac_ext <<_ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 $ac_includes_default
22108 #include <$ac_header>
22110 rm -f conftest.$ac_objext
22111 if { (ac_try="$ac_compile"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_compile") 2>conftest.er1
22119 grep -v '^ *+' conftest.er1 >conftest.err
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22123 (exit $ac_status); } && {
22124 test -z "$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22126 } && test -s conftest.$ac_objext; then
22127 ac_header_compiler=yes
22129 echo "$as_me: failed program was
:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_header_compiler=no
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22137 echo "${ECHO_T}$ac_header_compiler" >&6; }
22139 # Is the header present?
22140 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22141 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22142 cat >conftest.$ac_ext <<_ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 #include <$ac_header>
22150 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22158 grep -v '^ *+' conftest.er1 >conftest.err
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22162 (exit $ac_status); } >/dev/null && {
22163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22166 ac_header_preproc=yes
22168 echo "$as_me: failed program was
:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ac_header_preproc=no
22174 rm -f conftest.err conftest.$ac_ext
22175 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22176 echo "${ECHO_T}$ac_header_preproc" >&6; }
22178 # So? What about this header?
22179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22181 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22182 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22183 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22185 ac_header_preproc=yes
22188 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22189 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22190 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22191 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22192 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22193 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22194 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22195 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22196 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22198 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22199 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22203 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22204 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22205 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22206 echo $ECHO_N "(cached
) $ECHO_C" >&6
22208 eval "$as_ac_Header=\
$ac_header_preproc"
22210 ac_res=`eval echo '${'$as_ac_Header'}'`
22211 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22212 echo "${ECHO_T}$ac_res" >&6; }
22215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22216 cat >>confdefs.h <<_ACEOF
22217 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22225 if test -f /usr/lpp/X11/bin/smt.exp; then
22227 cat >>confdefs.h <<\_ACEOF
22228 #define HAVE_AIX_SMT_EXP 1
22233 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22234 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22235 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22236 { echo "$as_me:$LINENO: result
: yes" >&5
22237 echo "${ECHO_T}yes" >&6; }
22239 cat >>confdefs.h <<\_ACEOF
22240 #define HAVE_DEV_PTMX 1
22244 { echo "$as_me:$LINENO: result
: no
" >&5
22245 echo "${ECHO_T}no
" >&6; }
22248 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22249 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22250 if test "${ac_cv_type_pid_t+set}" = set; then
22251 echo $ECHO_N "(cached
) $ECHO_C" >&6
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 $ac_includes_default
22260 typedef pid_t ac__type_new_;
22264 if ((ac__type_new_ *) 0)
22266 if (sizeof (ac__type_new_))
22272 rm -f conftest.$ac_objext
22273 if { (ac_try="$ac_compile"
22274 case "(($ac_try" in
22275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_compile") 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest.$ac_objext; then
22289 ac_cv_type_pid_t=yes
22291 echo "$as_me: failed program was
:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ac_cv_type_pid_t=no
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22300 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22301 if test $ac_cv_type_pid_t = yes; then
22305 cat >>confdefs.h <<_ACEOF
22312 for ac_header in vfork.h
22314 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22316 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22317 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22318 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22319 echo $ECHO_N "(cached
) $ECHO_C" >&6
22321 ac_res=`eval echo '${'$as_ac_Header'}'`
22322 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22323 echo "${ECHO_T}$ac_res" >&6; }
22325 # Is the header compilable?
22326 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22327 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22328 cat >conftest.$ac_ext <<_ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 $ac_includes_default
22335 #include <$ac_header>
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_compile") 2>conftest.er1
22346 grep -v '^ *+' conftest.er1 >conftest.err
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22350 (exit $ac_status); } && {
22351 test -z "$ac_c_werror_flag" ||
22352 test ! -s conftest.err
22353 } && test -s conftest.$ac_objext; then
22354 ac_header_compiler=yes
22356 echo "$as_me: failed program was
:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ac_header_compiler=no
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22364 echo "${ECHO_T}$ac_header_compiler" >&6; }
22366 # Is the header present?
22367 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22368 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22369 cat >conftest.$ac_ext <<_ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22375 #include <$ac_header>
22377 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22378 case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22385 grep -v '^ *+' conftest.er1 >conftest.err
22387 cat conftest.err >&5
22388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22389 (exit $ac_status); } >/dev/null && {
22390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22391 test ! -s conftest.err
22393 ac_header_preproc=yes
22395 echo "$as_me: failed program was
:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_header_preproc=no
22401 rm -f conftest.err conftest.$ac_ext
22402 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22403 echo "${ECHO_T}$ac_header_preproc" >&6; }
22405 # So? What about this header?
22406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22408 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22409 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22410 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22412 ac_header_preproc=yes
22415 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22416 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22417 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22418 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22419 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22420 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22421 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22422 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22423 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22425 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22426 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22430 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22431 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22433 echo $ECHO_N "(cached
) $ECHO_C" >&6
22435 eval "$as_ac_Header=\
$ac_header_preproc"
22437 ac_res=`eval echo '${'$as_ac_Header'}'`
22438 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22439 echo "${ECHO_T}$ac_res" >&6; }
22442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22443 cat >>confdefs.h <<_ACEOF
22444 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22453 for ac_func in fork vfork
22455 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22456 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22457 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22458 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22459 echo $ECHO_N "(cached
) $ECHO_C" >&6
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22469 #define $ac_func innocuous_$ac_func
22471 /* System header to define __stub macros and hopefully few prototypes,
22472 which can conflict with char $ac_func (); below.
22473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22474 <limits.h> exists even on freestanding compilers. */
22477 # include <limits.h>
22479 # include <assert.h>
22484 /* Override any GCC internal prototype to avoid an error.
22485 Use char because int might match the return type of a GCC
22486 builtin and then its argument prototype would still apply. */
22491 /* The GNU C library defines this for functions which it implements
22492 to always fail with ENOSYS. Some functions are actually named
22493 something starting with __ and the normal name is an alias. */
22494 #if defined __stub_$ac_func || defined __stub___$ac_func
22501 return $ac_func ();
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_link") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest$ac_exeext &&
22523 $as_test_x conftest$ac_exeext; then
22524 eval "$as_ac_var=yes"
22526 echo "$as_me: failed program was
:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 eval "$as_ac_var=no
"
22532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22533 conftest$ac_exeext conftest.$ac_ext
22535 ac_res=`eval echo '${'$as_ac_var'}'`
22536 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22537 echo "${ECHO_T}$ac_res" >&6; }
22538 if test `eval echo '${'$as_ac_var'}'` = yes; then
22539 cat >>confdefs.h <<_ACEOF
22540 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22546 if test "x
$ac_cv_func_fork" = xyes; then
22547 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22548 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22549 if test "${ac_cv_func_fork_works+set}" = set; then
22550 echo $ECHO_N "(cached
) $ECHO_C" >&6
22552 if test "$cross_compiling" = yes; then
22553 ac_cv_func_fork_works=cross
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 $ac_includes_default
22566 /* By Ruediger Kuhlmann. */
22567 return fork () < 0;
22573 rm -f conftest$ac_exeext
22574 if { (ac_try="$ac_link"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22580 (eval "$ac_link") 2>&5
22582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22584 { (case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_try") 2>&5
22591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22592 (exit $ac_status); }; }; then
22593 ac_cv_func_fork_works=yes
22595 echo "$as_me: program exited with status
$ac_status" >&5
22596 echo "$as_me: failed program was
:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22599 ( exit $ac_status )
22600 ac_cv_func_fork_works=no
22602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22607 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22608 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22611 ac_cv_func_fork_works=$ac_cv_func_fork
22613 if test "x
$ac_cv_func_fork_works" = xcross; then
22615 *-*-amigaos* | *-*-msdosdjgpp*)
22616 # Override, as these systems have only a dummy fork() stub
22617 ac_cv_func_fork_works=no
22620 ac_cv_func_fork_works=yes
22623 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22624 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22626 ac_cv_func_vfork_works=$ac_cv_func_vfork
22627 if test "x
$ac_cv_func_vfork" = xyes; then
22628 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22629 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22630 if test "${ac_cv_func_vfork_works+set}" = set; then
22631 echo $ECHO_N "(cached
) $ECHO_C" >&6
22633 if test "$cross_compiling" = yes; then
22634 ac_cv_func_vfork_works=cross
22636 cat >conftest.$ac_ext <<_ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 /* Thanks to Paul Eggert for this test. */
22643 $ac_includes_default
22644 #include <sys/wait.h>
22645 #ifdef HAVE_VFORK_H
22646 # include <vfork.h>
22648 /* On some sparc systems, changes by the child to local and incoming
22649 argument registers are propagated back to the parent. The compiler
22650 is told about this with #include <vfork.h>, but some compilers
22651 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22652 static variable whose address is put into a register that is
22653 clobbered by the vfork. */
22656 sparc_address_test (int arg)
22658 sparc_address_test (arg) int arg;
22661 static pid_t child;
22679 pid_t parent = getpid ();
22682 sparc_address_test (0);
22687 /* Here is another test for sparc vfork register problems. This
22688 test uses lots of local variables, at least as many local
22689 variables as main has allocated so far including compiler
22690 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22691 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22692 reuse the register of parent for one of the local variables,
22693 since it will think that parent can't possibly be used any more
22694 in this routine. Assigning to the local variable will thus
22695 munge parent in the parent process. */
22697 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22698 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22699 /* Convince the compiler that p..p7 are live; otherwise, it might
22700 use the same hardware register for all 8 local variables. */
22701 if (p != p1 || p != p2 || p != p3 || p != p4
22702 || p != p5 || p != p6 || p != p7)
22705 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22706 from child file descriptors. If the child closes a descriptor
22707 before it execs or exits, this munges the parent's descriptor
22708 as well. Test for this by closing stdout in the child. */
22709 _exit(close(fileno(stdout)) != 0);
22714 while (wait(&status) != child)
22717 /* Was there some problem with vforking? */
22720 /* Did the child fail? (This shouldn't happen.) */
22723 /* Did the vfork/compiler bug occur? */
22724 || parent != getpid()
22726 /* Did the file descriptor bug occur? */
22727 || fstat(fileno(stdout), &st) != 0
22732 rm -f conftest$ac_exeext
22733 if { (ac_try="$ac_link"
22734 case "(($ac_try" in
22735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22739 (eval "$ac_link") 2>&5
22741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22743 { (case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_try") 2>&5
22750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22751 (exit $ac_status); }; }; then
22752 ac_cv_func_vfork_works=yes
22754 echo "$as_me: program exited with status
$ac_status" >&5
22755 echo "$as_me: failed program was
:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22758 ( exit $ac_status )
22759 ac_cv_func_vfork_works=no
22761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22767 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22770 if test "x
$ac_cv_func_fork_works" = xcross; then
22771 ac_cv_func_vfork_works=$ac_cv_func_vfork
22772 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22773 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22776 if test "x
$ac_cv_func_vfork_works" = xyes; then
22778 cat >>confdefs.h <<\_ACEOF
22779 #define HAVE_WORKING_VFORK 1
22784 cat >>confdefs.h <<\_ACEOF
22789 if test "x
$ac_cv_func_fork_works" = xyes; then
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_WORKING_FORK 1
22798 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22799 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22800 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22801 echo $ECHO_N "(cached
) $ECHO_C" >&6
22803 cat >conftest.$ac_ext <<_ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 #include <langinfo.h>
22813 char* cs = nl_langinfo(CODESET);
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_link") 2>conftest.er1
22827 grep -v '^ *+' conftest.er1 >conftest.err
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22831 (exit $ac_status); } && {
22832 test -z "$ac_c_werror_flag" ||
22833 test ! -s conftest.err
22834 } && test -s conftest$ac_exeext &&
22835 $as_test_x conftest$ac_exeext; then
22836 emacs_cv_langinfo_codeset=yes
22838 echo "$as_me: failed program was
:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 emacs_cv_langinfo_codeset=no
22844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845 conftest$ac_exeext conftest.$ac_ext
22848 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22849 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22850 if test $emacs_cv_langinfo_codeset = yes; then
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_LANGINFO_CODESET 1
22858 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22859 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22860 if test "${ac_cv_type_size_t+set}" = set; then
22861 echo $ECHO_N "(cached
) $ECHO_C" >&6
22863 cat >conftest.$ac_ext <<_ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 $ac_includes_default
22870 typedef size_t ac__type_new_;
22874 if ((ac__type_new_ *) 0)
22876 if (sizeof (ac__type_new_))
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_compile") 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22895 (exit $ac_status); } && {
22896 test -z "$ac_c_werror_flag" ||
22897 test ! -s conftest.err
22898 } && test -s conftest.$ac_objext; then
22899 ac_cv_type_size_t=yes
22901 echo "$as_me: failed program was
:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22904 ac_cv_type_size_t=no
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22910 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22911 if test $ac_cv_type_size_t = yes; then
22913 cat >>confdefs.h <<_ACEOF
22914 #define HAVE_SIZE_T 1
22921 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22922 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22923 if test "${ac_cv_type_mbstate_t+set}" = set; then
22924 echo $ECHO_N "(cached
) $ECHO_C" >&6
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 $ac_includes_default
22933 # include <wchar.h>
22937 mbstate_t x; return sizeof x;
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22951 grep -v '^ *+' conftest.er1 >conftest.err
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 ac_cv_type_mbstate_t=yes
22961 echo "$as_me: failed program was
:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 ac_cv_type_mbstate_t=no
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22970 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22971 if test $ac_cv_type_mbstate_t = yes; then
22973 cat >>confdefs.h <<\_ACEOF
22974 #define HAVE_MBSTATE_T 1
22979 cat >>confdefs.h <<\_ACEOF
22980 #define mbstate_t int
22985 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22986 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22987 if test "${emacs_cv_c_restrict+set}" = set; then
22988 echo $ECHO_N "(cached
) $ECHO_C" >&6
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 void fred (int *restrict x);
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_compile") 2>conftest.er1
23014 grep -v '^ *+' conftest.er1 >conftest.err
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23018 (exit $ac_status); } && {
23019 test -z "$ac_c_werror_flag" ||
23020 test ! -s conftest.err
23021 } && test -s conftest.$ac_objext; then
23022 emacs_cv_c_restrict=yes
23024 echo "$as_me: failed program was
:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 cat >conftest.$ac_ext <<_ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h. */
23033 void fred (int *__restrict x);
23042 rm -f conftest.$ac_objext
23043 if { (ac_try="$ac_compile"
23044 case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_compile") 2>conftest.er1
23051 grep -v '^ *+' conftest.er1 >conftest.err
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23055 (exit $ac_status); } && {
23056 test -z "$ac_c_werror_flag" ||
23057 test ! -s conftest.err
23058 } && test -s conftest.$ac_objext; then
23059 emacs_cv_c_restrict=__restrict
23061 echo "$as_me: failed program was
:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 emacs_cv_c_restrict=no
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23073 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23074 case "$emacs_cv_c_restrict" in
23075 yes) emacs_restrict=restrict;;
23076 no) emacs_restrict="";;
23077 *) emacs_restrict="$emacs_cv_c_restrict";;
23079 if test "$emacs_restrict" != __restrict; then
23081 cat >>confdefs.h <<_ACEOF
23082 #define __restrict $emacs_restrict
23087 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23088 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23089 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23090 echo $ECHO_N "(cached
) $ECHO_C" >&6
23092 cat >conftest.$ac_ext <<_ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23098 void fred (int x[__restrict]);
23107 rm -f conftest.$ac_objext
23108 if { (ac_try="$ac_compile"
23109 case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23116 grep -v '^ *+' conftest.er1 >conftest.err
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 emacs_cv_c_restrict_arr=yes
23126 echo "$as_me: failed program was
:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 emacs_cv_c_restrict_arr=no
23132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23135 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23136 if test "$emacs_cv_c_restrict_arr" = yes; then
23138 cat >>confdefs.h <<\_ACEOF
23139 #define __restrict_arr __restrict
23146 # Set up the CFLAGS for real compilation, so we can substitute it.
23147 CFLAGS="$REAL_CFLAGS"
23148 CPPFLAGS="$REAL_CPPFLAGS"
23150 #### Find out which version of Emacs this is.
23151 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23152 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23153 if test x"${version}" = x; then
23154 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23155 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23156 { (exit 1); exit 1; }; }
23159 ### Specify what sort of things we'll be editing into Makefile and config.h.
23160 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23196 cat >>confdefs.h <<_ACEOF
23197 #define EMACS_CONFIGURATION "${canonical}"
23201 cat >>confdefs.h <<_ACEOF
23202 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23206 cat >>confdefs.h <<_ACEOF
23207 #define config_machfile "${machfile}"
23211 cat >>confdefs.h <<_ACEOF
23212 #define config_opsysfile "${opsysfile}"
23216 cat >>confdefs.h <<_ACEOF
23217 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23221 cat >>confdefs.h <<_ACEOF
23222 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23226 cat >>confdefs.h <<_ACEOF
23227 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23231 cat >>confdefs.h <<_ACEOF
23232 #define UNEXEC_SRC ${UNEXEC_SRC}
23236 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_X_WINDOWS 1
23243 if test "${USE_X_TOOLKIT}" != "none
" ; then
23245 cat >>confdefs.h <<\_ACEOF
23246 #define USE_X_TOOLKIT 1
23250 if test "${HAVE_X11}" = "yes" ; then
23252 cat >>confdefs.h <<\_ACEOF
23257 if test "${HAVE_XFREE386}" = "yes" ; then
23259 cat >>confdefs.h <<\_ACEOF
23260 #define HAVE_XFREE386 1
23264 if test "${HAVE_MENUS}" = "yes" ; then
23266 cat >>confdefs.h <<\_ACEOF
23267 #define HAVE_MENUS 1
23271 if test "${GNU_MALLOC}" = "yes" ; then
23273 cat >>confdefs.h <<\_ACEOF
23274 #define GNU_MALLOC 1
23278 if test "${REL_ALLOC}" = "yes" ; then
23280 cat >>confdefs.h <<\_ACEOF
23281 #define REL_ALLOC 1
23290 #### Report on what we decided to do.
23291 #### Report GTK as a toolkit, even if it doesn't use Xt.
23292 #### It makes printing result more understandable as using GTK sets
23293 #### toolkit_scroll_bars to yes by default.
23294 if test "${HAVE_GTK}" = "yes"; then
23299 Configured
for \
`${canonical}'.
23301 Where should the build process find the source code? ${srcdir}
23302 What operating system and machine description files should Emacs use?
23303 \`${opsysfile}' and \`${machfile}'
23304 What compiler should emacs be built with?
${CC} ${CFLAGS}
23305 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23306 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23307 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23308 What window system should Emacs use?
${window_system}
23309 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23311 if test -n "${x_includes}"; then
23312 echo " Where
do we
find X Windows header files?
${x_includes}"
23314 echo " Where
do we
find X Windows header files? Standard
dirs"
23316 if test -n "${x_libraries}"; then
23317 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23319 echo " Where
do we
find X Windows libraries? Standard
dirs"
23322 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23323 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23324 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23325 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23326 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23327 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23328 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23329 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23332 if test $USE_XASSERTS = yes; then
23333 echo " Compiling with asserts turned on.
"
23334 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23338 if test "$USE_X_TOOLKIT" = GTK; then
23339 case "$canonical" in
23341 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23342 will probably get a crash on startup. If this happens
, please use another
23343 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23350 # Remove any trailing slashes in these variables.
23351 test "${prefix}" != NONE &&
23352 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23353 test "${exec_prefix}" != NONE &&
23354 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23356 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23357 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23358 ## from Makefile.c can correctly provide the arg `-traditional' to the
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23369 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23370 $EGREP "yes..
yes" >/dev/null 2>&1; then
23371 CPP_NEED_TRADITIONAL=no
23373 CPP_NEED_TRADITIONAL=yes
23378 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
"
23380 ac_config_commands="$ac_config_commands default
"
23382 cat >confcache <<\_ACEOF
23383 # This file is a shell script that caches the results of configure
23384 # tests run on this system so they can be shared between configure
23385 # scripts and configure runs, see configure's option --config-cache.
23386 # It is not useful on other systems. If it contains results you don't
23387 # want to keep, you may remove or edit it.
23389 # config.status only pays attention to the cache file if you give it
23390 # the --recheck option to rerun configure.
23392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23394 # following values.
23398 # The following way of writing the cache mishandles newlines in values,
23399 # but we know of no workaround that is simple, portable, and efficient.
23400 # So, we kill variables containing newlines.
23401 # Ultrix sh set writes to stderr and can't be redirected directly,
23402 # and sets the high bit in the cache file unless we assign to the vars.
23404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23405 eval ac_val=\$$ac_var
23409 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23410 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23413 _ | IFS | as_nl) ;; #(
23414 *) $as_unset $ac_var ;;
23420 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23421 *${as_nl}ac_space=\ *)
23422 # `set' does not quote correctly, so add quotes (double-quote
23423 # substitution turns \\\\ into \\, and sed turns \\ into \).
23426 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23429 # `set' quotes correctly as required by POSIX, so do not add quotes.
23430 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23443 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23444 if test -w "$cache_file"; then
23445 test "x
$cache_file" != "x
/dev
/null
" &&
23446 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23447 echo "$as_me: updating cache
$cache_file" >&6;}
23448 cat confcache >$cache_file
23450 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23451 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23456 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23457 # Let make expand exec_prefix.
23458 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23460 DEFS=-DHAVE_CONFIG_H
23464 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23465 # 1. Remove the extension, and $U if already installed.
23466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23467 ac_i=`echo "$ac_i" | sed "$ac_script"`
23468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23469 # will be set to the directory where LIBOBJS objects are built.
23470 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23471 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23473 LIBOBJS=$ac_libobjs
23475 LTLIBOBJS=$ac_ltlibobjs
23479 : ${CONFIG_STATUS=./config.status}
23480 ac_clean_files_save=$ac_clean_files
23481 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23482 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23483 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23484 cat >$CONFIG_STATUS <<_ACEOF
23486 # Generated by $as_me.
23487 # Run this file to recreate the current configuration.
23488 # Compiler output produced by configure, useful for debugging
23489 # configure, is in config.log if it exists.
23492 ac_cs_recheck=false
23494 SHELL=\${CONFIG_SHELL-$SHELL}
23497 cat >>$CONFIG_STATUS <<\_ACEOF
23498 ## --------------------- ##
23499 ## M4sh Initialization. ##
23500 ## --------------------- ##
23502 # Be more Bourne compatible
23503 DUALCASE=1; export DUALCASE # for MKS sh
23504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23507 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23508 # is contrary to our usage. Disable this feature.
23509 alias -g '${1+"$@"}'='"$@
"'
23510 setopt NO_GLOB_SUBST
23512 case `(set -o) 2>/dev/null` in
23513 *posix*) set -o posix ;;
23522 # Avoid depending upon Character Ranges.
23523 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23524 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23525 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23526 as_cr_digits='0123456789'
23527 as_cr_alnum=$as_cr_Letters$as_cr_digits
23529 # The user is always right.
23530 if test "${PATH_SEPARATOR+set}" != set; then
23531 echo "#! /bin/sh" >conf$$.sh
23532 echo "exit 0" >>conf$$.sh
23534 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23542 # Support unset when possible.
23543 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23551 # We need space, tab and new line, in precisely that order. Quoting is
23552 # there to prevent editors from complaining about space-tab.
23553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23554 # splitting by setting IFS to empty value.)
23559 # Find who we are. Look in the path if we contain no directory separator.
23561 *[\\/]* ) as_myself
=$0 ;;
23562 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23563 for as_dir
in $PATH
23566 test -z "$as_dir" && as_dir
=.
23567 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23573 # We did not find ourselves, most probably we were run as `sh COMMAND'
23574 # in which case we are not to be found in the path.
23575 if test "x$as_myself" = x
; then
23578 if test ! -f "$as_myself"; then
23579 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23580 { (exit 1); exit 1; }
23583 # Work around bugs in pre-3.0 UWIN ksh.
23584 for as_var
in ENV MAIL MAILPATH
23585 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23595 LC_TELEPHONE LC_TIME
23597 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23598 eval $as_var=C
; export $as_var
23600 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23604 # Required to use basename.
23605 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23606 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23612 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23613 as_basename
=basename
23619 # Name of the executable.
23620 as_me
=`$as_basename -- "$0" ||
23621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23622 X"$0" : 'X\(//\)$' \| \
23623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23625 sed '/^.*\/\([^/][^/]*\)\/*$/{
23644 as_lineno_1
=$LINENO
23645 as_lineno_2
=$LINENO
23646 test "x$as_lineno_1" != "x$as_lineno_2" &&
23647 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23650 # uniformly replaced by the line number. The first 'sed' inserts a
23651 # line-number line after each line using $LINENO; the second 'sed'
23652 # does the real work. The second script uses 'N' to pair each
23653 # line-number line with the line containing $LINENO, and appends
23654 # trailing '-' during substitution so that $LINENO is not a special
23655 # case at line end.
23656 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23657 # scripts with optimization help from Paolo Bonzini. Blame Lee
23658 # E. McMahon (1931-1989) for sed's syntax. :-)
23670 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23673 ' >$as_me.lineno
&&
23674 chmod +x
"$as_me.lineno" ||
23675 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23676 { (exit 1); exit 1; }; }
23678 # Don't try to exec as it changes $[0], causing all sort of problems
23679 # (the dirname of $[0] is not the place where we might find the
23680 # original and so on. Autoconf is especially sensitive to this).
23681 .
"./$as_me.lineno"
23682 # Exit status is that of the last command.
23687 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23693 ECHO_C
= ECHO_N
= ECHO_T
=
23694 case `echo -n x` in
23696 case `echo 'x\c'` in
23697 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23704 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23705 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23711 rm -f conf$$ conf$$.exe conf$$.
file
23712 if test -d conf$$.dir
; then
23713 rm -f conf$$.dir
/conf$$.
file
23719 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23721 # ... but there are two gotchas:
23722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23724 # In both cases, we have to default to `cp -p'.
23725 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23727 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23732 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23733 rmdir conf$$.dir
2>/dev
/null
23735 if mkdir
-p .
2>/dev
/null
; then
23738 test -d .
/-p && rmdir .
/-p
23742 if test -x / >/dev
/null
2>&1; then
23743 as_test_x
='test -x'
23745 if ls -dL / >/dev
/null
2>&1; then
23752 if test -d "$1"; then
23758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23759 ???[sx]*):;;*)false;;esac;fi
23763 as_executable_p
=$as_test_x
23765 # Sed expression to map a string onto a valid CPP name.
23766 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23768 # Sed expression to map a string onto a valid variable name.
23769 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23774 # Save the log message, to keep $[0] and so on meaningful, and to
23775 # report actual input values of CONFIG_FILES etc. instead of their
23776 # values after options handling.
23778 This file was extended by $as_me, which was
23779 generated by GNU Autoconf 2.61. Invocation command line was
23781 CONFIG_FILES = $CONFIG_FILES
23782 CONFIG_HEADERS = $CONFIG_HEADERS
23783 CONFIG_LINKS = $CONFIG_LINKS
23784 CONFIG_COMMANDS = $CONFIG_COMMANDS
23787 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23792 cat >>$CONFIG_STATUS <<_ACEOF
23793 # Files that config.status was made for.
23794 config_files="$ac_config_files"
23795 config_headers="$ac_config_headers"
23796 config_commands="$ac_config_commands"
23800 cat >>$CONFIG_STATUS <<\_ACEOF
23802 \`$as_me' instantiates files from templates according to the
23803 current configuration.
23805 Usage: $0 [OPTIONS] [FILE]...
23807 -h, --help print this help, then exit
23808 -V, --version print version number and configuration settings, then exit
23809 -q, --quiet do not print progress messages
23810 -d, --debug don't remove temporary files
23811 --recheck update $as_me by reconfiguring in the same conditions
23812 --file=FILE[:TEMPLATE]
23813 instantiate the configuration file FILE
23814 --header=FILE[:TEMPLATE]
23815 instantiate the configuration header FILE
23817 Configuration files:
23820 Configuration headers:
23823 Configuration commands:
23826 Report bugs to <bug-autoconf@gnu.org>."
23829 cat >>$CONFIG_STATUS <<_ACEOF
23832 configured by $0, generated by GNU Autoconf 2.61,
23833 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23835 Copyright (C) 2006 Free Software Foundation, Inc.
23836 This config.status script is free software; the Free Software Foundation
23837 gives unlimited permission to copy, distribute and modify it."
23844 cat >>$CONFIG_STATUS <<\_ACEOF
23845 # If no file are specified by the user, then we need to provide default
23846 # value. By we need to know if files were specified by the user.
23852 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23853 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23864 # Handling of the options.
23865 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23867 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23868 echo "$ac_cs_version"; exit ;;
23869 --debug |
--debu |
--deb |
--de |
--d |
-d )
23871 --file |
--fil |
--fi |
--f )
23873 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23874 ac_need_defaults
=false
;;
23875 --header |
--heade |
--head |
--hea )
23877 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23878 ac_need_defaults
=false
;;
23880 # Conflict between --help and --header
23881 { echo "$as_me: error: ambiguous option: $1
23882 Try \`$0 --help' for more information." >&2
23883 { (exit 1); exit 1; }; };;
23884 --help |
--hel |
-h )
23885 echo "$ac_cs_usage"; exit ;;
23886 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23887 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23890 # This is an error.
23891 -*) { echo "$as_me: error: unrecognized option: $1
23892 Try \`$0 --help' for more information." >&2
23893 { (exit 1); exit 1; }; } ;;
23895 *) ac_config_targets
="$ac_config_targets $1"
23896 ac_need_defaults
=false
;;
23902 ac_configure_extra_args
=
23904 if $ac_cs_silent; then
23906 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23910 cat >>$CONFIG_STATUS <<_ACEOF
23911 if \$ac_cs_recheck; then
23912 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23913 CONFIG_SHELL=$SHELL
23914 export CONFIG_SHELL
23915 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23919 cat >>$CONFIG_STATUS <<\_ACEOF
23923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23924 ## Running $as_me. ##
23930 cat >>$CONFIG_STATUS <<_ACEOF
23934 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23938 cat >>$CONFIG_STATUS <<\_ACEOF
23940 # Handling of arguments.
23941 for ac_config_target
in $ac_config_targets
23943 case $ac_config_target in
23944 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23945 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23946 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23947 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23948 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23949 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23950 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23951 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23952 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23953 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23954 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23955 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23957 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23959 { (exit 1); exit 1; }; };;
23964 # If the user did not use the arguments to specify the items to instantiate,
23965 # then the envvar interface is used. Set only those that are not.
23966 # We use the long form for the default assignment because of an extremely
23967 # bizarre bug on SunOS 4.1.3.
23968 if $ac_need_defaults; then
23969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23974 # Have a temporary directory for convenience. Make it in the build tree
23975 # simply because there is no reason against having it here, and in addition,
23976 # creating and moving files from /tmp can sometimes cause problems.
23977 # Hook for its removal unless debugging.
23978 # Note that there is a small window in which the directory will not be cleaned:
23979 # after its creation but before its name has been assigned to `$tmp'.
23983 trap 'exit_status=$?
23984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23986 trap '{ (exit 1); exit 1; }' 1 2 13 15
23988 # Create a (secure) tmp directory for tmp files.
23991 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23992 test -n "$tmp" && test -d "$tmp"
23995 tmp
=.
/conf$$
-$RANDOM
23996 (umask 077 && mkdir
"$tmp")
23999 echo "$me: cannot create a temporary directory in ." >&2
24000 { (exit 1); exit 1; }
24004 # Set up the sed scripts for CONFIG_FILES section.
24007 # No need to generate the scripts if there are no CONFIG_FILES.
24008 # This happens for instance when ./config.status config.h
24009 if test -n "$CONFIG_FILES"; then
24016 for ac_last_try
in false false false false false
:; do
24017 cat >conf$
$subs.
sed <<_ACEOF
24018 SHELL!$SHELL$ac_delim
24019 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24020 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24021 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24022 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24023 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24024 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24025 exec_prefix!$exec_prefix$ac_delim
24026 prefix!$prefix$ac_delim
24027 program_transform_name!$program_transform_name$ac_delim
24028 bindir!$bindir$ac_delim
24029 sbindir!$sbindir$ac_delim
24030 libexecdir!$libexecdir$ac_delim
24031 datarootdir!$datarootdir$ac_delim
24032 datadir!$datadir$ac_delim
24033 sysconfdir!$sysconfdir$ac_delim
24034 sharedstatedir!$sharedstatedir$ac_delim
24035 localstatedir!$localstatedir$ac_delim
24036 includedir!$includedir$ac_delim
24037 oldincludedir!$oldincludedir$ac_delim
24038 docdir!$docdir$ac_delim
24039 infodir!$infodir$ac_delim
24040 htmldir!$htmldir$ac_delim
24041 dvidir!$dvidir$ac_delim
24042 pdfdir!$pdfdir$ac_delim
24043 psdir!$psdir$ac_delim
24044 libdir!$libdir$ac_delim
24045 localedir!$localedir$ac_delim
24046 mandir!$mandir$ac_delim
24047 DEFS!$DEFS$ac_delim
24048 ECHO_C!$ECHO_C$ac_delim
24049 ECHO_N!$ECHO_N$ac_delim
24050 ECHO_T!$ECHO_T$ac_delim
24051 LIBS!$LIBS$ac_delim
24052 build_alias!$build_alias$ac_delim
24053 host_alias!$host_alias$ac_delim
24054 target_alias!$target_alias$ac_delim
24055 MAINT!$MAINT$ac_delim
24056 build!$build$ac_delim
24057 build_cpu!$build_cpu$ac_delim
24058 build_vendor!$build_vendor$ac_delim
24059 build_os!$build_os$ac_delim
24060 host!$host$ac_delim
24061 host_cpu!$host_cpu$ac_delim
24062 host_vendor!$host_vendor$ac_delim
24063 host_os!$host_os$ac_delim
24065 CFLAGS!$CFLAGS$ac_delim
24066 LDFLAGS!$LDFLAGS$ac_delim
24067 CPPFLAGS!$CPPFLAGS$ac_delim
24068 ac_ct_CC!$ac_ct_CC$ac_delim
24069 EXEEXT!$EXEEXT$ac_delim
24070 OBJEXT!$OBJEXT$ac_delim
24072 GREP!$GREP$ac_delim
24073 EGREP!$EGREP$ac_delim
24074 LN_S!$LN_S$ac_delim
24075 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24076 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24077 INSTALL_DATA!$INSTALL_DATA$ac_delim
24078 RANLIB!$RANLIB$ac_delim
24079 INSTALL_INFO!$INSTALL_INFO$ac_delim
24080 GZIP_PROG!$GZIP_PROG$ac_delim
24081 LIBSOUND!$LIBSOUND$ac_delim
24082 PKG_CONFIG!$PKG_CONFIG$ac_delim
24083 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24084 ALSA_LIBS!$ALSA_LIBS$ac_delim
24085 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24086 SET_MAKE!$SET_MAKE$ac_delim
24087 XMKMF!$XMKMF$ac_delim
24088 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24089 GTK_LIBS!$GTK_LIBS$ac_delim
24090 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24091 XFT_LIBS!$XFT_LIBS$ac_delim
24092 ALLOCA!$ALLOCA$ac_delim
24093 liblockfile!$liblockfile$ac_delim
24094 LIBOBJS!$LIBOBJS$ac_delim
24095 NEED_SETGID!$NEED_SETGID$ac_delim
24096 KMEM_GROUP!$KMEM_GROUP$ac_delim
24097 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24098 GETOPT_H!$GETOPT_H$ac_delim
24099 GETOPTOBJS!$GETOPTOBJS$ac_delim
24100 version!$version$ac_delim
24101 configuration!$configuration$ac_delim
24102 canonical!$canonical$ac_delim
24103 srcdir!$srcdir$ac_delim
24104 lispdir!$lispdir$ac_delim
24105 locallisppath!$locallisppath$ac_delim
24106 lisppath!$lisppath$ac_delim
24107 x_default_search_path!$x_default_search_path$ac_delim
24108 etcdir!$etcdir$ac_delim
24109 archlibdir!$archlibdir$ac_delim
24110 bitmapdir!$bitmapdir$ac_delim
24111 gamedir!$gamedir$ac_delim
24112 gameuser!$gameuser$ac_delim
24113 c_switch_system!$c_switch_system$ac_delim
24114 c_switch_machine!$c_switch_machine$ac_delim
24117 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24119 elif $ac_last_try; then
24120 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24121 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24122 { (exit 1); exit 1; }; }
24124 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24128 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24129 if test -n "$ac_eof"; then
24130 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24131 ac_eof
=`expr $ac_eof + 1`
24134 cat >>$CONFIG_STATUS <<_ACEOF
24135 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24139 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24140 s/^/s,@/; s/!/@,|#_!!_#|/
24143 s/'"$ac_delim"'$/,g/; t
24145 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24146 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24147 rm -f conf$
$subs.
sed
24148 cat >>$CONFIG_STATUS <<_ACEOF
24154 for ac_last_try
in false false false false false
:; do
24155 cat >conf$
$subs.
sed <<_ACEOF
24156 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24157 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24158 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24159 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24160 machfile!$machfile$ac_delim
24161 opsysfile!$opsysfile$ac_delim
24162 carbon_appdir!$carbon_appdir$ac_delim
24163 LTLIBOBJS!$LTLIBOBJS$ac_delim
24166 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24168 elif $ac_last_try; then
24169 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24171 { (exit 1); exit 1; }; }
24173 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24177 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24178 if test -n "$ac_eof"; then
24179 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24180 ac_eof
=`expr $ac_eof + 1`
24183 cat >>$CONFIG_STATUS <<_ACEOF
24184 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24189 s/^/s,@/; s/!/@,|#_!!_#|/
24192 s/'"$ac_delim"'$/,g/; t
24194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24195 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24196 rm -f conf$
$subs.
sed
24197 cat >>$CONFIG_STATUS <<_ACEOF
24204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24206 # trailing colons and then remove the whole line if VPATH becomes empty
24207 # (actually we leave an empty line to preserve line numbers).
24208 if test "x$srcdir" = x.
; then
24209 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24210 s/:*\$(srcdir):*/:/
24211 s/:*\${srcdir}:*/:/
24213 s/^\([^=]*=[ ]*\):*/\1/
24219 cat >>$CONFIG_STATUS <<\_ACEOF
24220 fi # test -n "$CONFIG_FILES"
24223 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24226 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24228 case $ac_mode$ac_tag in
24230 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24232 { (exit 1); exit 1; }; };;
24233 :[FH
]-) ac_tag
=-:-;;
24234 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24251 -) ac_f
="$tmp/stdin";;
24252 *) # Look for the file first in the build tree, then in the source tree
24253 # (if the path is not absolute). The absolute path cannot be DOS-style,
24254 # because $ac_f cannot contain `:'.
24258 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24260 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24262 { (exit 1); exit 1; }; };;
24264 ac_file_inputs
="$ac_file_inputs $ac_f"
24267 # Let's still pretend it is `configure' which instantiates (i.e., don't
24268 # use $as_me), people would be surprised to read:
24269 # /* config.h. Generated by config.status. */
24270 configure_input
="Generated from "`IFS=:
24271 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24272 if test x
"$ac_file" != x-
; then
24273 configure_input
="$ac_file. $configure_input"
24274 { echo "$as_me:$LINENO: creating $ac_file" >&5
24275 echo "$as_me: creating $ac_file" >&6;}
24279 *:-:* |
*:-) cat >"$tmp/stdin";;
24284 ac_dir
=`$as_dirname -- "$ac_file" ||
24285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24286 X"$ac_file" : 'X\(//\)[^/]' \| \
24287 X"$ac_file" : 'X\(//\)$' \| \
24288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24294 /^X\(\/\/\)[^/].*/{
24309 -*) as_dir
=.
/$as_dir;;
24311 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24315 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24316 *) as_qdir
=$as_dir;;
24318 as_dirs
="'$as_qdir' $as_dirs"
24319 as_dir
=`$as_dirname -- "$as_dir" ||
24320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24321 X"$as_dir" : 'X\(//\)[^/]' \| \
24322 X"$as_dir" : 'X\(//\)$' \| \
24323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24329 /^X\(\/\/\)[^/].*/{
24342 test -d "$as_dir" && break
24344 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24345 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24347 { (exit 1); exit 1; }; }; }
24351 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24353 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24354 # A ".." for each directory in $ac_dir_suffix.
24355 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24356 case $ac_top_builddir_sub in
24357 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24358 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24361 ac_abs_top_builddir
=$ac_pwd
24362 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24363 # for backward compatibility:
24364 ac_top_builddir
=$ac_top_build_prefix
24367 .
) # We are building in place.
24369 ac_top_srcdir
=$ac_top_builddir_sub
24370 ac_abs_top_srcdir
=$ac_pwd ;;
24371 [\\/]* | ?
:[\\/]* ) # Absolute name.
24372 ac_srcdir
=$srcdir$ac_dir_suffix;
24373 ac_top_srcdir
=$srcdir
24374 ac_abs_top_srcdir
=$srcdir ;;
24375 *) # Relative name.
24376 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24377 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24378 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24380 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24390 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24391 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24395 cat >>$CONFIG_STATUS <<\_ACEOF
24396 # If the template does not know about datarootdir, expand it.
24397 # FIXME: This hack should be removed a few years after 2.60.
24398 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24400 case `sed -n '/datarootdir/ {
24409 ' $ac_file_inputs` in
24410 *datarootdir
*) ac_datarootdir_seen
=yes;;
24411 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24412 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24415 cat >>$CONFIG_STATUS <<_ACEOF
24416 ac_datarootdir_hack='
24417 s&@datadir@&$datadir&g
24418 s&@docdir@&$docdir&g
24419 s&@infodir@&$infodir&g
24420 s&@localedir@&$localedir&g
24421 s&@mandir@&$mandir&g
24422 s&\\\${datarootdir}&$datarootdir&g' ;;
24426 # Neutralize VPATH when `$srcdir' = `.'.
24427 # Shell code in configure.ac might set extrasub.
24428 # FIXME: do we really want to maintain this feature?
24429 cat >>$CONFIG_STATUS <<_ACEOF
24433 cat >>$CONFIG_STATUS <<\_ACEOF
24435 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24436 s
&@configure_input@
&$configure_input&;t t
24437 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24438 s
&@srcdir@
&$ac_srcdir&;t t
24439 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24440 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24441 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24442 s
&@builddir@
&$ac_builddir&;t t
24443 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24444 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24445 s
&@INSTALL@
&$ac_INSTALL&;t t
24446 $ac_datarootdir_hack
24447 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24452 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24453 which seems to be undefined. Please make sure it is defined." >&5
24454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24455 which seems to be undefined. Please make sure it is defined." >&2;}
24459 -) cat "$tmp/out"; rm -f "$tmp/out";;
24460 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24469 # Transform confdefs.h into a sed script `conftest.defines', that
24470 # substitutes the proper values into config.h.in to produce config.h.
24471 rm -f conftest.defines conftest.
tail
24472 # First, append a space to every undef/define line, to ease matching.
24473 echo 's/$/ /' >conftest.defines
24474 # Then, protect against being on the right side of a sed subst, or in
24475 # an unquoted here document, in config.status. If some macros were
24476 # called several times there might be several #defines for the same
24477 # symbol, which is useless. But do not sort them, since the last
24478 # AC_DEFINE must be honored.
24479 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24480 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24481 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24482 # PARAMS is the parameter list in the macro definition--in most cases, it's
24483 # just an empty string.
24484 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24485 ac_dB
='\\)[ (].*,\\1define\\2'
24493 s/^[ ]*#[ ]*define[ ][ ]*//
24498 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24499 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24500 ' >>conftest.defines
24502 # Remove the space that was appended to ease matching.
24503 # Then replace #undef with comments. This is necessary, for
24504 # example, in the case of _POSIX_SOURCE, which is predefined and required
24505 # on some systems where configure will not decide to define it.
24506 # (The regexp can be short, since the line contains either #define or #undef.)
24508 s,^[ #]*u.*,/* & */,' >>conftest.defines
24510 # Break up conftest.defines:
24511 ac_max_sed_lines
=50
24513 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24514 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24515 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24517 ac_in
='$ac_file_inputs'
24518 ac_out
='"$tmp/out1"'
24519 ac_nxt
='"$tmp/out2"'
24523 # Write a here document:
24524 cat >>$CONFIG_STATUS <<_ACEOF
24525 # First, check the format of the line:
24526 cat >"\$tmp/defines.sed" <<\\CEOF
24527 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24528 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24532 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24534 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24535 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24536 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24537 grep . conftest.
tail >/dev
/null ||
break
24538 rm -f conftest.defines
24539 mv conftest.
tail conftest.defines
24541 rm -f conftest.defines conftest.
tail
24543 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24544 cat >>$CONFIG_STATUS <<\_ACEOF
24545 if test x
"$ac_file" != x-
; then
24546 echo "/* $configure_input */" >"$tmp/config.h"
24547 cat "$ac_result" >>"$tmp/config.h"
24548 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24550 echo "$as_me: $ac_file is unchanged" >&6;}
24553 mv "$tmp/config.h" $ac_file
24556 echo "/* $configure_input */"
24562 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24563 echo "$as_me: executing $ac_file commands" >&6;}
24568 case $ac_file$ac_mode in
24571 ### Make the necessary directories, if they don't exist.
24572 for dir
in etc lisp
; do
24573 test -d ${dir} || mkdir
${dir}
24576 # Build src/Makefile from ${srcdir}/src/Makefile.c
24577 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24578 # This must be done after src/config.h is built, since we rely on that file.
24580 # Now get this: Some word that is part of the ${srcdir} directory name
24581 # or the ${configuration} value might, just might, happen to be an
24582 # identifier like `sun4' or `i386' or something, and be predefined by
24583 # the C preprocessor to some helpful value like 1, or maybe the empty
24584 # string. Needless to say consequent macro substitutions are less
24585 # than conducive to the makefile finding the correct directory.
24586 undefs
="`echo $top_srcdir $configuration $canonical |
24587 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24588 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24591 echo creating src
/epaths.h
24592 ${MAKE-make} epaths-force
24594 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24595 # `..' to `. .' unless invoked with -traditional
24597 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24598 CPPFLAGS
="$CPPFLAGS -traditional"
24601 echo creating lib-src
/Makefile
24603 rm -f junk.c junk1.c junk2.c
24604 sed -e '/start of cpp stuff/q' \
24605 < Makefile.c
> junk1.c
24606 sed -e '1,/start of cpp stuff/d'\
24607 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24608 < Makefile.c
> junk.c
24609 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24610 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24611 cat junk1.c junk2.c
> Makefile.new
24612 rm -f junk.c junk1.c junk2.c
24613 chmod 444 Makefile.new
24614 mv -f Makefile.new Makefile
24617 echo creating src
/Makefile
24619 rm -f junk.c junk1.c junk2.c
24620 sed -e '/start of cpp stuff/q' \
24621 < Makefile.c
> junk1.c
24622 sed -e '1,/start of cpp stuff/d'\
24623 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24624 < Makefile.c
> junk.c
24625 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24626 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24627 cat junk1.c junk2.c
> Makefile.new
24628 rm -f junk.c junk1.c junk2.c
24629 chmod 444 Makefile.new
24630 mv -f Makefile.new Makefile
24633 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24634 echo creating src
/.gdbinit
24635 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24638 # This is how we know whether to re-run configure in certain cases.
24639 touch src
/config.stamp
24647 { (exit 0); exit 0; }
24649 chmod +x
$CONFIG_STATUS
24650 ac_clean_files
=$ac_clean_files_save
24653 # configure is writing to config.log, and then calls config.status.
24654 # config.status does its own redirection, appending to config.log.
24655 # Unfortunately, on DOS this fails, as config.log is still kept open
24656 # by configure, so config.status won't be able to write to it; its
24657 # output is simply discarded. So we exec the FD to /dev/null,
24658 # effectively closing config.log, so it can be properly (re)opened and
24659 # appended to by config.status. When coming back to configure, we
24660 # need to make the FD available again.
24661 if test "$no_create" != yes; then
24663 ac_config_status_args
=
24664 test "$silent" = yes &&
24665 ac_config_status_args
="$ac_config_status_args --quiet"
24667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24670 # would make configure fail if this is the last instruction.
24671 $ac_cs_success ||
{ (exit 1); exit 1; }