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 Please tell bug-autoconf@gnu.org about your system
,
416 echo including any error possibly output before this message.
417 echo This can
help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
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
711 x_default_search_path
728 ac_precious_vars
='build_alias
740 # Initialize some variables set by options.
742 ac_init_version
=false
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
752 program_transform_name
=s
,x
,x
,
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir
='${exec_prefix}/bin'
767 sbindir
='${exec_prefix}/sbin'
768 libexecdir
='${exec_prefix}/libexec'
769 datarootdir
='${prefix}/share'
770 datadir
='${datarootdir}'
771 sysconfdir
='${prefix}/etc'
772 sharedstatedir
='${prefix}/com'
773 localstatedir
='${prefix}/var'
774 includedir
='${prefix}/include'
775 oldincludedir
='/usr/include'
776 docdir
='${datarootdir}/doc/${PACKAGE}'
777 infodir
='${datarootdir}/info'
782 libdir
='${exec_prefix}/lib'
783 localedir
='${datarootdir}/locale'
784 mandir
='${datarootdir}/man'
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\
$ac_option
798 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 # Accept the important Cygnus configure options, so we can diagnose typos.
804 case $ac_dashdash$ac_option in
808 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
810 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
813 -build |
--build |
--buil |
--bui |
--bu)
814 ac_prev
=build_alias
;;
815 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
816 build_alias
=$ac_optarg ;;
818 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
819 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
820 ac_prev
=cache_file
;;
821 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
822 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
823 cache_file
=$ac_optarg ;;
826 cache_file
=config.cache
;;
828 -datadir |
--datadir |
--datadi |
--datad)
830 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
831 datadir
=$ac_optarg ;;
833 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
834 |
--dataroo |
--dataro |
--datar)
835 ac_prev
=datarootdir
;;
836 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
837 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
838 datarootdir
=$ac_optarg ;;
840 -disable-* |
--disable-*)
841 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845 { (exit 1); exit 1; }; }
846 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
847 eval enable_
$ac_feature=no
;;
849 -docdir |
--docdir |
--docdi |
--doc |
--do)
851 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
854 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
856 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
859 -enable-* |
--enable-*)
860 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_
$ac_feature=\
$ac_optarg ;;
868 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
869 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
870 |
--exec |
--exe |
--ex)
871 ac_prev
=exec_prefix
;;
872 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
873 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
874 |
--exec=* |
--exe=* |
--ex=*)
875 exec_prefix
=$ac_optarg ;;
877 -gas |
--gas |
--ga |
--g)
878 # Obsolete; use --with-gas.
881 -help |
--help |
--hel |
--he |
-h)
883 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
884 ac_init_help
=recursive
;;
885 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
886 ac_init_help
=short
;;
888 -host |
--host |
--hos |
--ho)
889 ac_prev
=host_alias
;;
890 -host=* |
--host=* |
--hos=* |
--ho=*)
891 host_alias
=$ac_optarg ;;
893 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
895 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
897 htmldir
=$ac_optarg ;;
899 -includedir |
--includedir |
--includedi |
--included |
--include \
900 |
--includ |
--inclu |
--incl |
--inc)
901 ac_prev
=includedir
;;
902 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
903 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
904 includedir
=$ac_optarg ;;
906 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
908 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
909 infodir
=$ac_optarg ;;
911 -libdir |
--libdir |
--libdi |
--libd)
913 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
916 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
917 |
--libexe |
--libex |
--libe)
918 ac_prev
=libexecdir
;;
919 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
920 |
--libexe=* |
--libex=* |
--libe=*)
921 libexecdir
=$ac_optarg ;;
923 -localedir |
--localedir |
--localedi |
--localed |
--locale)
925 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
926 localedir
=$ac_optarg ;;
928 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
929 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
930 ac_prev
=localstatedir
;;
931 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
932 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
933 localstatedir
=$ac_optarg ;;
935 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
937 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
941 # Obsolete; use --without-fp.
944 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
945 |
--no-cr |
--no-c |
-n)
948 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
949 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
952 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
953 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
954 |
--oldin |
--oldi |
--old |
--ol |
--o)
955 ac_prev
=oldincludedir
;;
956 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
957 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
958 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
959 oldincludedir
=$ac_optarg ;;
961 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
963 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
966 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
967 |
--program-pre |
--program-pr |
--program-p)
968 ac_prev
=program_prefix
;;
969 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
970 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
971 program_prefix
=$ac_optarg ;;
973 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
974 |
--program-suf |
--program-su |
--program-s)
975 ac_prev
=program_suffix
;;
976 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
977 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
978 program_suffix
=$ac_optarg ;;
980 -program-transform-name |
--program-transform-name \
981 |
--program-transform-nam |
--program-transform-na \
982 |
--program-transform-n |
--program-transform- \
983 |
--program-transform |
--program-transfor \
984 |
--program-transfo |
--program-transf \
985 |
--program-trans |
--program-tran \
986 |
--progr-tra |
--program-tr |
--program-t)
987 ac_prev
=program_transform_name
;;
988 -program-transform-name=* |
--program-transform-name=* \
989 |
--program-transform-nam=* |
--program-transform-na=* \
990 |
--program-transform-n=* |
--program-transform-=* \
991 |
--program-transform=* |
--program-transfor=* \
992 |
--program-transfo=* |
--program-transf=* \
993 |
--program-trans=* |
--program-tran=* \
994 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
995 program_transform_name
=$ac_optarg ;;
997 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
999 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 pdfdir
=$ac_optarg ;;
1002 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1004 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1007 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1008 |
-silent |
--silent |
--silen |
--sile |
--sil)
1011 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1013 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1015 sbindir
=$ac_optarg ;;
1017 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1018 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1019 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1021 ac_prev
=sharedstatedir
;;
1022 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1023 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1024 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1026 sharedstatedir
=$ac_optarg ;;
1028 -site |
--site |
--sit)
1030 -site=* |
--site=* |
--sit=*)
1033 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1035 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1036 srcdir
=$ac_optarg ;;
1038 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1039 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1040 ac_prev
=sysconfdir
;;
1041 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1042 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1043 sysconfdir
=$ac_optarg ;;
1045 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1046 ac_prev
=target_alias
;;
1047 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1048 target_alias
=$ac_optarg ;;
1050 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1053 -version |
--version |
--versio |
--versi |
--vers |
-V)
1054 ac_init_version
=: ;;
1057 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_
$ac_package=\
$ac_optarg ;;
1065 -without-* |
--without-*)
1066 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_
$ac_package=no
;;
1075 # Obsolete; use --with-x.
1078 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1079 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1080 ac_prev
=x_includes
;;
1081 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1082 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1083 x_includes
=$ac_optarg ;;
1085 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1086 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1087 ac_prev
=x_libraries
;;
1088 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1089 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1090 x_libraries
=$ac_optarg ;;
1092 -*) { echo "$as_me: error: unrecognized option: $ac_option
1093 Try \`$0 --help' for more information." >&2
1094 { (exit 1); exit 1; }; }
1098 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1101 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1102 { (exit 1); exit 1; }; }
1103 eval $ac_envvar=\
$ac_optarg
1104 export $ac_envvar ;;
1107 # FIXME: should be removed in autoconf 3.0.
1108 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1110 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 if test -n "$ac_prev"; then
1118 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1119 { echo "$as_me: error: missing argument to $ac_option" >&2
1120 { (exit 1); exit 1; }; }
1123 # Be sure to have absolute directory names.
1124 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1129 eval ac_val
=\$
$ac_var
1131 [\\/$
]* | ?
:[\\/]* ) continue;;
1132 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1134 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1135 { (exit 1); exit 1; }; }
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1143 target
=$target_alias
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x
; then
1147 if test "x$build_alias" = x
; then
1148 cross_compiling
=maybe
1149 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1150 If a cross compiler is detected then cross compile mode will be used." >&2
1151 elif test "x$build_alias" != "x$host_alias"; then
1157 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1159 test "$silent" = yes && exec 6>/dev
/null
1162 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di
=`ls -di .` &&
1164 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1165 { echo "$as_me: error: Working directory cannot be determined" >&2
1166 { (exit 1); exit 1; }; }
1167 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 { echo "$as_me: error: pwd does not report name of working directory" >&2
1169 { (exit 1); exit 1; }; }
1172 # Find the source files, if location was not specified.
1173 if test -z "$srcdir"; then
1174 ac_srcdir_defaulted
=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir
=`$as_dirname -- "$0" ||
1177 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$0" : 'X\(//\)[^/]' \| \
1179 X"$0" : 'X\(//\)$' \| \
1180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1204 ac_srcdir_defaulted
=no
1206 if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1208 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1209 { (exit 1); exit 1; }; }
1211 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1214 { (exit 1); exit 1; }; }
1216 # When building in place, set srcdir=.
1217 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 # Remove unnecessary trailing slashes from srcdir.
1221 # Double slashes in file names in object file debugging info
1222 # mess up M-x gdb in Emacs.
1224 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 for ac_var
in $ac_precious_vars; do
1227 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1228 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1229 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1230 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1234 # Report the --help message.
1236 if test "$ac_init_help" = "long"; then
1237 # Omit some internal or obsolete options to make the list less imposing.
1238 # This message is too long to be a string in the A/UX 3.1 sh.
1240 \`configure' configures this package to adapt to many kinds of systems.
1242 Usage: $0 [OPTION]... [VAR=VALUE]...
1244 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245 VAR=VALUE. See below for descriptions of some of the useful variables.
1247 Defaults for the options are specified in brackets.
1250 -h, --help display this help and exit
1251 --help=short display options specific to this package
1252 --help=recursive display the short help of all the included packages
1253 -V, --version display version information and exit
1254 -q, --quiet, --silent do not print \`checking...' messages
1255 --cache-file=FILE cache test results in FILE [disabled]
1256 -C, --config-cache alias for \`--cache-file=config.cache'
1257 -n, --no-create do not create output files
1258 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260 Installation directories:
1261 --prefix=PREFIX install architecture-independent files in PREFIX
1262 [$ac_default_prefix]
1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 By default, \`make install' will install all the files in
1267 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269 for instance \`--prefix=\$HOME'.
1271 For better control, use the options below.
1273 Fine tuning of the installation directories:
1274 --bindir=DIR user executables [EPREFIX/bin]
1275 --sbindir=DIR system admin executables [EPREFIX/sbin]
1276 --libexecdir=DIR program executables [EPREFIX/libexec]
1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280 --libdir=DIR object code libraries [EPREFIX/lib]
1281 --includedir=DIR C header files [PREFIX/include]
1282 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1285 --infodir=DIR info documentation [DATAROOTDIR/info]
1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1287 --mandir=DIR man documentation [DATAROOTDIR/man]
1288 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1289 --htmldir=DIR html documentation [DOCDIR]
1290 --dvidir=DIR dvi documentation [DOCDIR]
1291 --pdfdir=DIR pdf documentation [DOCDIR]
1292 --psdir=DIR ps documentation [DOCDIR]
1298 --program-prefix=PREFIX prepend PREFIX to installed program names
1299 --program-suffix=SUFFIX append SUFFIX to installed program names
1300 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1303 --x-includes=DIR X include files are
in DIR
1304 --x-libraries=DIR X library files are
in DIR
1307 --build=BUILD configure
for building on BUILD
[guessed
]
1308 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1312 if test -n "$ac_init_help"; then
1317 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1318 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1319 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1320 specify
install directory
for Emacs.app on Mac OS X
1321 --enable-asserts compile code with asserts enabled
1322 --enable-maintainer-mode enable make rules and dependencies not useful
1323 (and sometimes confusing
) to the casual installer
1324 --enable-locallisppath=PATH
1325 directories Emacs should search
for lisp files
1326 specific to this site
1327 --disable-largefile omit support
for large files
1330 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1331 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1332 --without-gcc don
't use GCC to compile Emacs if GCC is found
1333 --without-pop don't support POP
mail retrieval with movemail
1334 --with-kerberos support Kerberos-authenticated POP
1335 --with-kerberos5 support Kerberos version
5 authenticated POP
1336 --with-hesiod support Hesiod to get the POP server
host
1337 --without-sound don
't compile with sound support
1338 --with-x-toolkit=KIT use an X toolkit
1339 (KIT = yes/lucid/athena/motif/gtk/no)
1340 --with-xpm use -lXpm for displaying XPM images
1341 --with-jpeg use -ljpeg for displaying JPEG images
1342 --with-tiff use -ltiff for displaying TIFF images
1343 --with-gif use -lgif (or -lungif) for displaying GIF images
1344 --with-png use -lpng for displaying PNG images
1345 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1346 --with-rsvg use -lrsvg-2 for displaying SVG images
1347 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1348 --with-pkg-config-prog Path to pkg-config to use for finding GTK and librsvg
1349 --without-toolkit-scroll-bars
1350 don't use Motif or Xaw3d scroll bars
1351 --without-xim don
't use X11 XIM
1352 --without-carbon don't use Carbon GUI on Mac OS X
1353 --with-x use the X Window System
1355 Some influential environment variables
:
1356 CC C compiler
command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1359 nonstandard directory
<lib dir
>
1360 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1361 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1362 you have headers
in a nonstandard directory
<include dir
>
1364 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1366 Use these variables to override the choices made by
`configure' or to help
1367 it to find libraries and programs with nonstandard names/locations.
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" || continue
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1396 .) # We are building in place.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1420 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1430 generated by GNU Autoconf 2.61
1432 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1433 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1434 This configure script is free software; the Free Software Foundation
1435 gives unlimited permission to copy, distribute and modify it.
1439 cat >config.log <<_ACEOF
1440 This file contains any messages produced by compilers while
1441 running configure, to aid debugging if configure makes a mistake.
1443 It was created by $as_me, which was
1444 generated by GNU Autoconf 2.61. Invocation command line was
1456 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1457 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1458 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1459 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1460 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1463 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1465 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1467 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1469 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1470 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1471 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 test -z "$as_dir" && as_dir=.
1480 echo "PATH: $as_dir"
1496 # Keep a trace of the command line.
1497 # Strip out --no-create and --no-recursion so they do not pile up.
1498 # Strip out --silent because we don't want to record it for future runs.
1499 # Also quote any args containing shell meta-characters.
1500 # Make two passes to allow for proper duplicate-argument suppression.
1504 ac_must_keep_next=false
1510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1515 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1518 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1520 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1521 if test $ac_must_keep_next = true; then
1522 ac_must_keep_next=false # Got value, back to normal.
1525 *=* | --config-cache | -C | -disable-* | --disable-* \
1526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1528 | -with-* | --with-* | -without-* | --without-* | --x)
1529 case "$ac_configure_args0 " in
1530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1533 -* ) ac_must_keep_next=true ;;
1536 ac_configure_args="$ac_configure_args '$ac_arg'"
1541 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1542 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1544 # When interrupted or exit'd, cleanup temporary files, and complete
1545 # config.log. We remove comments because anyway the quotes in there
1546 # would cause problems or look ugly.
1547 # WARNING: Use '\'' to represent an apostrophe within the trap.
1548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1549 trap 'exit_status=$?
1550 # Save into config.log some information that might help in debugging.
1555 ## ---------------- ##
1556 ## Cache variables. ##
1557 ## ---------------- ##
1560 # The following way of writing the cache mishandles newlines in values,
1562 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1563 eval ac_val=\$$ac_var
1567 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1568 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1571 _ | IFS | as_nl) ;; #(
1572 *) $as_unset $ac_var ;;
1577 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1578 *${as_nl}ac_space=\ *)
1580 "s/'\''/'\''\\\\'\'''\''/g;
1581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592 ## ----------------- ##
1593 ## Output variables. ##
1594 ## ----------------- ##
1597 for ac_var in $ac_subst_vars
1599 eval ac_val=\$$ac_var
1601 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1603 echo "$ac_var='\''$ac_val'\''"
1607 if test -n "$ac_subst_files"; then
1609 ## ------------------- ##
1610 ## File substitutions. ##
1611 ## ------------------- ##
1614 for ac_var in $ac_subst_files
1616 eval ac_val=\$$ac_var
1618 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 echo "$ac_var='\''$ac_val'\''"
1625 if test -s confdefs.h; then
1635 test "$ac_signal" != 0 &&
1636 echo "$as_me: caught signal $ac_signal"
1637 echo "$as_me: exit $exit_status"
1639 rm -f core *.core core.conftest.* &&
1640 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643 for ac_signal in 1 2 13 15; do
1644 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1649 rm -f -r conftest* confdefs.h
1651 # Predefined preprocessor variables.
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_NAME "$PACKAGE_NAME"
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_STRING "$PACKAGE_STRING"
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1678 # Let the site file select an alternate cache file if it wants to.
1679 # Prefer explicitly selected file to automatically selected ones.
1680 if test -n "$CONFIG_SITE"; then
1681 set x "$CONFIG_SITE"
1682 elif test "x$prefix" != xNONE; then
1683 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1685 set x "$ac_default_prefix/share/config.site" \
1686 "$ac_default_prefix/etc/config.site"
1691 if test -r "$ac_site_file"; then
1692 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1693 echo "$as_me: loading site script $ac_site_file" >&6;}
1694 sed 's/^/| /' "$ac_site_file" >&5
1699 if test -r "$cache_file"; then
1700 # Some versions of bash will fail to source /dev/null (special
1701 # files actually), so we avoid doing that.
1702 if test -f "$cache_file"; then
1703 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1704 echo "$as_me: loading cache $cache_file" >&6;}
1706 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1707 *) . "./$cache_file";;
1711 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1712 echo "$as_me: creating cache $cache_file" >&6;}
1716 ac_header_list="$ac_header_list sys/time.h"
1717 ac_header_list="$ac_header_list unistd.h"
1718 ac_func_list="$ac_func_list alarm"
1719 # Check that the precious variables saved in the cache have kept the same
1721 ac_cache_corrupted=false
1722 for ac_var in $ac_precious_vars; do
1723 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1724 eval ac_new_set=\$ac_env_${ac_var}_set
1725 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1726 eval ac_new_val=\$ac_env_${ac_var}_value
1727 case $ac_old_set,$ac_new_set in
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1734 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1738 if test "x$ac_old_val" != "x$ac_new_val"; then
1739 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1740 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1741 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1742 echo "$as_me: former value
: $ac_old_val" >&2;}
1743 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1744 echo "$as_me: current value
: $ac_new_val" >&2;}
1745 ac_cache_corrupted=:
1748 # Pass precious variables to config.status.
1749 if test "$ac_new_set" = set; then
1751 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1752 *) ac_arg=$ac_var=$ac_new_val ;;
1754 case " $ac_configure_args " in
1755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1756 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 if $ac_cache_corrupted; then
1761 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1762 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1763 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1764 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1765 { (exit 1); exit 1; }; }
1785 ac_cpp='$CPP $CPPFLAGS'
1786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1794 test "$program_prefix" != NONE &&
1795 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1796 # Use a double $ so make ignores it.
1797 test "$program_suffix" != NONE &&
1798 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1799 # Double any \ or $. echo might interpret backslashes.
1800 # By default was `s
,x
,x
', remove it if useless.
1801 cat <<\_ACEOF >conftest.sed
1802 s/[\\$]/&&/g;s/;s,x,x,$//
1804 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1808 lispdir='${datadir}/emacs
/${version}/lisp
'
1809 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1810 '${datadir}/emacs
/site-lisp
'
1811 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1812 etcdir='${datadir}/emacs
/${version}/etc
'
1813 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1814 docdir='${datadir}/emacs
/${version}/etc
'
1815 gamedir='${localstatedir}/games
/emacs
'
1820 # Check whether --with-gcc was given.
1821 if test "${with_gcc+set}" = set; then
1826 # Check whether --with-pop was given.
1827 if test "${with_pop+set}" = set; then
1828 withval=$with_pop; if test "$withval" = yes; then
1829 cat >>confdefs.h <<\_ACEOF
1830 #define MAIL_USE_POP 1
1836 cat >>confdefs.h <<\_ACEOF
1837 #define MAIL_USE_POP 1
1844 # Check whether --with-kerberos was given.
1845 if test "${with_kerberos+set}" = set; then
1846 withval=$with_kerberos; if test "$withval" = yes; then
1847 cat >>confdefs.h <<\_ACEOF
1856 # Check whether --with-kerberos5 was given.
1857 if test "${with_kerberos5+set}" = set; then
1858 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1859 if test "${with_kerberos+set}" != set; then
1861 cat >>confdefs.h <<\_ACEOF
1867 cat >>confdefs.h <<\_ACEOF
1875 # Check whether --with-hesiod was given.
1876 if test "${with_hesiod+set}" = set; then
1877 withval=$with_hesiod; if test "$withval" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1888 # Check whether --with-sound was given.
1889 if test "${with_sound+set}" = set; then
1890 withval=$with_sound;
1895 # Check whether --with-x-toolkit was given.
1896 if test "${with_x_toolkit+set}" = set; then
1897 withval=$with_x_toolkit; case "${withval}" in
1898 y | ye | yes ) val=gtk ;;
1900 l | lu | luc | luci | lucid ) val=lucid ;;
1901 a | at | ath | athe | athen | athena ) val=athena ;;
1902 m | mo | mot | moti | motif ) val=motif ;;
1903 g | gt | gtk ) val=gtk ;;
1905 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1906 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1907 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1908 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1909 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1910 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1911 { (exit 1); exit 1; }; }
1919 # Check whether --with-xpm was given.
1920 if test "${with_xpm+set}" = set; then
1925 # Check whether --with-jpeg was given.
1926 if test "${with_jpeg+set}" = set; then
1931 # Check whether --with-tiff was given.
1932 if test "${with_tiff+set}" = set; then
1937 # Check whether --with-gif was given.
1938 if test "${with_gif+set}" = set; then
1943 # Check whether --with-png was given.
1944 if test "${with_png+set}" = set; then
1949 # Check whether --with-gpm was given.
1950 if test "${with_gpm+set}" = set; then
1955 # Check whether --with-rsvg was given.
1956 if test "${with_rsvg+set}" = set; then
1961 # Check whether --with-gtk was given.
1962 if test "${with_gtk+set}" = set; then
1967 # Check whether --with-pkg-config-prog was given.
1968 if test "${with_pkg_config_prog+set}" = set; then
1969 withval=$with_pkg_config_prog;
1973 # Check whether --with-toolkit-scroll-bars was given.
1974 if test "${with_toolkit_scroll_bars+set}" = set; then
1975 withval=$with_toolkit_scroll_bars;
1979 # Check whether --with-xim was given.
1980 if test "${with_xim+set}" = set; then
1985 # Check whether --with-carbon was given.
1986 if test "${with_carbon+set}" = set; then
1987 withval=$with_carbon;
1990 # Check whether --enable-carbon-app was given.
1991 if test "${enable_carbon_app+set}" = set; then
1992 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1996 # Check whether --enable-asserts was given.
1997 if test "${enable_asserts+set}" = set; then
1998 enableval=$enable_asserts; USE_XASSERTS=$enableval
2004 # Check whether --enable-maintainer-mode was given.
2005 if test "${enable_maintainer_mode+set}" = set; then
2006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2008 USE_MAINTAINER_MODE=no
2011 if test $USE_MAINTAINER_MODE = yes; then
2018 # Check whether --enable-locallisppath was given.
2019 if test "${enable_locallisppath+set}" = set; then
2020 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2022 elif test "${enableval}" != "yes"; then
2023 locallisppath=${enableval}
2028 #### Make srcdir absolute, if it isn't already. It
's important to
2029 #### avoid running the path through pwd unnecessarily, since pwd can
2030 #### give you automounter prefixes, which can go away. We do all this
2031 #### so Emacs can find its files when run uninstalled.
2032 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2037 ## We may be able to use the $PWD environment variable to make this
2038 ## absolute. But sometimes PWD is inaccurate.
2039 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2040 ## but that tested only for a well-formed and valid PWD,
2041 ## it did not object when PWD was well-formed and valid but just wrong.
2042 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2046 srcdir
="`(cd ${srcdir}; pwd)`"
2049 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2052 #### Check if the source directory already has a configured system in it.
2053 if test `pwd` != `(cd ${srcdir} && pwd)` \
2054 && test -f "${srcdir}/src/config.h" ; then
2055 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2056 as a build directory right now; it has been configured in its own
2057 right. To configure in another directory as well, you MUST
2058 use GNU make. If you do not have GNU make, then you must
2059 now do \`make distclean' in ${srcdir},
2060 and then run $0 again." >&5
2061 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2062 as a build directory right now; it has been configured in its own
2063 right. To configure in another directory as well, you MUST
2064 use GNU make. If you do not have GNU make, then you must
2065 now do \`make distclean' in ${srcdir},
2066 and then run $0 again." >&2;}
2069 #### Given the configuration name, set machfile and opsysfile to the
2070 #### names of the m/*.h and s/*.h files we should use.
2072 ### Canonicalize the configuration name.
2075 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2076 if test -f "$ac_dir/install-sh"; then
2078 ac_install_sh
="$ac_aux_dir/install-sh -c"
2080 elif test -f "$ac_dir/install.sh"; then
2082 ac_install_sh
="$ac_aux_dir/install.sh -c"
2084 elif test -f "$ac_dir/shtool"; then
2086 ac_install_sh
="$ac_aux_dir/shtool install -c"
2090 if test -z "$ac_aux_dir"; then
2091 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2092 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2093 { (exit 1); exit 1; }; }
2096 # These three variables are undocumented and unsupported,
2097 # and are intended to be withdrawn in a future Autoconf release.
2098 # They can cause serious problems if a builder's source tree is in a directory
2099 # whose full name contains unusual characters.
2100 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2101 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2102 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2107 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109 { (exit 1); exit 1; }; }
2111 { echo "$as_me:$LINENO: checking build system type" >&5
2112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 ac_build_alias
=$build_alias
2117 test "x$ac_build_alias" = x
&&
2118 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x
&&
2120 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122 { (exit 1); exit 1; }; }
2123 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 echo "${ECHO_T}$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 echo "$as_me: error: invalid value of canonical build" >&2;}
2135 { (exit 1); exit 1; }; };;
2138 ac_save_IFS
=$IFS; IFS
='-'
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2148 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2151 { echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_host+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 if test "x$host_alias" = x
; then
2157 ac_cv_host
=$ac_cv_build
2159 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167 echo "${ECHO_T}$ac_cv_host" >&6; }
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171 echo "$as_me: error: invalid value of canonical host" >&2;}
2172 { (exit 1); exit 1; }; };;
2175 ac_save_IFS
=$IFS; IFS
='-'
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2185 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2189 configuration
=${host_alias-${build_alias-$host}}
2193 ### If you add support for a new configuration, add code to this
2194 ### switch statement to recognize your configuration name and select
2195 ### the appropriate operating system and machine description files.
2197 ### You would hope that you could choose an m/*.h file pretty much
2198 ### based on the machine portion of the configuration name, and an s-
2199 ### file based on the operating system portion. However, it turns out
2200 ### that each m/*.h file is pretty manufacturer-specific - for
2201 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2202 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2203 ### machines. So we basically have to have a special case for each
2204 ### configuration name.
2206 ### As far as handling version numbers on operating systems is
2207 ### concerned, make sure things will fail in a fixable way. If
2208 ### /etc/MACHINES doesn't say anything about version numbers, be
2209 ### prepared to handle anything reasonably. If version numbers
2210 ### matter, be sure /etc/MACHINES says something about it.
2212 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2213 ### "System V Release 4"; he writes, "The old convention encouraged
2214 ### confusion between `system' and `release' levels'."
2216 machine
='' opsys
='' unported
=no
2217 case "${canonical}" in
2222 case "${canonical}" in
2223 alpha
*-*-freebsd*) machine
=alpha
;;
2224 ia64-
*-freebsd*) machine
=ia64
;;
2225 sparc64-
*-freebsd*) machine
=sparc
;;
2226 powerpc-
*-freebsd*) machine
=macppc
;;
2227 i
[3456]86-*-freebsd*) machine
=intel386
;;
2228 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2235 if test -f /usr
/lib
/crti.o
; then
2237 cat >>confdefs.h
<<\_ACEOF
2243 case "${canonical}" in
2244 alpha
*-*-netbsd*) machine
=alpha
;;
2245 i
[3456]86-*-netbsd*) machine
=intel386
;;
2247 # This is somewhat bogus.
2248 machine
=hp9000s300
;;
2249 mips-
*-netbsd*) machine
=pmax
;;
2250 mipsel-
*-netbsd*) machine
=pmax
;;
2251 mipseb-
*-netbsd*) machine
=pmax
;;
2252 ns32k-
*-netbsd*) machine
=ns32000
;;
2253 powerpc-
*-netbsd*) machine
=macppc
;;
2254 sparc
*-*-netbsd*) machine
=sparc
;;
2255 vax-
*-netbsd*) machine
=vax
;;
2256 arm-
*-netbsd*) machine
=arm
;;
2257 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2258 hppa-
*-netbsd*) machine
=hp800
;;
2259 shle-
*-netbsd*) machine
=sh3el
;;
2266 case "${canonical}" in
2267 alpha
*-*-openbsd*) machine
=alpha
;;
2268 arm-
*-openbsd*) machine
=arm
;;
2269 hppa-
*-openbsd*) machine
=hp9000s300
;;
2270 i386-
*-openbsd*) machine
=intel386
;;
2271 m68k-
*-openbsd*) machine
=hp9000s300
;;
2272 m88k-
*-openbsd*) machine
=aviion
;;
2273 mips64-
*-openbsd*) machine
=mips64
;;
2274 powerpc-
*-openbsd*) machine
=macppc
;;
2275 sh-
*-openbsd*) machine
=sh3el
;;
2276 sparc
*-*-openbsd*) machine
=sparc
;;
2277 vax-
*-openbsd*) machine
=vax
;;
2278 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2285 case "${canonical}" in
2286 i
[3456]86-*-lynxos*) machine
=intel386
;;
2287 powerpc-
*-lynxos*) machine
=powerpc
;;
2292 arm-acorn-riscix1.1
* )
2293 machine
=acorn opsys
=riscix1-1
2295 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2296 ## This name is riscix12 instead of riscix1.2
2297 ## to avoid a file name conflict on MSDOS.
2298 machine
=acorn opsys
=riscix12
2304 case "${canonical}" in
2305 i
[345]86-*-bsdi*) machine
=intel386
;;
2306 sparc-
*-bsdi*) machine
=sparc
;;
2307 powerpc-
*-bsdi*) machine
=macppc
;;
2309 case "${canonical}" in
2310 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2311 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2312 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2313 *-*-bsdi3* ) opsys
=bsdos3
;;
2314 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2319 ## Strictly speaking, we need the version of the alliant operating
2320 ## system to choose the right machine file, but currently the
2321 ## configuration name doesn't tell us enough to choose the right
2322 ## one; we need to give alliants their own operating system name to
2323 ## do this right. When someone cares, they can help us.
2325 machine
=alliant4 opsys
=bsd4-2
2328 machine
=alliant-2800 opsys
=bsd4-3
2331 ## Alpha (DEC) machines.
2333 machine
=alpha opsys
=osf1
2334 # This is needed to find X11R6.1 libraries for certain tests.
2335 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2336 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2337 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2338 # due to non-traditional preprocessing with the current compiler
2339 # defaults. OSF 4 can also have that compiler version, and there
2340 # seems always to have been a usable /usr/bin/cpp.
2341 NON_GNU_CPP
=/usr
/bin
/cpp
2342 case "${canonical}" in
2343 alpha
*-dec-osf[5-9]*)
2348 alpha
*-*-linux-gnu* )
2349 machine
=alpha opsys
=gnu-linux
2353 machine
=arm opsys
=gnu-linux
2358 machine
=altos opsys
=usg5-2
2363 machine
=amdahl opsys
=usg5-2-2
2366 ## Apollo, Domain/OS
2368 machine
=apollo opsys
=bsd4-3
2371 ## Apple Darwin / Mac OS X
2373 case "${canonical}" in
2374 i
[3456]86-* ) machine
=intel386
;;
2375 powerpc-
* ) machine
=powermac
;;
2379 # Define CPP as follows to make autoconf work correctly.
2380 CPP
="${CC-cc} -E -no-cpp-precomp"
2381 # Use fink packages if available.
2382 if test -d /sw
/include
&& test -d /sw
/lib
; then
2383 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2384 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2385 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2389 ## AT&T 3b2, 3b5, 3b15, 3b20
2391 machine
=att3b opsys
=usg5-2-2
2394 ## AT&T 3b1 - The Mighty Unix PC!
2396 machine
=7300 opsys
=usg5-2-2
2401 machine
=ibmrs6000 opsys
=aix3-2
2406 machine
=dpx2 opsys
=usg5-3
2411 machine
=sps7 opsys
=usg5-2
2414 ## CCI 5/32, 6/32 -- see "Tahoe".
2417 ## I don't know what configuration name to use for this; config.sub
2418 ## doesn't seem to know anything about it. Hey, Celerity users, get
2419 ## in touch with us!
2420 celerity-celerity-bsd
* )
2421 machine
=celerity opsys
=bsd4-2
2425 ## What operating systems does this chip run that Emacs has been
2429 ## We'll use the catch-all code at the bottom to guess the
2430 ## operating system.
2434 mips-compaq-nonstopux
* )
2435 machine
=nonstopux opsys
=nonstopux
2439 *-convex-bsd* |
*-convex-convexos* )
2440 machine
=convex opsys
=bsd4-3
2441 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2442 NON_GNU_CPP
="cc -E -P"
2446 i
[3456]86-cubix-sysv* )
2447 machine
=intel386 opsys
=usg5-3
2451 cydra
*-cydrome-sysv* )
2452 machine
=cydra5 opsys
=usg5-3
2455 ## Data General AViiON Machines
2456 ## DG changed naming conventions with the release of 5.4.4.10, they
2457 ## dropped the initial 5.4 but left the intervening R. Because of the
2458 ## R this shouldn't conflict with older versions of the OS (which I
2459 ## think were named like dgux4.*). In addition, DG new AViiONs series
2460 ## uses either Motorola M88k or Intel Pentium CPUs.
2461 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2462 machine
=aviion opsys
=dgux4
2464 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2465 ## This name is dgux5-4-3 instead of dgux5-4r3
2466 ## to avoid a file name conflict on MSDOS.
2467 machine
=aviion opsys
=dgux5-4-3
2469 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2470 machine
=aviion opsys
=dgux5-4r2
2473 machine
=aviion opsys
=dgux
2476 ## Data General AViiON Intel (x86) Machines
2477 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2478 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2479 i
[345]86-dg-dguxR4* )
2480 machine
=aviion-intel opsys
=dgux4
2484 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2485 machine
=pmax opsys
=bsd4-2
2487 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2488 machine
=pmax opsys
=bsd4-3
2491 machine
=pmax opsys
=ultrix4-3
2494 machine
=pmax opsys
=osf1
2496 mips-dec-mach_bsd4.3
* )
2497 machine
=pmax opsys
=mach-bsd4-3
2500 ## Motorola Delta machines
2501 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2502 machine
=delta opsys
=usg5-3
2503 if test -z "`type gnucc | grep 'not found'`"
2505 if test -s /etc
/167config
2506 then CC
="gnucc -m68040"
2507 else CC
="gnucc -m68881"
2510 if test -z "`type gcc | grep 'not found'`"
2516 m88k-motorola-sysv4
* )
2517 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2518 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2519 # I hope there are not other 4.0 versions for this machine
2520 # which really need usg5-4 instead.
2521 machine
=delta88k opsys
=usg5-4-2
2523 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2524 machine
=delta88k opsys
=usg5-3
2529 machine
=dual opsys
=usg5-2
2531 m68
*-dual-uniplus* )
2532 machine
=dual opsys
=unipl5-2
2537 machine
=elxsi opsys
=usg5-2
2542 machine
=ns16000 opsys
=umax
2545 ## The GEC 63 - apparently, this port isn't really finished yet.
2546 # I'm sure we finished off the last of the machines, though. -- fx
2548 ## Gould Power Node and NP1
2550 machine
=gould opsys
=bsd4-2
2553 machine
=gould opsys
=bsd4-3
2556 machine
=gould-np1 opsys
=bsd4-3
2559 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2560 ## as far as Emacs is concerned).
2562 # Build needs to be different on 7.0 and later releases
2563 case "`uname -r`" in
2564 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2565 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2567 NON_GNU_CPP
="/lib/cpp"
2569 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2571 machine
=nh3000 opsys
=cxux
2573 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2574 powerpc-harris-powerunix
)
2575 machine
=nh6000 opsys
=powerunix
2576 NON_GNU_CPP
="cc -Xo -E -P"
2578 ## SR2001/SR2201 running HI-UX/MPP
2579 hppa1.1
-hitachi-hiuxmpp* )
2580 machine
=sr2k opsys
=hiuxmpp
2582 hppa1.1
-hitachi-hiuxwe2* )
2583 machine
=sr2k opsys
=hiuxwe2
2586 xps
*-honeywell-sysv* )
2587 machine
=xps100 opsys
=usg5-2
2590 ## HP 9000 series 200 or 300
2592 machine
=hp9000s300 opsys
=bsd4-3
2594 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2596 case "`uname -r`" in
2597 ## Someone's system reports A.B8.05 for this.
2598 ## I wonder what other possibilities there are.
2599 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2600 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2601 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2602 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2603 *) machine
=hp9000s300 opsys
=hpux
;;
2607 ## HP 9000 series 700 and 800, running HP/UX
2609 machine
=hp800 opsys
=hpux
2612 machine
=hp800 opsys
=hpux8
2614 hppa
*-hp-hpux9shr* )
2615 machine
=hp800 opsys
=hpux9shr
2618 machine
=hp800 opsys
=hpux9
2620 hppa
*-hp-hpux10.2
* )
2621 machine
=hp800 opsys
=hpux10-20
2624 machine
=hp800 opsys
=hpux10
2626 hppa
*-hp-hpux1[1-9]* )
2627 machine
=hp800 opsys
=hpux11
2628 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2631 hppa
*-*-linux-gnu* )
2632 machine
=hp800 opsys
=gnu-linux
2635 ## HP 9000 series 700 and 800, running HP/UX
2637 ## Cross-compilation? Nah!
2638 case "`uname -r`" in
2639 ## Someone's system reports A.B8.05 for this.
2640 ## I wonder what other possibilities there are.
2641 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2642 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2643 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2644 *) machine
=hp800 opsys
=hpux10
;;
2648 machine
=hp800 opsys
=nextstep
2653 machine
=orion opsys
=bsd4-2
2655 clipper-orion-bsd
* )
2656 machine
=orion105 opsys
=bsd4-2
2660 i
[3456]86-ibm-aix1.1
* )
2661 machine
=ibmps2-aix opsys
=usg5-2-2
2663 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2664 machine
=ibmps2-aix opsys
=usg5-3
2667 machine
=ibm370aix opsys
=usg5-3
2670 machine
=ibms390 opsys
=gnu-linux
2672 s390x-
*-linux-gnu* )
2673 machine
=ibms390x opsys
=gnu-linux
2675 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2676 machine
=ibmrs6000 opsys
=aix3-1
2678 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2679 machine
=ibmrs6000 opsys
=aix3-2-5
2681 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2682 machine
=ibmrs6000 opsys
=aix4-1
2684 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2685 machine
=ibmrs6000 opsys
=aix4-2
2687 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2688 machine
=ibmrs6000 opsys
=aix4-2
2690 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2691 machine
=ibmrs6000 opsys
=aix4-2
2693 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2694 machine
=ibmrs6000 opsys
=aix4
2696 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2697 machine
=ibmrs6000 opsys
=aix4-1
2699 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2700 machine
=ibmrs6000 opsys
=aix3-2
2703 machine
=ibmrt opsys
=bsd4-3
2706 machine
=ibmrt opsys
=bsd4-2
2709 machine
=ibmrt opsys
=bsd4-3
2712 machine
=ibmrt opsys
=bsd4-2
2715 machine
=ibmrt opsys
=bsd4-3
2718 machine
=ibmrt opsys
=bsd4-3
2721 machine
=ibmrt-aix opsys
=usg5-2-2
2724 ## Integrated Solutions `Optimum V'
2726 machine
=isi-ov opsys
=bsd4-2
2729 machine
=isi-ov opsys
=bsd4-3
2732 ## Intel 386 machines where we do care about the manufacturer
2733 i
[3456]86-intsys-sysv* )
2734 machine
=is386 opsys
=usg5-2-2
2738 i
[3456]86-prime-sysv* )
2739 machine
=i386 opsys
=usg5-3
2742 ## Sequent Symmetry running Dynix
2743 i
[3456]86-sequent-bsd* )
2744 machine
=symmetry opsys
=bsd4-3
2747 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2748 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2749 machine
=sequent-ptx opsys
=ptx4
2750 NON_GNU_CPP
=/lib
/cpp
2753 ## Sequent Symmetry running DYNIX/ptx
2754 ## Use the old cpp rather than the newer ANSI one.
2755 i
[3456]86-sequent-ptx* )
2756 machine
=sequent-ptx opsys
=ptx
2757 NON_GNU_CPP
="/lib/cpp"
2760 ## ncr machine running svr4.3.
2761 i
[3456]86-ncr-sysv4.3
)
2762 machine
=ncr386 opsys
=usg5-4-3
2765 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2766 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2767 i
[3456]86-ncr-sysv* )
2768 machine
=ncr386 opsys
=usg5-4-2
2771 ## Intel Paragon OSF/1
2773 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2778 machine
=i860 opsys
=usg5-4
2779 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2780 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2783 ## Macintosh PowerPC
2784 powerpc
*-*-linux-gnu* )
2785 machine
=macppc opsys
=gnu-linux
2788 ## Masscomp machines
2789 m68
*-masscomp-rtu* )
2790 machine
=masscomp opsys
=rtu
2793 ## Megatest machines
2794 m68
*-megatest-bsd* )
2795 machine
=mega68 opsys
=bsd4-2
2798 ## Workstations sold by MIPS
2799 ## This is not necessarily all workstations using the MIPS processor -
2800 ## Irises are produced by SGI, and DECstations by DEC.
2802 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2803 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2804 ## it gives for choosing between the alternatives seems to be "Use
2805 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2806 ## the BSD world." I'll assume that these are instructions for
2807 ## handling two odd situations, and that every other situation
2808 ## should use mips.h and usg5-2-2, they being listed first.
2811 ## Fall through to the general code at the bottom to decide on the OS.
2813 mips-mips-riscos4
* )
2814 machine
=mips4 opsys
=bsd4-3
2815 NON_GNU_CC
="cc -systype bsd43"
2816 NON_GNU_CPP
="cc -systype bsd43 -E"
2818 mips-mips-riscos5
* )
2819 machine
=mips4 opsys
=riscos5
2820 NON_GNU_CC
="cc -systype bsd43"
2821 NON_GNU_CPP
="cc -systype bsd43 -E"
2824 machine
=mips opsys
=bsd4-3
2827 machine
=mips opsys
=usg5-2-2
2831 m68
*-next-* | m68k-
*-nextstep* )
2832 machine
=m68k opsys
=nextstep
2835 ## The complete machine from National Semiconductor
2837 machine
=ns32000 opsys
=usg5-2
2841 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2842 machine
=tower32 opsys
=usg5-2-2
2844 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2845 machine
=tower32v3 opsys
=usg5-3
2850 machine
=ews4800 opsys
=ux4800
2853 ## Nixdorf Targon 31
2854 m68
*-nixdorf-sysv* )
2855 machine
=targon31 opsys
=usg5-2-2
2860 machine
=nu opsys
=usg5-2
2865 machine
=plexus opsys
=usg5-2
2869 ## I don't really have any idea what sort of processor the Pyramid has,
2870 ## so I'm assuming it is its own architecture.
2871 pyramid-pyramid-bsd
* )
2872 machine
=pyramid opsys
=bsd4-2
2876 ns32k-sequent-bsd4.2
* )
2877 machine
=sequent opsys
=bsd4-2
2879 ns32k-sequent-bsd4.3
* )
2880 machine
=sequent opsys
=bsd4-3
2884 mips-siemens-sysv
* | mips-sni-sysv
*)
2885 machine
=mips-siemens opsys
=usg5-4
2886 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2887 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2890 ## Silicon Graphics machines
2891 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2893 machine
=irist opsys
=iris3-5
2895 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2896 machine
=irist opsys
=iris3-6
2900 machine
=iris4d opsys
=irix3-3
2903 machine
=iris4d opsys
=irix4-0
2906 machine
=iris4d opsys
=irix6-5
2907 # Without defining _LANGUAGE_C, things get masked out in the headers
2908 # so that, for instance, grepping for `free' in stdlib.h fails and
2909 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2910 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2911 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2914 machine
=iris4d opsys
=irix6-0
2915 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2916 # but presumably it does no harm.
2917 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2918 # -32 probably isn't necessary in later v.6s -- anyone know which?
2919 NON_GCC_TEST_OPTIONS
=-32
2921 mips-sgi-irix5.
[01]* )
2922 machine
=iris4d opsys
=irix5-0
2924 mips-sgi-irix5
* | mips-sgi-irix
* )
2925 machine
=iris4d opsys
=irix5-2
2930 machine
=news opsys
=bsd4-2
2933 machine
=news opsys
=bsd4-3
2935 m68
*-sony-newsos3* | m68
*-sony-news3*)
2936 machine
=news opsys
=bsd4-3
2938 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2939 machine
=news-risc opsys
=bsd4-3
2941 mips-sony-newsos6
* )
2942 machine
=news-r6 opsys
=newsos6
2945 machine
=news-risc opsys
=newsos5
2950 machine
=stride opsys
=usg5-2
2954 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2955 machine
=sparc opsys
=gnu-linux
2958 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2959 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2960 | rs6000-
*-solaris2*)
2961 case "${canonical}" in
2962 m68
*-sunos1* ) machine
=sun1
;;
2963 m68
*-sunos2* ) machine
=sun2
;;
2964 m68
* ) machine
=sun3
;;
2965 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2966 i
[3456]86-*-* ) machine
=intel386
;;
2967 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2968 powerpcle
* ) machine
=powerpcle
;;
2969 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2970 sparc
* ) machine
=sparc
;;
2973 case "${canonical}" in
2974 ## The Sun386 didn't get past 4.0.
2975 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2976 *-sunos4.0
* ) opsys
=sunos4-0
;;
2977 *-sunos4.1.
[3-9]*noshare
)
2978 ## This name is sunos413 instead of sunos4-1-3
2979 ## to avoid a file name conflict on MSDOS.
2981 NON_GNU_CPP
=/usr
/lib
/cpp
2982 NON_GCC_TEST_OPTIONS
=-Bstatic
2983 GCC_TEST_OPTIONS
=-static
2985 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2987 NON_GNU_CPP
=/usr
/lib
/cpp
2989 *-sunos4* |
*-sunos )
2991 NON_GCC_TEST_OPTIONS
=-Bstatic
2992 GCC_TEST_OPTIONS
=-static
2994 *-sunos5.3
* |
*-solaris2.3
* )
2996 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2998 *-sunos5.4
* |
*-solaris2.4
* )
3000 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3003 *-sunos5.5
* |
*-solaris2.5
* )
3005 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3008 *-sunos5.6
* |
*-solaris2.6
* )
3010 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3013 *-sunos5* |
*-solaris* )
3015 emacs_check_sunpro_c
=yes
3016 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3020 ## Watch out for a compiler that we know will not work.
3021 case "${canonical}" in
3022 *-solaris* |
*-sunos5* )
3023 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3024 ## /usr/ucb/cc doesn't work;
3025 ## we should find some other compiler that does work.
3033 machine
=sparc opsys
=nextstep
3037 m68
*-tadpole-sysv* )
3038 machine
=tad68k opsys
=usg5-3
3042 tahoe-tahoe-bsd4.2
* )
3043 machine
=tahoe opsys
=bsd4-2
3045 tahoe-tahoe-bsd4.3
* )
3046 machine
=tahoe opsys
=bsd4-3
3049 ## Tandem Integrity S2
3051 machine
=tandem-s2 opsys
=usg5-3
3055 m88k-tektronix-sysv3
* )
3056 machine
=tekxd88 opsys
=usg5-3
3059 ## Tektronix 16000 box (6130?)
3060 ns16k-tektronix-bsd
* )
3061 machine
=ns16000 opsys
=bsd4-2
3064 ## src/m/tek4300.h hints that this is a m68k machine.
3065 m68
*-tektronix-bsd* )
3066 machine
=tek4300 opsys
=bsd4-3
3070 ## We seem to have lost the machine-description file titan.h!
3072 machine
=titan opsys
=usg5-3
3075 ## Ustation E30 (SS5E)
3076 m68
*-unisys-uniplus* )
3077 machine
=ustation opsystem
=unipl5-2
3083 case "${canonical}" in
3084 *-bsd4.1
* ) opsys
=bsd4-1
;;
3085 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3086 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3087 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3088 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3089 *-vms* ) opsys
=vms
;;
3095 ns16k-whitechapel-
* )
3097 ## We don't know what sort of OS runs on these; we'll let the
3098 ## operating system guessing code below try.
3103 machine
=wicat opsys
=usg5-2
3108 machine
=ia64 opsys
=gnu-linux
3111 ## Intel 386 machines where we don't care about the manufacturer
3114 case "${canonical}" in
3115 *-cygwin ) opsys
=cygwin
;;
3116 *-darwin* ) opsys
=darwin
3117 CPP
="${CC-cc} -E -no-cpp-precomp"
3119 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3120 *-isc2.2
* ) opsys
=isc2-2
;;
3121 *-isc4.0
* ) opsys
=isc4-0
;;
3122 *-isc4.
* ) opsys
=isc4-1
3123 GCC_TEST_OPTIONS
=-posix
3124 NON_GCC_TEST_OPTIONS
=-Xp
3126 *-isc* ) opsys
=isc3-0
;;
3127 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3128 *-esix* ) opsys
=esix
;;
3129 *-xenix* ) opsys
=xenix
;;
3130 *-linux-gnu* ) opsys
=gnu-linux
;;
3131 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3132 *-sco3.2v5
* ) opsys
=sco5
3133 NON_GNU_CPP
=/lib
/cpp
3134 # Prevent -belf from being passed to $CPP.
3135 # /lib/cpp does not accept it.
3136 OVERRIDE_CPPFLAGS
=" "
3138 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3139 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3140 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3141 *-386bsd* ) opsys
=386bsd
;;
3142 *-nextstep* ) opsys
=nextstep
;;
3143 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3147 ## m68k Linux-based GNU system
3149 machine
=m68k opsys
=gnu-linux
3152 ## Mips Linux-based GNU system
3153 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3154 machine
=mips opsys
=gnu-linux
3158 sparc-fujitsu-sysv4
* )
3159 machine
=sparc opsys
=uxpds
3160 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3165 f301-fujitsu-uxpv4.1
)
3166 machine
=f301 opsys
=uxpv
3169 ## AMD x86-64 Linux-based GNU system
3170 x86_64-
*-linux-gnu* )
3171 machine
=amdx86-64 opsys
=gnu-linux
3174 ## Tensilica Xtensa Linux-based GNU system
3175 xtensa-
*-linux-gnu* )
3176 machine
=xtensa opsys
=gnu-linux
3184 ### If the code above didn't choose an operating system, just choose
3185 ### an operating system based on the configuration name. You really
3186 ### only want to use this when you have no idea what the right
3187 ### operating system is; if you know what operating systems a machine
3188 ### runs, it's cleaner to make it explicit in the case statement
3190 if test x
"${opsys}" = x
; then
3191 case "${canonical}" in
3192 *-gnu* ) opsys
=gnu
;;
3193 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3194 *-bsd4.2
) opsys
=bsd4-2
;;
3195 *-bsd4.3
) opsys
=bsd4-3
;;
3196 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3197 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3198 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3199 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3200 *-sysv4.2uw
* ) opsys
=unixware
;;
3201 *-sysv5uw* ) opsys
=unixware
;;
3202 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3203 *-sysv4.1
* |
*-sysvr4.1
* )
3204 NON_GNU_CPP
=/usr
/lib
/cpp
3206 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3207 if [ x
$NON_GNU_CPP = x
]; then
3208 if [ -f /usr
/ccs
/lib
/cpp
]; then
3209 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3211 NON_GNU_CPP
=/lib
/cpp
3215 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3224 if test $unported = yes; then
3225 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3226 Check \`etc/MACHINES' for recognized configuration names." >&5
3227 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3228 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3229 { (exit 1); exit 1; }; }
3232 machfile
="m/${machine}.h"
3233 opsysfile
="s/${opsys}.h"
3236 #### Choose a compiler.
3237 test -n "$CC" && cc_specified
=yes
3239 # Save the value of CFLAGS that the user specified.
3240 SPECIFIED_CFLAGS
="$CFLAGS"
3243 "yes" ) CC
="gcc" GCC
=yes ;;
3244 "no" ) : ${CC=cc} ;;
3248 ac_cpp
='$CPP $CPPFLAGS'
3249 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3254 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_CC+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC
="$CC" # Let the user override the test.
3263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir
=.
3268 for ac_exec_ext
in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 if test -n "$CC"; then
3282 { echo "$as_me:$LINENO: result: $CC" >&5
3283 echo "${ECHO_T}$CC" >&6; }
3285 { echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6; }
3291 if test -z "$ac_cv_prog_CC"; then
3293 # Extract the first word of "gcc", so it can be a program name with args.
3294 set dummy gcc
; ac_word
=$2
3295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir
=.
3308 for ac_exec_ext
in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 ac_cv_prog_ac_ct_CC
="gcc"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3321 if test -n "$ac_ct_CC"; then
3322 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3323 echo "${ECHO_T}$ac_ct_CC" >&6; }
3325 { echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6; }
3329 if test "x$ac_ct_CC" = x
; then
3332 case $cross_compiling:$ac_tool_warned in
3334 { echo "$as_me:$LINENO: 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." >&5
3337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3338 whose name does not start with the host triplet. If you think this
3339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3340 ac_tool_warned
=yes ;;
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_CC+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC
="$CC" # Let the user override the test.
3360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir
=.
3365 for ac_exec_ext
in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test -n "$CC"; then
3379 { echo "$as_me:$LINENO: result: $CC" >&5
3380 echo "${ECHO_T}$CC" >&6; }
3382 { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3389 if test -z "$CC"; then
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc
; ac_word
=$2
3392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3394 if test "${ac_cv_prog_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC
="$CC" # Let the user override the test.
3401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir
=.
3406 for ac_exec_ext
in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409 ac_prog_rejected
=yes
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test $ac_prog_rejected = yes; then
3421 # We found a bogon in the path, so make sure we never use it.
3422 set dummy
$ac_cv_prog_CC
3424 if test $# != 0; then
3425 # We chose a different compiler from the bogus one.
3426 # However, it has the same basename, so the bogon will be chosen
3427 # first if we set CC to just the basename; use the full file name.
3429 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3435 if test -n "$CC"; then
3436 { echo "$as_me:$LINENO: result: $CC" >&5
3437 echo "${ECHO_T}$CC" >&6; }
3439 { echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6; }
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog
in cl.exe
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3453 if test "${ac_cv_prog_CC+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC
="$CC" # Let the user override the test.
3459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir
=.
3464 for ac_exec_ext
in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 if test -n "$CC"; then
3478 { echo "$as_me:$LINENO: result: $CC" >&5
3479 echo "${ECHO_T}$CC" >&6; }
3481 { echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6; }
3486 test -n "$CC" && break
3489 if test -z "$CC"; then
3491 for ac_prog
in cl.exe
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy
$ac_prog; ac_word
=$2
3495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir
=.
3508 for ac_exec_ext
in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CC
="$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3523 echo "${ECHO_T}$ac_ct_CC" >&6; }
3525 { echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6; }
3530 test -n "$ac_ct_CC" && break
3533 if test "x$ac_ct_CC" = x
; then
3536 case $cross_compiling:$ac_tool_warned in
3538 { echo "$as_me:$LINENO: 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." >&5
3541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3542 whose name does not start with the host triplet. If you think this
3543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3544 ac_tool_warned
=yes ;;
3553 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3554 See \`config.log' for more details." >&5
3555 echo "$as_me: error: no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details." >&2;}
3557 { (exit 1); exit 1; }; }
3559 # Provide some information about the compiler.
3560 echo "$as_me:$LINENO: checking for C compiler version" >&5
3561 ac_compiler
=`set X $ac_compile; echo $2`
3562 { (ac_try
="$ac_compiler --version >&5"
3564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compiler --version >&5") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 { (ac_try="$ac_compiler -v >&5"
3574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3575 *) ac_try_echo
=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compiler -v >&5") 2>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }
3582 { (ac_try
="$ac_compiler -V >&5"
3584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compiler -V >&5") 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3608 ac_clean_files_save=$ac_clean_files
3609 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3610 # Try to create an executable without -o first, disregard a.out.
3611 # It will help us diagnose broken compilers, and finding out an intuition
3613 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3614 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3615 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3617 # List of possible output files, starting from the most likely.
3618 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3619 # only as a last resort. b.out is created by i960 compilers.
3620 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3622 # The IRIX 6 linker writes into existing files which may not be
3623 # executable, retaining their permissions. Remove them first so a
3624 # subsequent execution test works.
3626 for ac_file in $ac_files
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3630 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3635 if { (ac_try="$ac_link_default"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_link_default") 2>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; then
3645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3646 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3647 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3648 # so that the user can short-circuit this test for compilers unknown to
3650 for ac_file
in $ac_files ''
3652 test -f "$ac_file" ||
continue
3654 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3657 # We found the default executable, but exeext='' is most
3661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3663 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3665 # We set ac_cv_exeext here because the later test for it is not
3666 # safe: cross compilers may not add the suffix if given an `-o'
3667 # argument, so we may need to know it at that point already.
3668 # Even if this section looks crufty: it has the advantage of
3675 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3681 { echo "$as_me:$LINENO: result: $ac_file" >&5
3682 echo "${ECHO_T}$ac_file" >&6; }
3683 if test -z "$ac_file"; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.
$ac_ext >&5
3687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3688 See \`config.log' for more details." >&5
3689 echo "$as_me: error: C compiler cannot create executables
3690 See \`config.log' for more details." >&2;}
3691 { (exit 77); exit 77; }; }
3694 ac_exeext
=$ac_cv_exeext
3696 # Check that the compiler produces executables we can run. If not, either
3697 # the compiler is broken, or we cross compile.
3698 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3699 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3700 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3701 # If not cross compiling, check that we can run a simple program.
3702 if test "$cross_compiling" != yes; then
3703 if { ac_try
='./$ac_file'
3704 { (case "(($ac_try" in
3705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_try") 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3715 if test "$cross_compiling" = maybe; then
3718 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3719 If you meant to cross compile, use \`--host'.
3720 See \`config.log' for more details.
" >&5
3721 echo "$as_me: error
: cannot run C compiled programs.
3722 If you meant to cross compile
, use \
`--host'.
3723 See \`config.log
' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3728 { echo "$as_me:$LINENO: result: yes" >&5
3729 echo "${ECHO_T}yes" >&6; }
3731 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3732 ac_clean_files=$ac_clean_files_save
3733 # Check that the compiler produces executables we can run. If not, either
3734 # the compiler is broken, or we cross compile.
3735 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3736 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3737 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3738 echo "${ECHO_T}$cross_compiling" >&6; }
3740 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3741 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3742 if { (ac_try="$ac_link"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_link") 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; then
3752 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3753 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3754 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3756 for ac_file
in conftest.exe conftest conftest.
*; do
3757 test -f "$ac_file" ||
continue
3759 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3760 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3766 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3769 See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3773 rm -f conftest
$ac_cv_exeext
3774 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3775 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3777 rm -f conftest.
$ac_ext
3778 EXEEXT
=$ac_cv_exeext
3780 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3781 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3782 if test "${ac_cv_objext+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 cat >conftest.
$ac_ext <<_ACEOF
3788 cat confdefs.h
>>conftest.
$ac_ext
3789 cat >>conftest.
$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3800 rm -f conftest.o conftest.obj
3801 if { (ac_try
="$ac_compile"
3803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; then
3811 for ac_file in conftest.o conftest.obj conftest.*; do
3812 test -f "$ac_file" || continue;
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3824 See \`config.log
' for more details." >&5
3825 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3826 See \`config.log' for more details.
" >&2;}
3827 { (exit 1); exit 1; }; }
3830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3832 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3833 echo "${ECHO_T}$ac_cv_objext" >&6; }
3834 OBJEXT=$ac_cv_objext
3836 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3837 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3839 echo $ECHO_N "(cached
) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3859 rm -f conftest.$ac_objext
3860 if { (ac_try="$ac_compile"
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_compile") 2>conftest.er1
3868 grep -v '^ *+' conftest.er1 >conftest.err
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest.$ac_objext; then
3878 echo "$as_me: failed program was
:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3888 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3889 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3890 GCC=`test $ac_compiler_gnu = yes && echo yes`
3891 ac_test_CFLAGS=${CFLAGS+set}
3892 ac_save_CFLAGS=$CFLAGS
3893 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3894 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3895 if test "${ac_cv_prog_cc_g+set}" = set; then
3896 echo $ECHO_N "(cached
) $ECHO_C" >&6
3898 ac_save_c_werror_flag=$ac_c_werror_flag
3899 ac_c_werror_flag=yes
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3917 rm -f conftest.$ac_objext
3918 if { (ac_try="$ac_compile"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_compile") 2>conftest.er1
3926 grep -v '^ *+' conftest.er1 >conftest.err
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3930 (exit $ac_status); } && {
3931 test -z "$ac_c_werror_flag" ||
3932 test ! -s conftest.err
3933 } && test -s conftest.$ac_objext; then
3936 echo "$as_me: failed program was
:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3955 rm -f conftest.$ac_objext
3956 if { (ac_try="$ac_compile"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_compile") 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3968 (exit $ac_status); } && {
3969 test -z "$ac_c_werror_flag" ||
3970 test ! -s conftest.err
3971 } && test -s conftest.$ac_objext; then
3974 echo "$as_me: failed program was
:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4013 echo "$as_me: failed program was
:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4028 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4029 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4039 if test "$GCC" = yes; then
4045 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4046 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4047 if test "${ac_cv_prog_cc_c89+set}" = set; then
4048 echo $ECHO_N "(cached
) $ECHO_C" >&6
4050 ac_cv_prog_cc_c89=no
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4060 #include <sys/types.h>
4061 #include <sys/stat.h>
4062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4063 struct buf { int x; };
4064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065 static char *e (p, i)
4071 static char *f (char * (*g) (char **, int), char **p, ...)
4076 s = g (p, va_arg (v,int));
4081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4082 function prototypes and stuff, but not '\xHH' hex character constants.
4083 These don't provoke an error unfortunately, instead are silently treated
4084 as 'x'. The following induces an error, until -std is added to get
4085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4086 array size at least. It's necessary to write '\x00'==0 to get something
4087 that's true only with -std. */
4088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091 inside strings and character constants. */
4093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4095 int test (int i, double x);
4096 struct s1 {int (*f) (int a);};
4097 struct s2 {int (*f) (double a);};
4098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4112 CC="$ac_save_CC $ac_arg"
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 ac_cv_prog_cc_c89=$ac_arg
4132 echo "$as_me: failed program was
:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4138 rm -f core conftest.err conftest.$ac_objext
4139 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4141 rm -f conftest.$ac_ext
4146 case "x
$ac_cv_prog_cc_c89" in
4148 { echo "$as_me:$LINENO: result
: none needed
" >&5
4149 echo "${ECHO_T}none needed
" >&6; } ;;
4151 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4152 echo "${ECHO_T}unsupported
" >&6; } ;;
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4156 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 # On Suns, sometimes $CPP names a directory.
4168 if test -n "$CPP" && test -d "$CPP"; then
4172 ## If not using gcc, and on Solaris, and no CPP specified, see if
4173 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4174 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4175 test x"$CPP" = x; then
4176 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4177 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4179 if test "${emacs_cv_sunpro_c+set}" = set; then
4180 echo $ECHO_N "(cached
) $ECHO_C" >&6
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (ac_try="$ac_link"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_link") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest$ac_exeext &&
4217 $as_test_x conftest$ac_exeext; then
4218 emacs_cv_sunpro_c=yes
4220 echo "$as_me: failed program was
:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 emacs_cv_sunpro_c=no
4226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4227 conftest$ac_exeext conftest.$ac_ext
4230 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4231 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4233 if test x"$emacs_cv_sunpro_c" = xyes; then
4234 NON_GNU_CPP="$CC -E -Xs"
4238 #### Some systems specify a CPP to use unless we are using GCC.
4239 #### Now that we know whether we are using GCC, we can decide whether
4240 #### to use that one.
4241 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4246 #### Some systems specify a CC to use unless we are using GCC.
4247 #### Now that we know whether we are using GCC, we can decide whether
4248 #### to use that one.
4249 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4250 test x$cc_specified != xyes
4255 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4257 CC="$CC $GCC_TEST_OPTIONS"
4260 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4262 CC="$CC $NON_GCC_TEST_OPTIONS"
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4271 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4272 # On Suns, sometimes $CPP names a directory.
4273 if test -n "$CPP" && test -d "$CPP"; then
4276 if test -z "$CPP"; then
4277 if test "${ac_cv_prog_CPP+set}" = set; then
4278 echo $ECHO_N "(cached
) $ECHO_C" >&6
4280 # Double quotes because CPP needs to be expanded
4281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4284 for ac_c_preproc_warn_flag in '' yes
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error
" is here to catch this case.
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4299 # include <limits.h>
4301 # include <assert.h>
4305 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4317 (exit $ac_status); } >/dev/null && {
4318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4323 echo "$as_me: failed program was
:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 # Broken: fails on valid input.
4330 rm -f conftest.err conftest.$ac_ext
4332 # OK, works on sane cases. Now check whether nonexistent headers
4333 # can be detected and how.
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <ac_nonexistent.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
4358 # Broken: success on invalid input.
4361 echo "$as_me: failed program was
:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 # Passes both tests.
4369 rm -f conftest.err conftest.$ac_ext
4372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373 rm -f conftest.err conftest.$ac_ext
4374 if $ac_preproc_ok; then
4386 { echo "$as_me:$LINENO: result
: $CPP" >&5
4387 echo "${ECHO_T}$CPP" >&6; }
4389 for ac_c_preproc_warn_flag in '' yes
4391 # Use a header file that comes with gcc, so configuring glibc
4392 # with a fresh cross-compiler works.
4393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4394 # <limits.h> exists even on freestanding compilers.
4395 # On the NeXT, cc -E runs the code through the compiler's parser,
4396 # not just through cpp. "Syntax error
" is here to catch this case.
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4404 # include <limits.h>
4406 # include <assert.h>
4410 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4418 grep -v '^ *+' conftest.er1 >conftest.err
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4422 (exit $ac_status); } >/dev/null && {
4423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4424 test ! -s conftest.err
4428 echo "$as_me: failed program was
:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 # Broken: fails on valid input.
4435 rm -f conftest.err conftest.$ac_ext
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4447 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4459 (exit $ac_status); } >/dev/null && {
4460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4463 # Broken: success on invalid input.
4466 echo "$as_me: failed program was
:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 # Passes both tests.
4474 rm -f conftest.err conftest.$ac_ext
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then
4482 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4483 See \
`config.log' for more details." >&5
4484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4485 See \`config.log
' for more details." >&2;}
4486 { (exit 1); exit 1; }; }
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4492 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4497 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4498 if test "${ac_cv_path_GREP+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 # Extract the first word of "grep ggrep" to use in msg output
4502 if test -z "$GREP"; then
4503 set dummy grep ggrep; ac_prog_name=$2
4504 if test "${ac_cv_path_GREP+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 ac_path_GREP_found=false
4508 # Loop through the user's path and
test for each of PROGNAME-LIST
4509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4513 test -z "$as_dir" && as_dir
=.
4514 for ac_prog
in grep ggrep
; do
4515 for ac_exec_ext
in '' $ac_executable_extensions; do
4516 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4518 # Check for GNU ac_path_GREP and select it if it is found.
4519 # Check for GNU $ac_path_GREP
4520 case `"$ac_path_GREP" --version 2>&1` in
4522 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4525 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 echo 'GREP' >> "conftest.nl"
4532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4533 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4534 ac_count
=`expr $ac_count + 1`
4535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_GREP
="$ac_path_GREP"
4538 ac_path_GREP_max
=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4543 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4547 $ac_path_GREP_found && break 3
4557 GREP
="$ac_cv_path_GREP"
4558 if test -z "$GREP"; then
4559 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4560 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4561 { (exit 1); exit 1; }; }
4565 ac_cv_path_GREP
=$GREP
4570 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4571 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4572 GREP
="$ac_cv_path_GREP"
4575 { echo "$as_me:$LINENO: checking for egrep" >&5
4576 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_EGREP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4581 then ac_cv_path_EGREP
="$GREP -E"
4583 # Extract the first word of "egrep" to use in msg output
4584 if test -z "$EGREP"; then
4585 set dummy
egrep; ac_prog_name
=$2
4586 if test "${ac_cv_path_EGREP+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 ac_path_EGREP_found
=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4595 test -z "$as_dir" && as_dir
=.
4596 for ac_prog
in egrep; do
4597 for ac_exec_ext
in '' $ac_executable_extensions; do
4598 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4600 # Check for GNU ac_path_EGREP and select it if it is found.
4601 # Check for GNU $ac_path_EGREP
4602 case `"$ac_path_EGREP" --version 2>&1` in
4604 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4607 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 echo 'EGREP' >> "conftest.nl"
4614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4615 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4616 ac_count
=`expr $ac_count + 1`
4617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_EGREP
="$ac_path_EGREP"
4620 ac_path_EGREP_max
=$ac_count
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4625 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4629 $ac_path_EGREP_found && break 3
4639 EGREP
="$ac_cv_path_EGREP"
4640 if test -z "$EGREP"; then
4641 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4642 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4643 { (exit 1); exit 1; }; }
4647 ac_cv_path_EGREP
=$EGREP
4653 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4654 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4655 EGREP
="$ac_cv_path_EGREP"
4659 { echo "$as_me:$LINENO: checking for AIX" >&5
4660 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4661 cat >conftest.
$ac_ext <<_ACEOF
4664 cat confdefs.h
>>conftest.
$ac_ext
4665 cat >>conftest.
$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4673 $EGREP "yes" >/dev
/null
2>&1; then
4674 { echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6; }
4676 cat >>confdefs.h
<<\_ACEOF
4677 #define _ALL_SOURCE 1
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4688 cat >>confdefs.h
<<\_ACEOF
4689 #define _GNU_SOURCE 1
4694 ### Use -Wno-pointer-sign if the compiler supports it
4695 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4696 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4697 SAVE_CFLAGS
="$CFLAGS"
4698 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4714 rm -f conftest.
$ac_objext
4715 if { (ac_try
="$ac_compile"
4717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4721 (eval "$ac_compile") 2>conftest.er1
4723 grep -v '^ *+' conftest.er1 >conftest.err
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && {
4728 test -z "$ac_c_werror_flag" ||
4729 test ! -s conftest.err
4730 } && test -s conftest.$ac_objext; then
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 if test $has_option = yes; then
4741 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4743 { echo "$as_me:$LINENO: result: $has_option" >&5
4744 echo "${ECHO_T}$has_option" >&6; }
4745 CFLAGS="$SAVE_CFLAGS"
4749 #### Some other nice autoconf tests.
4751 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4752 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4754 if test "$LN_S" = "ln -s"; then
4755 { echo "$as_me:$LINENO: result: yes" >&5
4756 echo "${ECHO_T}yes" >&6; }
4758 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4759 echo "${ECHO_T}no, using $LN_S" >&6; }
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4768 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4769 # On Suns, sometimes $CPP names a directory.
4770 if test -n "$CPP" && test -d "$CPP"; then
4773 if test -z "$CPP"; then
4774 if test "${ac_cv_prog_CPP+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 # Double quotes because CPP needs to be expanded
4778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4781 for ac_c_preproc_warn_flag in '' yes
4783 # Use a header file that comes with gcc, so configuring glibc
4784 # with a fresh cross-compiler works.
4785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786 # <limits.h> exists even on freestanding compilers.
4787 # On the NeXT, cc -E runs the code through the compiler's parser,
4788 # not just through cpp. "Syntax error" is here to catch this case.
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4796 # include <limits.h>
4798 # include <assert.h>
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4805 *) ac_try_echo
=$ac_try;;
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810 grep -v '^ *+' conftest.er1
>conftest.err
4812 cat conftest.err
>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev
/null
&& {
4815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.
$ac_ext >&5
4823 # Broken: fails on valid input.
4827 rm -f conftest.err conftest.
$ac_ext
4829 # OK, works on sane cases. Now check whether nonexistent headers
4830 # can be detected and how.
4831 cat >conftest.
$ac_ext <<_ACEOF
4834 cat confdefs.h
>>conftest.
$ac_ext
4835 cat >>conftest.
$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <ac_nonexistent.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
4855 # Broken: success on invalid input.
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 # Passes both tests.
4866 rm -f conftest.err conftest.$ac_ext
4869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4870 rm -f conftest.err conftest.
$ac_ext
4871 if $ac_preproc_ok; then
4883 { echo "$as_me:$LINENO: result: $CPP" >&5
4884 echo "${ECHO_T}$CPP" >&6; }
4886 for ac_c_preproc_warn_flag
in '' yes
4888 # Use a header file that comes with gcc, so configuring glibc
4889 # with a fresh cross-compiler works.
4890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4891 # <limits.h> exists even on freestanding compilers.
4892 # On the NeXT, cc -E runs the code through the compiler's parser,
4893 # not just through cpp. "Syntax error" is here to catch this case.
4894 cat >conftest.
$ac_ext <<_ACEOF
4897 cat confdefs.h
>>conftest.
$ac_ext
4898 cat >>conftest.
$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4901 # include <limits.h>
4903 # include <assert.h>
4907 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null && {
4920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 # Broken: fails on valid input.
4932 rm -f conftest.err conftest.$ac_ext
4934 # OK, works on sane cases. Now check whether nonexistent headers
4935 # can be detected and how.
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <ac_nonexistent.h>
4944 if { (ac_try="$ac_cpp conftest.$ac_ext"
4946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4947 *) ac_try_echo
=$ac_try;;
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952 grep -v '^ *+' conftest.er1
>conftest.err
4954 cat conftest.err
>&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev
/null
&& {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4960 # Broken: success on invalid input.
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.
$ac_ext >&5
4966 # Passes both tests.
4971 rm -f conftest.err conftest.
$ac_ext
4974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4975 rm -f conftest.err conftest.
$ac_ext
4976 if $ac_preproc_ok; then
4979 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4980 See \`config.log' for more details." >&5
4981 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4982 See \`config.log' for more details." >&2;}
4983 { (exit 1); exit 1; }; }
4987 ac_cpp
='$CPP $CPPFLAGS'
4988 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4992 # Find a good install program. We prefer a C program (faster),
4993 # so one script is as good as another. But avoid the broken or
4994 # incompatible versions:
4995 # SysV /etc/install, /usr/sbin/install
4996 # SunOS /usr/etc/install
4997 # IRIX /sbin/install
4999 # AmigaOS /C/install, which installs bootblocks on floppy discs
5000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5003 # OS/2's system install, which has a completely different semantic
5004 # ./install, which can be erroneously created by make from ./install.sh.
5005 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5006 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5007 if test -z "$INSTALL"; then
5008 if test "${ac_cv_path_install+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir
=.
5016 # Account for people who put trailing slashes in PATH elements.
5018 .
/ | .
// |
/cC
/* | \
5019 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5020 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5023 # OSF1 and SCO ODT 3.0 have their own names for install.
5024 # Don't use installbsd from OSF since it installs stuff as root
5026 for ac_prog
in ginstall scoinst
install; do
5027 for ac_exec_ext
in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5029 if test $ac_prog = install &&
5030 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5031 # AIX install. It has an incompatible calling convention.
5033 elif test $ac_prog = install &&
5034 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5035 # program-specific install script used by HP pwplus--don't use.
5038 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5051 if test "${ac_cv_path_install+set}" = set; then
5052 INSTALL
=$ac_cv_path_install
5054 # As a last resort, use the slow shell script. Don't cache a
5055 # value for INSTALL within a source directory, because that will
5056 # break other packages using the cache if that directory is
5057 # removed, or if the value is a relative name.
5058 INSTALL
=$ac_install_sh
5061 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5062 echo "${ECHO_T}$INSTALL" >&6; }
5064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5065 # It thinks the first close brace ends the variable substitution.
5066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5070 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5072 if test "x$RANLIB" = x
; then
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5075 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_prog_RANLIB+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 if test -n "$RANLIB"; then
5082 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir
=.
5089 for ac_exec_ext
in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 RANLIB
=$ac_cv_prog_RANLIB
5102 if test -n "$RANLIB"; then
5103 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5104 echo "${ECHO_T}$RANLIB" >&6; }
5106 { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5112 if test -z "$ac_cv_prog_RANLIB"; then
5113 ac_ct_RANLIB
=$RANLIB
5114 # Extract the first word of "ranlib", so it can be a program name with args.
5115 set dummy ranlib
; ac_word
=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 if test -n "$ac_ct_RANLIB"; then
5122 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir
=.
5129 for ac_exec_ext
in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5142 if test -n "$ac_ct_RANLIB"; then
5143 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5144 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5146 { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5150 if test "x$ac_ct_RANLIB" = x
; then
5153 case $cross_compiling:$ac_tool_warned in
5155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5156 whose name does not start with the host triplet. If you think this
5157 configuration is useful to you, please write to autoconf@gnu.org." >&5
5158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5159 whose name does not start with the host triplet. If you think this
5160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5161 ac_tool_warned
=yes ;;
5163 RANLIB
=$ac_ct_RANLIB
5166 RANLIB
="$ac_cv_prog_RANLIB"
5170 # Extract the first word of "install-info", so it can be a program name with args.
5171 set dummy install-info
; ac_word
=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 case $INSTALL_INFO in
5179 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5201 if test -n "$INSTALL_INFO"; then
5202 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5203 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5210 # Extract the first word of "install-info", so it can be a program name with args.
5211 set dummy install-info
; ac_word
=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 case $INSTALL_INFO in
5219 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5223 for as_dir
in /usr
/sbin
5226 test -z "$as_dir" && as_dir
=.
5227 for ac_exec_ext
in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5241 if test -n "$INSTALL_INFO"; then
5242 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5243 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5250 # Extract the first word of "install-info", so it can be a program name with args.
5251 set dummy install-info
; ac_word
=$2
5252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5254 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 case $INSTALL_INFO in
5259 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir
=.
5267 for ac_exec_ext
in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5281 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5282 if test -n "$INSTALL_INFO"; then
5283 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5284 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5286 { echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6; }
5291 # Extract the first word of "gzip", so it can be a program name with args.
5292 set dummy
gzip; ac_word
=$2
5293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5295 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5322 if test -n "$GZIP_PROG"; then
5323 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5324 echo "${ECHO_T}$GZIP_PROG" >&6; }
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5333 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5335 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5338 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5340 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5344 late_LDFLAGS
=$LDFLAGS
5345 if test "$GCC" = yes; then
5346 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5348 LDFLAGS
="$LDFLAGS -znocombreloc"
5351 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5352 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5353 cat >conftest.
$ac_ext <<_ACEOF
5356 rm -f conftest.
$ac_objext conftest
$ac_exeext
5357 if { (ac_try
="$ac_link"
5359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_link") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest$ac_exeext &&
5373 $as_test_x conftest$ac_exeext; then
5374 { echo "$as_me:$LINENO: result: yes" >&5
5375 echo "${ECHO_T}yes" >&6; }
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 LDFLAGS=$late_LDFLAGS
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5386 conftest$ac_exeext conftest.$ac_ext
5388 #### Extract some information from the operating system and machine files.
5390 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5391 - which libraries the lib-src programs will want, and
5392 - whether the GNU malloc routines are usable..." >&5
5393 echo "$as_me: checking the machine- and system-dependent files to find out
5394 - which libraries the lib-src programs will want, and
5395 - whether the GNU malloc routines are usable..." >&6;}
5397 ### First figure out CFLAGS (which we use for running the compiler here)
5398 ### and REAL_CFLAGS (which we use for real compilation).
5399 ### The two are the same except on a few systems, where they are made
5400 ### different to work around various lossages. For example,
5401 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5402 ### as implying static linking.
5404 ### If the CFLAGS env var is specified, we use that value
5405 ### instead of the default.
5407 ### It's not important that this name contain the PID; you can't run
5408 ### two configures in the same directory and have anything work
5410 tempcname="conftest.c"
5413 #include "'${srcdir}'/src/'${opsysfile}'"
5414 #include "'${srcdir}'/src/'${machfile}'"
5415 #ifndef LIBS_MACHINE
5416 #define LIBS_MACHINE
5421 #ifndef C_SWITCH_SYSTEM
5422 #define C_SWITCH_SYSTEM
5424 #ifndef C_SWITCH_MACHINE
5425 #define C_SWITCH_MACHINE
5427 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5428 configure___ c_switch_system=C_SWITCH_SYSTEM
5429 configure___ c_switch_machine=C_SWITCH_MACHINE
5432 #define LIB_X11_LIB -lX11
5435 #ifndef LIBX11_MACHINE
5436 #define LIBX11_MACHINE
5439 #ifndef LIBX11_SYSTEM
5440 #define LIBX11_SYSTEM
5442 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5445 configure___ unexec=UNEXEC
5447 configure___ unexec=unexec.o
5450 #ifdef SYSTEM_MALLOC
5451 configure___ system_malloc=yes
5453 configure___ system_malloc=no
5456 #ifdef USE_MMAP_FOR_BUFFERS
5457 configure___ use_mmap_for_buffers=yes
5459 configure___ use_mmap_for_buffers=no
5462 #ifndef C_DEBUG_SWITCH
5463 #define C_DEBUG_SWITCH -g
5466 #ifndef C_OPTIMIZE_SWITCH
5468 #define C_OPTIMIZE_SWITCH -O2
5470 #define C_OPTIMIZE_SWITCH -O
5474 #ifndef C_WARNINGS_SWITCH
5475 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5478 #ifndef LD_SWITCH_MACHINE
5479 #define LD_SWITCH_MACHINE
5482 #ifndef LD_SWITCH_SYSTEM
5483 #define LD_SWITCH_SYSTEM
5486 #ifndef LD_SWITCH_X_SITE_AUX
5487 #define LD_SWITCH_X_SITE_AUX
5490 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5491 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5493 #ifdef THIS_IS_CONFIGURE
5495 /* Get the CFLAGS for tests in configure. */
5497 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5499 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5502 #else /* not THIS_IS_CONFIGURE */
5504 /* Get the CFLAGS for real compilation. */
5506 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5508 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5511 #endif /* not THIS_IS_CONFIGURE */
5514 # The value of CPP is a quoted variable reference, so we need to do this
5515 # to get its actual value...
5516 CPP=`eval "echo $CPP"`
5517 eval `${CPP} -Isrc ${tempcname} \
5518 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5519 if test "x$SPECIFIED_CFLAGS" = x; then
5520 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5521 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5523 REAL_CFLAGS="$CFLAGS"
5527 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5529 ### Make sure subsequent tests use flags consistent with the build flags.
5531 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5532 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5534 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5539 # Check whether --enable-largefile was given.
5540 if test "${enable_largefile+set}" = set; then
5541 enableval=$enable_largefile;
5544 if test "$enable_largefile" != no; then
5546 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5547 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5548 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 ac_cv_sys_largefile_CC=no
5552 if test "$GCC" != yes; then
5555 # IRIX 6.2 and later do not support large files by default,
5556 # so use the C compiler's -n32 option if that helps.
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <sys/types.h>
5564 /* Check that off_t can represent 2**63 - 1 correctly.
5565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5566 since some C++ compilers masquerading as C compilers
5567 incorrectly reject 9223372036854775807. */
5568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5570 && LARGE_OFF_T % 2147483647 == 1)
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5584 *) ac_try_echo
=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1
>conftest.err
5591 cat conftest.err
>&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.
$ac_objext; then
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.
$ac_ext >&5
5605 rm -f core conftest.err conftest.
$ac_objext
5607 rm -f conftest.
$ac_objext
5608 if { (ac_try
="$ac_compile"
5610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1 >conftest.err
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_cv_sys_largefile_CC=' -n32'; break
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5632 rm -f core conftest.err conftest.$ac_objext
5636 rm -f conftest.$ac_ext
5639 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5640 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5641 if test "$ac_cv_sys_largefile_CC" != no; then
5642 CC=$CC$ac_cv_sys_largefile_CC
5645 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5646 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5647 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5678 *) ac_try_echo
=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5683 grep -v '^ *+' conftest.er1
>conftest.err
5685 cat conftest.err
>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.
$ac_objext; then
5691 ac_cv_sys_file_offset_bits
=no
; break
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.
$ac_ext >&5
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 cat >conftest.
$ac_ext <<_ACEOF
5703 cat confdefs.h
>>conftest.
$ac_ext
5704 cat >>conftest.
$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #define _FILE_OFFSET_BITS 64
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5724 rm -f conftest.
$ac_objext
5725 if { (ac_try
="$ac_compile"
5727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest.$ac_objext; then
5741 ac_cv_sys_file_offset_bits=64; break
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_cv_sys_file_offset_bits=unknown
5754 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5755 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5756 case $ac_cv_sys_file_offset_bits in #(
5759 cat >>confdefs.h <<_ACEOF
5760 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5765 if test $ac_cv_sys_file_offset_bits = unknown; then
5766 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5767 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5768 if test "${ac_cv_sys_large_files+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <sys/types.h>
5779 /* Check that off_t can represent 2**63 - 1 correctly.
5780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5781 since some C++ compilers masquerading as C compilers
5782 incorrectly reject 9223372036854775807. */
5783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5785 && LARGE_OFF_T % 2147483647 == 1)
5795 rm -f conftest.$ac_objext
5796 if { (ac_try="$ac_compile"
5798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5799 *) ac_try_echo
=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5804 grep -v '^ *+' conftest.er1
>conftest.err
5806 cat conftest.err
>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.
$ac_objext; then
5812 ac_cv_sys_large_files
=no
; break
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.
$ac_ext >&5
5820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5821 cat >conftest.
$ac_ext <<_ACEOF
5824 cat confdefs.h
>>conftest.
$ac_ext
5825 cat >>conftest.
$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #define _LARGE_FILES 1
5828 #include <sys/types.h>
5829 /* Check that off_t can represent 2**63 - 1 correctly.
5830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5831 since some C++ compilers masquerading as C compilers
5832 incorrectly reject 9223372036854775807. */
5833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5835 && LARGE_OFF_T % 2147483647 == 1)
5845 rm -f conftest.
$ac_objext
5846 if { (ac_try
="$ac_compile"
5848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest.$ac_objext; then
5862 ac_cv_sys_large_files=1; break
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 ac_cv_sys_large_files=unknown
5875 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5876 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5877 case $ac_cv_sys_large_files in #(
5880 cat >>confdefs.h <<_ACEOF
5881 #define _LARGE_FILES $ac_cv_sys_large_files
5891 ### The standard library on x86-64 GNU/Linux distributions can
5892 ### be located in either /usr/lib64 or /usr/lib.
5893 case "${canonical}" in
5894 x86_64-*-linux-gnu* )
5895 if test -d /usr/lib64; then
5897 cat >>confdefs.h <<\_ACEOF
5898 #define HAVE_X86_64_LIB64_DIR 1
5907 if test "${with_sound}" != "no"; then
5908 # Sound support for GNU/Linux and the free BSDs.
5909 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5910 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5911 if test "${ac_cv_header_stdc+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5937 *) ac_try_echo
=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1
>conftest.err
5944 cat conftest.err
>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.
$ac_objext; then
5950 ac_cv_header_stdc
=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5955 ac_cv_header_stdc
=no
5958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 if test $ac_cv_header_stdc = yes; then
5961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5972 $EGREP "memchr" >/dev
/null
2>&1; then
5975 ac_cv_header_stdc
=no
5981 if test $ac_cv_header_stdc = yes; then
5982 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "free" >/dev
/null
2>&1; then
5996 ac_cv_header_stdc
=no
6002 if test $ac_cv_header_stdc = yes; then
6003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6004 if test "$cross_compiling" = yes; then
6007 cat >conftest.
$ac_ext <<_ACEOF
6010 cat confdefs.h
>>conftest.
$ac_ext
6011 cat >>conftest.
$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6015 #if ((' ' & 0x0FF) == 0x020)
6016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6019 # define ISLOWER(c) \
6020 (('a' <= (c) && (c) <= 'i') \
6021 || ('j' <= (c) && (c) <= 'r') \
6022 || ('s' <= (c) && (c) <= 'z'))
6023 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6031 for (i = 0; i < 256; i++)
6032 if (XOR (islower (i), ISLOWER (i))
6033 || toupper (i) != TOUPPER (i))
6038 rm -f conftest
$ac_exeext
6039 if { (ac_try
="$ac_link"
6041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_link") 2>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6049 { (case "(($ac_try" in
6050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6051 *) ac_try_echo
=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_try") 2>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6060 echo "$as_me: program exited with status $ac_status" >&5
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.
$ac_ext >&5
6065 ac_cv_header_stdc
=no
6067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6073 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6074 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6075 if test $ac_cv_header_stdc = yes; then
6077 cat >>confdefs.h
<<\_ACEOF
6078 #define STDC_HEADERS 1
6083 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6093 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6094 inttypes.h stdint.h unistd.h
6096 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6099 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 cat >conftest.
$ac_ext <<_ACEOF
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $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 eval "$as_ac_Header=yes"
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 eval "$as_ac_Header=no"
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 ac_res=`eval echo '${'$as_ac_Header'}'`
6140 { echo "$as_me:$LINENO: result: $ac_res" >&5
6141 echo "${ECHO_T}$ac_res" >&6; }
6142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6143 cat >>confdefs.h <<_ACEOF
6144 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6155 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6157 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 ac_res=`eval echo '${'$as_ac_Header'}'`
6165 { echo "$as_me:$LINENO: result: $ac_res" >&5
6166 echo "${ECHO_T}$ac_res" >&6; }
6168 # Is the header compilable?
6169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 $ac_includes_default
6178 #include <$ac_header>
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6184 *) ac_try_echo
=$ac_try;;
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6189 grep -v '^ *+' conftest.er1
>conftest.err
6191 cat conftest.err
>&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && {
6194 test -z "$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6196 } && test -s conftest.
$ac_objext; then
6197 ac_header_compiler
=yes
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.
$ac_ext >&5
6202 ac_header_compiler
=no
6205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6207 echo "${ECHO_T}$ac_header_compiler" >&6; }
6209 # Is the header present?
6210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <$ac_header>
6220 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } >/dev/null && {
6233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6236 ac_header_preproc=yes
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 ac_header_preproc=no
6244 rm -f conftest.err conftest.$ac_ext
6245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6246 echo "${ECHO_T}$ac_header_preproc" >&6; }
6248 # So? What about this header?
6249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6255 ac_header_preproc=yes
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 eval "$as_ac_Header=\$ac_header_preproc"
6280 ac_res=`eval echo '${'$as_ac_Header'}'`
6281 { echo "$as_me:$LINENO: result: $ac_res" >&5
6282 echo "${ECHO_T}$ac_res" >&6; }
6285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6286 cat >>confdefs.h <<_ACEOF
6287 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6294 # Emulation library used on NetBSD.
6295 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6296 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6297 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ac_check_lib_save_LIBS=$LIBS
6301 LIBS="-lossaudio $LIBS"
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6309 /* Override any GCC internal prototype to avoid an error.
6310 Use char because int might match the return type of a GCC
6311 builtin and then its argument prototype would still apply. */
6319 return _oss_ioctl ();
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (ac_try="$ac_link"
6327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6328 *) ac_try_echo
=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_link") 2>conftest.er1
6333 grep -v '^ *+' conftest.er1
>conftest.err
6335 cat conftest.err
>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && {
6338 test -z "$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest
$ac_exeext &&
6341 $as_test_x conftest
$ac_exeext; then
6342 ac_cv_lib_ossaudio__oss_ioctl
=yes
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.
$ac_ext >&5
6347 ac_cv_lib_ossaudio__oss_ioctl
=no
6350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6351 conftest
$ac_exeext conftest.
$ac_ext
6352 LIBS
=$ac_check_lib_save_LIBS
6354 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6355 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6356 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6365 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6366 if test "X${with_pkg_config_prog}" != X
; then
6367 PKG_CONFIG
="${with_pkg_config_prog}"
6372 if test -z "$PKG_CONFIG"; then
6373 # Extract the first word of "pkg-config", so it can be a program name with args.
6374 set dummy pkg-config
; ac_word
=$2
6375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6377 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6389 test -z "$as_dir" && as_dir
=.
6390 for ac_exec_ext
in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6404 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6405 if test -n "$PKG_CONFIG"; then
6406 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6407 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6409 { echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6; }
6416 if test "$PKG_CONFIG" = "no" ; then
6419 PKG_CONFIG_MIN_VERSION
=0.9.0
6420 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6421 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6422 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6424 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6425 { echo "$as_me:$LINENO: result: yes" >&5
6426 echo "${ECHO_T}yes" >&6; }
6429 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6430 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6431 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6432 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6433 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6435 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6436 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6437 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6438 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6439 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6445 ## If we have a custom action on failure, don't print errors, but
6446 ## do set a variable so people can do so.
6447 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6454 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6455 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6459 if test $succeeded = yes; then
6465 if test $HAVE_ALSA = yes; then
6466 SAVE_CFLAGS
="$CFLAGS"
6467 SAVE_LDFLAGS
="$LDFLAGS"
6468 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6469 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6470 cat >conftest.
$ac_ext <<_ACEOF
6473 cat confdefs.h
>>conftest.
$ac_ext
6474 cat >>conftest.
$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 #include <asoundlib.h>
6480 snd_lib_error_set_handler (0);
6485 rm -f conftest.
$ac_objext
6486 if { (ac_try
="$ac_compile"
6488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 emacs_alsa_normal=yes
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 emacs_alsa_normal=no
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 if test "$emacs_alsa_normal" != yes; then
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <alsa/asoundlib.h>
6522 snd_lib_error_set_handler (0);
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6531 *) ac_try_echo
=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6536 grep -v '^ *+' conftest.er1
>conftest.err
6538 cat conftest.err
>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest.
$ac_objext; then
6544 emacs_alsa_subdir
=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.
$ac_ext >&5
6549 emacs_alsa_subdir
=no
6552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6553 if test "$emacs_alsa_subdir" != yes; then
6554 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6555 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6556 { (exit 1); exit 1; }; }
6558 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6561 CFLAGS
="$SAVE_CFLAGS"
6562 LDFLAGS
="$SAVE_LDFLAGS"
6563 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6564 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6566 cat >>confdefs.h
<<\_ACEOF
6599 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6600 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6601 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6602 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6605 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6606 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6609 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 ac_res
=`eval echo '${'$as_ac_Header'}'`
6613 { echo "$as_me:$LINENO: result: $ac_res" >&5
6614 echo "${ECHO_T}$ac_res" >&6; }
6616 # Is the header compilable?
6617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6619 cat >conftest.
$ac_ext <<_ACEOF
6622 cat confdefs.h
>>conftest.
$ac_ext
6623 cat >>conftest.
$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 $ac_includes_default
6626 #include <$ac_header>
6628 rm -f conftest.
$ac_objext
6629 if { (ac_try
="$ac_compile"
6631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 ac_header_compiler=yes
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 ac_header_compiler=no
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6655 echo "${ECHO_T}$ac_header_compiler" >&6; }
6657 # Is the header present?
6658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 #include <$ac_header>
6668 if { (ac_try="$ac_cpp conftest.$ac_ext"
6670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6671 *) ac_try_echo
=$ac_try;;
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6676 grep -v '^ *+' conftest.er1
>conftest.err
6678 cat conftest.err
>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev
/null
&& {
6681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6684 ac_header_preproc
=yes
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.
$ac_ext >&5
6689 ac_header_preproc
=no
6692 rm -f conftest.err conftest.
$ac_ext
6693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6694 echo "${ECHO_T}$ac_header_preproc" >&6; }
6696 # So? What about this header?
6697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6703 ac_header_preproc
=yes
6706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6723 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 eval "$as_ac_Header=\$ac_header_preproc"
6728 ac_res
=`eval echo '${'$as_ac_Header'}'`
6729 { echo "$as_me:$LINENO: result: $ac_res" >&5
6730 echo "${ECHO_T}$ac_res" >&6; }
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734 cat >>confdefs.h
<<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6743 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6744 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6745 cat >conftest.
$ac_ext <<_ACEOF
6748 cat confdefs.h
>>conftest.
$ac_ext
6749 cat >>conftest.
$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <sys/personality.h>
6755 personality (PER_LINUX32)
6760 rm -f conftest.
$ac_objext
6761 if { (ac_try
="$ac_compile"
6763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 emacs_cv_personality_linux32=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 emacs_cv_personality_linux32=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6787 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6789 if test $emacs_cv_personality_linux32 = yes; then
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_PERSONALITY_LINUX32 1
6798 for ac_header in term.h
6800 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <$ac_header>
6814 if { (ac_try="$ac_cpp conftest.$ac_ext"
6816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6817 *) ac_try_echo
=$ac_try;;
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6822 grep -v '^ *+' conftest.er1
>conftest.err
6824 cat conftest.err
>&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } >/dev
/null
&& {
6827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6830 eval "$as_ac_Header=yes"
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.
$ac_ext >&5
6835 eval "$as_ac_Header=no"
6838 rm -f conftest.err conftest.
$ac_ext
6840 ac_res
=`eval echo '${'$as_ac_Header'}'`
6841 { echo "$as_me:$LINENO: result: $ac_res" >&5
6842 echo "${ECHO_T}$ac_res" >&6; }
6843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6844 cat >>confdefs.h
<<_ACEOF
6845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6854 if test "${ac_cv_header_stdc+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 cat >conftest.
$ac_ext <<_ACEOF
6860 cat confdefs.h
>>conftest.
$ac_ext
6861 cat >>conftest.
$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6876 rm -f conftest.
$ac_objext
6877 if { (ac_try
="$ac_compile"
6879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6893 ac_cv_header_stdc=yes
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_cv_header_stdc=no
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 if test $ac_cv_header_stdc = yes; then
6904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6905 cat >conftest.$ac_ext <<_ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "memchr" >/dev/null 2>&1; then
6918 ac_cv_header_stdc=no
6924 if test $ac_cv_header_stdc = yes; then
6925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 $EGREP "free" >/dev/null 2>&1; then
6939 ac_cv_header_stdc=no
6945 if test $ac_cv_header_stdc = yes; then
6946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6947 if test "$cross_compiling" = yes; then
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6958 #if ((' ' & 0x0FF) == 0x020)
6959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6962 # define ISLOWER(c) \
6963 (('a' <= (c) && (c) <= 'i') \
6964 || ('j' <= (c) && (c) <= 'r') \
6965 || ('s' <= (c) && (c) <= 'z'))
6966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6974 for (i = 0; i < 256; i++)
6975 if (XOR (islower (i), ISLOWER (i))
6976 || toupper (i) != TOUPPER (i))
6981 rm -f conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6985 *) ac_try_echo
=$ac_try;;
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_link") 2>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6992 { (case "(($ac_try" in
6993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_try") 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7003 echo "$as_me: program exited with status $ac_status" >&5
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_cv_header_stdc=no
7010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7018 if test $ac_cv_header_stdc = yes; then
7020 cat >>confdefs.h <<\_ACEOF
7021 #define STDC_HEADERS 1
7026 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7027 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7028 if test "${ac_cv_header_time+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/types.h>
7038 #include <sys/time.h>
7044 if ((struct tm *) 0)
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7054 *) ac_try_echo
=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
7059 grep -v '^ *+' conftest.er1
>conftest.err
7061 cat conftest.err
>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.
$ac_objext; then
7067 ac_cv_header_time
=yes
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.
$ac_ext >&5
7072 ac_cv_header_time
=no
7075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7077 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7078 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7079 if test $ac_cv_header_time = yes; then
7081 cat >>confdefs.h
<<\_ACEOF
7082 #define TIME_WITH_SYS_TIME 1
7087 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7088 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7089 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 cat >conftest.
$ac_ext <<_ACEOF
7095 cat confdefs.h
>>conftest.
$ac_ext
7096 cat >>conftest.
$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7110 rm -f conftest.
$ac_objext
7111 if { (ac_try
="$ac_compile"
7113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7119 grep -v '^ *+' conftest.er1 >conftest.err
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7127 ac_cv_have_decl_sys_siglist=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_cv_have_decl_sys_siglist=no
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7138 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7139 if test $ac_cv_have_decl_sys_siglist = yes; then
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_DECL_SYS_SIGLIST 1
7147 cat >>confdefs.h <<_ACEOF
7148 #define HAVE_DECL_SYS_SIGLIST 0
7155 if test $ac_cv_have_decl_sys_siglist != yes; then
7156 # For Tru64, at least:
7157 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7158 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7159 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 cat >conftest.$ac_ext <<_ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7172 #ifndef __sys_siglist
7173 (void) __sys_siglist;
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7184 *) ac_try_echo
=$ac_try;;
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7189 grep -v '^ *+' conftest.er1
>conftest.err
7191 cat conftest.err
>&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.
$ac_objext; then
7197 ac_cv_have_decl___sys_siglist
=yes
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.
$ac_ext >&5
7202 ac_cv_have_decl___sys_siglist
=no
7205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7208 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7209 if test $ac_cv_have_decl___sys_siglist = yes; then
7211 cat >>confdefs.h
<<_ACEOF
7212 #define HAVE_DECL___SYS_SIGLIST 1
7217 cat >>confdefs.h
<<_ACEOF
7218 #define HAVE_DECL___SYS_SIGLIST 0
7225 if test $ac_cv_have_decl___sys_siglist = yes; then
7227 cat >>confdefs.h
<<\_ACEOF
7228 #define sys_siglist __sys_siglist
7233 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7234 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7235 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 cat >conftest.
$ac_ext <<_ACEOF
7241 cat confdefs.h
>>conftest.
$ac_ext
7242 cat >>conftest.
$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 #include <sys/types.h>
7245 #include <sys/wait.h>
7247 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7250 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7258 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7263 rm -f conftest.
$ac_objext
7264 if { (ac_try
="$ac_compile"
7266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 ac_cv_header_sys_wait_h=yes
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_cv_header_sys_wait_h=no
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7291 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7292 if test $ac_cv_header_sys_wait_h = yes; then
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_SYS_WAIT_H 1
7301 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7302 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7303 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 cat >conftest.$ac_ext <<_ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 #ifdef TIME_WITH_SYS_TIME
7313 #include <sys/time.h>
7316 #ifdef HAVE_SYS_TIME_H
7317 #include <sys/time.h>
7328 static struct utimbuf x; x.actime = x.modtime;
7333 rm -f conftest.$ac_objext
7334 if { (ac_try="$ac_compile"
7336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7337 *) ac_try_echo
=$ac_try;;
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_compile") 2>conftest.er1
7342 grep -v '^ *+' conftest.er1
>conftest.err
7344 cat conftest.err
>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest.
$ac_objext; then
7350 emacs_cv_struct_utimbuf
=yes
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.
$ac_ext >&5
7355 emacs_cv_struct_utimbuf
=no
7358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7360 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7361 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7362 if test $emacs_cv_struct_utimbuf = yes; then
7364 cat >>confdefs.h
<<\_ACEOF
7365 #define HAVE_STRUCT_UTIMBUF 1
7370 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7371 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7372 if test "${ac_cv_type_signal+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 cat >conftest.
$ac_ext <<_ACEOF
7378 cat confdefs.h
>>conftest.
$ac_ext
7379 cat >>conftest.
$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 #include <sys/types.h>
7387 return *(signal (0, 0)) (0) == 1;
7392 rm -f conftest.
$ac_objext
7393 if { (ac_try
="$ac_compile"
7395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_cv_type_signal=int
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_cv_type_signal=void
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7420 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7422 cat >>confdefs.h <<_ACEOF
7423 #define RETSIGTYPE $ac_cv_type_signal
7428 { echo "$as_me:$LINENO: checking for speed_t" >&5
7429 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7430 if test "${emacs_cv_speed_t+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <termios.h>
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7452 *) ac_try_echo
=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1
>conftest.err
7459 cat conftest.err
>&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.
$ac_objext; then
7465 emacs_cv_speed_t
=yes
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.
$ac_ext >&5
7473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7475 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7476 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7477 if test $emacs_cv_speed_t = yes; then
7479 cat >>confdefs.h
<<\_ACEOF
7480 #define HAVE_SPEED_T 1
7485 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7486 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7487 if test "${emacs_cv_struct_timeval+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. */
7496 #ifdef TIME_WITH_SYS_TIME
7497 #include <sys/time.h>
7500 #ifdef HAVE_SYS_TIME_H
7501 #include <sys/time.h>
7509 static struct timeval x; x.tv_sec = x.tv_usec;
7514 rm -f conftest.
$ac_objext
7515 if { (ac_try
="$ac_compile"
7517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
7531 emacs_cv_struct_timeval=yes
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 emacs_cv_struct_timeval=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7542 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7543 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7544 if test $emacs_cv_struct_timeval = yes; then
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_TIMEVAL 1
7552 { echo "$as_me:$LINENO: checking for struct exception" >&5
7553 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7554 if test "${emacs_cv_struct_exception+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7567 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7576 *) ac_try_echo
=$ac_try;;
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7581 grep -v '^ *+' conftest.er1
>conftest.err
7583 cat conftest.err
>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.
$ac_objext; then
7589 emacs_cv_struct_exception
=yes
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.
$ac_ext >&5
7594 emacs_cv_struct_exception
=no
7597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7599 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7600 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7601 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7602 if test $emacs_cv_struct_exception != yes; then
7604 cat >>confdefs.h
<<\_ACEOF
7605 #define NO_MATHERR 1
7611 for ac_header
in sys
/socket.h
7613 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7617 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 ac_res
=`eval echo '${'$as_ac_Header'}'`
7621 { echo "$as_me:$LINENO: result: $ac_res" >&5
7622 echo "${ECHO_T}$ac_res" >&6; }
7624 # Is the header compilable?
7625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7627 cat >conftest.
$ac_ext <<_ACEOF
7630 cat confdefs.h
>>conftest.
$ac_ext
7631 cat >>conftest.
$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 $ac_includes_default
7634 #include <$ac_header>
7636 rm -f conftest.
$ac_objext
7637 if { (ac_try
="$ac_compile"
7639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 ac_header_compiler=yes
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 ac_header_compiler=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7663 echo "${ECHO_T}$ac_header_compiler" >&6; }
7665 # Is the header present?
7666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <$ac_header>
7676 if { (ac_try="$ac_cpp conftest.$ac_ext"
7678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7679 *) ac_try_echo
=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7684 grep -v '^ *+' conftest.er1
>conftest.err
7686 cat conftest.err
>&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } >/dev
/null
&& {
7689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7692 ac_header_preproc
=yes
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.
$ac_ext >&5
7697 ac_header_preproc
=no
7700 rm -f conftest.err conftest.
$ac_ext
7701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7702 echo "${ECHO_T}$ac_header_preproc" >&6; }
7704 # So? What about this header?
7705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7711 ac_header_preproc
=yes
7714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7731 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 eval "$as_ac_Header=\$ac_header_preproc"
7736 ac_res
=`eval echo '${'$as_ac_Header'}'`
7737 { echo "$as_me:$LINENO: result: $ac_res" >&5
7738 echo "${ECHO_T}$ac_res" >&6; }
7741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7742 cat >>confdefs.h
<<_ACEOF
7743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7751 for ac_header
in net
/if.h
7753 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 cat >conftest.
$ac_ext <<_ACEOF
7762 cat confdefs.h
>>conftest.
$ac_ext
7763 cat >>conftest.
$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765 $ac_includes_default
7766 #if HAVE_SYS_SOCKET_H
7767 #include <sys/socket.h>
7770 #include <$ac_header>
7772 rm -f conftest.
$ac_objext
7773 if { (ac_try
="$ac_compile"
7775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7789 eval "$as_ac_Header=yes"
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 eval "$as_ac_Header=no"
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 ac_res=`eval echo '${'$as_ac_Header'}'`
7800 { echo "$as_me:$LINENO: result: $ac_res" >&5
7801 echo "${ECHO_T}$ac_res" >&6; }
7802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7812 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7813 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7814 if test "${ac_cv_struct_tm+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7830 int *p = &tm.tm_sec;
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7840 *) ac_try_echo
=$ac_try;;
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7845 grep -v '^ *+' conftest.er1
>conftest.err
7847 cat conftest.err
>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.
$ac_objext; then
7853 ac_cv_struct_tm
=time.h
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.
$ac_ext >&5
7858 ac_cv_struct_tm
=sys
/time.h
7861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7863 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7864 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7865 if test $ac_cv_struct_tm = sys
/time.h
; then
7867 cat >>confdefs.h
<<\_ACEOF
7868 #define TM_IN_SYS_TIME 1
7873 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7874 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7875 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 cat >conftest.
$ac_ext <<_ACEOF
7881 cat confdefs.h
>>conftest.
$ac_ext
7882 cat >>conftest.
$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <sys/types.h>
7885 #include <$ac_cv_struct_tm>
7891 static struct tm ac_aggr;
7892 if (ac_aggr.tm_zone)
7898 rm -f conftest.
$ac_objext
7899 if { (ac_try
="$ac_compile"
7901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7915 ac_cv_member_struct_tm_tm_zone=yes
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <sys/types.h>
7927 #include <$ac_cv_struct_tm>
7933 static struct tm ac_aggr;
7934 if (sizeof ac_aggr.tm_zone)
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7944 *) ac_try_echo
=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7949 grep -v '^ *+' conftest.er1
>conftest.err
7951 cat conftest.err
>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.
$ac_objext; then
7957 ac_cv_member_struct_tm_tm_zone
=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7962 ac_cv_member_struct_tm_tm_zone
=no
7965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7971 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7972 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7974 cat >>confdefs.h
<<_ACEOF
7975 #define HAVE_STRUCT_TM_TM_ZONE 1
7981 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7983 cat >>confdefs.h
<<\_ACEOF
7984 #define HAVE_TM_ZONE 1
7988 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7989 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7990 if test "${ac_cv_have_decl_tzname+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.
$ac_ext <<_ACEOF
7996 cat confdefs.h
>>conftest.
$ac_ext
7997 cat >>conftest.
$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8012 rm -f conftest.
$ac_objext
8013 if { (ac_try
="$ac_compile"
8015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_cv_have_decl_tzname=yes
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_cv_have_decl_tzname=no
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8040 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8041 if test $ac_cv_have_decl_tzname = yes; then
8043 cat >>confdefs.h <<_ACEOF
8044 #define HAVE_DECL_TZNAME 1
8049 cat >>confdefs.h <<_ACEOF
8050 #define HAVE_DECL_TZNAME 0
8057 { echo "$as_me:$LINENO: checking for tzname" >&5
8058 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8059 if test "${ac_cv_var_tzname+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 cat >conftest.$ac_ext <<_ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8069 #if !HAVE_DECL_TZNAME
8070 extern char *tzname[];
8076 return tzname[0][0];
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8085 *) ac_try_echo
=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1
>conftest.err
8092 cat conftest.err
>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest
$ac_exeext &&
8098 $as_test_x conftest
$ac_exeext; then
8099 ac_cv_var_tzname
=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.
$ac_ext >&5
8107 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8108 conftest
$ac_exeext conftest.
$ac_ext
8110 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8111 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8112 if test $ac_cv_var_tzname = yes; then
8114 cat >>confdefs.h
<<\_ACEOF
8115 #define HAVE_TZNAME 1
8121 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8122 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8123 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 cat >conftest.
$ac_ext <<_ACEOF
8129 cat confdefs.h
>>conftest.
$ac_ext
8130 cat >>conftest.
$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8137 static struct tm ac_aggr;
8138 if (ac_aggr.tm_gmtoff)
8144 rm -f conftest.
$ac_objext
8145 if { (ac_try
="$ac_compile"
8147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_cv_member_struct_tm_tm_gmtoff=yes
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8177 static struct tm ac_aggr;
8178 if (sizeof ac_aggr.tm_gmtoff)
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8188 *) ac_try_echo
=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8193 grep -v '^ *+' conftest.er1
>conftest.err
8195 cat conftest.err
>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.
$ac_objext; then
8201 ac_cv_member_struct_tm_tm_gmtoff
=yes
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.
$ac_ext >&5
8206 ac_cv_member_struct_tm_tm_gmtoff
=no
8209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8214 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8215 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8216 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8218 cat >>confdefs.h
<<\_ACEOF
8219 #define HAVE_TM_GMTOFF 1
8224 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8225 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8226 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.
$ac_ext <<_ACEOF
8232 cat confdefs.h
>>conftest.
$ac_ext
8233 cat >>conftest.
$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 $ac_includes_default
8236 #if HAVE_SYS_SOCKET_H
8237 #include <sys/socket.h>
8246 static struct ifreq ac_aggr;
8247 if (ac_aggr.ifr_flags)
8253 rm -f conftest.
$ac_objext
8254 if { (ac_try
="$ac_compile"
8256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_compile") 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && {
8267 test -z "$ac_c_werror_flag" ||
8268 test ! -s conftest.err
8269 } && test -s conftest.$ac_objext; then
8270 ac_cv_member_struct_ifreq_ifr_flags=yes
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 cat >conftest.$ac_ext <<_ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 $ac_includes_default
8282 #if HAVE_SYS_SOCKET_H
8283 #include <sys/socket.h>
8292 static struct ifreq ac_aggr;
8293 if (sizeof ac_aggr.ifr_flags)
8299 rm -f conftest.$ac_objext
8300 if { (ac_try="$ac_compile"
8302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8303 *) ac_try_echo
=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8308 grep -v '^ *+' conftest.er1
>conftest.err
8310 cat conftest.err
>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest.
$ac_objext; then
8316 ac_cv_member_struct_ifreq_ifr_flags
=yes
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.
$ac_ext >&5
8321 ac_cv_member_struct_ifreq_ifr_flags
=no
8324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8330 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8331 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8333 cat >>confdefs.h
<<_ACEOF
8334 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8339 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8340 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8341 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.
$ac_ext <<_ACEOF
8347 cat confdefs.h
>>conftest.
$ac_ext
8348 cat >>conftest.
$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 #if HAVE_SYS_SOCKET_H
8352 #include <sys/socket.h>
8361 static struct ifreq ac_aggr;
8362 if (ac_aggr.ifr_hwaddr)
8368 rm -f conftest.
$ac_objext
8369 if { (ac_try
="$ac_compile"
8371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #if HAVE_SYS_SOCKET_H
8398 #include <sys/socket.h>
8407 static struct ifreq ac_aggr;
8408 if (sizeof ac_aggr.ifr_hwaddr)
8414 rm -f conftest.$ac_objext
8415 if { (ac_try="$ac_compile"
8417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8418 *) ac_try_echo
=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8423 grep -v '^ *+' conftest.er1
>conftest.err
8425 cat conftest.err
>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && {
8428 test -z "$ac_c_werror_flag" ||
8429 test ! -s conftest.err
8430 } && test -s conftest.
$ac_objext; then
8431 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.
$ac_ext >&5
8436 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8444 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8445 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8446 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8448 cat >>confdefs.h
<<_ACEOF
8449 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8454 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8455 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8456 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 cat >conftest.
$ac_ext <<_ACEOF
8462 cat confdefs.h
>>conftest.
$ac_ext
8463 cat >>conftest.
$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 $ac_includes_default
8466 #if HAVE_SYS_SOCKET_H
8467 #include <sys/socket.h>
8476 static struct ifreq ac_aggr;
8477 if (ac_aggr.ifr_netmask)
8483 rm -f conftest.
$ac_objext
8484 if { (ac_try
="$ac_compile"
8486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_compile") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest.$ac_objext; then
8500 ac_cv_member_struct_ifreq_ifr_netmask=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 #if HAVE_SYS_SOCKET_H
8513 #include <sys/socket.h>
8522 static struct ifreq ac_aggr;
8523 if (sizeof ac_aggr.ifr_netmask)
8529 rm -f conftest.$ac_objext
8530 if { (ac_try="$ac_compile"
8532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8533 *) ac_try_echo
=$ac_try;;
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8538 grep -v '^ *+' conftest.er1
>conftest.err
8540 cat conftest.err
>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.
$ac_objext; then
8546 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.
$ac_ext >&5
8551 ac_cv_member_struct_ifreq_ifr_netmask
=no
8554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8559 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8560 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8561 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8563 cat >>confdefs.h
<<_ACEOF
8564 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8569 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8570 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8571 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 cat >conftest.
$ac_ext <<_ACEOF
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 #if HAVE_SYS_SOCKET_H
8582 #include <sys/socket.h>
8591 static struct ifreq ac_aggr;
8592 if (ac_aggr.ifr_broadaddr)
8598 rm -f conftest.
$ac_objext
8599 if { (ac_try
="$ac_compile"
8601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.$ac_objext; then
8615 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 cat >conftest.$ac_ext <<_ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 $ac_includes_default
8627 #if HAVE_SYS_SOCKET_H
8628 #include <sys/socket.h>
8637 static struct ifreq ac_aggr;
8638 if (sizeof ac_aggr.ifr_broadaddr)
8644 rm -f conftest.$ac_objext
8645 if { (ac_try="$ac_compile"
8647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8648 *) ac_try_echo
=$ac_try;;
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1
>conftest.err
8655 cat conftest.err
>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.
$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.
$ac_ext >&5
8666 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8674 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8675 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8676 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8678 cat >>confdefs.h
<<_ACEOF
8679 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8684 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8685 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8686 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 cat >conftest.
$ac_ext <<_ACEOF
8692 cat confdefs.h
>>conftest.
$ac_ext
8693 cat >>conftest.
$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 #if HAVE_SYS_SOCKET_H
8697 #include <sys/socket.h>
8706 static struct ifreq ac_aggr;
8707 if (ac_aggr.ifr_addr)
8713 rm -f conftest.
$ac_objext
8714 if { (ac_try
="$ac_compile"
8716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest.$ac_objext; then
8730 ac_cv_member_struct_ifreq_ifr_addr=yes
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 $ac_includes_default
8742 #if HAVE_SYS_SOCKET_H
8743 #include <sys/socket.h>
8752 static struct ifreq ac_aggr;
8753 if (sizeof ac_aggr.ifr_addr)
8759 rm -f conftest.$ac_objext
8760 if { (ac_try="$ac_compile"
8762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8763 *) ac_try_echo
=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1
>conftest.err
8770 cat conftest.err
>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.
$ac_objext; then
8776 ac_cv_member_struct_ifreq_ifr_addr
=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.
$ac_ext >&5
8781 ac_cv_member_struct_ifreq_ifr_addr
=no
8784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8790 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8791 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8793 cat >>confdefs.h
<<_ACEOF
8794 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8802 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8803 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8804 if test "$ac_cv_prog_cc_c89" != no
; then
8805 { echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6; }
8808 cat >>confdefs.h
<<\_ACEOF
8809 #define PROTOTYPES 1
8813 cat >>confdefs.h
<<\_ACEOF
8814 #define __PROTOTYPES 1
8818 { echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6; }
8822 { echo "$as_me:$LINENO: checking for working volatile" >&5
8823 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8824 if test "${ac_cv_c_volatile+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 cat >conftest.
$ac_ext <<_ACEOF
8830 cat confdefs.h
>>conftest.
$ac_ext
8831 cat >>conftest.
$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8839 int * volatile y = (int *) 0;
8845 rm -f conftest.
$ac_objext
8846 if { (ac_try
="$ac_compile"
8848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_compile") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest.$ac_objext; then
8862 ac_cv_c_volatile=yes
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8873 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8874 if test $ac_cv_c_volatile = no; then
8876 cat >>confdefs.h <<\_ACEOF
8882 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8883 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8884 if test "${ac_cv_c_const+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8897 /* FIXME: Include the comments suggested by Paul. */
8899 /* Ultrix mips cc rejects this. */
8900 typedef int charset[2];
8902 /* SunOS 4.1.1 cc rejects this. */
8903 char const *const *pcpcc;
8905 /* NEC SVR4.0.2 mips cc rejects this. */
8906 struct point {int x, y;};
8907 static struct point const zero = {0,0};
8908 /* AIX XL C 1.02.0.0 rejects this.
8909 It does not let you subtract one const X* pointer from another in
8910 an arm of an if-expression whose if-part is not a constant
8912 const char *g = "string";
8913 pcpcc = &g + (g ? g-g : 0);
8914 /* HPUX 7.0 cc rejects these. */
8916 ppc = (char**) pcpcc;
8917 pcpcc = (char const *const *) ppc;
8918 { /* SCO 3.2v4 cc rejects this. */
8920 char const *s = 0 ? (char *) 0 : (char const *) 0;
8925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8927 const int *foo = &x[0];
8930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8931 typedef const int *iptr;
8935 { /* AIX XL C 1.02.0.0 rejects this saying
8936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8937 struct s { int j; const int *ap[3]; };
8938 struct s *b; b->j = 5;
8940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8944 return !cs[0] && !zero.x;
8951 rm -f conftest.$ac_objext
8952 if { (ac_try="$ac_compile"
8954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8955 *) ac_try_echo
=$ac_try;;
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_compile") 2>conftest.er1
8960 grep -v '^ *+' conftest.er1
>conftest.err
8962 cat conftest.err
>&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && {
8965 test -z "$ac_c_werror_flag" ||
8966 test ! -s conftest.err
8967 } && test -s conftest.
$ac_objext; then
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.
$ac_ext >&5
8976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8978 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8979 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8980 if test $ac_cv_c_const = no
; then
8982 cat >>confdefs.h
<<\_ACEOF
8988 { echo "$as_me:$LINENO: checking for void * support" >&5
8989 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8990 if test "${emacs_cv_void_star+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 cat >conftest.
$ac_ext <<_ACEOF
8996 cat confdefs.h
>>conftest.
$ac_ext
8997 cat >>conftest.
$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9008 rm -f conftest.
$ac_objext
9009 if { (ac_try
="$ac_compile"
9011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_compile") 2>conftest.er1
9017 grep -v '^ *+' conftest.er1 >conftest.err
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest.$ac_objext; then
9025 emacs_cv_void_star=yes
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9030 emacs_cv_void_star=no
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9036 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9037 if test $emacs_cv_void_star = yes; then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define POINTER_TYPE void
9043 cat >>confdefs.h <<\_ACEOF
9044 #define POINTER_TYPE char
9053 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9054 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9055 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9056 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 cat >conftest.make <<\_ACEOF
9062 @echo '@@@%%%=$(MAKE)=@@@%%%'
9064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9065 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9067 eval ac_cv_prog_make_${ac_make}_set=yes;;
9069 eval ac_cv_prog_make_${ac_make}_set=no;;
9073 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9074 { echo "$as_me:$LINENO: result: yes" >&5
9075 echo "${ECHO_T}yes" >&6; }
9078 { echo "$as_me:$LINENO: result: no" >&5
9079 echo "${ECHO_T}no" >&6; }
9080 SET_MAKE="MAKE=${MAKE-make}"
9084 { echo "$as_me:$LINENO: checking for long file names" >&5
9085 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9086 if test "${ac_cv_sys_long_file_names+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 ac_cv_sys_long_file_names=yes
9090 # Test for long file names in all the places we know might matter:
9091 # . the current directory, where building will happen
9092 # $prefix/lib where we will be installing things
9093 # $exec_prefix/lib likewise
9094 # $TMPDIR if set, where it might want to write temporary files
9095 # /tmp where it might want to write temporary files
9098 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9099 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9100 # in the usual case where exec_prefix is '${prefix}'.
9102 . | /* | ?:[\\/]*) ;; #(
9105 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9106 ac_xdir=$ac_dir/cf$$
9107 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9108 ac_tf1=$ac_xdir/conftest9012345
9109 ac_tf2=$ac_xdir/conftest9012346
9110 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9111 ac_cv_sys_long_file_names=no
9112 rm -f -r "$ac_xdir" 2>/dev/null
9113 test $ac_cv_sys_long_file_names = no && break
9116 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9117 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9118 if test $ac_cv_sys_long_file_names = yes; then
9120 cat >>confdefs.h <<\_ACEOF
9121 #define HAVE_LONG_FILE_NAMES 1
9127 #### Choose a window system.
9129 { echo "$as_me:$LINENO: checking for X" >&5
9130 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9133 # Check whether --with-x was given.
9134 if test "${with_x+set}" = set; then
9138 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9139 if test "x$with_x" = xno; then
9140 # The user explicitly disabled X.
9143 case $x_includes,$x_libraries in #(
9144 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9145 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9146 { (exit 1); exit 1; }; };; #(
9147 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 # One or both of the vars are not set, and there is no cached value.
9151 ac_x_includes=no ac_x_libraries=no
9152 rm -f -r conftest.dir
9153 if mkdir conftest.dir; then
9155 cat >Imakefile <<'_ACEOF'
9157 @echo incroot='${INCROOT}'
9159 @echo usrlibdir='${USRLIBDIR}'
9161 @echo libdir='${LIBDIR}'
9163 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9165 for ac_var in incroot usrlibdir libdir; do
9166 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9169 for ac_extension in a so sl; do
9170 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9171 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9172 ac_im_usrlibdir=$ac_im_libdir; break
9175 # Screen out bogus values from the imake configuration. They are
9176 # bogus both because they are the default anyway, and because
9177 # using them would break gcc on systems where it needs fixed includes.
9178 case $ac_im_incroot in
9179 /usr/include) ac_x_includes= ;;
9180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9182 case $ac_im_usrlibdir in
9184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9188 rm -f -r conftest.dir
9191 # Standard set of common directories for X headers.
9192 # Check X11 before X11Rn because it is often a symlink to the current release.
9204 /usr/local/X11/include
9205 /usr/local/X11R6/include
9206 /usr/local/X11R5/include
9207 /usr/local/X11R4/include
9209 /usr/local/include/X11
9210 /usr/local/include/X11R6
9211 /usr/local/include/X11R5
9212 /usr/local/include/X11R4
9216 /usr/XFree86/include/X11
9220 /usr/unsupported/include
9222 /usr/local/x11r5/include
9223 /usr/lpp/Xamples/include
9225 /usr/openwin/include
9226 /usr/openwin/share/include'
9228 if test "$ac_x_includes" = no; then
9229 # Guess where to find include files, by looking for Xlib.h.
9230 # First, try using that file with no special directory specified.
9231 cat >conftest.$ac_ext <<_ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <X11/Xlib.h>
9239 if { (ac_try="$ac_cpp conftest.$ac_ext"
9241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9242 *) ac_try_echo
=$ac_try;;
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1
>conftest.err
9249 cat conftest.err
>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } >/dev
/null
&& {
9252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9255 # We can compile using X headers with no special include directory.
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.
$ac_ext >&5
9261 for ac_dir
in $ac_x_header_dirs; do
9262 if test -r "$ac_dir/X11/Xlib.h"; then
9263 ac_x_includes
=$ac_dir
9269 rm -f conftest.err conftest.
$ac_ext
9270 fi # $ac_x_includes = no
9272 if test "$ac_x_libraries" = no
; then
9273 # Check for the libraries.
9274 # See if we find them without any special options.
9275 # Don't add to $LIBS permanently.
9278 cat >conftest.
$ac_ext <<_ACEOF
9281 cat confdefs.h
>>conftest.
$ac_ext
9282 cat >>conftest.
$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 #include <X11/Xlib.h>
9293 rm -f conftest.
$ac_objext conftest
$ac_exeext
9294 if { (ac_try
="$ac_link"
9296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_link") 2>conftest.er1
9302 grep -v '^ *+' conftest.er1 >conftest.err
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 } && test -s conftest$ac_exeext &&
9310 $as_test_x conftest$ac_exeext; then
9312 # We can link X programs with no special library path.
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9319 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9321 # Don't even attempt the hair of trying to link an X program!
9322 for ac_extension in a so sl; do
9323 if test -r "$ac_dir/libX11.$ac_extension"; then
9324 ac_x_libraries=$ac_dir
9331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9332 conftest$ac_exeext conftest.$ac_ext
9333 fi # $ac_x_libraries = no
9335 case $ac_x_includes,$ac_x_libraries in #(
9337 # Didn't find X, or a directory has "'" in its name.
9338 ac_cv_have_x="have_x=no";; #(
9340 # Record where we found X for the cache.
9341 ac_cv_have_x="have_x=yes\
9342 ac_x_includes='$ac_x_includes'\
9343 ac_x_libraries='$ac_x_libraries'"
9349 eval "$ac_cv_have_x"
9352 if test "$have_x" != yes; then
9353 { echo "$as_me:$LINENO: result: $have_x" >&5
9354 echo "${ECHO_T}$have_x" >&6; }
9357 # If each of the values was on the command line, it overrides each guess.
9358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9360 # Update the cache value to reflect the command line values.
9361 ac_cv_have_x="have_x=yes\
9362 ac_x_includes='$x_includes'\
9363 ac_x_libraries='$x_libraries'"
9364 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9365 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9368 if test "$no_x" = yes; then
9374 if test "${x_libraries}" != NONE; then
9375 if test -n "${x_libraries}"; then
9376 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9377 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9379 x_default_search_path=""
9380 x_search_path=${x_libraries}
9381 if test -z "${x_search_path}"; then
9382 x_search_path=/usr/lib
9384 for x_library in `echo ${x_search_path}: | \
9385 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9387 ${x_library}/X11/%L/%T/%N%C%S:\
9388 ${x_library}/X11/%l/%T/%N%C%S:\
9389 ${x_library}/X11/%T/%N%C%S:\
9390 ${x_library}/X11/%L/%T/%N%S:\
9391 ${x_library}/X11/%l/%T/%N%S:\
9392 ${x_library}/X11/%T/%N%S"
9393 if test x"${x_default_search_path}" = x; then
9394 x_default_search_path=${x_search_path}
9396 x_default_search_path="${x_search_path}:${x_default_search_path}"
9400 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9401 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9404 if test x"${x_includes}" = x; then
9405 bitmapdir=/usr/include/X11/bitmaps
9407 # accumulate include directories that have X11 bitmap subdirectories
9409 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9410 if test -d "${bmd}/X11/bitmaps"; then
9411 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9413 if test -d "${bmd}/bitmaps"; then
9414 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9417 if test ${bmd_acc} != "dummyval"; then
9418 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9423 if test "${with_carbon}" != no; then
9424 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9425 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9426 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9427 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9431 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9433 # Is the header compilable?
9434 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9435 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9436 cat >conftest.$ac_ext <<_ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 $ac_includes_default
9443 #include <Carbon/Carbon.h>
9445 rm -f conftest.$ac_objext
9446 if { (ac_try="$ac_compile"
9448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9449 *) ac_try_echo
=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_compile") 2>conftest.er1
9454 grep -v '^ *+' conftest.er1
>conftest.err
9456 cat conftest.err
>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest.
$ac_objext; then
9462 ac_header_compiler
=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.
$ac_ext >&5
9467 ac_header_compiler
=no
9470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9472 echo "${ECHO_T}$ac_header_compiler" >&6; }
9474 # Is the header present?
9475 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9476 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9477 cat >conftest.
$ac_ext <<_ACEOF
9480 cat confdefs.h
>>conftest.
$ac_ext
9481 cat >>conftest.
$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #include <Carbon/Carbon.h>
9485 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9493 grep -v '^ *+' conftest.er1 >conftest.err
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } >/dev/null && {
9498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9499 test ! -s conftest.err
9501 ac_header_preproc=yes
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9506 ac_header_preproc=no
9509 rm -f conftest.err conftest.$ac_ext
9510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9511 echo "${ECHO_T}$ac_header_preproc" >&6; }
9513 # So? What about this header?
9514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9516 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9517 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9519 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9520 ac_header_preproc=yes
9523 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9524 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9526 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9528 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9530 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9532 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9534 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9538 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9539 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9540 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9545 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9546 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9549 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9555 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9556 if test "${with_carbon+set}" != set \
9557 && test "${carbon_appdir_x+set}" != set; then
9558 for var in with_x with_x_toolkit with_gtk with_xim \
9559 with_xpm with_jpeg with_tiff with_gif with_png; do
9560 if eval test \"\${$var+set}\" = set; then
9567 if test "${HAVE_CARBON}" = yes; then
9571 case "${window_system}" in
9575 case "${with_x_toolkit}" in
9576 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9577 motif ) USE_X_TOOLKIT=MOTIF ;;
9579 USE_X_TOOLKIT=none ;;
9580 no ) USE_X_TOOLKIT=none ;;
9582 if test x"$with_gtk" = xyes; then
9597 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9598 # Extract the first word of "X", so it can be a program name with args.
9599 set dummy X; ac_word=$2
9600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9602 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 if test -n "$HAVE_XSERVER"; then
9606 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_prog_HAVE_XSERVER="true"
9616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9626 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9627 if test -n "$HAVE_XSERVER"; then
9628 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9629 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9631 { echo "$as_me:$LINENO: result: no" >&5
9632 echo "${ECHO_T}no" >&6; }
9636 if test "$HAVE_XSERVER" = true ||
9637 test -n "$DISPLAY" ||
9638 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9639 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9640 were found. You should install the relevant development files for X
9641 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9642 sure you have development files for image handling, i.e.
9643 tiff, gif, jpeg, png and xpm.
9644 If you are sure you want Emacs compiled without X window support, pass
9647 echo "$as_me: error: You seem to be running X, but no X development libraries
9648 were found. You should install the relevant development files for X
9649 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9650 sure you have development files for image handling, i.e.
9651 tiff, gif, jpeg, png and xpm.
9652 If you are sure you want Emacs compiled without X window support, pass
9654 to configure." >&2;}
9655 { (exit 1); exit 1; }; }
9659 ### If we're using X11, we should use the X menu package.
9662 yes ) HAVE_MENUS=yes ;;
9665 if test "${opsys}" = "hpux9"; then
9666 case "${x_libraries}" in
9668 opsysfile="s/hpux9-x11r4.h"
9673 if test "${opsys}" = "hpux9shr"; then
9674 case "${x_libraries}" in
9676 opsysfile="s/hpux9shxr4.h"
9681 ### Compute the unexec source name from the object name.
9682 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9684 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9685 # Assume not, until told otherwise.
9688 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9689 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9690 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9701 #define malloc_get_state innocuous_malloc_get_state
9703 /* System header to define __stub macros and hopefully few prototypes,
9704 which can conflict with char malloc_get_state (); below.
9705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9706 <limits.h> exists even on freestanding compilers. */
9709 # include <limits.h>
9711 # include <assert.h>
9714 #undef malloc_get_state
9716 /* Override any GCC internal prototype to avoid an error.
9717 Use char because int might match the return type of a GCC
9718 builtin and then its argument prototype would still apply. */
9722 char malloc_get_state ();
9723 /* The GNU C library defines this for functions which it implements
9724 to always fail with ENOSYS. Some functions are actually named
9725 something starting with __ and the normal name is an alias. */
9726 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9733 return malloc_get_state ();
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9742 *) ac_try_echo
=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9747 grep -v '^ *+' conftest.er1
>conftest.err
9749 cat conftest.err
>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest
$ac_exeext &&
9755 $as_test_x conftest
$ac_exeext; then
9756 ac_cv_func_malloc_get_state
=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.
$ac_ext >&5
9761 ac_cv_func_malloc_get_state
=no
9764 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9765 conftest
$ac_exeext conftest.
$ac_ext
9767 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9768 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9769 if test $ac_cv_func_malloc_get_state = yes; then
9775 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9776 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9777 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 cat >conftest.
$ac_ext <<_ACEOF
9783 cat confdefs.h
>>conftest.
$ac_ext
9784 cat >>conftest.
$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9788 #define malloc_set_state innocuous_malloc_set_state
9790 /* System header to define __stub macros and hopefully few prototypes,
9791 which can conflict with char malloc_set_state (); below.
9792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9793 <limits.h> exists even on freestanding compilers. */
9796 # include <limits.h>
9798 # include <assert.h>
9801 #undef malloc_set_state
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9809 char malloc_set_state ();
9810 /* The GNU C library defines this for functions which it implements
9811 to always fail with ENOSYS. Some functions are actually named
9812 something starting with __ and the normal name is an alias. */
9813 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9820 return malloc_set_state ();
9825 rm -f conftest.
$ac_objext conftest
$ac_exeext
9826 if { (ac_try
="$ac_link"
9828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_link") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest$ac_exeext &&
9842 $as_test_x conftest$ac_exeext; then
9843 ac_cv_func_malloc_set_state=yes
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_cv_func_malloc_set_state=no
9851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9852 conftest$ac_exeext conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9855 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9856 if test $ac_cv_func_malloc_set_state = yes; then
9862 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9863 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9864 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 extern void (* __after_morecore_hook)();
9877 __after_morecore_hook = 0
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9886 *) ac_try_echo
=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1
>conftest.err
9893 cat conftest.err
>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest
$ac_exeext &&
9899 $as_test_x conftest
$ac_exeext; then
9900 emacs_cv_var___after_morecore_hook
=yes
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.
$ac_ext >&5
9905 emacs_cv_var___after_morecore_hook
=no
9908 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9909 conftest
$ac_exeext conftest.
$ac_ext
9911 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9912 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9913 if test $emacs_cv_var___after_morecore_hook = no
; then
9916 if test "${system_malloc}" = "yes"; then
9919 (The GNU allocators don't work with this system configuration.)"
9921 if test "$doug_lea_malloc" = "yes" ; then
9922 if test "$GNU_MALLOC" = yes ; then
9924 (Using Doug Lea's new malloc from the GNU C Library.)"
9927 cat >>confdefs.h
<<\_ACEOF
9928 #define DOUG_LEA_MALLOC 1
9933 if test x
"${REL_ALLOC}" = x
; then
9934 REL_ALLOC
=${GNU_MALLOC}
9940 for ac_header
in stdlib.h unistd.h
9942 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9943 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9946 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_res
=`eval echo '${'$as_ac_Header'}'`
9950 { echo "$as_me:$LINENO: result: $ac_res" >&5
9951 echo "${ECHO_T}$ac_res" >&6; }
9953 # Is the header compilable?
9954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9956 cat >conftest.
$ac_ext <<_ACEOF
9959 cat confdefs.h
>>conftest.
$ac_ext
9960 cat >>conftest.
$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 $ac_includes_default
9963 #include <$ac_header>
9965 rm -f conftest.
$ac_objext
9966 if { (ac_try
="$ac_compile"
9968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_compile") 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest.$ac_objext; then
9982 ac_header_compiler=yes
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_header_compiler=no
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9992 echo "${ECHO_T}$ac_header_compiler" >&6; }
9994 # Is the header present?
9995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9997 cat >conftest.$ac_ext <<_ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 #include <$ac_header>
10005 if { (ac_try="$ac_cpp conftest.$ac_ext"
10006 case "(($ac_try" in
10007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10008 *) ac_try_echo
=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10013 grep -v '^ *+' conftest.er1
>conftest.err
10015 cat conftest.err
>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } >/dev
/null
&& {
10018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10021 ac_header_preproc
=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.
$ac_ext >&5
10026 ac_header_preproc
=no
10029 rm -f conftest.err conftest.
$ac_ext
10030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10031 echo "${ECHO_T}$ac_header_preproc" >&6; }
10033 # So? What about this header?
10034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10040 ac_header_preproc
=yes
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10060 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 eval "$as_ac_Header=\$ac_header_preproc"
10065 ac_res
=`eval echo '${'$as_ac_Header'}'`
10066 { echo "$as_me:$LINENO: result: $ac_res" >&5
10067 echo "${ECHO_T}$ac_res" >&6; }
10070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10071 cat >>confdefs.h
<<_ACEOF
10072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10080 for ac_func
in getpagesize
10082 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10085 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 cat >conftest.
$ac_ext <<_ACEOF
10091 cat confdefs.h
>>conftest.
$ac_ext
10092 cat >>conftest.
$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10096 #define $ac_func innocuous_$ac_func
10098 /* System header to define __stub macros and hopefully few prototypes,
10099 which can conflict with char $ac_func (); below.
10100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10101 <limits.h> exists even on freestanding compilers. */
10104 # include <limits.h>
10106 # include <assert.h>
10111 /* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10118 /* The GNU C library defines this for functions which it implements
10119 to always fail with ENOSYS. Some functions are actually named
10120 something starting with __ and the normal name is an alias. */
10121 #if defined __stub_$ac_func || defined __stub___$ac_func
10128 return $ac_func ();
10133 rm -f conftest.
$ac_objext conftest
$ac_exeext
10134 if { (ac_try
="$ac_link"
10135 case "(($ac_try" in
10136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest$ac_exeext &&
10150 $as_test_x conftest$ac_exeext; then
10151 eval "$as_ac_var=yes"
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 eval "$as_ac_var=no"
10159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10160 conftest$ac_exeext conftest.$ac_ext
10162 ac_res=`eval echo '${'$as_ac_var'}'`
10163 { echo "$as_me:$LINENO: result: $ac_res" >&5
10164 echo "${ECHO_T}$ac_res" >&6; }
10165 if test `eval echo '${'$as_ac_var'}'` = yes; then
10166 cat >>confdefs.h <<_ACEOF
10167 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10173 { echo "$as_me:$LINENO: checking for working mmap" >&5
10174 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10175 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 if test "$cross_compiling" = yes; then
10179 ac_cv_func_mmap_fixed_mapped=no
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 $ac_includes_default
10188 /* malloc might have been renamed as rpl_malloc. */
10191 /* Thanks to Mike Haertel and Jim Avera for this test.
10192 Here is a matrix of mmap possibilities:
10193 mmap private not fixed
10194 mmap private fixed at somewhere currently unmapped
10195 mmap private fixed at somewhere already mapped
10196 mmap shared not fixed
10197 mmap shared fixed at somewhere currently unmapped
10198 mmap shared fixed at somewhere already mapped
10199 For private mappings, we should verify that changes cannot be read()
10200 back from the file, nor mmap's back from the file at a different
10201 address. (There have been systems where private was not correctly
10202 implemented like the infamous i386 svr4.0, and systems where the
10203 VM page cache was not coherent with the file system buffer cache
10204 like early versions of FreeBSD and possibly contemporary NetBSD.)
10205 For shared mappings, we should conversely verify that changes get
10206 propagated back to all the places they're supposed to be.
10208 Grep wants private fixed already mapped.
10209 The main things grep needs to know about mmap are:
10210 * does it exist and is it safe to write into the mmap'd area
10211 * how to use it (BSD variants) */
10214 #include <sys/mman.h>
10216 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10220 /* This mess was copied from the GNU getpagesize.h. */
10221 #ifndef HAVE_GETPAGESIZE
10222 /* Assume that all systems that can run configure have sys/param.h. */
10223 # ifndef HAVE_SYS_PARAM_H
10224 # define HAVE_SYS_PARAM_H 1
10227 # ifdef _SC_PAGESIZE
10228 # define getpagesize() sysconf(_SC_PAGESIZE)
10229 # else /* no _SC_PAGESIZE */
10230 # ifdef HAVE_SYS_PARAM_H
10231 # include <sys/param.h>
10232 # ifdef EXEC_PAGESIZE
10233 # define getpagesize() EXEC_PAGESIZE
10234 # else /* no EXEC_PAGESIZE */
10236 # define getpagesize() NBPG * CLSIZE
10239 # endif /* no CLSIZE */
10240 # else /* no NBPG */
10242 # define getpagesize() NBPC
10243 # else /* no NBPC */
10245 # define getpagesize() PAGESIZE
10246 # endif /* PAGESIZE */
10247 # endif /* no NBPC */
10248 # endif /* no NBPG */
10249 # endif /* no EXEC_PAGESIZE */
10250 # else /* no HAVE_SYS_PARAM_H */
10251 # define getpagesize() 8192 /* punt totally */
10252 # endif /* no HAVE_SYS_PARAM_H */
10253 # endif /* no _SC_PAGESIZE */
10255 #endif /* no HAVE_GETPAGESIZE */
10260 char *data, *data2, *data3;
10264 pagesize = getpagesize ();
10266 /* First, make a file with some known garbage in it. */
10267 data = (char *) malloc (pagesize);
10270 for (i = 0; i < pagesize; ++i)
10271 *(data + i) = rand ();
10273 fd = creat ("conftest.mmap", 0600);
10276 if (write (fd, data, pagesize) != pagesize)
10280 /* Next, try to mmap the file at a fixed address which already has
10281 something else allocated at it. If we can, also make sure that
10282 we see the same garbage. */
10283 fd = open ("conftest.mmap", O_RDWR);
10286 data2 = (char *) malloc (2 * pagesize);
10289 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10290 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10291 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10293 for (i = 0; i < pagesize; ++i)
10294 if (*(data + i) != *(data2 + i))
10297 /* Finally, make sure that changes to the mapped area do not
10298 percolate back to the file as seen by read(). (This is a bug on
10299 some variants of i386 svr4.0.) */
10300 for (i = 0; i < pagesize; ++i)
10301 *(data2 + i) = *(data2 + i) + 1;
10302 data3 = (char *) malloc (pagesize);
10305 if (read (fd, data3, pagesize) != pagesize)
10307 for (i = 0; i < pagesize; ++i)
10308 if (*(data + i) != *(data3 + i))
10314 rm -f conftest$ac_exeext
10315 if { (ac_try="$ac_link"
10316 case "(($ac_try" in
10317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10318 *) ac_try_echo
=$ac_try;;
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_link") 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10325 { (case "(($ac_try" in
10326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_func_mmap_fixed_mapped=yes
10336 echo "$as_me: program exited with status $ac_status" >&5
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ( exit $ac_status )
10341 ac_cv_func_mmap_fixed_mapped=no
10343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10348 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10349 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10350 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10352 cat >>confdefs.h <<\_ACEOF
10353 #define HAVE_MMAP 1
10357 rm -f conftest.mmap
10359 if test $use_mmap_for_buffers = yes; then
10363 LIBS="$libsrc_libs $LIBS"
10366 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10367 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10368 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 ac_check_lib_save_LIBS=$LIBS
10372 LIBS="-ldnet $LIBS"
10373 cat >conftest.$ac_ext <<_ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10380 /* Override any GCC internal prototype to avoid an error.
10381 Use char because int might match the return type of a GCC
10382 builtin and then its argument prototype would still apply. */
10390 return dnet_ntoa ();
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10399 *) ac_try_echo
=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1
>conftest.err
10406 cat conftest.err
>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest
$ac_exeext &&
10412 $as_test_x conftest
$ac_exeext; then
10413 ac_cv_lib_dnet_dnet_ntoa
=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.
$ac_ext >&5
10418 ac_cv_lib_dnet_dnet_ntoa
=no
10421 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10422 conftest
$ac_exeext conftest.
$ac_ext
10423 LIBS
=$ac_check_lib_save_LIBS
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10426 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10427 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10428 cat >>confdefs.h
<<_ACEOF
10429 #define HAVE_LIBDNET 1
10432 LIBS
="-ldnet $LIBS"
10437 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10438 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10439 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 ac_check_lib_save_LIBS
=$LIBS
10443 LIBS
="-lXbsd $LIBS"
10444 cat >conftest.
$ac_ext <<_ACEOF
10447 cat confdefs.h
>>conftest.
$ac_ext
10448 cat >>conftest.
$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10460 rm -f conftest.
$ac_objext conftest
$ac_exeext
10461 if { (ac_try
="$ac_link"
10462 case "(($ac_try" in
10463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest$ac_exeext &&
10477 $as_test_x conftest$ac_exeext; then
10478 ac_cv_lib_Xbsd_main=yes
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_cv_lib_Xbsd_main=no
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487 conftest$ac_exeext conftest.$ac_ext
10488 LIBS=$ac_check_lib_save_LIBS
10490 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10491 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10492 if test $ac_cv_lib_Xbsd_main = yes; then
10493 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10498 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10499 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10500 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lpthreads $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10522 return cma_open ();
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10531 *) ac_try_echo
=$ac_try;;
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_link") 2>conftest.er1
10536 grep -v '^ *+' conftest.er1
>conftest.err
10538 cat conftest.err
>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest
$ac_exeext &&
10544 $as_test_x conftest
$ac_exeext; then
10545 ac_cv_lib_pthreads_cma_open
=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 ac_cv_lib_pthreads_cma_open
=no
10553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10554 conftest
$ac_exeext conftest.
$ac_ext
10555 LIBS
=$ac_check_lib_save_LIBS
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10558 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10559 if test $ac_cv_lib_pthreads_cma_open = yes; then
10560 cat >>confdefs.h
<<_ACEOF
10561 #define HAVE_LIBPTHREADS 1
10564 LIBS
="-lpthreads $LIBS"
10569 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10570 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10571 if test -d /usr
/X386
/include
; then
10573 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10577 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10578 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10583 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10584 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10585 if test "${gdb_cv_bigtoc+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10591 *) gdb_cv_bigtoc
=-bbigtoc ;;
10594 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10595 cat >conftest.
$ac_ext <<_ACEOF
10598 cat confdefs.h
>>conftest.
$ac_ext
10599 cat >>conftest.
$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10610 rm -f conftest.
$ac_objext conftest
$ac_exeext
10611 if { (ac_try
="$ac_link"
10612 case "(($ac_try" in
10613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext &&
10627 $as_test_x conftest$ac_exeext; then
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637 conftest$ac_exeext conftest.$ac_ext
10640 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10641 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10645 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10646 # used for the tests that follow. We set them back to REAL_CFLAGS and
10647 # REAL_CPPFLAGS later on.
10649 REAL_CPPFLAGS="$CPPFLAGS"
10651 if test "${HAVE_X11}" = "yes"; then
10652 DEFS="$C_SWITCH_X_SITE $DEFS"
10653 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10655 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10656 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10658 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10659 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10660 # but it's more convenient here to set LD_RUN_PATH
10661 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10662 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10663 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10667 if test "${opsys}" = "gnu-linux"; then
10668 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10669 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10680 XOpenDisplay ("foo");
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10689 *) ac_try_echo
=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1
>conftest.err
10696 cat conftest.err
>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest
$ac_exeext &&
10702 $as_test_x conftest
$ac_exeext; then
10703 xlinux_first_failure
=no
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.
$ac_ext >&5
10708 xlinux_first_failure
=yes
10711 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10712 conftest
$ac_exeext conftest.
$ac_ext
10713 if test "${xlinux_first_failure}" = "yes"; then
10714 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10715 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10716 OLD_CPPFLAGS
="$CPPFLAGS"
10718 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10719 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10720 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10721 LIBS
="$LIBS -b i486-linuxaout"
10722 cat >conftest.
$ac_ext <<_ACEOF
10725 cat confdefs.h
>>conftest.
$ac_ext
10726 cat >>conftest.
$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10732 XOpenDisplay ("foo");
10737 rm -f conftest.
$ac_objext conftest
$ac_exeext
10738 if { (ac_try
="$ac_link"
10739 case "(($ac_try" in
10740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_link") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest$ac_exeext &&
10754 $as_test_x conftest$ac_exeext; then
10755 xlinux_second_failure=no
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 xlinux_second_failure=yes
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764 conftest$ac_exeext conftest.$ac_ext
10765 if test "${xlinux_second_failure}" = "yes"; then
10766 # If we get the same failure with -b, there is no use adding -b.
10767 # So take it out. This plays safe.
10768 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10769 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10770 CPPFLAGS="$OLD_CPPFLAGS"
10772 { echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6; }
10775 { echo "$as_me:$LINENO: result: yes" >&5
10776 echo "${ECHO_T}yes" >&6; }
10779 { echo "$as_me:$LINENO: result: no" >&5
10780 echo "${ECHO_T}no" >&6; }
10784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10785 # header files included from there.
10786 { echo "$as_me:$LINENO: checking for Xkb" >&5
10787 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10788 cat >conftest.$ac_ext <<_ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 #include <X11/Xlib.h>
10795 #include <X11/XKBlib.h>
10799 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10808 *) ac_try_echo
=$ac_try;;
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_link") 2>conftest.er1
10813 grep -v '^ *+' conftest.er1
>conftest.err
10815 cat conftest.err
>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } && {
10818 test -z "$ac_c_werror_flag" ||
10819 test ! -s conftest.err
10820 } && test -s conftest
$ac_exeext &&
10821 $as_test_x conftest
$ac_exeext; then
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.
$ac_ext >&5
10830 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10831 conftest
$ac_exeext conftest.
$ac_ext
10832 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10833 echo "${ECHO_T}$emacs_xkb" >&6; }
10834 if test $emacs_xkb = yes; then
10836 cat >>confdefs.h
<<\_ACEOF
10837 #define HAVE_XKBGETKEYBOARD 1
10846 for ac_func
in XrmSetDatabase XScreenResourceString \
10847 XScreenNumberOfScreen XSetWMProtocols
10849 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10852 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 cat >conftest.
$ac_ext <<_ACEOF
10858 cat confdefs.h
>>conftest.
$ac_ext
10859 cat >>conftest.
$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10863 #define $ac_func innocuous_$ac_func
10865 /* System header to define __stub macros and hopefully few prototypes,
10866 which can conflict with char $ac_func (); below.
10867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10868 <limits.h> exists even on freestanding compilers. */
10871 # include <limits.h>
10873 # include <assert.h>
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10885 /* The GNU C library defines this for functions which it implements
10886 to always fail with ENOSYS. Some functions are actually named
10887 something starting with __ and the normal name is an alias. */
10888 #if defined __stub_$ac_func || defined __stub___$ac_func
10895 return $ac_func ();
10900 rm -f conftest.
$ac_objext conftest
$ac_exeext
10901 if { (ac_try
="$ac_link"
10902 case "(($ac_try" in
10903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest$ac_exeext &&
10917 $as_test_x conftest$ac_exeext; then
10918 eval "$as_ac_var=yes"
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 eval "$as_ac_var=no"
10926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10927 conftest$ac_exeext conftest.$ac_ext
10929 ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932 if test `eval echo '${'$as_ac_var'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10942 if test "${window_system}" = "x11"; then
10943 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10944 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10945 if test "${emacs_cv_x11_version_6+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 #include <X11/Xlib.h>
10958 #if XlibSpecificationRelease < 6
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (ac_try="$ac_link"
10968 case "(($ac_try" in
10969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10970 *) ac_try_echo
=$ac_try;;
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_link") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1
>conftest.err
10977 cat conftest.err
>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest
$ac_exeext &&
10983 $as_test_x conftest
$ac_exeext; then
10984 emacs_cv_x11_version_6
=yes
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.
$ac_ext >&5
10989 emacs_cv_x11_version_6
=no
10992 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10993 conftest
$ac_exeext conftest.
$ac_ext
10996 if test $emacs_cv_x11_version_6 = yes; then
10997 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10998 echo "${ECHO_T}6 or newer" >&6; }
11000 cat >>confdefs.h
<<\_ACEOF
11001 #define HAVE_X11R6 1
11005 { echo "$as_me:$LINENO: result: before 6" >&5
11006 echo "${ECHO_T}before 6" >&6; }
11010 if test "${window_system}" = "x11"; then
11011 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11012 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11013 if test "${emacs_cv_x11_version_5+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 cat >conftest.
$ac_ext <<_ACEOF
11019 cat confdefs.h
>>conftest.
$ac_ext
11020 cat >>conftest.
$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 #include <X11/Xlib.h>
11026 #if XlibSpecificationRelease < 5
11034 rm -f conftest.
$ac_objext conftest
$ac_exeext
11035 if { (ac_try
="$ac_link"
11036 case "(($ac_try" in
11037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_link") 2>conftest.er1
11043 grep -v '^ *+' conftest.er1 >conftest.err
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest$ac_exeext &&
11051 $as_test_x conftest$ac_exeext; then
11052 emacs_cv_x11_version_5=yes
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 emacs_cv_x11_version_5=no
11060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11061 conftest$ac_exeext conftest.$ac_ext
11064 if test $emacs_cv_x11_version_5 = yes; then
11065 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11066 echo "${ECHO_T}5 or newer" >&6; }
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_X11R5 1
11075 { echo "$as_me:$LINENO: result: before 5" >&5
11076 echo "${ECHO_T}before 5" >&6; }
11080 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
11082 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11083 if test "${with_rsvg}" != "no"; then
11084 if test "X${with_pkg_config_prog}" != X; then
11085 PKG_CONFIG="${with_pkg_config_prog}"
11088 RSVG_REQUIRED=2.0.0
11089 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11094 if test -z "$PKG_CONFIG"; then
11095 # Extract the first word of "pkg-config", so it can be a program name with args.
11096 set dummy pkg-config; ac_word=$2
11097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11099 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 case $PKG_CONFIG in
11104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11126 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11127 if test -n "$PKG_CONFIG"; then
11128 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11129 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11131 { echo "$as_me:$LINENO: result: no" >&5
11132 echo "${ECHO_T}no" >&6; }
11138 if test "$PKG_CONFIG" = "no" ; then
11141 PKG_CONFIG_MIN_VERSION=0.9.0
11142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11143 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11144 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11146 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11147 { echo "$as_me:$LINENO: result: yes" >&5
11148 echo "${ECHO_T}yes" >&6; }
11151 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11152 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11153 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11154 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11155 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11157 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11158 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11159 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11160 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11161 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11163 { echo "$as_me:$LINENO: result: no" >&5
11164 echo "${ECHO_T}no" >&6; }
11167 ## If we have a custom action on failure, don't print errors
, but
11168 ## do set a variable so people can do so.
11169 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11181 if test $succeeded = yes; then
11190 if test ".${RSVG_CFLAGS}" != "."; then
11193 cat >>confdefs.h
<<\_ACEOF
11194 #define HAVE_RSVG 1
11197 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11198 LIBS
="$RSVG_LIBS $LIBS"
11205 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11208 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11209 test "$USE_X_TOOLKIT" = "maybe"; then
11210 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11211 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11212 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11213 { (exit 1); exit 1; }; };
11217 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11219 if test "X${with_pkg_config_prog}" != X
; then
11220 PKG_CONFIG
="${with_pkg_config_prog}"
11225 if test -z "$PKG_CONFIG"; then
11226 # Extract the first word of "pkg-config", so it can be a program name with args.
11227 set dummy pkg-config
; ac_word
=$2
11228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11230 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 case $PKG_CONFIG in
11235 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11239 for as_dir
in $PATH
11242 test -z "$as_dir" && as_dir
=.
11243 for ac_exec_ext
in '' $ac_executable_extensions; do
11244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11257 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11258 if test -n "$PKG_CONFIG"; then
11259 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11260 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11262 { echo "$as_me:$LINENO: result: no" >&5
11263 echo "${ECHO_T}no" >&6; }
11269 if test "$PKG_CONFIG" = "no" ; then
11272 PKG_CONFIG_MIN_VERSION
=0.9.0
11273 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11274 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11275 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11277 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11278 { echo "$as_me:$LINENO: result: yes" >&5
11279 echo "${ECHO_T}yes" >&6; }
11282 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11283 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11284 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11285 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11286 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11288 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11289 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11290 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11291 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11292 echo "${ECHO_T}$GTK_LIBS" >&6; }
11294 { echo "$as_me:$LINENO: result: no" >&5
11295 echo "${ECHO_T}no" >&6; }
11298 ## If we have a custom action on failure, don't print errors, but
11299 ## do set a variable so people can do so.
11300 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11307 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11308 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11312 if test $succeeded = yes; then
11318 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11319 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11320 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11321 { (exit 1); exit 1; }; }
11326 if test x
"$pkg_check_gtk" = xyes
; then
11330 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11331 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11332 LIBS
="$GTK_LIBS $LIBS"
11335 for ac_func
in gtk_main
11337 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11340 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11351 #define $ac_func innocuous_$ac_func
11353 /* System header to define __stub macros and hopefully few prototypes,
11354 which can conflict with char $ac_func (); below.
11355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11356 <limits.h> exists even on freestanding compilers. */
11359 # include <limits.h>
11361 # include <assert.h>
11366 /* Override any GCC internal prototype to avoid an error.
11367 Use char because int might match the return type of a GCC
11368 builtin and then its argument prototype would still apply. */
11373 /* The GNU C library defines this for functions which it implements
11374 to always fail with ENOSYS. Some functions are actually named
11375 something starting with __ and the normal name is an alias. */
11376 #if defined __stub_$ac_func || defined __stub___$ac_func
11383 return $ac_func ();
11388 rm -f conftest.
$ac_objext conftest
$ac_exeext
11389 if { (ac_try
="$ac_link"
11390 case "(($ac_try" in
11391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_link") 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest$ac_exeext &&
11405 $as_test_x conftest$ac_exeext; then
11406 eval "$as_ac_var=yes"
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 eval "$as_ac_var=no"
11414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11415 conftest$ac_exeext conftest.$ac_ext
11417 ac_res=`eval echo '${'$as_ac_var'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11428 if test "${GTK_COMPILES}" != "yes"; then
11429 if test "$USE_X_TOOLKIT" != "maybe"; then
11430 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11431 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11432 { (exit 1); exit 1; }; };
11437 cat >>confdefs.h <<\_ACEOF
11447 if test "${HAVE_GTK}" = "yes"; then
11449 if test "$with_toolkit_scroll_bars" != no; then
11450 with_toolkit_scroll_bars=yes
11453 HAVE_GTK_MULTIDISPLAY=no
11455 for ac_func in gdk_display_open
11457 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11471 #define $ac_func innocuous_$ac_func
11473 /* System header to define __stub macros and hopefully few prototypes,
11474 which can conflict with char $ac_func (); below.
11475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11476 <limits.h> exists even on freestanding compilers. */
11479 # include <limits.h>
11481 # include <assert.h>
11486 /* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11493 /* The GNU C library defines this for functions which it implements
11494 to always fail with ENOSYS. Some functions are actually named
11495 something starting with __ and the normal name is an alias. */
11496 #if defined __stub_$ac_func || defined __stub___$ac_func
11503 return $ac_func ();
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (ac_try="$ac_link"
11510 case "(($ac_try" in
11511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11512 *) ac_try_echo
=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_link") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1
>conftest.err
11519 cat conftest.err
>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest
$ac_exeext &&
11525 $as_test_x conftest
$ac_exeext; then
11526 eval "$as_ac_var=yes"
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.
$ac_ext >&5
11531 eval "$as_ac_var=no"
11534 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11535 conftest
$ac_exeext conftest.
$ac_ext
11537 ac_res
=`eval echo '${'$as_ac_var'}'`
11538 { echo "$as_me:$LINENO: result: $ac_res" >&5
11539 echo "${ECHO_T}$ac_res" >&6; }
11540 if test `eval echo '${'$as_ac_var'}'` = yes; then
11541 cat >>confdefs.h
<<_ACEOF
11542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11544 HAVE_GTK_MULTIDISPLAY
=yes
11548 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11550 cat >>confdefs.h
<<\_ACEOF
11551 #define HAVE_GTK_MULTIDISPLAY 1
11555 HAVE_GTK_FILE_SELECTION
=no
11557 for ac_func
in gtk_file_selection_new
11559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.
$ac_ext <<_ACEOF
11568 cat confdefs.h
>>conftest.
$ac_ext
11569 cat >>conftest.
$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11573 #define $ac_func innocuous_$ac_func
11575 /* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char $ac_func (); below.
11577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578 <limits.h> exists even on freestanding compilers. */
11581 # include <limits.h>
11583 # include <assert.h>
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined __stub_$ac_func || defined __stub___$ac_func
11605 return $ac_func ();
11610 rm -f conftest.
$ac_objext conftest
$ac_exeext
11611 if { (ac_try
="$ac_link"
11612 case "(($ac_try" in
11613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_link") 2>conftest.er1
11619 grep -v '^ *+' conftest.er1 >conftest.err
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest$ac_exeext &&
11627 $as_test_x conftest$ac_exeext; then
11628 eval "$as_ac_var=yes"
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 eval "$as_ac_var=no"
11636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11637 conftest$ac_exeext conftest.$ac_ext
11639 ac_res=`eval echo '${'$as_ac_var'}'`
11640 { echo "$as_me:$LINENO: result: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11642 if test `eval echo '${'$as_ac_var'}'` = yes; then
11643 cat >>confdefs.h <<_ACEOF
11644 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11646 HAVE_GTK_FILE_SELECTION=yes
11651 HAVE_GTK_FILE_CHOOSER=no
11653 for ac_func in gtk_file_chooser_dialog_new
11655 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11669 #define $ac_func innocuous_$ac_func
11671 /* System header to define __stub macros and hopefully few prototypes,
11672 which can conflict with char $ac_func (); below.
11673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674 <limits.h> exists even on freestanding compilers. */
11677 # include <limits.h>
11679 # include <assert.h>
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11691 /* The GNU C library defines this for functions which it implements
11692 to always fail with ENOSYS. Some functions are actually named
11693 something starting with __ and the normal name is an alias. */
11694 #if defined __stub_$ac_func || defined __stub___$ac_func
11701 return $ac_func ();
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11710 *) ac_try_echo
=$ac_try;;
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_link") 2>conftest.er1
11715 grep -v '^ *+' conftest.er1
>conftest.err
11717 cat conftest.err
>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && {
11720 test -z "$ac_c_werror_flag" ||
11721 test ! -s conftest.err
11722 } && test -s conftest
$ac_exeext &&
11723 $as_test_x conftest
$ac_exeext; then
11724 eval "$as_ac_var=yes"
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.
$ac_ext >&5
11729 eval "$as_ac_var=no"
11732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11733 conftest
$ac_exeext conftest.
$ac_ext
11735 ac_res
=`eval echo '${'$as_ac_var'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11738 if test `eval echo '${'$as_ac_var'}'` = yes; then
11739 cat >>confdefs.h
<<_ACEOF
11740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 HAVE_GTK_FILE_CHOOSER
=yes
11747 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11748 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11750 cat >>confdefs.h
<<\_ACEOF
11751 #define HAVE_GTK_FILE_BOTH 1
11756 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11757 HAVE_GTK_AND_PTHREAD
=no
11759 for ac_header
in pthread.h
11761 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11762 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11765 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 ac_res
=`eval echo '${'$as_ac_Header'}'`
11769 { echo "$as_me:$LINENO: result: $ac_res" >&5
11770 echo "${ECHO_T}$ac_res" >&6; }
11772 # Is the header compilable?
11773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11775 cat >conftest.
$ac_ext <<_ACEOF
11778 cat confdefs.h
>>conftest.
$ac_ext
11779 cat >>conftest.
$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 #include <$ac_header>
11784 rm -f conftest.
$ac_objext
11785 if { (ac_try
="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11801 ac_header_compiler=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_compiler=no
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 #include <$ac_header>
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11827 *) ac_try_echo
=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1
>conftest.err
11834 cat conftest.err
>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev
/null
&& {
11837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11840 ac_header_preproc
=yes
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.
$ac_ext >&5
11845 ac_header_preproc
=no
11848 rm -f conftest.err conftest.
$ac_ext
11849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11850 echo "${ECHO_T}$ac_header_preproc" >&6; }
11852 # So? What about this header?
11853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11859 ac_header_preproc
=yes
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 eval "$as_ac_Header=\$ac_header_preproc"
11884 ac_res
=`eval echo '${'$as_ac_Header'}'`
11885 { echo "$as_me:$LINENO: result: $ac_res" >&5
11886 echo "${ECHO_T}$ac_res" >&6; }
11889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11890 cat >>confdefs.h
<<_ACEOF
11891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11898 if test "$ac_cv_header_pthread_h"; then
11899 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11900 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11901 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 ac_check_lib_save_LIBS
=$LIBS
11905 LIBS
="-lpthread $LIBS"
11906 cat >conftest.
$ac_ext <<_ACEOF
11909 cat confdefs.h
>>conftest.
$ac_ext
11910 cat >>conftest.
$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11913 /* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
11919 char pthread_self ();
11923 return pthread_self ();
11928 rm -f conftest.
$ac_objext conftest
$ac_exeext
11929 if { (ac_try
="$ac_link"
11930 case "(($ac_try" in
11931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_link") 2>conftest.er1
11937 grep -v '^ *+' conftest.er1 >conftest.err
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && {
11942 test -z "$ac_c_werror_flag" ||
11943 test ! -s conftest.err
11944 } && test -s conftest$ac_exeext &&
11945 $as_test_x conftest$ac_exeext; then
11946 ac_cv_lib_pthread_pthread_self=yes
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 ac_cv_lib_pthread_pthread_self=no
11954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11955 conftest$ac_exeext conftest.$ac_ext
11956 LIBS=$ac_check_lib_save_LIBS
11958 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11959 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11960 if test $ac_cv_lib_pthread_pthread_self = yes; then
11961 HAVE_GTK_AND_PTHREAD=yes
11965 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11966 GTK_LIBS="$GTK_LIBS -lpthread"
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_GTK_AND_PTHREAD 1
11976 ### Link with -lXft if available to work around a bug.
11978 if test "${HAVE_GTK}" = "yes"; then
11979 if test "X${with_pkg_config_prog}" != X; then
11980 PKG_CONFIG="${with_pkg_config_prog}"
11986 if test -z "$PKG_CONFIG"; then
11987 # Extract the first word of "pkg-config", so it can be a program name with args.
11988 set dummy pkg-config; ac_word=$2
11989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11991 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 case $PKG_CONFIG in
11996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12019 if test -n "$PKG_CONFIG"; then
12020 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12021 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12023 { echo "$as_me:$LINENO: result: no" >&5
12024 echo "${ECHO_T}no" >&6; }
12030 if test "$PKG_CONFIG" = "no" ; then
12033 PKG_CONFIG_MIN_VERSION=0.9.0
12034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12035 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12036 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12038 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12039 { echo "$as_me:$LINENO: result: yes" >&5
12040 echo "${ECHO_T}yes" >&6; }
12043 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12044 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12045 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12046 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12047 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12049 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12050 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12051 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12052 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12053 echo "${ECHO_T}$XFT_LIBS" >&6; }
12055 { echo "$as_me:$LINENO: result: no" >&5
12056 echo "${ECHO_T}no" >&6; }
12059 ## If we have a custom action on failure, don't print errors, but
12060 ## do set a variable so people can do so.
12061 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12073 if test $succeeded = yes; then
12079 if test "$HAVE_XFT" != no; then
12080 OLD_CFLAGS="$CPPFLAGS"
12081 OLD_CPPFLAGS="$CFLAGS"
12083 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12084 CFLAGS="$CFLAGS $XFT_CFLAGS"
12085 LIBS="$XFT_LIBS $LIBS"
12086 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12087 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12088 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12089 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12093 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12095 # Is the header compilable?
12096 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12097 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12105 #include <X11/Xft/Xft.h>
12107 rm -f conftest.$ac_objext
12108 if { (ac_try="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12111 *) ac_try_echo
=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_compile") 2>conftest.er1
12116 grep -v '^ *+' conftest.er1
>conftest.err
12118 cat conftest.err
>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && {
12121 test -z "$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 } && test -s conftest.
$ac_objext; then
12124 ac_header_compiler
=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.
$ac_ext >&5
12129 ac_header_compiler
=no
12132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12134 echo "${ECHO_T}$ac_header_compiler" >&6; }
12136 # Is the header present?
12137 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12138 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12139 cat >conftest.
$ac_ext <<_ACEOF
12142 cat confdefs.h
>>conftest.
$ac_ext
12143 cat >>conftest.
$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 #include <X11/Xft/Xft.h>
12147 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12148 case "(($ac_try" in
12149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } >/dev/null && {
12160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12163 ac_header_preproc=yes
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 ac_header_preproc=no
12171 rm -f conftest.err conftest.$ac_ext
12172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12173 echo "${ECHO_T}$ac_header_preproc" >&6; }
12175 # So? What about this header?
12176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12178 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12179 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12181 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12182 ac_header_preproc=yes
12185 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12186 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12188 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12190 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12192 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12196 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12200 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12201 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12202 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12207 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12208 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12211 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12212 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12213 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12214 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-lXft $XFT_LIBS $LIBS"
12219 cat >conftest.$ac_ext <<_ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12232 char XftFontOpen ();
12236 return XftFontOpen ();
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (ac_try="$ac_link"
12243 case "(($ac_try" in
12244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12245 *) ac_try_echo
=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_link") 2>conftest.er1
12250 grep -v '^ *+' conftest.er1
>conftest.err
12252 cat conftest.err
>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } && {
12255 test -z "$ac_c_werror_flag" ||
12256 test ! -s conftest.err
12257 } && test -s conftest
$ac_exeext &&
12258 $as_test_x conftest
$ac_exeext; then
12259 ac_cv_lib_Xft_XftFontOpen
=yes
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.
$ac_ext >&5
12264 ac_cv_lib_Xft_XftFontOpen
=no
12267 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12268 conftest
$ac_exeext conftest.
$ac_ext
12269 LIBS
=$ac_check_lib_save_LIBS
12271 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12272 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12273 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12281 if test "${HAVE_XFT}" = "yes"; then
12283 cat >>confdefs.h
<<\_ACEOF
12288 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12290 CFLAGS
="$OLD_CPPFLAGS"
12291 CFLAGS
="$OLD_CFLAGS"
12298 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12299 if test x
"${HAVE_X11R5}" != xyes
; then
12302 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12303 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12304 if test "${emacs_cv_xaw3d+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 cat >conftest.
$ac_ext <<_ACEOF
12310 cat confdefs.h
>>conftest.
$ac_ext
12311 cat >>conftest.
$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12314 #include <X11/Intrinsic.h>
12315 #include <X11/Xaw3d/Simple.h>
12324 rm -f conftest.
$ac_objext conftest
$ac_exeext
12325 if { (ac_try
="$ac_link"
12326 case "(($ac_try" in
12327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_link") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest$ac_exeext &&
12341 $as_test_x conftest$ac_exeext; then
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12351 conftest$ac_exeext conftest.$ac_ext
12354 if test $emacs_cv_xaw3d = yes; then
12355 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12356 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12357 USE_X_TOOLKIT=LUCID
12360 cat >>confdefs.h <<\_ACEOF
12361 #define HAVE_XAW3D 1
12365 { echo "$as_me:$LINENO: result: no" >&5
12366 echo "${ECHO_T}no" >&6; }
12367 { echo "$as_me:$LINENO: checking for libXaw" >&5
12368 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12369 if test "${emacs_cv_xaw+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 cat >conftest.$ac_ext <<_ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12379 #include <X11/Intrinsic.h>
12380 #include <X11/Xaw/Simple.h>
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (ac_try="$ac_link"
12391 case "(($ac_try" in
12392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12393 *) ac_try_echo
=$ac_try;;
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_link") 2>conftest.er1
12398 grep -v '^ *+' conftest.er1
>conftest.err
12400 cat conftest.err
>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } && {
12403 test -z "$ac_c_werror_flag" ||
12404 test ! -s conftest.err
12405 } && test -s conftest
$ac_exeext &&
12406 $as_test_x conftest
$ac_exeext; then
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.
$ac_ext >&5
12415 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12416 conftest
$ac_exeext conftest.
$ac_ext
12419 if test $emacs_cv_xaw = yes; then
12420 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12421 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12422 USE_X_TOOLKIT
=LUCID
12423 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12424 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12425 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12426 { (exit 1); exit 1; }; }
12428 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12429 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12436 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12438 if test "${USE_X_TOOLKIT}" != "none"; then
12439 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12440 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12441 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 cat >conftest.
$ac_ext <<_ACEOF
12447 cat confdefs.h
>>conftest.
$ac_ext
12448 cat >>conftest.
$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <X11/Intrinsic.h>
12454 #if XtSpecificationRelease < 6
12462 rm -f conftest.
$ac_objext conftest
$ac_exeext
12463 if { (ac_try
="$ac_link"
12464 case "(($ac_try" in
12465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_link") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest$ac_exeext &&
12479 $as_test_x conftest$ac_exeext; then
12480 emacs_cv_x11_toolkit_version_6=yes
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 emacs_cv_x11_toolkit_version_6=no
12488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12489 conftest$ac_exeext conftest.$ac_ext
12492 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12493 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12494 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12495 echo "${ECHO_T}6 or newer" >&6; }
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_X11XTR6 1
12502 { echo "$as_me:$LINENO: result: before 6" >&5
12503 echo "${ECHO_T}before 6" >&6; }
12507 if test x$HAVE_X11XTR6 = xyes; then
12508 LIBS="-lXt -lSM -lICE $LIBS"
12513 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12514 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 ac_check_lib_save_LIBS=$LIBS
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12533 char XmuConvertStandardSelection ();
12537 return XmuConvertStandardSelection ();
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12546 *) ac_try_echo
=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1
>conftest.err
12553 cat conftest.err
>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest
$ac_exeext &&
12559 $as_test_x conftest
$ac_exeext; then
12560 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.
$ac_ext >&5
12565 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12568 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12569 conftest
$ac_exeext conftest.
$ac_ext
12570 LIBS
=$ac_check_lib_save_LIBS
12572 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12573 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12574 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12575 cat >>confdefs.h
<<_ACEOF
12576 #define HAVE_LIBXMU 1
12583 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12586 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12587 if test "${HAVE_X11}" = "yes"; then
12588 if test "${USE_X_TOOLKIT}" != "none"; then
12590 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12591 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12592 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_check_lib_save_LIBS
=$LIBS
12596 LIBS
="-lXext $LIBS"
12597 cat >conftest.
$ac_ext <<_ACEOF
12600 cat confdefs.h
>>conftest.
$ac_ext
12601 cat >>conftest.
$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12610 char XShapeQueryExtension ();
12614 return XShapeQueryExtension ();
12619 rm -f conftest.
$ac_objext conftest
$ac_exeext
12620 if { (ac_try
="$ac_link"
12621 case "(($ac_try" in
12622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_link") 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest$ac_exeext &&
12636 $as_test_x conftest$ac_exeext; then
12637 ac_cv_lib_Xext_XShapeQueryExtension=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_lib_Xext_XShapeQueryExtension=no
12645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12650 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12651 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define HAVE_LIBXEXT 1
12656 LIBS="-lXext $LIBS"
12663 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12664 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12665 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12666 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12679 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12682 Motif version prior to 2.1.
12688 rm -f conftest.$ac_objext
12689 if { (ac_try="$ac_compile"
12690 case "(($ac_try" in
12691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12692 *) ac_try_echo
=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_compile") 2>conftest.er1
12697 grep -v '^ *+' conftest.er1
>conftest.err
12699 cat conftest.err
>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest.
$ac_objext; then
12705 emacs_cv_motif_version_2_1
=yes
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.
$ac_ext >&5
12710 emacs_cv_motif_version_2_1
=no
12713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12715 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12716 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12717 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12718 if test $emacs_cv_motif_version_2_1 = yes; then
12721 cat >>confdefs.h
<<\_ACEOF
12722 #define HAVE_MOTIF_2_1 1
12725 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12726 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12727 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 ac_check_lib_save_LIBS
=$LIBS
12732 cat >conftest.
$ac_ext <<_ACEOF
12735 cat confdefs.h
>>conftest.
$ac_ext
12736 cat >>conftest.
$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12745 char XpCreateContext ();
12749 return XpCreateContext ();
12754 rm -f conftest.
$ac_objext conftest
$ac_exeext
12755 if { (ac_try
="$ac_link"
12756 case "(($ac_try" in
12757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_link") 2>conftest.er1
12763 grep -v '^ *+' conftest.er1 >conftest.err
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } && {
12768 test -z "$ac_c_werror_flag" ||
12769 test ! -s conftest.err
12770 } && test -s conftest$ac_exeext &&
12771 $as_test_x conftest$ac_exeext; then
12772 ac_cv_lib_Xp_XpCreateContext=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_cv_lib_Xp_XpCreateContext=no
12780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12784 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12785 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12786 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12790 if test ${HAVE_LIBXP} = yes; then
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_LIBXP 1
12798 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12799 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12800 if test "${emacs_cv_lesstif+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 # We put this in CFLAGS temporarily to precede other -I options
12804 # that might be in CFLAGS temporarily.
12805 # We put this in CPPFLAGS where it precedes the other -I options.
12806 OLD_CPPFLAGS=$CPPFLAGS
12808 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12809 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12810 cat >conftest.$ac_ext <<_ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12825 rm -f conftest.$ac_objext
12826 if { (ac_try="$ac_compile"
12827 case "(($ac_try" in
12828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12829 *) ac_try_echo
=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_compile") 2>conftest.er1
12834 grep -v '^ *+' conftest.er1
>conftest.err
12836 cat conftest.err
>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && {
12839 test -z "$ac_c_werror_flag" ||
12840 test ! -s conftest.err
12841 } && test -s conftest.
$ac_objext; then
12842 emacs_cv_lesstif
=yes
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.
$ac_ext >&5
12847 emacs_cv_lesstif
=no
12850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12852 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12853 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12854 if test $emacs_cv_lesstif = yes; then
12855 # Make sure this -I option remains in CPPFLAGS after it is set
12856 # back to REAL_CPPFLAGS.
12857 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12858 # have those other -I options anyway. Ultimately, having this
12859 # directory ultimately in CPPFLAGS will be enough.
12860 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12861 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12864 CPPFLAGS
=$OLD_CPPFLAGS
12871 USE_TOOLKIT_SCROLL_BARS
=no
12872 if test "${with_toolkit_scroll_bars}" != "no"; then
12873 if test "${USE_X_TOOLKIT}" != "none"; then
12874 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12875 cat >>confdefs.h
<<\_ACEOF
12876 #define USE_TOOLKIT_SCROLL_BARS 1
12880 USE_TOOLKIT_SCROLL_BARS
=yes
12881 elif test "${HAVE_XAW3D}" = "yes"; then
12882 cat >>confdefs.h
<<\_ACEOF
12883 #define USE_TOOLKIT_SCROLL_BARS 1
12886 USE_TOOLKIT_SCROLL_BARS
=yes
12888 elif test "${HAVE_GTK}" = "yes"; then
12889 cat >>confdefs.h
<<\_ACEOF
12890 #define USE_TOOLKIT_SCROLL_BARS 1
12893 USE_TOOLKIT_SCROLL_BARS
=yes
12894 elif test "${HAVE_CARBON}" = "yes"; then
12895 cat >>confdefs.h
<<\_ACEOF
12896 #define USE_TOOLKIT_SCROLL_BARS 1
12899 USE_TOOLKIT_SCROLL_BARS
=yes
12903 cat >conftest.
$ac_ext <<_ACEOF
12906 cat confdefs.h
>>conftest.
$ac_ext
12907 cat >>conftest.
$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12910 #include <X11/Xlib.h>
12911 #include <X11/Xresource.h>
12920 rm -f conftest.
$ac_objext
12921 if { (ac_try
="$ac_compile"
12922 case "(($ac_try" in
12923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_compile") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } && {
12934 test -z "$ac_c_werror_flag" ||
12935 test ! -s conftest.err
12936 } && test -s conftest.$ac_objext; then
12939 cat >>confdefs.h <<\_ACEOF
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 if test "${with_xim}" != "no"; then
12955 cat >>confdefs.h <<\_ACEOF
12962 if test "${HAVE_XIM}" != "no"; then
12963 late_CFLAGS=$CFLAGS
12964 if test "$GCC" = yes; then
12965 CFLAGS="$CFLAGS --pedantic-errors"
12967 cat >conftest.$ac_ext <<_ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12974 #include <X11/Xlib.h>
12975 #include <X11/Xresource.h>
12984 XPointer *client_data;
12986 /* If we're not using GCC, it's probably not XFree86, and this is
12987 probably right, but we can't use something like --pedantic-errors. */
12988 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12989 char*, XIMProc, XPointer*);
12991 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12997 rm -f conftest.$ac_objext
12998 if { (ac_try="$ac_compile"
12999 case "(($ac_try" in
13000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13001 *) ac_try_echo
=$ac_try;;
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_compile") 2>conftest.er1
13006 grep -v '^ *+' conftest.er1
>conftest.err
13008 cat conftest.err
>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && {
13011 test -z "$ac_c_werror_flag" ||
13012 test ! -s conftest.err
13013 } && test -s conftest.
$ac_objext; then
13014 emacs_cv_arg6_star
=yes
13016 echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.
$ac_ext >&5
13022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13024 if test "$emacs_cv_arg6_star" = yes; then
13025 cat >>confdefs.h
<<\_ACEOF
13026 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13030 cat >>confdefs.h
<<\_ACEOF
13031 #define XRegisterIMInstantiateCallback_arg6 XPointer
13035 CFLAGS
=$late_CFLAGS
13038 ### Use -lXpm if available, unless `--with-xpm=no'.
13040 if test "${HAVE_X11}" = "yes"; then
13041 if test "${with_xpm}" != "no"; then
13042 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13043 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13044 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13045 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13049 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13051 # Is the header compilable?
13052 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13053 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13054 cat >conftest.
$ac_ext <<_ACEOF
13057 cat confdefs.h
>>conftest.
$ac_ext
13058 cat >>conftest.
$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <X11/xpm.h>
13063 rm -f conftest.
$ac_objext
13064 if { (ac_try
="$ac_compile"
13065 case "(($ac_try" in
13066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_compile") 2>conftest.er1
13072 grep -v '^ *+' conftest.er1 >conftest.err
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } && {
13077 test -z "$ac_c_werror_flag" ||
13078 test ! -s conftest.err
13079 } && test -s conftest.$ac_objext; then
13080 ac_header_compiler=yes
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_header_compiler=no
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090 echo "${ECHO_T}$ac_header_compiler" >&6; }
13092 # Is the header present?
13093 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13094 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13095 cat >conftest.$ac_ext <<_ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #include <X11/xpm.h>
13103 if { (ac_try="$ac_cpp conftest.$ac_ext"
13104 case "(($ac_try" in
13105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13106 *) ac_try_echo
=$ac_try;;
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13111 grep -v '^ *+' conftest.er1
>conftest.err
13113 cat conftest.err
>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } >/dev
/null
&& {
13116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13119 ac_header_preproc
=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.
$ac_ext >&5
13124 ac_header_preproc
=no
13127 rm -f conftest.err conftest.
$ac_ext
13128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13129 echo "${ECHO_T}$ac_header_preproc" >&6; }
13131 # So? What about this header?
13132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13134 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13135 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13137 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13138 ac_header_preproc
=yes
13141 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13142 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13144 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13146 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13148 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13149 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13150 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13151 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13152 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13156 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13157 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13158 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13163 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13164 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13167 if test $ac_cv_header_X11_xpm_h = yes; then
13168 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13169 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13170 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 ac_check_lib_save_LIBS
=$LIBS
13174 LIBS
="-lXpm -lX11 $LIBS"
13175 cat >conftest.
$ac_ext <<_ACEOF
13178 cat confdefs.h
>>conftest.
$ac_ext
13179 cat >>conftest.
$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13182 /* Override any GCC internal prototype to avoid an error.
13183 Use char because int might match the return type of a GCC
13184 builtin and then its argument prototype would still apply. */
13188 char XpmReadFileToPixmap ();
13192 return XpmReadFileToPixmap ();
13197 rm -f conftest.
$ac_objext conftest
$ac_exeext
13198 if { (ac_try
="$ac_link"
13199 case "(($ac_try" in
13200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_link") 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } && {
13211 test -z "$ac_c_werror_flag" ||
13212 test ! -s conftest.err
13213 } && test -s conftest$ac_exeext &&
13214 $as_test_x conftest$ac_exeext; then
13215 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13228 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13229 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13236 if test "${HAVE_XPM}" = "yes"; then
13237 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13238 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13239 cat >conftest.$ac_ext <<_ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 #include "X11/xpm.h"
13246 #ifndef XpmReturnAllocPixels
13247 no_return_alloc_pixels
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13260 if test "${HAVE_XPM}" = "yes"; then
13261 { echo "$as_me:$LINENO: result: yes" >&5
13262 echo "${ECHO_T}yes" >&6; }
13264 { echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6; }
13270 if test "${HAVE_XPM}" = "yes"; then
13272 cat >>confdefs.h <<\_ACEOF
13279 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13281 if test "${HAVE_X11}" = "yes"; then
13282 if test "${with_jpeg}" != "no"; then
13283 if test "${ac_cv_header_jerror_h+set}" = set; then
13284 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13285 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13286 if test "${ac_cv_header_jerror_h+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13290 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13292 # Is the header compilable?
13293 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13294 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13295 cat >conftest.$ac_ext <<_ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 $ac_includes_default
13302 #include <jerror.h>
13304 rm -f conftest.$ac_objext
13305 if { (ac_try="$ac_compile"
13306 case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_compile") 2>conftest.er1
13313 grep -v '^
*+' conftest.er1 >conftest.err
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest.$ac_objext; then
13321 ac_header_compiler=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's
/^
/|
/' conftest.$ac_ext >&5
13326 ac_header_compiler=no
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13331 echo "${ECHO_T}$ac_header_compiler" >&6; }
13333 # Is the header present?
13334 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13335 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13336 cat >conftest.$ac_ext <<_ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 #include <jerror.h>
13344 if { (ac_try="$ac_cpp conftest.$ac_ext"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13352 grep -v '^
*+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } >/dev/null && {
13357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13360 ac_header_preproc=yes
13362 echo "$as_me: failed program was:" >&5
13363 sed 's
/^
/|
/' conftest.$ac_ext >&5
13365 ac_header_preproc=no
13368 rm -f conftest.err conftest.$ac_ext
13369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13370 echo "${ECHO_T}$ac_header_preproc" >&6; }
13372 # So? What about this header?
13373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13375 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13376 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13378 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13379 ac_header_preproc=yes
13382 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13383 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13385 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13387 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13388 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13389 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13391 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13393 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13397 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13398 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13399 if test "${ac_cv_header_jerror_h+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 ac_cv_header_jerror_h=$ac_header_preproc
13404 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13405 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13408 if test $ac_cv_header_jerror_h = yes; then
13409 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13410 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13411 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-ljpeg $LIBS"
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13429 char jpeg_destroy_compress ();
13433 return jpeg_destroy_compress ();
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (ac_try="$ac_link"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_link") 2>conftest.er1
13447 grep -v '^
*+' conftest.er1 >conftest.err
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest$ac_exeext &&
13455 $as_test_x conftest$ac_exeext; then
13456 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13458 echo "$as_me: failed program was:" >&5
13459 sed 's
/^
/|
/' conftest.$ac_ext >&5
13461 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13465 conftest$ac_exeext conftest.$ac_ext
13466 LIBS=$ac_check_lib_save_LIBS
13468 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13469 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13470 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13480 if test "${HAVE_JPEG}" = "yes"; then
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_JPEG 1
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 #include <jpeglib.h>
13492 version=JPEG_LIB_VERSION
13495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13496 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_JPEG 1
13502 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13503 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13511 ### Use -lpng if available, unless `--with-png=no'.
13513 if test "${HAVE_X11}" = "yes"; then
13514 if test "${with_png}" != "no"; then
13515 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13516 # in /usr/include/libpng.
13519 for ac_header
in png.h libpng
/png.h
13521 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13522 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13525 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 ac_res
=`eval echo '${'$as_ac_Header'}'`
13529 { echo "$as_me:$LINENO: result: $ac_res" >&5
13530 echo "${ECHO_T}$ac_res" >&6; }
13532 # Is the header compilable?
13533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13535 cat >conftest.
$ac_ext <<_ACEOF
13538 cat confdefs.h
>>conftest.
$ac_ext
13539 cat >>conftest.
$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13542 #include <$ac_header>
13544 rm -f conftest.
$ac_objext
13545 if { (ac_try
="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13553 grep -v '^ *+' conftest.er1 >conftest.err
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_header_compiler=yes
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_header_compiler=no
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13571 echo "${ECHO_T}$ac_header_compiler" >&6; }
13573 # Is the header present?
13574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <$ac_header>
13584 if { (ac_try="$ac_cpp conftest.$ac_ext"
13585 case "(($ac_try" in
13586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13587 *) ac_try_echo
=$ac_try;;
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13592 grep -v '^ *+' conftest.er1
>conftest.err
13594 cat conftest.err
>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } >/dev
/null
&& {
13597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13600 ac_header_preproc
=yes
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.
$ac_ext >&5
13605 ac_header_preproc
=no
13608 rm -f conftest.err conftest.
$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13610 echo "${ECHO_T}$ac_header_preproc" >&6; }
13612 # So? What about this header?
13613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13619 ac_header_preproc
=yes
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13639 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 eval "$as_ac_Header=\$ac_header_preproc"
13644 ac_res
=`eval echo '${'$as_ac_Header'}'`
13645 { echo "$as_me:$LINENO: result: $ac_res" >&5
13646 echo "${ECHO_T}$ac_res" >&6; }
13649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650 cat >>confdefs.h
<<_ACEOF
13651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13658 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13659 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13660 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13661 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 ac_check_lib_save_LIBS
=$LIBS
13665 LIBS
="-lpng -lz -lm $LIBS"
13666 cat >conftest.
$ac_ext <<_ACEOF
13669 cat confdefs.h
>>conftest.
$ac_ext
13670 cat >>conftest.
$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13679 char png_get_channels ();
13683 return png_get_channels ();
13688 rm -f conftest.
$ac_objext conftest
$ac_exeext
13689 if { (ac_try
="$ac_link"
13690 case "(($ac_try" in
13691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>conftest.er1
13697 grep -v '^ *+' conftest.er1 >conftest.err
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } && {
13702 test -z "$ac_c_werror_flag" ||
13703 test ! -s conftest.err
13704 } && test -s conftest$ac_exeext &&
13705 $as_test_x conftest$ac_exeext; then
13706 ac_cv_lib_png_png_get_channels=yes
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ac_cv_lib_png_png_get_channels=no
13714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13715 conftest$ac_exeext conftest.$ac_ext
13716 LIBS=$ac_check_lib_save_LIBS
13718 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13719 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13720 if test $ac_cv_lib_png_png_get_channels = yes; then
13727 if test "${HAVE_PNG}" = "yes"; then
13729 cat >>confdefs.h <<\_ACEOF
13736 ### Use -ltiff if available, unless `--with-tiff=no
'.
13738 if test "${HAVE_X11}" = "yes"; then
13739 if test "${with_tiff}" != "no"; then
13740 if test "${ac_cv_header_tiffio_h+set}" = set; then
13741 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13742 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_header_tiffio_h+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13749 # Is the header compilable?
13750 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13751 echo $ECHO_N "checking tiffio.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 <tiffio.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 tiffio.h presence" >&5
13792 echo $ECHO_N "checking tiffio.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 <tiffio.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: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13835 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13836 ac_header_preproc=yes
13839 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13848 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13854 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13855 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13856 if test "${ac_cv_header_tiffio_h+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 ac_cv_header_tiffio_h=$ac_header_preproc
13861 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13862 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13865 if test $ac_cv_header_tiffio_h = yes; then
13867 # At least one tiff package requires the jpeg library.
13868 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13869 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13870 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13871 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-ltiff $tifflibs $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13889 char TIFFGetVersion ();
13893 return TIFFGetVersion ();
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (ac_try="$ac_link"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13907 grep -v '^
*+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_tiff_TIFFGetVersion=yes
13918 echo "$as_me: failed program was:" >&5
13919 sed 's
/^
/|
/' conftest.$ac_ext >&5
13921 ac_cv_lib_tiff_TIFFGetVersion=no
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13929 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13930 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13939 if test "${HAVE_TIFF}" = "yes"; then
13941 cat >>confdefs.h <<\_ACEOF
13942 #define HAVE_TIFF 1
13948 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13950 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13951 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13952 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13953 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13954 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13958 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13960 # Is the header compilable?
13961 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13962 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13963 cat >conftest.
$ac_ext <<_ACEOF
13966 cat confdefs.h
>>conftest.
$ac_ext
13967 cat >>conftest.
$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13969 $ac_includes_default
13970 #include <gif_lib.h>
13972 rm -f conftest.
$ac_objext
13973 if { (ac_try
="$ac_compile"
13974 case "(($ac_try" in
13975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_compile") 2>conftest.er1
13981 grep -v '^ *+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && {
13986 test -z "$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 } && test -s conftest.$ac_objext; then
13989 ac_header_compiler=yes
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13994 ac_header_compiler=no
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13999 echo "${ECHO_T}$ac_header_compiler" >&6; }
14001 # Is the header present?
14002 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14003 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #include <gif_lib.h>
14012 if { (ac_try="$ac_cpp conftest.$ac_ext"
14013 case "(($ac_try" in
14014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14015 *) ac_try_echo
=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14020 grep -v '^ *+' conftest.er1
>conftest.err
14022 cat conftest.err
>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } >/dev
/null
&& {
14025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14028 ac_header_preproc
=yes
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.
$ac_ext >&5
14033 ac_header_preproc
=no
14036 rm -f conftest.err conftest.
$ac_ext
14037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14038 echo "${ECHO_T}$ac_header_preproc" >&6; }
14040 # So? What about this header?
14041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14043 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14044 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14046 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14047 ac_header_preproc
=yes
14050 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14051 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14053 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14054 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14055 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14057 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14059 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14061 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14065 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14066 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14067 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 ac_cv_header_gif_lib_h
=$ac_header_preproc
14072 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14073 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14076 if test $ac_cv_header_gif_lib_h = yes; then
14077 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14078 # Earlier versions can crash Emacs.
14079 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14080 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14081 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 ac_check_lib_save_LIBS
=$LIBS
14086 cat >conftest.
$ac_ext <<_ACEOF
14089 cat confdefs.h
>>conftest.
$ac_ext
14090 cat >>conftest.
$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14099 char EGifPutExtensionLast ();
14103 return EGifPutExtensionLast ();
14108 rm -f conftest.
$ac_objext conftest
$ac_exeext
14109 if { (ac_try
="$ac_link"
14110 case "(($ac_try" in
14111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_link") 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest$ac_exeext &&
14125 $as_test_x conftest$ac_exeext; then
14126 ac_cv_lib_gif_EGifPutExtensionLast=yes
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_cv_lib_gif_EGifPutExtensionLast=no
14134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14139 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14140 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14150 if test "$HAVE_GIF" = yes; then
14151 ac_gif_lib_name="-lgif"
14154 # If gif_lib.h but no libgif, try libungif.
14155 if test x"$try_libungif" = xyes; then
14156 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14157 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lungif $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14176 char EGifPutExtensionLast ();
14180 return EGifPutExtensionLast ();
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14189 *) ac_try_echo
=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14194 grep -v '^ *+' conftest.er1
>conftest.err
14196 cat conftest.err
>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && {
14199 test -z "$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14201 } && test -s conftest
$ac_exeext &&
14202 $as_test_x conftest
$ac_exeext; then
14203 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.
$ac_ext >&5
14208 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14211 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14212 conftest
$ac_exeext conftest.
$ac_ext
14213 LIBS
=$ac_check_lib_save_LIBS
14215 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14216 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14217 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14222 if test "$HAVE_GIF" = yes; then
14224 cat >>confdefs.h
<<\_ACEOF
14225 #define LIBGIF -lungif
14228 ac_gif_lib_name
="-lungif"
14232 if test "${HAVE_GIF}" = "yes"; then
14234 cat >>confdefs.h
<<\_ACEOF
14241 if test "${HAVE_X11}" = "yes"; then
14244 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14245 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14246 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14247 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14248 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14249 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14250 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14251 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14252 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14253 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14255 if test "X${MISSING}" != X
; then
14256 { { echo "$as_me:$LINENO: error: The following required libraries was not found:
14258 Maybe some development libraries/packages are missing?
14259 If you don't want to link with them give
14261 as options to configure" >&5
14262 echo "$as_me: error: The following required libraries was not found:
14264 Maybe some development libraries/packages are missing?
14265 If you don't want to link with them give
14267 as options to configure" >&2;}
14268 { (exit 1); exit 1; }; }
14272 ### Use -lgpm if available, unless `--with-gpm=no'.
14274 if test "${with_gpm}" != "no"; then
14275 if test "${ac_cv_header_gpm_h+set}" = set; then
14276 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14277 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14278 if test "${ac_cv_header_gpm_h+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14282 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14284 # Is the header compilable?
14285 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14286 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14287 cat >conftest.
$ac_ext <<_ACEOF
14290 cat confdefs.h
>>conftest.
$ac_ext
14291 cat >>conftest.
$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 $ac_includes_default
14296 rm -f conftest.
$ac_objext
14297 if { (ac_try
="$ac_compile"
14298 case "(($ac_try" in
14299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14305 grep -v '^ *+' conftest.er1 >conftest.err
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && {
14310 test -z "$ac_c_werror_flag" ||
14311 test ! -s conftest.err
14312 } && test -s conftest.$ac_objext; then
14313 ac_header_compiler=yes
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 ac_header_compiler=no
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14323 echo "${ECHO_T}$ac_header_compiler" >&6; }
14325 # Is the header present?
14326 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14327 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14328 cat >conftest.$ac_ext <<_ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14336 if { (ac_try="$ac_cpp conftest.$ac_ext"
14337 case "(($ac_try" in
14338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14339 *) ac_try_echo
=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1
>conftest.err
14346 cat conftest.err
>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } >/dev
/null
&& {
14349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14352 ac_header_preproc
=yes
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.
$ac_ext >&5
14357 ac_header_preproc
=no
14360 rm -f conftest.err conftest.
$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14362 echo "${ECHO_T}$ac_header_preproc" >&6; }
14364 # So? What about this header?
14365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14367 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14368 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14370 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14371 ac_header_preproc
=yes
14374 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14375 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14377 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14378 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14379 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14380 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14381 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14383 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14385 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14389 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14390 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14391 if test "${ac_cv_header_gpm_h+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 ac_cv_header_gpm_h
=$ac_header_preproc
14396 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14397 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14400 if test $ac_cv_header_gpm_h = yes; then
14401 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14402 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14403 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 ac_check_lib_save_LIBS
=$LIBS
14408 cat >conftest.
$ac_ext <<_ACEOF
14411 cat confdefs.h
>>conftest.
$ac_ext
14412 cat >>conftest.
$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14415 /* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14425 return Gpm_Open ();
14430 rm -f conftest.
$ac_objext conftest
$ac_exeext
14431 if { (ac_try
="$ac_link"
14432 case "(($ac_try" in
14433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_link") 2>conftest.er1
14439 grep -v '^ *+' conftest.er1 >conftest.err
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } && {
14444 test -z "$ac_c_werror_flag" ||
14445 test ! -s conftest.err
14446 } && test -s conftest$ac_exeext &&
14447 $as_test_x conftest$ac_exeext; then
14448 ac_cv_lib_gpm_Gpm_Open=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_cv_lib_gpm_Gpm_Open=no
14456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457 conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14460 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14461 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14462 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14471 if test "${HAVE_GPM}" = "yes"; then
14473 cat >>confdefs.h <<\_ACEOF
14479 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14480 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14481 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14482 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14486 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14488 # Is the header compilable?
14489 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14490 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14498 #include <malloc/malloc.h>
14500 rm -f conftest.$ac_objext
14501 if { (ac_try="$ac_compile"
14502 case "(($ac_try" in
14503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14504 *) ac_try_echo
=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14509 grep -v '^ *+' conftest.er1
>conftest.err
14511 cat conftest.err
>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest.
$ac_objext; then
14517 ac_header_compiler
=yes
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.
$ac_ext >&5
14522 ac_header_compiler
=no
14525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14527 echo "${ECHO_T}$ac_header_compiler" >&6; }
14529 # Is the header present?
14530 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14531 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14532 cat >conftest.
$ac_ext <<_ACEOF
14535 cat confdefs.h
>>conftest.
$ac_ext
14536 cat >>conftest.
$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 #include <malloc/malloc.h>
14540 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14541 case "(($ac_try" in
14542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } >/dev/null && {
14553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14556 ac_header_preproc=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_header_preproc=no
14564 rm -f conftest.err conftest.$ac_ext
14565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14566 echo "${ECHO_T}$ac_header_preproc" >&6; }
14568 # So? What about this header?
14569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14571 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14572 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14574 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14575 ac_header_preproc=yes
14578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14579 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14581 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14583 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14585 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14587 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14589 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14593 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14594 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14595 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14600 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14601 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14604 if test $ac_cv_header_malloc_malloc_h = yes; then
14606 cat >>confdefs.h <<\_ACEOF
14607 #define HAVE_MALLOC_MALLOC_H 1
14614 ### Use Mac OS X Carbon API to implement GUI.
14615 if test "${HAVE_CARBON}" = "yes"; then
14617 cat >>confdefs.h <<\_ACEOF
14618 #define HAVE_CARBON 1
14621 ## Specify the install directory
14623 if test "${carbon_appdir_x}" != ""; then
14624 case ${carbon_appdir_x} in
14625 y | ye | yes) carbon_appdir=/Applications ;;
14626 * ) carbon_appdir=${carbon_appdir_x} ;;
14629 # We also have mouse menus.
14633 ### Use session management (-lSM -lICE) if available
14635 if test "${HAVE_X11}" = "yes"; then
14636 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14637 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14638 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14639 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14643 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14645 # Is the header compilable?
14646 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14647 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 $ac_includes_default
14655 #include <X11/SM/SMlib.h>
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14661 *) ac_try_echo
=$ac_try;;
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_compile") 2>conftest.er1
14666 grep -v '^ *+' conftest.er1
>conftest.err
14668 cat conftest.err
>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && {
14671 test -z "$ac_c_werror_flag" ||
14672 test ! -s conftest.err
14673 } && test -s conftest.
$ac_objext; then
14674 ac_header_compiler
=yes
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.
$ac_ext >&5
14679 ac_header_compiler
=no
14682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14684 echo "${ECHO_T}$ac_header_compiler" >&6; }
14686 # Is the header present?
14687 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14688 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14689 cat >conftest.
$ac_ext <<_ACEOF
14692 cat confdefs.h
>>conftest.
$ac_ext
14693 cat >>conftest.
$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #include <X11/SM/SMlib.h>
14697 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14698 case "(($ac_try" in
14699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1 >conftest.err
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } >/dev/null && {
14710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14713 ac_header_preproc=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_header_preproc=no
14721 rm -f conftest.err conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14723 echo "${ECHO_T}$ac_header_preproc" >&6; }
14725 # So? What about this header?
14726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14728 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14729 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14731 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14732 ac_header_preproc=yes
14735 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14736 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14738 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14740 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14742 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14744 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14746 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14750 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14751 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14752 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14757 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14758 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14761 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14762 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14763 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14764 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 ac_check_lib_save_LIBS=$LIBS
14768 LIBS="-lSM -lICE $LIBS"
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14782 char SmcOpenConnection ();
14786 return SmcOpenConnection ();
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (ac_try="$ac_link"
14793 case "(($ac_try" in
14794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14795 *) ac_try_echo
=$ac_try;;
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_link") 2>conftest.er1
14800 grep -v '^ *+' conftest.er1
>conftest.err
14802 cat conftest.err
>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest
$ac_exeext &&
14808 $as_test_x conftest
$ac_exeext; then
14809 ac_cv_lib_SM_SmcOpenConnection
=yes
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.
$ac_ext >&5
14814 ac_cv_lib_SM_SmcOpenConnection
=no
14817 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14818 conftest
$ac_exeext conftest.
$ac_ext
14819 LIBS
=$ac_check_lib_save_LIBS
14821 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14822 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14823 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14831 if test "${HAVE_X_SM}" = "yes"; then
14833 cat >>confdefs.h
<<\_ACEOF
14834 #define HAVE_X_SM 1
14839 *) LIBS
="-lSM -lICE $LIBS" ;;
14844 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14845 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14846 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14847 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 cat >conftest.
$ac_ext <<_ACEOF
14853 cat confdefs.h
>>conftest.
$ac_ext
14854 cat >>conftest.
$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14865 rm -f conftest.
$ac_objext conftest
$ac_exeext
14866 if { (ac_try
="$ac_link"
14867 case "(($ac_try" in
14868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_link") 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } && {
14879 test -z "$ac_c_werror_flag" ||
14880 test ! -s conftest.err
14881 } && test -s conftest$ac_exeext &&
14882 $as_test_x conftest$ac_exeext; then
14883 emacs_cv_netdb_declares_h_errno=yes
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 emacs_cv_netdb_declares_h_errno=no
14891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14892 conftest$ac_exeext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14895 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14896 if test $emacs_cv_netdb_declares_h_errno = yes; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_H_ERRNO 1
14904 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14905 # for constant arguments. Useless!
14906 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14907 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14908 if test "${ac_cv_working_alloca_h+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 cat >conftest.$ac_ext <<_ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 #include <alloca.h>
14921 char *p = (char *) alloca (2 * sizeof (int));
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14931 *) ac_try_echo
=$ac_try;;
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14936 grep -v '^ *+' conftest.er1
>conftest.err
14938 cat conftest.err
>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest
$ac_exeext &&
14944 $as_test_x conftest
$ac_exeext; then
14945 ac_cv_working_alloca_h
=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.
$ac_ext >&5
14950 ac_cv_working_alloca_h
=no
14953 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14954 conftest
$ac_exeext conftest.
$ac_ext
14956 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14957 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14958 if test $ac_cv_working_alloca_h = yes; then
14960 cat >>confdefs.h
<<\_ACEOF
14961 #define HAVE_ALLOCA_H 1
14966 { echo "$as_me:$LINENO: checking for alloca" >&5
14967 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14968 if test "${ac_cv_func_alloca_works+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 cat >conftest.
$ac_ext <<_ACEOF
14974 cat confdefs.h
>>conftest.
$ac_ext
14975 cat >>conftest.
$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14978 # define alloca __builtin_alloca
14981 # include <malloc.h>
14982 # define alloca _alloca
14984 # ifdef HAVE_ALLOCA_H
14985 # include <alloca.h>
14990 # ifndef alloca /* predefined by HP cc +Olibcalls */
15001 char *p = (char *) alloca (1);
15007 rm -f conftest.
$ac_objext conftest
$ac_exeext
15008 if { (ac_try
="$ac_link"
15009 case "(($ac_try" in
15010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_link") 2>conftest.er1
15016 grep -v '^ *+' conftest.er1 >conftest.err
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest$ac_exeext &&
15024 $as_test_x conftest$ac_exeext; then
15025 ac_cv_func_alloca_works=yes
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ac_cv_func_alloca_works=no
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034 conftest$ac_exeext conftest.$ac_ext
15036 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15037 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15039 if test $ac_cv_func_alloca_works = yes; then
15041 cat >>confdefs.h <<\_ACEOF
15042 #define HAVE_ALLOCA 1
15046 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15047 # that cause trouble. Some versions do not even contain alloca or
15048 # contain a buggy version. If you still want to use their alloca,
15049 # use ar to extract alloca.o from them instead of compiling alloca.c.
15051 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15053 cat >>confdefs.h <<\_ACEOF
15058 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15059 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15060 if test "${ac_cv_os_cray+set}" = set; then
15061 echo $ECHO_N "(cached
) $ECHO_C" >&6
15063 cat >conftest.$ac_ext <<_ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15069 #if defined CRAY && ! defined CRAY2
15076 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15077 $EGREP "webecray
" >/dev/null 2>&1; then
15085 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15086 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15087 if test $ac_cv_os_cray = yes; then
15088 for ac_func in _getb67 GETB67 getb67; do
15089 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15090 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15091 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15092 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15093 echo $ECHO_N "(cached
) $ECHO_C" >&6
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15103 #define $ac_func innocuous_$ac_func
15105 /* System header to define __stub macros and hopefully few prototypes,
15106 which can conflict with char $ac_func (); below.
15107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15108 <limits.h> exists even on freestanding compilers. */
15111 # include <limits.h>
15113 # include <assert.h>
15118 /* Override any GCC internal prototype to avoid an error.
15119 Use char because int might match the return type of a GCC
15120 builtin and then its argument prototype would still apply. */
15125 /* The GNU C library defines this for functions which it implements
15126 to always fail with ENOSYS. Some functions are actually named
15127 something starting with __ and the normal name is an alias. */
15128 #if defined __stub_$ac_func || defined __stub___$ac_func
15135 return $ac_func ();
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (ac_try="$ac_link"
15142 case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_link") 2>conftest.er1
15149 grep -v '^ *+' conftest.er1 >conftest.err
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15153 (exit $ac_status); } && {
15154 test -z "$ac_c_werror_flag" ||
15155 test ! -s conftest.err
15156 } && test -s conftest$ac_exeext &&
15157 $as_test_x conftest$ac_exeext; then
15158 eval "$as_ac_var=yes"
15160 echo "$as_me: failed program was
:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 eval "$as_ac_var=no
"
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15169 ac_res=`eval echo '${'$as_ac_var'}'`
15170 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15171 echo "${ECHO_T}$ac_res" >&6; }
15172 if test `eval echo '${'$as_ac_var'}'` = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175 #define CRAY_STACKSEG_END $ac_func
15184 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15185 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15186 if test "${ac_cv_c_stack_direction+set}" = set; then
15187 echo $ECHO_N "(cached
) $ECHO_C" >&6
15189 if test "$cross_compiling" = yes; then
15190 ac_cv_c_stack_direction=0
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 $ac_includes_default
15200 find_stack_direction ()
15202 static char *addr = 0;
15207 return find_stack_direction ();
15210 return (&dummy > addr) ? 1 : -1;
15216 return find_stack_direction () < 0;
15219 rm -f conftest$ac_exeext
15220 if { (ac_try="$ac_link"
15221 case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_link") 2>&5
15228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_c_stack_direction=1
15241 echo "$as_me: program exited with status
$ac_status" >&5
15242 echo "$as_me: failed program was
:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ( exit $ac_status )
15246 ac_cv_c_stack_direction=-1
15248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15253 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15254 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15256 cat >>confdefs.h <<_ACEOF
15257 #define STACK_DIRECTION $ac_cv_c_stack_direction
15264 # fmod, logb, and frexp are found in -lm on most systems.
15265 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15267 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15268 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15269 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15270 echo $ECHO_N "(cached
) $ECHO_C" >&6
15272 ac_check_lib_save_LIBS=$LIBS
15274 cat >conftest.$ac_ext <<_ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15281 /* Override any GCC internal prototype to avoid an error.
15282 Use char because int might match the return type of a GCC
15283 builtin and then its argument prototype would still apply. */
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (ac_try="$ac_link"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_link") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest$ac_exeext &&
15313 $as_test_x conftest$ac_exeext; then
15314 ac_cv_lib_m_sqrt=yes
15316 echo "$as_me: failed program was
:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_cv_lib_m_sqrt=no
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323 conftest$ac_exeext conftest.$ac_ext
15324 LIBS=$ac_check_lib_save_LIBS
15326 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15327 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15328 if test $ac_cv_lib_m_sqrt = yes; then
15329 cat >>confdefs.h <<_ACEOF
15330 #define HAVE_LIBM 1
15338 # Check for mail-locking functions in a "mail" library. Probably this should
15339 # have the same check as for liblockfile below.
15341 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15342 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15343 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15344 echo $ECHO_N "(cached
) $ECHO_C" >&6
15346 ac_check_lib_save_LIBS=$LIBS
15347 LIBS="-lmail $LIBS"
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15355 /* Override any GCC internal prototype to avoid an error.
15356 Use char because int might match the return type of a GCC
15357 builtin and then its argument prototype would still apply. */
15365 return maillock ();
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (ac_try="$ac_link"
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_link") 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); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest$ac_exeext &&
15387 $as_test_x conftest$ac_exeext; then
15388 ac_cv_lib_mail_maillock=yes
15390 echo "$as_me: failed program was
:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_cv_lib_mail_maillock=no
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15398 LIBS=$ac_check_lib_save_LIBS
15400 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15401 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15402 if test $ac_cv_lib_mail_maillock = yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define HAVE_LIBMAIL 1
15407 LIBS="-lmail $LIBS"
15412 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15413 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15414 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15415 echo $ECHO_N "(cached
) $ECHO_C" >&6
15417 ac_check_lib_save_LIBS=$LIBS
15418 LIBS="-llockfile $LIBS"
15419 cat >conftest.$ac_ext <<_ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15426 /* Override any GCC internal prototype to avoid an error.
15427 Use char because int might match the return type of a GCC
15428 builtin and then its argument prototype would still apply. */
15436 return maillock ();
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15450 grep -v '^ *+' conftest.er1 >conftest.err
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_c_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext &&
15458 $as_test_x conftest$ac_exeext; then
15459 ac_cv_lib_lockfile_maillock=yes
15461 echo "$as_me: failed program was
:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 ac_cv_lib_lockfile_maillock=no
15467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15468 conftest$ac_exeext conftest.$ac_ext
15469 LIBS=$ac_check_lib_save_LIBS
15471 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15472 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15473 if test $ac_cv_lib_lockfile_maillock = yes; then
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_LIBLOCKFILE 1
15478 LIBS="-llockfile $LIBS"
15482 # If we have the shared liblockfile, assume we must use it for mail
15483 # locking (e.g. Debian). If we couldn't link against liblockfile
15484 # (no liblockfile.a installed), ensure that we don't need to.
15485 if test "$ac_cv_lib_lockfile_maillock" = no; then
15486 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15487 set dummy liblockfile.so; ac_word=$2
15488 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15489 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15490 if test "${ac_cv_prog_liblockfile+set}" = set; then
15491 echo $ECHO_N "(cached
) $ECHO_C" >&6
15493 if test -n "$liblockfile"; then
15494 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15498 for as_dir in $as_dummy
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15504 ac_cv_prog_liblockfile="yes"
15505 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15512 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15515 liblockfile=$ac_cv_prog_liblockfile
15516 if test -n "$liblockfile"; then
15517 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15518 echo "${ECHO_T}$liblockfile" >&6; }
15520 { echo "$as_me:$LINENO: result
: no
" >&5
15521 echo "${ECHO_T}no
" >&6; }
15525 if test $ac_cv_prog_liblockfile = yes; then
15526 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15527 This probably means that movemail could lose mail.
15528 There may be a \`development' package to
install containing liblockfile.
" >&5
15529 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15530 This probably means that movemail could lose mail.
15531 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15532 { (exit 1); exit 1; }; }
15537 for ac_func in touchlock
15539 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15540 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15541 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15542 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached
) $ECHO_C" >&6
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15553 #define $ac_func innocuous_$ac_func
15555 /* System header to define __stub macros and hopefully few prototypes,
15556 which can conflict with char $ac_func (); below.
15557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558 <limits.h> exists even on freestanding compilers. */
15561 # include <limits.h>
15563 # include <assert.h>
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15575 /* The GNU C library defines this for functions which it implements
15576 to always fail with ENOSYS. Some functions are actually named
15577 something starting with __ and the normal name is an alias. */
15578 #if defined __stub_$ac_func || defined __stub___$ac_func
15585 return $ac_func ();
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (ac_try="$ac_link"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_link") 2>conftest.er1
15599 grep -v '^ *+' conftest.er1 >conftest.err
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15603 (exit $ac_status); } && {
15604 test -z "$ac_c_werror_flag" ||
15605 test ! -s conftest.err
15606 } && test -s conftest$ac_exeext &&
15607 $as_test_x conftest$ac_exeext; then
15608 eval "$as_ac_var=yes"
15610 echo "$as_me: failed program was
:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 eval "$as_ac_var=no
"
15616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15617 conftest$ac_exeext conftest.$ac_ext
15619 ac_res=`eval echo '${'$as_ac_var'}'`
15620 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15631 for ac_header in maillock.h
15633 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15634 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15635 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15636 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15637 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15638 echo $ECHO_N "(cached
) $ECHO_C" >&6
15640 ac_res=`eval echo '${'$as_ac_Header'}'`
15641 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15642 echo "${ECHO_T}$ac_res" >&6; }
15644 # Is the header compilable?
15645 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15646 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15647 cat >conftest.$ac_ext <<_ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 $ac_includes_default
15654 #include <$ac_header>
15656 rm -f conftest.$ac_objext
15657 if { (ac_try="$ac_compile"
15658 case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15665 grep -v '^ *+' conftest.er1 >conftest.err
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15669 (exit $ac_status); } && {
15670 test -z "$ac_c_werror_flag" ||
15671 test ! -s conftest.err
15672 } && test -s conftest.$ac_objext; then
15673 ac_header_compiler=yes
15675 echo "$as_me: failed program was
:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_header_compiler=no
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15683 echo "${ECHO_T}$ac_header_compiler" >&6; }
15685 # Is the header present?
15686 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15687 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 #include <$ac_header>
15696 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15708 (exit $ac_status); } >/dev/null && {
15709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15712 ac_header_preproc=yes
15714 echo "$as_me: failed program was
:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 ac_header_preproc=no
15720 rm -f conftest.err conftest.$ac_ext
15721 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15722 echo "${ECHO_T}$ac_header_preproc" >&6; }
15724 # So? What about this header?
15725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15727 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15728 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15729 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15731 ac_header_preproc=yes
15734 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15735 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15736 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15737 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15738 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15739 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15740 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15741 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15742 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15744 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15745 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15749 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15750 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15751 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15752 echo $ECHO_N "(cached
) $ECHO_C" >&6
15754 eval "$as_ac_Header=\
$ac_header_preproc"
15756 ac_res=`eval echo '${'$as_ac_Header'}'`
15757 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15840 for ac_func in gethostname getdomainname dup2 \
15841 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15842 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15843 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15844 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15845 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15846 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15847 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15848 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15850 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15851 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15852 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15853 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15854 echo $ECHO_N "(cached
) $ECHO_C" >&6
15856 cat >conftest.$ac_ext <<_ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15864 #define $ac_func innocuous_$ac_func
15866 /* System header to define __stub macros and hopefully few prototypes,
15867 which can conflict with char $ac_func (); below.
15868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869 <limits.h> exists even on freestanding compilers. */
15872 # include <limits.h>
15874 # include <assert.h>
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply. */
15886 /* The GNU C library defines this for functions which it implements
15887 to always fail with ENOSYS. Some functions are actually named
15888 something starting with __ and the normal name is an alias. */
15889 #if defined __stub_$ac_func || defined __stub___$ac_func
15896 return $ac_func ();
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_link") 2>conftest.er1
15910 grep -v '^ *+' conftest.er1 >conftest.err
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15914 (exit $ac_status); } && {
15915 test -z "$ac_c_werror_flag" ||
15916 test ! -s conftest.err
15917 } && test -s conftest$ac_exeext &&
15918 $as_test_x conftest$ac_exeext; then
15919 eval "$as_ac_var=yes"
15921 echo "$as_me: failed program was
:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 eval "$as_ac_var=no
"
15927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15928 conftest$ac_exeext conftest.$ac_ext
15930 ac_res=`eval echo '${'$as_ac_var'}'`
15931 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15933 if test `eval echo '${'$as_ac_var'}'` = yes; then
15934 cat >>confdefs.h <<_ACEOF
15935 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15943 for ac_header in sys/un.h
15945 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15947 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15948 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached
) $ECHO_C" >&6
15952 ac_res=`eval echo '${'$as_ac_Header'}'`
15953 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15954 echo "${ECHO_T}$ac_res" >&6; }
15956 # Is the header compilable?
15957 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15958 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15959 cat >conftest.$ac_ext <<_ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 $ac_includes_default
15966 #include <$ac_header>
15968 rm -f conftest.$ac_objext
15969 if { (ac_try="$ac_compile"
15970 case "(($ac_try" in
15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972 *) ac_try_echo=$ac_try;;
15974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15975 (eval "$ac_compile") 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15981 (exit $ac_status); } && {
15982 test -z "$ac_c_werror_flag" ||
15983 test ! -s conftest.err
15984 } && test -s conftest.$ac_objext; then
15985 ac_header_compiler=yes
15987 echo "$as_me: failed program was
:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 ac_header_compiler=no
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6; }
15997 # Is the header present?
15998 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15999 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #include <$ac_header>
16008 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16016 grep -v '^ *+' conftest.er1 >conftest.err
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16020 (exit $ac_status); } >/dev/null && {
16021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16022 test ! -s conftest.err
16024 ac_header_preproc=yes
16026 echo "$as_me: failed program was
:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_header_preproc=no
16032 rm -f conftest.err conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16034 echo "${ECHO_T}$ac_header_preproc" >&6; }
16036 # So? What about this header?
16037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16039 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16040 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16041 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16043 ac_header_preproc=yes
16046 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16047 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16048 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16049 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16050 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16051 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16052 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16053 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16054 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16056 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16057 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16061 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16062 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16064 echo $ECHO_N "(cached
) $ECHO_C" >&6
16066 eval "$as_ac_Header=\
$ac_header_preproc"
16068 ac_res=`eval echo '${'$as_ac_Header'}'`
16069 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16070 echo "${ECHO_T}$ac_res" >&6; }
16073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16087 for ac_header in $ac_header_list
16089 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16091 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16092 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16094 echo $ECHO_N "(cached
) $ECHO_C" >&6
16096 ac_res=`eval echo '${'$as_ac_Header'}'`
16097 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16098 echo "${ECHO_T}$ac_res" >&6; }
16100 # Is the header compilable?
16101 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16102 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 $ac_includes_default
16110 #include <$ac_header>
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_compile") 2>conftest.er1
16121 grep -v '^ *+' conftest.er1 >conftest.err
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest.$ac_objext; then
16129 ac_header_compiler=yes
16131 echo "$as_me: failed program was
:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ac_header_compiler=no
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16138 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16139 echo "${ECHO_T}$ac_header_compiler" >&6; }
16141 # Is the header present?
16142 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16143 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 #include <$ac_header>
16152 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16160 grep -v '^ *+' conftest.er1 >conftest.err
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16164 (exit $ac_status); } >/dev/null && {
16165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16166 test ! -s conftest.err
16168 ac_header_preproc=yes
16170 echo "$as_me: failed program was
:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 ac_header_preproc=no
16176 rm -f conftest.err conftest.$ac_ext
16177 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16178 echo "${ECHO_T}$ac_header_preproc" >&6; }
16180 # So? What about this header?
16181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16183 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16184 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16185 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16187 ac_header_preproc=yes
16190 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16191 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16192 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16193 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16194 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16195 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16196 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16197 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16198 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16200 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16201 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16205 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16206 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16207 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16208 echo $ECHO_N "(cached
) $ECHO_C" >&6
16210 eval "$as_ac_Header=\
$ac_header_preproc"
16212 ac_res=`eval echo '${'$as_ac_Header'}'`
16213 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16214 echo "${ECHO_T}$ac_res" >&6; }
16217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16218 cat >>confdefs.h <<_ACEOF
16219 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16234 for ac_func in $ac_func_list
16236 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16237 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16238 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16239 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16240 echo $ECHO_N "(cached
) $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16250 #define $ac_func innocuous_$ac_func
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func (); below.
16254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16255 <limits.h> exists even on freestanding compilers. */
16258 # include <limits.h>
16260 # include <assert.h>
16265 /* Override any GCC internal prototype to avoid an error.
16266 Use char because int might match the return type of a GCC
16267 builtin and then its argument prototype would still apply. */
16272 /* The GNU C library defines this for functions which it implements
16273 to always fail with ENOSYS. Some functions are actually named
16274 something starting with __ and the normal name is an alias. */
16275 #if defined __stub_$ac_func || defined __stub___$ac_func
16282 return $ac_func ();
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_link") 2>conftest.er1
16296 grep -v '^ *+' conftest.er1 >conftest.err
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16300 (exit $ac_status); } && {
16301 test -z "$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 } && test -s conftest$ac_exeext &&
16304 $as_test_x conftest$ac_exeext; then
16305 eval "$as_ac_var=yes"
16307 echo "$as_me: failed program was
:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 eval "$as_ac_var=no
"
16313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16314 conftest$ac_exeext conftest.$ac_ext
16316 ac_res=`eval echo '${'$as_ac_var'}'`
16317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16318 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_var'}'` = yes; then
16320 cat >>confdefs.h <<_ACEOF
16321 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16343 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16344 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16345 if test "${ac_cv_func_working_mktime+set}" = set; then
16346 echo $ECHO_N "(cached
) $ECHO_C" >&6
16348 if test "$cross_compiling" = yes; then
16349 ac_cv_func_working_mktime=no
16351 cat >conftest.$ac_ext <<_ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 /* Test program from Paul Eggert and Tony Leneis. */
16358 #ifdef TIME_WITH_SYS_TIME
16359 # include <sys/time.h>
16362 # ifdef HAVE_SYS_TIME_H
16363 # include <sys/time.h>
16369 #include <stdlib.h>
16371 #ifdef HAVE_UNISTD_H
16372 # include <unistd.h>
16376 # define alarm(X) /* empty */
16379 /* Work around redefinition to rpl_putenv by other config tests. */
16382 static time_t time_t_max;
16383 static time_t time_t_min;
16385 /* Values we'll use to set the TZ environment variable. */
16386 static char *tz_strings[] = {
16387 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16388 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16390 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16392 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16393 Based on a problem report from Andreas Jaeger. */
16395 spring_forward_gap ()
16397 /* glibc (up to about 1998-10-07) failed this test. */
16400 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16401 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16402 on systems that don't support the Olson extension, or don't have the
16403 full zoneinfo tables installed. */
16404 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16413 return mktime (&tm) != (time_t) -1;
16421 return ! (lt = localtime (&now)) || mktime (lt) == now;
16428 return (mktime_test1 (now)
16429 && mktime_test1 ((time_t) (time_t_max - now))
16430 && mktime_test1 ((time_t) (time_t_min + now)));
16436 /* Based on code from Ariel Faigon. */
16446 return tm.tm_mon == 2 && tm.tm_mday == 31;
16455 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16456 now = mktime (&tm);
16457 if (now != (time_t) -1)
16459 struct tm *lt = localtime (&now);
16461 && lt->tm_year == tm.tm_year
16462 && lt->tm_mon == tm.tm_mon
16463 && lt->tm_mday == tm.tm_mday
16464 && lt->tm_hour == tm.tm_hour
16465 && lt->tm_min == tm.tm_min
16466 && lt->tm_sec == tm.tm_sec
16467 && lt->tm_yday == tm.tm_yday
16468 && lt->tm_wday == tm.tm_wday
16469 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16470 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16479 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16480 ignoring leap seconds. */
16481 unsigned long int answer = 2527315200UL;
16485 tm.tm_year = 2050 - 1900;
16488 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16491 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16492 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16493 on systems that don't support the Olson extension, or don't have the
16494 full zoneinfo tables installed. */
16495 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16499 /* Check that the result is either a failure, or close enough
16500 to the correct answer that we can assume the discrepancy is
16501 due to leap seconds. */
16502 return (t == (time_t) -1
16503 || (0 < t && answer - 120 <= t && t <= answer + 120));
16512 /* This test makes some buggy mktime implementations loop.
16513 Give up after 60 seconds; a mktime slower than that
16514 isn't worth using anyway. */
16517 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16520 if ((time_t) -1 < 0)
16521 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16523 delta = time_t_max / 997; /* a suitable prime number */
16524 for (i = 0; i < N_STRINGS; i++)
16527 putenv (tz_strings[i]);
16529 for (t = 0; t <= time_t_max - delta; t += delta)
16530 if (! mktime_test (t))
16532 if (! (mktime_test ((time_t) 1)
16533 && mktime_test ((time_t) (60 * 60))
16534 && mktime_test ((time_t) (60 * 60 * 24))))
16537 for (j = 1; 0 < j; j *= 2)
16538 if (! bigtime_test (j))
16540 if (! bigtime_test (j - 1))
16543 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16546 rm -f conftest$ac_exeext
16547 if { (ac_try="$ac_link"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_link") 2>&5
16555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_func_working_mktime=yes
16568 echo "$as_me: program exited with status
$ac_status" >&5
16569 echo "$as_me: failed program was
:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 ( exit $ac_status )
16573 ac_cv_func_working_mktime=no
16575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16581 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16582 if test $ac_cv_func_working_mktime = no; then
16583 case " $LIBOBJS " in
16584 *" mktime.
$ac_objext "* ) ;;
16585 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16591 if test "$ac_cv_func_working_mktime" = no; then
16593 cat >>confdefs.h <<\_ACEOF
16594 #define BROKEN_MKTIME 1
16599 ac_have_func=no # yes means we've found a way to get the load average.
16601 # Make sure getloadavg.c is where it belongs, at configure-time.
16602 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16603 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16604 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16605 { (exit 1); exit 1; }; }
16609 # Check for getloadavg, but be sure not to touch the cache variable.
16610 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16611 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16612 if test "${ac_cv_func_getloadavg+set}" = set; then
16613 echo $ECHO_N "(cached
) $ECHO_C" >&6
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16623 #define getloadavg innocuous_getloadavg
16625 /* System header to define __stub macros and hopefully few prototypes,
16626 which can conflict with char getloadavg (); below.
16627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16628 <limits.h> exists even on freestanding compilers. */
16631 # include <limits.h>
16633 # include <assert.h>
16638 /* Override any GCC internal prototype to avoid an error.
16639 Use char because int might match the return type of a GCC
16640 builtin and then its argument prototype would still apply. */
16644 char getloadavg ();
16645 /* The GNU C library defines this for functions which it implements
16646 to always fail with ENOSYS. Some functions are actually named
16647 something starting with __ and the normal name is an alias. */
16648 #if defined __stub_getloadavg || defined __stub___getloadavg
16655 return getloadavg ();
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (ac_try="$ac_link"
16662 case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_link") 2>conftest.er1
16669 grep -v '^ *+' conftest.er1 >conftest.err
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16673 (exit $ac_status); } && {
16674 test -z "$ac_c_werror_flag" ||
16675 test ! -s conftest.err
16676 } && test -s conftest$ac_exeext &&
16677 $as_test_x conftest$ac_exeext; then
16678 ac_cv_func_getloadavg=yes
16680 echo "$as_me: failed program was
:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_func_getloadavg=no
16686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16687 conftest$ac_exeext conftest.$ac_ext
16689 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16690 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16691 if test $ac_cv_func_getloadavg = yes; then
16696 ) && ac_have_func=yes
16698 # On HPUX9, an unprivileged user can get load averages through this function.
16700 for ac_func in pstat_getdynamic
16702 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16703 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16704 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16705 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16706 echo $ECHO_N "(cached
) $ECHO_C" >&6
16708 cat >conftest.$ac_ext <<_ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16716 #define $ac_func innocuous_$ac_func
16718 /* System header to define __stub macros and hopefully few prototypes,
16719 which can conflict with char $ac_func (); below.
16720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16721 <limits.h> exists even on freestanding compilers. */
16724 # include <limits.h>
16726 # include <assert.h>
16731 /* Override any GCC internal prototype to avoid an error.
16732 Use char because int might match the return type of a GCC
16733 builtin and then its argument prototype would still apply. */
16738 /* The GNU C library defines this for functions which it implements
16739 to always fail with ENOSYS. Some functions are actually named
16740 something starting with __ and the normal name is an alias. */
16741 #if defined __stub_$ac_func || defined __stub___$ac_func
16748 return $ac_func ();
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (ac_try="$ac_link"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_link") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16766 (exit $ac_status); } && {
16767 test -z "$ac_c_werror_flag" ||
16768 test ! -s conftest.err
16769 } && test -s conftest$ac_exeext &&
16770 $as_test_x conftest$ac_exeext; then
16771 eval "$as_ac_var=yes"
16773 echo "$as_me: failed program was
:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 eval "$as_ac_var=no
"
16779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16780 conftest$ac_exeext conftest.$ac_ext
16782 ac_res=`eval echo '${'$as_ac_var'}'`
16783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16785 if test `eval echo '${'$as_ac_var'}'` = yes; then
16786 cat >>confdefs.h <<_ACEOF
16787 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16794 # Solaris has libkstat which does not require root.
16796 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16797 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16798 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16799 echo $ECHO_N "(cached
) $ECHO_C" >&6
16801 ac_check_lib_save_LIBS=$LIBS
16802 LIBS="-lkstat $LIBS"
16803 cat >conftest.$ac_ext <<_ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16810 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */
16816 char kstat_open ();
16820 return kstat_open ();
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_link") 2>conftest.er1
16834 grep -v '^ *+' conftest.er1 >conftest.err
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16838 (exit $ac_status); } && {
16839 test -z "$ac_c_werror_flag" ||
16840 test ! -s conftest.err
16841 } && test -s conftest$ac_exeext &&
16842 $as_test_x conftest$ac_exeext; then
16843 ac_cv_lib_kstat_kstat_open=yes
16845 echo "$as_me: failed program was
:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_cv_lib_kstat_kstat_open=no
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16855 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16856 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16857 if test $ac_cv_lib_kstat_kstat_open = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_LIBKSTAT 1
16862 LIBS="-lkstat $LIBS"
16866 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16868 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16869 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16870 # to get the right answer into the cache.
16871 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16872 if test $ac_have_func = no; then
16873 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16874 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16875 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16876 echo $ECHO_N "(cached
) $ECHO_C" >&6
16878 ac_check_lib_save_LIBS=$LIBS
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16887 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16897 return elf_begin ();
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (ac_try="$ac_link"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_link") 2>conftest.er1
16911 grep -v '^ *+' conftest.er1 >conftest.err
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16915 (exit $ac_status); } && {
16916 test -z "$ac_c_werror_flag" ||
16917 test ! -s conftest.err
16918 } && test -s conftest$ac_exeext &&
16919 $as_test_x conftest$ac_exeext; then
16920 ac_cv_lib_elf_elf_begin=yes
16922 echo "$as_me: failed program was
:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_lib_elf_elf_begin=no
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16932 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16933 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16934 if test $ac_cv_lib_elf_elf_begin = yes; then
16939 if test $ac_have_func = no; then
16940 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16941 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16942 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16943 echo $ECHO_N "(cached
) $ECHO_C" >&6
16945 ac_check_lib_save_LIBS=$LIBS
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16954 /* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16964 return kvm_open ();
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (ac_try="$ac_link"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_link") 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16982 (exit $ac_status); } && {
16983 test -z "$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16985 } && test -s conftest$ac_exeext &&
16986 $as_test_x conftest$ac_exeext; then
16987 ac_cv_lib_kvm_kvm_open=yes
16989 echo "$as_me: failed program was
:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_cv_lib_kvm_kvm_open=no
16995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16996 conftest$ac_exeext conftest.$ac_ext
16997 LIBS=$ac_check_lib_save_LIBS
16999 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17000 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17001 if test $ac_cv_lib_kvm_kvm_open = yes; then
17005 # Check for the 4.4BSD definition of getloadavg.
17006 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17007 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17008 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17009 echo $ECHO_N "(cached
) $ECHO_C" >&6
17011 ac_check_lib_save_LIBS=$LIBS
17012 LIBS="-lutil $LIBS"
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17020 /* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17026 char getloadavg ();
17030 return getloadavg ();
17035 rm -f conftest.$ac_objext conftest$ac_exeext
17036 if { (ac_try="$ac_link"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_link") 2>conftest.er1
17044 grep -v '^ *+' conftest.er1 >conftest.err
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest$ac_exeext &&
17052 $as_test_x conftest$ac_exeext; then
17053 ac_cv_lib_util_getloadavg=yes
17055 echo "$as_me: failed program was
:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_cv_lib_util_getloadavg=no
17061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17062 conftest$ac_exeext conftest.$ac_ext
17063 LIBS=$ac_check_lib_save_LIBS
17065 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17066 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17067 if test $ac_cv_lib_util_getloadavg = yes; then
17068 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17073 if test $ac_have_func = no; then
17074 # There is a commonly available library for RS/6000 AIX.
17075 # Since it is not a standard part of AIX, it might be installed locally.
17076 ac_getloadavg_LIBS=$LIBS
17077 LIBS="-L/usr
/local
/lib
$LIBS"
17078 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17079 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17080 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17081 echo $ECHO_N "(cached
) $ECHO_C" >&6
17083 ac_check_lib_save_LIBS=$LIBS
17084 LIBS="-lgetloadavg $LIBS"
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17098 char getloadavg ();
17102 return getloadavg ();
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (ac_try="$ac_link"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_link") 2>conftest.er1
17116 grep -v '^ *+' conftest.er1 >conftest.err
17118 cat conftest.err >&5
17119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17120 (exit $ac_status); } && {
17121 test -z "$ac_c_werror_flag" ||
17122 test ! -s conftest.err
17123 } && test -s conftest$ac_exeext &&
17124 $as_test_x conftest$ac_exeext; then
17125 ac_cv_lib_getloadavg_getloadavg=yes
17127 echo "$as_me: failed program was
:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 ac_cv_lib_getloadavg_getloadavg=no
17133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17137 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17138 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17139 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17140 LIBS="-lgetloadavg $LIBS"
17142 LIBS=$ac_getloadavg_LIBS
17147 # Make sure it is really in the library, if we think we found it,
17148 # otherwise set up the replacement function.
17150 for ac_func in getloadavg
17152 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17153 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17154 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17155 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17156 echo $ECHO_N "(cached
) $ECHO_C" >&6
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166 #define $ac_func innocuous_$ac_func
17168 /* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17174 # include <limits.h>
17176 # include <assert.h>
17181 /* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17188 /* The GNU C library defines this for functions which it implements
17189 to always fail with ENOSYS. Some functions are actually named
17190 something starting with __ and the normal name is an alias. */
17191 #if defined __stub_$ac_func || defined __stub___$ac_func
17198 return $ac_func ();
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_link") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17216 (exit $ac_status); } && {
17217 test -z "$ac_c_werror_flag" ||
17218 test ! -s conftest.err
17219 } && test -s conftest$ac_exeext &&
17220 $as_test_x conftest$ac_exeext; then
17221 eval "$as_ac_var=yes"
17223 echo "$as_me: failed program was
:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 eval "$as_ac_var=no
"
17229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17230 conftest$ac_exeext conftest.$ac_ext
17232 ac_res=`eval echo '${'$as_ac_var'}'`
17233 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17234 echo "${ECHO_T}$ac_res" >&6; }
17235 if test `eval echo '${'$as_ac_var'}'` = yes; then
17236 cat >>confdefs.h <<_ACEOF
17237 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17241 case " $LIBOBJS " in
17242 *" getloadavg.
$ac_objext "* ) ;;
17243 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17248 cat >>confdefs.h <<\_ACEOF
17249 #define C_GETLOADAVG 1
17252 # Figure out what our getloadavg.c needs.
17254 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17255 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17256 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17257 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17258 echo $ECHO_N "(cached
) $ECHO_C" >&6
17260 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17261 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17263 # Is the header compilable?
17264 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17265 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 $ac_includes_default
17273 #include <sys/dg_sys_info.h>
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_compile") 2>conftest.er1
17284 grep -v '^ *+' conftest.er1 >conftest.err
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17288 (exit $ac_status); } && {
17289 test -z "$ac_c_werror_flag" ||
17290 test ! -s conftest.err
17291 } && test -s conftest.$ac_objext; then
17292 ac_header_compiler=yes
17294 echo "$as_me: failed program was
:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_header_compiler=no
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6; }
17304 # Is the header present?
17305 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17306 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 #include <sys/dg_sys_info.h>
17315 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17327 (exit $ac_status); } >/dev/null && {
17328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17329 test ! -s conftest.err
17331 ac_header_preproc=yes
17333 echo "$as_me: failed program was
:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 ac_header_preproc=no
17339 rm -f conftest.err conftest.$ac_ext
17340 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17341 echo "${ECHO_T}$ac_header_preproc" >&6; }
17343 # So? What about this header?
17344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17346 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17347 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17348 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17349 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17350 ac_header_preproc=yes
17353 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17354 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17355 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17356 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17357 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17358 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17359 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17360 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17361 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17362 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17363 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17364 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17368 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17369 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17370 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17371 echo $ECHO_N "(cached
) $ECHO_C" >&6
17373 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17375 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17376 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17379 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17382 cat >>confdefs.h <<\_ACEOF
17387 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17388 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17389 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17390 echo $ECHO_N "(cached
) $ECHO_C" >&6
17392 ac_check_lib_save_LIBS=$LIBS
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17407 char dg_sys_info ();
17411 return dg_sys_info ();
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_link") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest$ac_exeext &&
17433 $as_test_x conftest$ac_exeext; then
17434 ac_cv_lib_dgc_dg_sys_info=yes
17436 echo "$as_me: failed program was
:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_cv_lib_dgc_dg_sys_info=no
17442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17443 conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17446 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17447 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17448 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17449 cat >>confdefs.h <<_ACEOF
17450 #define HAVE_LIBDGC 1
17461 if test "${ac_cv_header_locale_h+set}" = set; then
17462 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17463 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17464 if test "${ac_cv_header_locale_h+set}" = set; then
17465 echo $ECHO_N "(cached
) $ECHO_C" >&6
17467 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17468 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17470 # Is the header compilable?
17471 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17472 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17480 #include <locale.h>
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_compile") 2>conftest.er1
17491 grep -v '^ *+' conftest.er1 >conftest.err
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17495 (exit $ac_status); } && {
17496 test -z "$ac_c_werror_flag" ||
17497 test ! -s conftest.err
17498 } && test -s conftest.$ac_objext; then
17499 ac_header_compiler=yes
17501 echo "$as_me: failed program was
:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_header_compiler=no
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17509 echo "${ECHO_T}$ac_header_compiler" >&6; }
17511 # Is the header present?
17512 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17513 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17514 cat >conftest.$ac_ext <<_ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 #include <locale.h>
17522 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17534 (exit $ac_status); } >/dev/null && {
17535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17538 ac_header_preproc=yes
17540 echo "$as_me: failed program was
:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_header_preproc=no
17546 rm -f conftest.err conftest.$ac_ext
17547 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17548 echo "${ECHO_T}$ac_header_preproc" >&6; }
17550 # So? What about this header?
17551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17553 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17554 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17555 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17556 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17557 ac_header_preproc=yes
17560 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17561 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17562 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17563 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17564 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17565 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17566 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17567 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17568 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17569 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17570 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17571 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17575 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17576 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17577 if test "${ac_cv_header_locale_h+set}" = set; then
17578 echo $ECHO_N "(cached
) $ECHO_C" >&6
17580 ac_cv_header_locale_h=$ac_header_preproc
17582 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17583 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17589 for ac_func in setlocale
17591 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17592 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17593 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17594 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17595 echo $ECHO_N "(cached
) $ECHO_C" >&6
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17605 #define $ac_func innocuous_$ac_func
17607 /* System header to define __stub macros and hopefully few prototypes,
17608 which can conflict with char $ac_func (); below.
17609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17610 <limits.h> exists even on freestanding compilers. */
17613 # include <limits.h>
17615 # include <assert.h>
17620 /* Override any GCC internal prototype to avoid an error.
17621 Use char because int might match the return type of a GCC
17622 builtin and then its argument prototype would still apply. */
17627 /* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630 #if defined __stub_$ac_func || defined __stub___$ac_func
17637 return $ac_func ();
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (ac_try="$ac_link"
17644 case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_link") 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17655 (exit $ac_status); } && {
17656 test -z "$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 } && test -s conftest$ac_exeext &&
17659 $as_test_x conftest$ac_exeext; then
17660 eval "$as_ac_var=yes"
17662 echo "$as_me: failed program was
:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 eval "$as_ac_var=no
"
17668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17669 conftest$ac_exeext conftest.$ac_ext
17671 ac_res=`eval echo '${'$as_ac_var'}'`
17672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17673 echo "${ECHO_T}$ac_res" >&6; }
17674 if test `eval echo '${'$as_ac_var'}'` = yes; then
17675 cat >>confdefs.h <<_ACEOF
17676 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17683 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17684 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17685 # Irix 4.0.5F has the header but not the library.
17686 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17689 cat >>confdefs.h <<\_ACEOF
17695 if test $ac_have_func = no; then
17696 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17697 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17698 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17699 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17700 echo $ECHO_N "(cached
) $ECHO_C" >&6
17702 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17703 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17705 # Is the header compilable?
17706 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17707 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$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 $ac_includes_default
17715 #include <inq_stats/cpustats.h>
17717 rm -f conftest.$ac_objext
17718 if { (ac_try="$ac_compile"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_compile") 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest.$ac_objext; then
17734 ac_header_compiler=yes
17736 echo "$as_me: failed program was
:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_header_compiler=no
17742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17744 echo "${ECHO_T}$ac_header_compiler" >&6; }
17746 # Is the header present?
17747 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17748 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 #include <inq_stats/cpustats.h>
17757 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17758 case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17769 (exit $ac_status); } >/dev/null && {
17770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17771 test ! -s conftest.err
17773 ac_header_preproc=yes
17775 echo "$as_me: failed program was
:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_header_preproc=no
17781 rm -f conftest.err conftest.$ac_ext
17782 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17783 echo "${ECHO_T}$ac_header_preproc" >&6; }
17785 # So? What about this header?
17786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17788 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17789 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17790 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17791 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17792 ac_header_preproc=yes
17795 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17796 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17797 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17798 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17799 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17800 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17801 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17802 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17803 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17804 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17805 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17806 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17810 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17811 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17812 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17813 echo $ECHO_N "(cached
) $ECHO_C" >&6
17815 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17817 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17818 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17821 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17824 cat >>confdefs.h <<\_ACEOF
17829 cat >>confdefs.h <<\_ACEOF
17838 if test $ac_have_func = no; then
17839 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17840 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17841 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17842 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17843 echo $ECHO_N "(cached
) $ECHO_C" >&6
17845 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17846 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17848 # Is the header compilable?
17849 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17850 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 $ac_includes_default
17858 #include <sys/cpustats.h>
17860 rm -f conftest.$ac_objext
17861 if { (ac_try="$ac_compile"
17862 case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_compile") 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17873 (exit $ac_status); } && {
17874 test -z "$ac_c_werror_flag" ||
17875 test ! -s conftest.err
17876 } && test -s conftest.$ac_objext; then
17877 ac_header_compiler=yes
17879 echo "$as_me: failed program was
:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ac_header_compiler=no
17885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17886 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17887 echo "${ECHO_T}$ac_header_compiler" >&6; }
17889 # Is the header present?
17890 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17891 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17892 cat >conftest.$ac_ext <<_ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 #include <sys/cpustats.h>
17900 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17901 case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17912 (exit $ac_status); } >/dev/null && {
17913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17916 ac_header_preproc=yes
17918 echo "$as_me: failed program was
:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_header_preproc=no
17924 rm -f conftest.err conftest.$ac_ext
17925 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17926 echo "${ECHO_T}$ac_header_preproc" >&6; }
17928 # So? What about this header?
17929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17931 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17932 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17933 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17934 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17935 ac_header_preproc=yes
17938 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17939 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17941 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17942 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17943 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17944 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17945 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17946 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17947 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17948 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17949 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17953 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17954 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17955 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17956 echo $ECHO_N "(cached
) $ECHO_C" >&6
17958 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17960 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17961 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17964 if test $ac_cv_header_sys_cpustats_h = yes; then
17965 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17974 if test $ac_have_func = no; then
17976 for ac_header in mach/mach.h
17978 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17980 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17981 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17983 echo $ECHO_N "(cached
) $ECHO_C" >&6
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17991 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <$ac_header>
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18020 echo "$as_me: failed program was
:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18032 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18041 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was
:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18073 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18076 ac_header_preproc=yes
18079 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18080 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18081 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18082 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18084 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18085 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18086 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18089 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18090 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18094 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18095 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18097 echo $ECHO_N "(cached
) $ECHO_C" >&6
18099 eval "$as_ac_Header=\
$ac_header_preproc"
18101 ac_res=`eval echo '${'$as_ac_Header'}'`
18102 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18118 for ac_header in nlist.h
18120 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18122 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18123 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18124 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18125 echo $ECHO_N "(cached
) $ECHO_C" >&6
18127 ac_res=`eval echo '${'$as_ac_Header'}'`
18128 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18129 echo "${ECHO_T}$ac_res" >&6; }
18131 # Is the header compilable?
18132 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18133 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18134 cat >conftest.$ac_ext <<_ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 $ac_includes_default
18141 #include <$ac_header>
18143 rm -f conftest.$ac_objext
18144 if { (ac_try="$ac_compile"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_compile") 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest.$ac_objext; then
18160 ac_header_compiler=yes
18162 echo "$as_me: failed program was
:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_header_compiler=no
18168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18170 echo "${ECHO_T}$ac_header_compiler" >&6; }
18172 # Is the header present?
18173 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18174 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 #include <$ac_header>
18183 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18195 (exit $ac_status); } >/dev/null && {
18196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18199 ac_header_preproc=yes
18201 echo "$as_me: failed program was
:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_header_preproc=no
18207 rm -f conftest.err conftest.$ac_ext
18208 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18209 echo "${ECHO_T}$ac_header_preproc" >&6; }
18211 # So? What about this header?
18212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18214 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18215 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18216 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18218 ac_header_preproc=yes
18221 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18222 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18223 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18224 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18225 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18226 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18227 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18228 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18229 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18231 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18232 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18239 echo $ECHO_N "(cached
) $ECHO_C" >&6
18241 eval "$as_ac_Header=\
$ac_header_preproc"
18243 ac_res=`eval echo '${'$as_ac_Header'}'`
18244 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18245 echo "${ECHO_T}$ac_res" >&6; }
18248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18249 cat >>confdefs.h <<_ACEOF
18250 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18252 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18253 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18254 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18255 echo $ECHO_N "(cached
) $ECHO_C" >&6
18257 cat >conftest.$ac_ext <<_ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18268 static struct nlist ac_aggr;
18269 if (ac_aggr.n_un.n_name)
18275 rm -f conftest.$ac_objext
18276 if { (ac_try="$ac_compile"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_compile") 2>conftest.er1
18284 grep -v '^ *+' conftest.er1 >conftest.err
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18288 (exit $ac_status); } && {
18289 test -z "$ac_c_werror_flag" ||
18290 test ! -s conftest.err
18291 } && test -s conftest.$ac_objext; then
18292 ac_cv_member_struct_nlist_n_un_n_name=yes
18294 echo "$as_me: failed program was
:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18308 static struct nlist ac_aggr;
18309 if (sizeof ac_aggr.n_un.n_name)
18315 rm -f conftest.$ac_objext
18316 if { (ac_try="$ac_compile"
18317 case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_compile") 2>conftest.er1
18324 grep -v '^ *+' conftest.er1 >conftest.err
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18328 (exit $ac_status); } && {
18329 test -z "$ac_c_werror_flag" ||
18330 test ! -s conftest.err
18331 } && test -s conftest.$ac_objext; then
18332 ac_cv_member_struct_nlist_n_un_n_name=yes
18334 echo "$as_me: failed program was
:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 ac_cv_member_struct_nlist_n_un_n_name=no
18340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18346 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18347 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18354 cat >>confdefs.h <<\_ACEOF
18355 #define NLIST_NAME_UNION 1
18369 # Some definitions of getloadavg require that the program be installed setgid.
18370 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18371 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18372 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18373 echo $ECHO_N "(cached
) $ECHO_C" >&6
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18382 #ifdef LDAV_PRIVILEGED
18383 Yowza Am I SETGID yet
18386 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18387 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18388 ac_cv_func_getloadavg_setgid=yes
18390 ac_cv_func_getloadavg_setgid=no
18395 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18396 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18397 if test $ac_cv_func_getloadavg_setgid = yes; then
18400 cat >>confdefs.h <<\_ACEOF
18401 #define GETLOADAVG_PRIVILEGED 1
18408 if test $ac_cv_func_getloadavg_setgid = yes; then
18409 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18410 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18411 if test "${ac_cv_group_kmem+set}" = set; then
18412 echo $ECHO_N "(cached
) $ECHO_C" >&6
18414 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18415 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18416 # If we got an error (system does not support symlinks), try without -L.
18417 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18418 ac_cv_group_kmem=`echo $ac_ls_output \
18419 | sed -ne 's/[ ][ ]*/ /g;
18420 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18424 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18425 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18426 KMEM_GROUP=$ac_cv_group_kmem
18428 if test "x
$ac_save_LIBS" = x; then
18429 GETLOADAVG_LIBS=$LIBS
18431 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18437 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18438 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18439 if test "${ac_cv_sys_largefile_source+set}" = set; then
18440 echo $ECHO_N "(cached
) $ECHO_C" >&6
18443 cat >conftest.$ac_ext <<_ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 #include <sys/types.h> /* for off_t */
18454 int (*fp) (FILE *, off_t, int) = fseeko;
18455 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (ac_try="$ac_link"
18462 case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_link") 2>conftest.er1
18469 grep -v '^ *+' conftest.er1 >conftest.err
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18473 (exit $ac_status); } && {
18474 test -z "$ac_c_werror_flag" ||
18475 test ! -s conftest.err
18476 } && test -s conftest$ac_exeext &&
18477 $as_test_x conftest$ac_exeext; then
18478 ac_cv_sys_largefile_source=no; break
18480 echo "$as_me: failed program was
:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18487 conftest$ac_exeext conftest.$ac_ext
18488 cat >conftest.$ac_ext <<_ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h. */
18494 #define _LARGEFILE_SOURCE 1
18495 #include <sys/types.h> /* for off_t */
18500 int (*fp) (FILE *, off_t, int) = fseeko;
18501 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18519 (exit $ac_status); } && {
18520 test -z "$ac_c_werror_flag" ||
18521 test ! -s conftest.err
18522 } && test -s conftest$ac_exeext &&
18523 $as_test_x conftest$ac_exeext; then
18524 ac_cv_sys_largefile_source=1; break
18526 echo "$as_me: failed program was
:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18533 conftest$ac_exeext conftest.$ac_ext
18534 ac_cv_sys_largefile_source=unknown
18538 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18539 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18540 case $ac_cv_sys_largefile_source in #(
18543 cat >>confdefs.h <<_ACEOF
18544 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18550 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18551 # in glibc 2.1.3, but that breaks too many other things.
18552 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18553 if test $ac_cv_sys_largefile_source != unknown; then
18555 cat >>confdefs.h <<\_ACEOF
18556 #define HAVE_FSEEKO 1
18562 # Configure getopt.
18563 # getopt.m4 serial 10
18565 # The getopt module assume you want GNU getopt, with getopt_long etc,
18566 # rather than vanilla POSIX getopt. This means your your code should
18567 # always include <getopt.h> for the getopt prototypes.
18579 # Prerequisites of lib/getopt*.
18586 for ac_header in getopt.h
18588 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18589 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18590 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18591 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18592 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18593 echo $ECHO_N "(cached
) $ECHO_C" >&6
18595 ac_res=`eval echo '${'$as_ac_Header'}'`
18596 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18597 echo "${ECHO_T}$ac_res" >&6; }
18599 # Is the header compilable?
18600 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18601 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18602 cat >conftest.$ac_ext <<_ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 $ac_includes_default
18609 #include <$ac_header>
18611 rm -f conftest.$ac_objext
18612 if { (ac_try="$ac_compile"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_compile") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest.$ac_objext; then
18628 ac_header_compiler=yes
18630 echo "$as_me: failed program was
:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ac_header_compiler=no
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18638 echo "${ECHO_T}$ac_header_compiler" >&6; }
18640 # Is the header present?
18641 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18642 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 #include <$ac_header>
18651 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18652 case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18659 grep -v '^ *+' conftest.er1 >conftest.err
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18663 (exit $ac_status); } >/dev/null && {
18664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18665 test ! -s conftest.err
18667 ac_header_preproc=yes
18669 echo "$as_me: failed program was
:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 ac_header_preproc=no
18675 rm -f conftest.err conftest.$ac_ext
18676 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18677 echo "${ECHO_T}$ac_header_preproc" >&6; }
18679 # So? What about this header?
18680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18682 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18683 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18684 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18686 ac_header_preproc=yes
18689 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18690 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18691 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18692 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18693 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18694 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18695 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18696 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18697 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18699 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18700 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18704 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18705 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18706 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18707 echo $ECHO_N "(cached
) $ECHO_C" >&6
18709 eval "$as_ac_Header=\
$ac_header_preproc"
18711 ac_res=`eval echo '${'$as_ac_Header'}'`
18712 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18713 echo "${ECHO_T}$ac_res" >&6; }
18716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18727 if test -z "$GETOPT_H"; then
18729 for ac_func in getopt_long_only
18731 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18732 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18733 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18734 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18735 echo $ECHO_N "(cached
) $ECHO_C" >&6
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18745 #define $ac_func innocuous_$ac_func
18747 /* System header to define __stub macros and hopefully few prototypes,
18748 which can conflict with char $ac_func (); below.
18749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18750 <limits.h> exists even on freestanding compilers. */
18753 # include <limits.h>
18755 # include <assert.h>
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18767 /* The GNU C library defines this for functions which it implements
18768 to always fail with ENOSYS. Some functions are actually named
18769 something starting with __ and the normal name is an alias. */
18770 #if defined __stub_$ac_func || defined __stub___$ac_func
18777 return $ac_func ();
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (ac_try="$ac_link"
18784 case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_link") 2>conftest.er1
18791 grep -v '^ *+' conftest.er1 >conftest.err
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18795 (exit $ac_status); } && {
18796 test -z "$ac_c_werror_flag" ||
18797 test ! -s conftest.err
18798 } && test -s conftest$ac_exeext &&
18799 $as_test_x conftest$ac_exeext; then
18800 eval "$as_ac_var=yes"
18802 echo "$as_me: failed program was
:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 eval "$as_ac_var=no
"
18808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18809 conftest$ac_exeext conftest.$ac_ext
18811 ac_res=`eval echo '${'$as_ac_var'}'`
18812 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18813 echo "${ECHO_T}$ac_res" >&6; }
18814 if test `eval echo '${'$as_ac_var'}'` = yes; then
18815 cat >>confdefs.h <<_ACEOF
18816 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18826 if test -z "$GETOPT_H"; then
18827 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18828 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18829 if test "${ac_cv_have_decl_optreset+set}" = set; then
18830 echo $ECHO_N "(cached
) $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <getopt.h>
18851 rm -f conftest.$ac_objext
18852 if { (ac_try="$ac_compile"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_compile") 2>conftest.er1
18860 grep -v '^ *+' conftest.er1 >conftest.err
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18864 (exit $ac_status); } && {
18865 test -z "$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 } && test -s conftest.$ac_objext; then
18868 ac_cv_have_decl_optreset=yes
18870 echo "$as_me: failed program was
:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_cv_have_decl_optreset=no
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18878 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18879 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18880 if test $ac_cv_have_decl_optreset = yes; then
18886 if test -z "$GETOPT_H"; then
18887 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18888 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18889 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18890 echo $ECHO_N "(cached
) $ECHO_C" >&6
18892 if test "$cross_compiling" = yes; then
18893 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18894 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18895 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18896 echo $ECHO_N "(cached
) $ECHO_C" >&6
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 #include <getopt.h>
18909 #ifndef getopt_clip
18910 (void) getopt_clip;
18917 rm -f conftest.$ac_objext
18918 if { (ac_try="$ac_compile"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_compile") 2>conftest.er1
18926 grep -v '^ *+' conftest.er1 >conftest.err
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18930 (exit $ac_status); } && {
18931 test -z "$ac_c_werror_flag" ||
18932 test ! -s conftest.err
18933 } && test -s conftest.$ac_objext; then
18934 ac_cv_have_decl_getopt_clip=yes
18936 echo "$as_me: failed program was
:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_have_decl_getopt_clip=no
18942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18945 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18946 if test $ac_cv_have_decl_getopt_clip = yes; then
18947 gl_cv_func_gnu_getopt=no
18949 gl_cv_func_gnu_getopt=yes
18953 cat >conftest.$ac_ext <<_ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18959 #include <getopt.h>
18965 myargv[0] = "conftest
";
18968 return getopt (2, myargv, "+a
") != '?';
18974 rm -f conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_link") 2>&5
18983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 gl_cv_func_gnu_getopt=yes
18996 echo "$as_me: program exited with status
$ac_status" >&5
18997 echo "$as_me: failed program was
:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ( exit $ac_status )
19001 gl_cv_func_gnu_getopt=no
19003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19009 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19010 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19017 if test -n "$GETOPT_H"; then
19022 cat >>confdefs.h <<\_ACEOF
19023 #define __GETOPT_PREFIX rpl_
19029 GETOPTOBJS='getopt.o getopt1.o'
19036 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19037 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19038 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19039 echo $ECHO_N "(cached
) $ECHO_C" >&6
19041 # Use it with a single arg.
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 $ac_includes_default
19057 rm -f conftest.$ac_objext
19058 if { (ac_try="$ac_compile"
19059 case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_compile") 2>conftest.er1
19066 grep -v '^ *+' conftest.er1 >conftest.err
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19070 (exit $ac_status); } && {
19071 test -z "$ac_c_werror_flag" ||
19072 test ! -s conftest.err
19073 } && test -s conftest.$ac_objext; then
19074 ac_cv_func_getpgrp_void=no
19076 echo "$as_me: failed program was
:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_func_getpgrp_void=yes
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19085 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19086 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19087 if test $ac_cv_func_getpgrp_void = yes; then
19089 cat >>confdefs.h <<\_ACEOF
19090 #define GETPGRP_VOID 1
19097 for ac_func in strftime
19099 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19100 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19101 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19102 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19103 echo $ECHO_N "(cached
) $ECHO_C" >&6
19105 cat >conftest.$ac_ext <<_ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19113 #define $ac_func innocuous_$ac_func
19115 /* System header to define __stub macros and hopefully few prototypes,
19116 which can conflict with char $ac_func (); below.
19117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19118 <limits.h> exists even on freestanding compilers. */
19121 # include <limits.h>
19123 # include <assert.h>
19128 /* Override any GCC internal prototype to avoid an error.
19129 Use char because int might match the return type of a GCC
19130 builtin and then its argument prototype would still apply. */
19135 /* The GNU C library defines this for functions which it implements
19136 to always fail with ENOSYS. Some functions are actually named
19137 something starting with __ and the normal name is an alias. */
19138 #if defined __stub_$ac_func || defined __stub___$ac_func
19145 return $ac_func ();
19150 rm -f conftest.$ac_objext conftest$ac_exeext
19151 if { (ac_try="$ac_link"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_link") 2>conftest.er1
19159 grep -v '^ *+' conftest.er1 >conftest.err
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19163 (exit $ac_status); } && {
19164 test -z "$ac_c_werror_flag" ||
19165 test ! -s conftest.err
19166 } && test -s conftest$ac_exeext &&
19167 $as_test_x conftest$ac_exeext; then
19168 eval "$as_ac_var=yes"
19170 echo "$as_me: failed program was
:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19173 eval "$as_ac_var=no
"
19176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19177 conftest$ac_exeext conftest.$ac_ext
19179 ac_res=`eval echo '${'$as_ac_var'}'`
19180 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19181 echo "${ECHO_T}$ac_res" >&6; }
19182 if test `eval echo '${'$as_ac_var'}'` = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19188 # strftime is in -lintl on SCO UNIX.
19189 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19190 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19191 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19192 echo $ECHO_N "(cached
) $ECHO_C" >&6
19194 ac_check_lib_save_LIBS=$LIBS
19195 LIBS="-lintl $LIBS"
19196 cat >conftest.$ac_ext <<_ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19203 /* Override any GCC internal prototype to avoid an error.
19204 Use char because int might match the return type of a GCC
19205 builtin and then its argument prototype would still apply. */
19213 return strftime ();
19218 rm -f conftest.$ac_objext conftest$ac_exeext
19219 if { (ac_try="$ac_link"
19220 case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_link") 2>conftest.er1
19227 grep -v '^ *+' conftest.er1 >conftest.err
19229 cat conftest.err >&5
19230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19231 (exit $ac_status); } && {
19232 test -z "$ac_c_werror_flag" ||
19233 test ! -s conftest.err
19234 } && test -s conftest$ac_exeext &&
19235 $as_test_x conftest$ac_exeext; then
19236 ac_cv_lib_intl_strftime=yes
19238 echo "$as_me: failed program was
:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_cv_lib_intl_strftime=no
19244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19245 conftest$ac_exeext conftest.$ac_ext
19246 LIBS=$ac_check_lib_save_LIBS
19248 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19249 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19250 if test $ac_cv_lib_intl_strftime = yes; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_STRFTIME 1
19255 LIBS="-lintl $LIBS"
19264 for ac_func in grantpt
19266 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19267 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19268 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19269 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19270 echo $ECHO_N "(cached
) $ECHO_C" >&6
19272 cat >conftest.$ac_ext <<_ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19280 #define $ac_func innocuous_$ac_func
19282 /* System header to define __stub macros and hopefully few prototypes,
19283 which can conflict with char $ac_func (); below.
19284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19285 <limits.h> exists even on freestanding compilers. */
19288 # include <limits.h>
19290 # include <assert.h>
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19302 /* The GNU C library defines this for functions which it implements
19303 to always fail with ENOSYS. Some functions are actually named
19304 something starting with __ and the normal name is an alias. */
19305 #if defined __stub_$ac_func || defined __stub___$ac_func
19312 return $ac_func ();
19317 rm -f conftest.$ac_objext conftest$ac_exeext
19318 if { (ac_try="$ac_link"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_link") 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest$ac_exeext &&
19334 $as_test_x conftest$ac_exeext; then
19335 eval "$as_ac_var=yes"
19337 echo "$as_me: failed program was
:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 eval "$as_ac_var=no
"
19343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19344 conftest$ac_exeext conftest.$ac_ext
19346 ac_res=`eval echo '${'$as_ac_var'}'`
19347 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19348 echo "${ECHO_T}$ac_res" >&6; }
19349 if test `eval echo '${'$as_ac_var'}'` = yes; then
19350 cat >>confdefs.h <<_ACEOF
19351 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19358 # PTY-related GNU extensions.
19360 for ac_func in getpt
19362 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19363 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19364 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19365 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19366 echo $ECHO_N "(cached
) $ECHO_C" >&6
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19376 #define $ac_func innocuous_$ac_func
19378 /* System header to define __stub macros and hopefully few prototypes,
19379 which can conflict with char $ac_func (); below.
19380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19381 <limits.h> exists even on freestanding compilers. */
19384 # include <limits.h>
19386 # include <assert.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. */
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined __stub_$ac_func || defined __stub___$ac_func
19408 return $ac_func ();
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest$ac_exeext &&
19430 $as_test_x conftest$ac_exeext; then
19431 eval "$as_ac_var=yes"
19433 echo "$as_me: failed program was
:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 eval "$as_ac_var=no
"
19439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19440 conftest$ac_exeext conftest.$ac_ext
19442 ac_res=`eval echo '${'$as_ac_var'}'`
19443 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19444 echo "${ECHO_T}$ac_res" >&6; }
19445 if test `eval echo '${'$as_ac_var'}'` = yes; then
19446 cat >>confdefs.h <<_ACEOF
19447 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19454 # Check this now, so that we will NOT find the above functions in ncurses.
19455 # That is because we have not set up to link ncurses in lib-src.
19456 # It's better to believe a function is not available
19457 # than to expect to find it in ncurses.
19459 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19460 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19461 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19462 echo $ECHO_N "(cached
) $ECHO_C" >&6
19464 ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lncurses $LIBS"
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19497 grep -v '^ *+' conftest.er1 >conftest.err
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19501 (exit $ac_status); } && {
19502 test -z "$ac_c_werror_flag" ||
19503 test ! -s conftest.err
19504 } && test -s conftest$ac_exeext &&
19505 $as_test_x conftest$ac_exeext; then
19506 ac_cv_lib_ncurses_tparm=yes
19508 echo "$as_me: failed program was
:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19511 ac_cv_lib_ncurses_tparm=no
19514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19515 conftest$ac_exeext conftest.$ac_ext
19516 LIBS=$ac_check_lib_save_LIBS
19518 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19519 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19520 if test $ac_cv_lib_ncurses_tparm = yes; then
19521 cat >>confdefs.h <<_ACEOF
19522 #define HAVE_LIBNCURSES 1
19525 LIBS="-lncurses $LIBS"
19530 # Do we need the Hesiod library to provide the support routines?
19531 if test "$with_hesiod" = yes ; then
19532 # Don't set $LIBS here -- see comments above.
19534 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19535 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19536 if test "${ac_cv_func_res_send+set}" = set; then
19537 echo $ECHO_N "(cached
) $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19547 #define res_send innocuous_res_send
19549 /* System header to define __stub macros and hopefully few prototypes,
19550 which can conflict with char res_send (); below.
19551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19552 <limits.h> exists even on freestanding compilers. */
19555 # include <limits.h>
19557 # include <assert.h>
19562 /* Override any GCC internal prototype to avoid an error.
19563 Use char because int might match the return type of a GCC
19564 builtin and then its argument prototype would still apply. */
19569 /* The GNU C library defines this for functions which it implements
19570 to always fail with ENOSYS. Some functions are actually named
19571 something starting with __ and the normal name is an alias. */
19572 #if defined __stub_res_send || defined __stub___res_send
19579 return res_send ();
19584 rm -f conftest.$ac_objext conftest$ac_exeext
19585 if { (ac_try="$ac_link"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_link") 2>conftest.er1
19593 grep -v '^ *+' conftest.er1 >conftest.err
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19597 (exit $ac_status); } && {
19598 test -z "$ac_c_werror_flag" ||
19599 test ! -s conftest.err
19600 } && test -s conftest$ac_exeext &&
19601 $as_test_x conftest$ac_exeext; then
19602 ac_cv_func_res_send=yes
19604 echo "$as_me: failed program was
:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19607 ac_cv_func_res_send=no
19610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19611 conftest$ac_exeext conftest.$ac_ext
19613 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19614 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19615 if test $ac_cv_func_res_send = yes; then
19618 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19619 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19620 if test "${ac_cv_func___res_send+set}" = set; then
19621 echo $ECHO_N "(cached
) $ECHO_C" >&6
19623 cat >conftest.$ac_ext <<_ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19631 #define __res_send innocuous___res_send
19633 /* System header to define __stub macros and hopefully few prototypes,
19634 which can conflict with char __res_send (); below.
19635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19636 <limits.h> exists even on freestanding compilers. */
19639 # include <limits.h>
19641 # include <assert.h>
19646 /* Override any GCC internal prototype to avoid an error.
19647 Use char because int might match the return type of a GCC
19648 builtin and then its argument prototype would still apply. */
19652 char __res_send ();
19653 /* The GNU C library defines this for functions which it implements
19654 to always fail with ENOSYS. Some functions are actually named
19655 something starting with __ and the normal name is an alias. */
19656 #if defined __stub___res_send || defined __stub_____res_send
19663 return __res_send ();
19668 rm -f conftest.$ac_objext conftest$ac_exeext
19669 if { (ac_try="$ac_link"
19670 case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19675 (eval "$ac_link") 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19681 (exit $ac_status); } && {
19682 test -z "$ac_c_werror_flag" ||
19683 test ! -s conftest.err
19684 } && test -s conftest$ac_exeext &&
19685 $as_test_x conftest$ac_exeext; then
19686 ac_cv_func___res_send=yes
19688 echo "$as_me: failed program was
:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ac_cv_func___res_send=no
19694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19695 conftest$ac_exeext conftest.$ac_ext
19697 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19698 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19699 if test $ac_cv_func___res_send = yes; then
19702 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19703 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19704 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19705 echo $ECHO_N "(cached
) $ECHO_C" >&6
19707 ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lresolv $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19726 return res_send ();
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_lib_resolv_res_send=yes
19751 echo "$as_me: failed program was
:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_lib_resolv_res_send=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19761 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19762 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19763 if test $ac_cv_lib_resolv_res_send = yes; then
19766 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19767 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19768 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19769 echo $ECHO_N "(cached
) $ECHO_C" >&6
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-lresolv $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19786 char __res_send ();
19790 return __res_send ();
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_lib_resolv___res_send=yes
19815 echo "$as_me: failed program was
:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_resolv___res_send=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19826 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19827 if test $ac_cv_lib_resolv___res_send = yes; then
19837 if test "$resolv" = yes ; then
19840 cat >>confdefs.h <<\_ACEOF
19841 #define HAVE_LIBRESOLV 1
19847 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19848 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19849 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19850 echo $ECHO_N "(cached
) $ECHO_C" >&6
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19860 #define hes_getmailhost innocuous_hes_getmailhost
19862 /* System header to define __stub macros and hopefully few prototypes,
19863 which can conflict with char hes_getmailhost (); below.
19864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19865 <limits.h> exists even on freestanding compilers. */
19868 # include <limits.h>
19870 # include <assert.h>
19873 #undef hes_getmailhost
19875 /* Override any GCC internal prototype to avoid an error.
19876 Use char because int might match the return type of a GCC
19877 builtin and then its argument prototype would still apply. */
19881 char hes_getmailhost ();
19882 /* The GNU C library defines this for functions which it implements
19883 to always fail with ENOSYS. Some functions are actually named
19884 something starting with __ and the normal name is an alias. */
19885 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19892 return hes_getmailhost ();
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_link") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest$ac_exeext &&
19914 $as_test_x conftest$ac_exeext; then
19915 ac_cv_func_hes_getmailhost=yes
19917 echo "$as_me: failed program was
:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_cv_func_hes_getmailhost=no
19923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19924 conftest$ac_exeext conftest.$ac_ext
19926 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19927 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19928 if test $ac_cv_func_hes_getmailhost = yes; then
19931 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19932 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19933 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19934 echo $ECHO_N "(cached
) $ECHO_C" >&6
19936 ac_check_lib_save_LIBS=$LIBS
19937 LIBS="-lhesiod $RESOLVLIB $LIBS"
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19951 char hes_getmailhost ();
19955 return hes_getmailhost ();
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext &&
19977 $as_test_x conftest$ac_exeext; then
19978 ac_cv_lib_hesiod_hes_getmailhost=yes
19980 echo "$as_me: failed program was
:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19983 ac_cv_lib_hesiod_hes_getmailhost=no
19986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19987 conftest$ac_exeext conftest.$ac_ext
19988 LIBS=$ac_check_lib_save_LIBS
19990 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19991 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19992 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19994 cat >>confdefs.h <<\_ACEOF
19995 #define HAVE_LIBHESIOD 1
20006 # These tell us which Kerberos-related libraries to use.
20007 if test "${with_kerberos+set}" = set; then
20009 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20010 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20011 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20012 echo $ECHO_N "(cached
) $ECHO_C" >&6
20014 ac_check_lib_save_LIBS=$LIBS
20015 LIBS="-lcom_err $LIBS"
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20023 /* Override any GCC internal prototype to avoid an error.
20024 Use char because int might match the return type of a GCC
20025 builtin and then its argument prototype would still apply. */
20038 rm -f conftest.$ac_objext conftest$ac_exeext
20039 if { (ac_try="$ac_link"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_link") 2>conftest.er1
20047 grep -v '^ *+' conftest.er1 >conftest.err
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20051 (exit $ac_status); } && {
20052 test -z "$ac_c_werror_flag" ||
20053 test ! -s conftest.err
20054 } && test -s conftest$ac_exeext &&
20055 $as_test_x conftest$ac_exeext; then
20056 ac_cv_lib_com_err_com_err=yes
20058 echo "$as_me: failed program was
:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_cv_lib_com_err_com_err=no
20064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20065 conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20068 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20069 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20070 if test $ac_cv_lib_com_err_com_err = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define HAVE_LIBCOM_ERR 1
20075 LIBS="-lcom_err $LIBS"
20080 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20081 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20082 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20083 echo $ECHO_N "(cached
) $ECHO_C" >&6
20085 ac_check_lib_save_LIBS=$LIBS
20086 LIBS="-lk5crypto $LIBS"
20087 cat >conftest.$ac_ext <<_ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20094 /* Override any GCC internal prototype to avoid an error.
20095 Use char because int might match the return type of a GCC
20096 builtin and then its argument prototype would still apply. */
20100 char mit_des_cbc_encrypt ();
20104 return mit_des_cbc_encrypt ();
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_link") 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest$ac_exeext &&
20126 $as_test_x conftest$ac_exeext; then
20127 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20129 echo "$as_me: failed program was
:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136 conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20139 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20140 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20141 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define HAVE_LIBK5CRYPTO 1
20146 LIBS="-lk5crypto $LIBS"
20151 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20152 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20153 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20154 echo $ECHO_N "(cached
) $ECHO_C" >&6
20156 ac_check_lib_save_LIBS=$LIBS
20157 LIBS="-lcrypto $LIBS"
20158 cat >conftest.$ac_ext <<_ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20171 char mit_des_cbc_encrypt ();
20175 return mit_des_cbc_encrypt ();
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_link") 2>conftest.er1
20189 grep -v '^ *+' conftest.er1 >conftest.err
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20193 (exit $ac_status); } && {
20194 test -z "$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 } && test -s conftest$ac_exeext &&
20197 $as_test_x conftest$ac_exeext; then
20198 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20200 echo "$as_me: failed program was
:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20210 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20211 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20212 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_LIBCRYPTO 1
20217 LIBS="-lcrypto $LIBS"
20222 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20223 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20224 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20225 echo $ECHO_N "(cached
) $ECHO_C" >&6
20227 ac_check_lib_save_LIBS=$LIBS
20228 LIBS="-lkrb5 $LIBS"
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20242 char krb5_init_context ();
20246 return krb5_init_context ();
20251 rm -f conftest.$ac_objext conftest$ac_exeext
20252 if { (ac_try="$ac_link"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_link") 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20264 (exit $ac_status); } && {
20265 test -z "$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 } && test -s conftest$ac_exeext &&
20268 $as_test_x conftest$ac_exeext; then
20269 ac_cv_lib_krb5_krb5_init_context=yes
20271 echo "$as_me: failed program was
:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ac_cv_lib_krb5_krb5_init_context=no
20277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20278 conftest$ac_exeext conftest.$ac_ext
20279 LIBS=$ac_check_lib_save_LIBS
20281 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20282 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20283 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define HAVE_LIBKRB5 1
20288 LIBS="-lkrb5 $LIBS"
20292 if test "${with_kerberos5+set}" != set; then
20294 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20295 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20296 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20297 echo $ECHO_N "(cached
) $ECHO_C" >&6
20299 ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-ldes425 $LIBS"
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20308 /* Override any GCC internal prototype to avoid an error.
20309 Use char because int might match the return type of a GCC
20310 builtin and then its argument prototype would still apply. */
20314 char des_cbc_encrypt ();
20318 return des_cbc_encrypt ();
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (ac_try="$ac_link"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_link") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest$ac_exeext &&
20340 $as_test_x conftest$ac_exeext; then
20341 ac_cv_lib_des425_des_cbc_encrypt=yes
20343 echo "$as_me: failed program was
:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_cv_lib_des425_des_cbc_encrypt=no
20349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20350 conftest$ac_exeext conftest.$ac_ext
20351 LIBS=$ac_check_lib_save_LIBS
20353 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20354 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20355 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20356 cat >>confdefs.h <<_ACEOF
20357 #define HAVE_LIBDES425 1
20360 LIBS="-ldes425 $LIBS"
20364 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20365 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20366 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20367 echo $ECHO_N "(cached
) $ECHO_C" >&6
20369 ac_check_lib_save_LIBS=$LIBS
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20384 char des_cbc_encrypt ();
20388 return des_cbc_encrypt ();
20393 rm -f conftest.$ac_objext conftest$ac_exeext
20394 if { (ac_try="$ac_link"
20395 case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_link") 2>conftest.er1
20402 grep -v '^ *+' conftest.er1 >conftest.err
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20406 (exit $ac_status); } && {
20407 test -z "$ac_c_werror_flag" ||
20408 test ! -s conftest.err
20409 } && test -s conftest$ac_exeext &&
20410 $as_test_x conftest$ac_exeext; then
20411 ac_cv_lib_des_des_cbc_encrypt=yes
20413 echo "$as_me: failed program was
:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20416 ac_cv_lib_des_des_cbc_encrypt=no
20419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20420 conftest$ac_exeext conftest.$ac_ext
20421 LIBS=$ac_check_lib_save_LIBS
20423 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20424 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20425 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20426 cat >>confdefs.h <<_ACEOF
20427 #define HAVE_LIBDES 1
20437 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20438 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20439 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20440 echo $ECHO_N "(cached
) $ECHO_C" >&6
20442 ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-lkrb4 $LIBS"
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20457 char krb_get_cred ();
20461 return krb_get_cred ();
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_link") 2>conftest.er1
20475 grep -v '^ *+' conftest.er1 >conftest.err
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest$ac_exeext &&
20483 $as_test_x conftest$ac_exeext; then
20484 ac_cv_lib_krb4_krb_get_cred=yes
20486 echo "$as_me: failed program was
:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_lib_krb4_krb_get_cred=no
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20494 LIBS=$ac_check_lib_save_LIBS
20496 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20497 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20498 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_LIBKRB4 1
20503 LIBS="-lkrb4 $LIBS"
20507 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20508 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20509 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20510 echo $ECHO_N "(cached
) $ECHO_C" >&6
20512 ac_check_lib_save_LIBS=$LIBS
20514 cat >conftest.$ac_ext <<_ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20521 /* Override any GCC internal prototype to avoid an error.
20522 Use char because int might match the return type of a GCC
20523 builtin and then its argument prototype would still apply. */
20527 char krb_get_cred ();
20531 return krb_get_cred ();
20536 rm -f conftest.$ac_objext conftest$ac_exeext
20537 if { (ac_try="$ac_link"
20538 case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_link") 2>conftest.er1
20545 grep -v '^ *+' conftest.er1 >conftest.err
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20549 (exit $ac_status); } && {
20550 test -z "$ac_c_werror_flag" ||
20551 test ! -s conftest.err
20552 } && test -s conftest$ac_exeext &&
20553 $as_test_x conftest$ac_exeext; then
20554 ac_cv_lib_krb_krb_get_cred=yes
20556 echo "$as_me: failed program was
:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_cv_lib_krb_krb_get_cred=no
20562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20563 conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20566 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20567 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20568 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_LIBKRB 1
20581 if test "${with_kerberos5+set}" = set; then
20583 for ac_header in krb5.h
20585 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20586 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20587 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20588 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20589 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20590 echo $ECHO_N "(cached
) $ECHO_C" >&6
20592 ac_res=`eval echo '${'$as_ac_Header'}'`
20593 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20596 # Is the header compilable?
20597 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20598 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 #include <$ac_header>
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20625 ac_header_compiler=yes
20627 echo "$as_me: failed program was
:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_header_compiler=no
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20635 echo "${ECHO_T}$ac_header_compiler" >&6; }
20637 # Is the header present?
20638 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20639 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #include <$ac_header>
20648 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20660 (exit $ac_status); } >/dev/null && {
20661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20664 ac_header_preproc=yes
20666 echo "$as_me: failed program was
:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 ac_header_preproc=no
20672 rm -f conftest.err conftest.$ac_ext
20673 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20674 echo "${ECHO_T}$ac_header_preproc" >&6; }
20676 # So? What about this header?
20677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20679 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20680 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20681 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20683 ac_header_preproc=yes
20686 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20687 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20688 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20689 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20690 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20691 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20692 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20693 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20694 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20696 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20697 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20701 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20702 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20703 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20704 echo $ECHO_N "(cached
) $ECHO_C" >&6
20706 eval "$as_ac_Header=\
$ac_header_preproc"
20708 ac_res=`eval echo '${'$as_ac_Header'}'`
20709 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20710 echo "${ECHO_T}$ac_res" >&6; }
20713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20724 for ac_header in des.h
20726 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20727 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20728 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20729 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20730 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20731 echo $ECHO_N "(cached
) $ECHO_C" >&6
20733 ac_res=`eval echo '${'$as_ac_Header'}'`
20734 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20735 echo "${ECHO_T}$ac_res" >&6; }
20737 # Is the header compilable?
20738 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20739 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 $ac_includes_default
20747 #include <$ac_header>
20749 rm -f conftest.$ac_objext
20750 if { (ac_try="$ac_compile"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_compile") 2>conftest.er1
20758 grep -v '^ *+' conftest.er1 >conftest.err
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20762 (exit $ac_status); } && {
20763 test -z "$ac_c_werror_flag" ||
20764 test ! -s conftest.err
20765 } && test -s conftest.$ac_objext; then
20766 ac_header_compiler=yes
20768 echo "$as_me: failed program was
:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 ac_header_compiler=no
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20776 echo "${ECHO_T}$ac_header_compiler" >&6; }
20778 # Is the header present?
20779 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20780 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20781 cat >conftest.$ac_ext <<_ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 #include <$ac_header>
20789 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20797 grep -v '^ *+' conftest.er1 >conftest.err
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20801 (exit $ac_status); } >/dev/null && {
20802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20803 test ! -s conftest.err
20805 ac_header_preproc=yes
20807 echo "$as_me: failed program was
:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 ac_header_preproc=no
20813 rm -f conftest.err conftest.$ac_ext
20814 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20815 echo "${ECHO_T}$ac_header_preproc" >&6; }
20817 # So? What about this header?
20818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20820 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20821 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20822 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20824 ac_header_preproc=yes
20827 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20828 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20829 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20830 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20831 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20832 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20833 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20834 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20835 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20837 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20838 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20842 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20843 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20844 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20845 echo $ECHO_N "(cached
) $ECHO_C" >&6
20847 eval "$as_ac_Header=\
$ac_header_preproc"
20849 ac_res=`eval echo '${'$as_ac_Header'}'`
20850 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20851 echo "${ECHO_T}$ac_res" >&6; }
20854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20855 cat >>confdefs.h <<_ACEOF
20856 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20861 for ac_header in kerberosIV/des.h
20863 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20864 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20865 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20866 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20867 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20868 echo $ECHO_N "(cached
) $ECHO_C" >&6
20870 ac_res=`eval echo '${'$as_ac_Header'}'`
20871 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20872 echo "${ECHO_T}$ac_res" >&6; }
20874 # Is the header compilable?
20875 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20876 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 $ac_includes_default
20884 #include <$ac_header>
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20903 ac_header_compiler=yes
20905 echo "$as_me: failed program was
:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_header_compiler=no
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20913 echo "${ECHO_T}$ac_header_compiler" >&6; }
20915 # Is the header present?
20916 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20917 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20918 cat >conftest.$ac_ext <<_ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 #include <$ac_header>
20926 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20938 (exit $ac_status); } >/dev/null && {
20939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20942 ac_header_preproc=yes
20944 echo "$as_me: failed program was
:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ac_header_preproc=no
20950 rm -f conftest.err conftest.$ac_ext
20951 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20952 echo "${ECHO_T}$ac_header_preproc" >&6; }
20954 # So? What about this header?
20955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20957 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20958 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20959 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20961 ac_header_preproc=yes
20964 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20965 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20966 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20967 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20968 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20969 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20970 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20971 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20972 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20974 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20975 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20979 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20980 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20982 echo $ECHO_N "(cached
) $ECHO_C" >&6
20984 eval "$as_ac_Header=\
$ac_header_preproc"
20986 ac_res=`eval echo '${'$as_ac_Header'}'`
20987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20988 echo "${ECHO_T}$ac_res" >&6; }
20991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20992 cat >>confdefs.h <<_ACEOF
20993 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20998 for ac_header in kerberos/des.h
21000 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21001 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21002 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21003 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21004 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21005 echo $ECHO_N "(cached
) $ECHO_C" >&6
21007 ac_res=`eval echo '${'$as_ac_Header'}'`
21008 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21009 echo "${ECHO_T}$ac_res" >&6; }
21011 # Is the header compilable?
21012 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21013 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21014 cat >conftest.$ac_ext <<_ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 $ac_includes_default
21021 #include <$ac_header>
21023 rm -f conftest.$ac_objext
21024 if { (ac_try="$ac_compile"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_compile") 2>conftest.er1
21032 grep -v '^ *+' conftest.er1 >conftest.err
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest.$ac_objext; then
21040 ac_header_compiler=yes
21042 echo "$as_me: failed program was
:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21045 ac_header_compiler=no
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21050 echo "${ECHO_T}$ac_header_compiler" >&6; }
21052 # Is the header present?
21053 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21054 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21055 cat >conftest.$ac_ext <<_ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 #include <$ac_header>
21063 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21064 case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21071 grep -v '^ *+' conftest.er1 >conftest.err
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21075 (exit $ac_status); } >/dev/null && {
21076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21077 test ! -s conftest.err
21079 ac_header_preproc=yes
21081 echo "$as_me: failed program was
:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_header_preproc=no
21087 rm -f conftest.err conftest.$ac_ext
21088 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21089 echo "${ECHO_T}$ac_header_preproc" >&6; }
21091 # So? What about this header?
21092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21094 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21095 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21096 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21098 ac_header_preproc=yes
21101 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21102 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21103 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21104 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21105 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21106 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21107 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21108 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21109 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21111 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21112 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21116 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21117 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21118 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21119 echo $ECHO_N "(cached
) $ECHO_C" >&6
21121 eval "$as_ac_Header=\
$ac_header_preproc"
21123 ac_res=`eval echo '${'$as_ac_Header'}'`
21124 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21125 echo "${ECHO_T}$ac_res" >&6; }
21128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21129 cat >>confdefs.h <<_ACEOF
21130 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21146 for ac_header in krb.h
21148 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21149 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21150 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21151 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached
) $ECHO_C" >&6
21155 ac_res=`eval echo '${'$as_ac_Header'}'`
21156 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21157 echo "${ECHO_T}$ac_res" >&6; }
21159 # Is the header compilable?
21160 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21161 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21162 cat >conftest.$ac_ext <<_ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 $ac_includes_default
21169 #include <$ac_header>
21171 rm -f conftest.$ac_objext
21172 if { (ac_try="$ac_compile"
21173 case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_compile") 2>conftest.er1
21180 grep -v '^ *+' conftest.er1 >conftest.err
21182 cat conftest.err >&5
21183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21184 (exit $ac_status); } && {
21185 test -z "$ac_c_werror_flag" ||
21186 test ! -s conftest.err
21187 } && test -s conftest.$ac_objext; then
21188 ac_header_compiler=yes
21190 echo "$as_me: failed program was
:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21193 ac_header_compiler=no
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21198 echo "${ECHO_T}$ac_header_compiler" >&6; }
21200 # Is the header present?
21201 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21202 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <$ac_header>
21211 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21223 (exit $ac_status); } >/dev/null && {
21224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21225 test ! -s conftest.err
21227 ac_header_preproc=yes
21229 echo "$as_me: failed program was
:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ac_header_preproc=no
21235 rm -f conftest.err conftest.$ac_ext
21236 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21237 echo "${ECHO_T}$ac_header_preproc" >&6; }
21239 # So? What about this header?
21240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21242 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21243 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21244 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21246 ac_header_preproc=yes
21249 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21250 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21251 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21252 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21253 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21254 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21255 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21256 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21257 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21259 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21260 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21264 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21265 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21266 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21267 echo $ECHO_N "(cached
) $ECHO_C" >&6
21269 eval "$as_ac_Header=\
$ac_header_preproc"
21271 ac_res=`eval echo '${'$as_ac_Header'}'`
21272 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21273 echo "${ECHO_T}$ac_res" >&6; }
21276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21277 cat >>confdefs.h <<_ACEOF
21278 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21283 for ac_header in kerberosIV/krb.h
21285 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21286 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21287 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21288 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21290 echo $ECHO_N "(cached
) $ECHO_C" >&6
21292 ac_res=`eval echo '${'$as_ac_Header'}'`
21293 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21294 echo "${ECHO_T}$ac_res" >&6; }
21296 # Is the header compilable?
21297 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21298 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21306 #include <$ac_header>
21308 rm -f conftest.$ac_objext
21309 if { (ac_try="$ac_compile"
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_compile") 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); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21325 ac_header_compiler=yes
21327 echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_compiler=no
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21335 echo "${ECHO_T}$ac_header_compiler" >&6; }
21337 # Is the header present?
21338 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21339 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21340 cat >conftest.$ac_ext <<_ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 #include <$ac_header>
21348 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21356 grep -v '^ *+' conftest.er1 >conftest.err
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21360 (exit $ac_status); } >/dev/null && {
21361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21364 ac_header_preproc=yes
21366 echo "$as_me: failed program was
:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_header_preproc=no
21372 rm -f conftest.err conftest.$ac_ext
21373 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21374 echo "${ECHO_T}$ac_header_preproc" >&6; }
21376 # So? What about this header?
21377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21379 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21380 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21381 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21383 ac_header_preproc=yes
21386 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21387 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21388 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21389 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21390 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21391 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21392 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21393 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21394 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21396 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21397 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21401 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21402 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21403 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21404 echo $ECHO_N "(cached
) $ECHO_C" >&6
21406 eval "$as_ac_Header=\
$ac_header_preproc"
21408 ac_res=`eval echo '${'$as_ac_Header'}'`
21409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21410 echo "${ECHO_T}$ac_res" >&6; }
21413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21414 cat >>confdefs.h <<_ACEOF
21415 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21420 for ac_header in kerberos/krb.h
21422 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21423 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21424 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21425 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached
) $ECHO_C" >&6
21429 ac_res=`eval echo '${'$as_ac_Header'}'`
21430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21431 echo "${ECHO_T}$ac_res" >&6; }
21433 # Is the header compilable?
21434 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21435 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 $ac_includes_default
21443 #include <$ac_header>
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21462 ac_header_compiler=yes
21464 echo "$as_me: failed program was
:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21467 ac_header_compiler=no
21470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21472 echo "${ECHO_T}$ac_header_compiler" >&6; }
21474 # Is the header present?
21475 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21476 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 #include <$ac_header>
21485 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21497 (exit $ac_status); } >/dev/null && {
21498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21501 ac_header_preproc=yes
21503 echo "$as_me: failed program was
:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 ac_header_preproc=no
21509 rm -f conftest.err conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21511 echo "${ECHO_T}$ac_header_preproc" >&6; }
21513 # So? What about this header?
21514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21516 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21517 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21518 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21520 ac_header_preproc=yes
21523 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21524 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21525 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21526 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21527 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21528 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21529 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21530 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21531 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21533 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21534 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21538 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21539 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21540 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached
) $ECHO_C" >&6
21543 eval "$as_ac_Header=\
$ac_header_preproc"
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21551 cat >>confdefs.h <<_ACEOF
21552 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21569 for ac_header in com_err.h
21571 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21572 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21573 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21574 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21575 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21576 echo $ECHO_N "(cached
) $ECHO_C" >&6
21578 ac_res=`eval echo '${'$as_ac_Header'}'`
21579 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21580 echo "${ECHO_T}$ac_res" >&6; }
21582 # Is the header compilable?
21583 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21584 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21592 #include <$ac_header>
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_compile") 2>conftest.er1
21603 grep -v '^ *+' conftest.er1 >conftest.err
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21607 (exit $ac_status); } && {
21608 test -z "$ac_c_werror_flag" ||
21609 test ! -s conftest.err
21610 } && test -s conftest.$ac_objext; then
21611 ac_header_compiler=yes
21613 echo "$as_me: failed program was
:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ac_header_compiler=no
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21621 echo "${ECHO_T}$ac_header_compiler" >&6; }
21623 # Is the header present?
21624 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21625 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 #include <$ac_header>
21634 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21646 (exit $ac_status); } >/dev/null && {
21647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21650 ac_header_preproc=yes
21652 echo "$as_me: failed program was
:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_header_preproc=no
21658 rm -f conftest.err conftest.$ac_ext
21659 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21660 echo "${ECHO_T}$ac_header_preproc" >&6; }
21662 # So? What about this header?
21663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21665 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21666 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21667 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21669 ac_header_preproc=yes
21672 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21673 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21674 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21675 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21676 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21677 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21678 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21679 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21680 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21682 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21683 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21687 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21688 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21689 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21690 echo $ECHO_N "(cached
) $ECHO_C" >&6
21692 eval "$as_ac_Header=\
$ac_header_preproc"
21694 ac_res=`eval echo '${'$as_ac_Header'}'`
21695 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21696 echo "${ECHO_T}$ac_res" >&6; }
21699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21700 cat >>confdefs.h <<_ACEOF
21701 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21710 # Solaris requires -lintl if you want strerror (which calls dgettext)
21711 # to return localized messages.
21713 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21714 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21715 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21716 echo $ECHO_N "(cached
) $ECHO_C" >&6
21718 ac_check_lib_save_LIBS=$LIBS
21719 LIBS="-lintl $LIBS"
21720 cat >conftest.$ac_ext <<_ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21727 /* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
21737 return dgettext ();
21742 rm -f conftest.$ac_objext conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_link") 2>conftest.er1
21751 grep -v '^ *+' conftest.er1 >conftest.err
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21755 (exit $ac_status); } && {
21756 test -z "$ac_c_werror_flag" ||
21757 test ! -s conftest.err
21758 } && test -s conftest$ac_exeext &&
21759 $as_test_x conftest$ac_exeext; then
21760 ac_cv_lib_intl_dgettext=yes
21762 echo "$as_me: failed program was
:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21765 ac_cv_lib_intl_dgettext=no
21768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21769 conftest$ac_exeext conftest.$ac_ext
21770 LIBS=$ac_check_lib_save_LIBS
21772 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21773 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21774 if test $ac_cv_lib_intl_dgettext = yes; then
21775 cat >>confdefs.h <<_ACEOF
21776 #define HAVE_LIBINTL 1
21779 LIBS="-lintl $LIBS"
21784 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21785 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21786 if test "${emacs_cv_localtime_cache+set}" = set; then
21787 echo $ECHO_N "(cached
) $ECHO_C" >&6
21789 if test x$ac_cv_func_tzset = xyes; then
21790 if test "$cross_compiling" = yes; then
21791 # If we have tzset, assume the worst when cross-compiling.
21792 emacs_cv_localtime_cache=yes
21794 cat >conftest.$ac_ext <<_ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21801 extern char **environ;
21805 for (to = from = environ; (*to = *from); from++)
21806 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21809 char TZ_GMT0[] = "TZ
=GMT0
";
21810 char TZ_PST8[] = "TZ
=PST8
";
21813 time_t now = time ((time_t *) 0);
21814 int hour_GMT0, hour_unset;
21815 if (putenv (TZ_GMT0) != 0)
21817 hour_GMT0 = localtime (&now)->tm_hour;
21819 hour_unset = localtime (&now)->tm_hour;
21820 if (putenv (TZ_PST8) != 0)
21822 if (localtime (&now)->tm_hour == hour_GMT0)
21825 if (localtime (&now)->tm_hour != hour_unset)
21830 rm -f conftest$ac_exeext
21831 if { (ac_try="$ac_link"
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_link") 2>&5
21839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21841 { (case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_try") 2>&5
21848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 emacs_cv_localtime_cache=no
21852 echo "$as_me: program exited with status
$ac_status" >&5
21853 echo "$as_me: failed program was
:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ( exit $ac_status )
21857 emacs_cv_localtime_cache=yes
21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21864 # If we lack tzset, report that localtime does not cache TZ,
21865 # since we can't invalidate the cache if we don't have tzset.
21866 emacs_cv_localtime_cache=no
21869 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21870 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21871 if test $emacs_cv_localtime_cache = yes; then
21873 cat >>confdefs.h <<\_ACEOF
21874 #define LOCALTIME_CACHE 1
21879 if test "x
$HAVE_TIMEVAL" = xyes; then
21881 for ac_func in gettimeofday
21883 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21884 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21885 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21886 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21887 echo $ECHO_N "(cached
) $ECHO_C" >&6
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21897 #define $ac_func innocuous_$ac_func
21899 /* System header to define __stub macros and hopefully few prototypes,
21900 which can conflict with char $ac_func (); below.
21901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21902 <limits.h> exists even on freestanding compilers. */
21905 # include <limits.h>
21907 # include <assert.h>
21912 /* Override any GCC internal prototype to avoid an error.
21913 Use char because int might match the return type of a GCC
21914 builtin and then its argument prototype would still apply. */
21919 /* The GNU C library defines this for functions which it implements
21920 to always fail with ENOSYS. Some functions are actually named
21921 something starting with __ and the normal name is an alias. */
21922 #if defined __stub_$ac_func || defined __stub___$ac_func
21929 return $ac_func ();
21934 rm -f conftest.$ac_objext conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_link") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest$ac_exeext &&
21951 $as_test_x conftest$ac_exeext; then
21952 eval "$as_ac_var=yes"
21954 echo "$as_me: failed program was
:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21957 eval "$as_ac_var=no
"
21960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21961 conftest$ac_exeext conftest.$ac_ext
21963 ac_res=`eval echo '${'$as_ac_var'}'`
21964 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21965 echo "${ECHO_T}$ac_res" >&6; }
21966 if test `eval echo '${'$as_ac_var'}'` = yes; then
21967 cat >>confdefs.h <<_ACEOF
21968 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21974 if test $ac_cv_func_gettimeofday = yes; then
21975 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21976 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21977 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21978 echo $ECHO_N "(cached
) $ECHO_C" >&6
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21987 #ifdef TIME_WITH_SYS_TIME
21988 #include <sys/time.h>
21991 #ifdef HAVE_SYS_TIME_H
21992 #include <sys/time.h>
22000 struct timeval time;
22001 gettimeofday (&time, 0);
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22015 grep -v '^ *+' conftest.er1 >conftest.err
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest.$ac_objext; then
22023 emacs_cv_gettimeofday_two_arguments=yes
22025 echo "$as_me: failed program was
:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 emacs_cv_gettimeofday_two_arguments=no
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22034 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22035 if test $emacs_cv_gettimeofday_two_arguments = no; then
22037 cat >>confdefs.h <<\_ACEOF
22038 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22046 { echo "$as_me:$LINENO: checking
for socket
" >&5
22047 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22048 if test "${ac_cv_func_socket+set}" = set; then
22049 echo $ECHO_N "(cached
) $ECHO_C" >&6
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22059 #define socket innocuous_socket
22061 /* System header to define __stub macros and hopefully few prototypes,
22062 which can conflict with char socket (); below.
22063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22064 <limits.h> exists even on freestanding compilers. */
22067 # include <limits.h>
22069 # include <assert.h>
22074 /* Override any GCC internal prototype to avoid an error.
22075 Use char because int might match the return type of a GCC
22076 builtin and then its argument prototype would still apply. */
22081 /* The GNU C library defines this for functions which it implements
22082 to always fail with ENOSYS. Some functions are actually named
22083 something starting with __ and the normal name is an alias. */
22084 #if defined __stub_socket || defined __stub___socket
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_link") 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22109 (exit $ac_status); } && {
22110 test -z "$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22112 } && test -s conftest$ac_exeext &&
22113 $as_test_x conftest$ac_exeext; then
22114 ac_cv_func_socket=yes
22116 echo "$as_me: failed program was
:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ac_cv_func_socket=no
22122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22123 conftest$ac_exeext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22126 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22127 if test $ac_cv_func_socket = yes; then
22133 if test $ok_so_far = yes; then
22134 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22135 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22136 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22137 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22138 echo $ECHO_N "(cached
) $ECHO_C" >&6
22140 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22141 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22143 # Is the header compilable?
22144 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22145 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22153 #include <netinet/in.h>
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22164 grep -v '^ *+' conftest.er1 >conftest.err
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22172 ac_header_compiler=yes
22174 echo "$as_me: failed program was
:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22177 ac_header_compiler=no
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22182 echo "${ECHO_T}$ac_header_compiler" >&6; }
22184 # Is the header present?
22185 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22186 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 #include <netinet/in.h>
22195 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22203 grep -v '^ *+' conftest.er1 >conftest.err
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22207 (exit $ac_status); } >/dev/null && {
22208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22211 ac_header_preproc=yes
22213 echo "$as_me: failed program was
:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_header_preproc=no
22219 rm -f conftest.err conftest.$ac_ext
22220 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22221 echo "${ECHO_T}$ac_header_preproc" >&6; }
22223 # So? What about this header?
22224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22226 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22227 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22228 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22229 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22230 ac_header_preproc=yes
22233 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22234 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22235 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22236 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22237 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22238 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22239 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22240 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22241 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22242 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22243 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22244 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22248 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22249 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22250 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22251 echo $ECHO_N "(cached
) $ECHO_C" >&6
22253 ac_cv_header_netinet_in_h=$ac_header_preproc
22255 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22256 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22259 if test $ac_cv_header_netinet_in_h = yes; then
22267 if test $ok_so_far = yes; then
22268 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22269 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22270 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22271 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22272 echo $ECHO_N "(cached
) $ECHO_C" >&6
22274 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22275 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22277 # Is the header compilable?
22278 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22279 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 $ac_includes_default
22287 #include <arpa/inet.h>
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_compile") 2>conftest.er1
22298 grep -v '^ *+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest.$ac_objext; then
22306 ac_header_compiler=yes
22308 echo "$as_me: failed program was
:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_header_compiler=no
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22316 echo "${ECHO_T}$ac_header_compiler" >&6; }
22318 # Is the header present?
22319 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22320 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22321 cat >conftest.$ac_ext <<_ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 #include <arpa/inet.h>
22329 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22330 case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22337 grep -v '^ *+' conftest.er1 >conftest.err
22339 cat conftest.err >&5
22340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22341 (exit $ac_status); } >/dev/null && {
22342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22343 test ! -s conftest.err
22345 ac_header_preproc=yes
22347 echo "$as_me: failed program was
:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22350 ac_header_preproc=no
22353 rm -f conftest.err conftest.$ac_ext
22354 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22355 echo "${ECHO_T}$ac_header_preproc" >&6; }
22357 # So? What about this header?
22358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22360 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22361 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22362 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22363 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22364 ac_header_preproc=yes
22367 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22368 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22369 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22370 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22371 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22372 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22373 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22374 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22375 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22376 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22377 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22378 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22382 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22383 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22384 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22385 echo $ECHO_N "(cached
) $ECHO_C" >&6
22387 ac_cv_header_arpa_inet_h=$ac_header_preproc
22389 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22390 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22393 if test $ac_cv_header_arpa_inet_h = yes; then
22401 if test $ok_so_far = yes; then
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_INET_SOCKETS 1
22410 for ac_header in sys/ioctl.h
22412 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22413 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22414 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22415 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22416 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22417 echo $ECHO_N "(cached
) $ECHO_C" >&6
22419 ac_res=`eval echo '${'$as_ac_Header'}'`
22420 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22421 echo "${ECHO_T}$ac_res" >&6; }
22423 # Is the header compilable?
22424 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22425 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 $ac_includes_default
22433 #include <$ac_header>
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_compile") 2>conftest.er1
22444 grep -v '^ *+' conftest.er1 >conftest.err
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest.$ac_objext; then
22452 ac_header_compiler=yes
22454 echo "$as_me: failed program was
:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22457 ac_header_compiler=no
22460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22462 echo "${ECHO_T}$ac_header_compiler" >&6; }
22464 # Is the header present?
22465 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22466 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 #include <$ac_header>
22475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22476 case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22483 grep -v '^ *+' conftest.er1 >conftest.err
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22487 (exit $ac_status); } >/dev/null && {
22488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22491 ac_header_preproc=yes
22493 echo "$as_me: failed program was
:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 ac_header_preproc=no
22499 rm -f conftest.err conftest.$ac_ext
22500 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22501 echo "${ECHO_T}$ac_header_preproc" >&6; }
22503 # So? What about this header?
22504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22506 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22507 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22508 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22510 ac_header_preproc=yes
22513 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22514 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22515 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22516 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22517 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22518 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22519 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22520 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22521 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22523 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22524 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22528 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22529 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22531 echo $ECHO_N "(cached
) $ECHO_C" >&6
22533 eval "$as_ac_Header=\
$ac_header_preproc"
22535 ac_res=`eval echo '${'$as_ac_Header'}'`
22536 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22537 echo "${ECHO_T}$ac_res" >&6; }
22540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22541 cat >>confdefs.h <<_ACEOF
22542 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22550 if test -f /usr/lpp/X11/bin/smt.exp; then
22552 cat >>confdefs.h <<\_ACEOF
22553 #define HAVE_AIX_SMT_EXP 1
22558 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22559 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22560 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22561 { echo "$as_me:$LINENO: result
: yes" >&5
22562 echo "${ECHO_T}yes" >&6; }
22564 cat >>confdefs.h <<\_ACEOF
22565 #define HAVE_DEV_PTMX 1
22569 { echo "$as_me:$LINENO: result
: no
" >&5
22570 echo "${ECHO_T}no
" >&6; }
22573 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22574 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22575 if test "${ac_cv_type_pid_t+set}" = set; then
22576 echo $ECHO_N "(cached
) $ECHO_C" >&6
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 $ac_includes_default
22585 typedef pid_t ac__type_new_;
22589 if ((ac__type_new_ *) 0)
22591 if (sizeof (ac__type_new_))
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_cv_type_pid_t=yes
22616 echo "$as_me: failed program was
:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_cv_type_pid_t=no
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22625 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22626 if test $ac_cv_type_pid_t = yes; then
22630 cat >>confdefs.h <<_ACEOF
22637 for ac_header in vfork.h
22639 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22641 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22642 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22643 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22644 echo $ECHO_N "(cached
) $ECHO_C" >&6
22646 ac_res=`eval echo '${'$as_ac_Header'}'`
22647 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22648 echo "${ECHO_T}$ac_res" >&6; }
22650 # Is the header compilable?
22651 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22652 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 $ac_includes_default
22660 #include <$ac_header>
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_header_compiler=yes
22681 echo "$as_me: failed program was
:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_header_compiler=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22689 echo "${ECHO_T}$ac_header_compiler" >&6; }
22691 # Is the header present?
22692 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22693 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22694 cat >conftest.$ac_ext <<_ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 #include <$ac_header>
22702 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22703 case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22708 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22710 grep -v '^ *+' conftest.er1 >conftest.err
22712 cat conftest.err >&5
22713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22714 (exit $ac_status); } >/dev/null && {
22715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22716 test ! -s conftest.err
22718 ac_header_preproc=yes
22720 echo "$as_me: failed program was
:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22723 ac_header_preproc=no
22726 rm -f conftest.err conftest.$ac_ext
22727 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22728 echo "${ECHO_T}$ac_header_preproc" >&6; }
22730 # So? What about this header?
22731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22733 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22734 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22735 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22737 ac_header_preproc=yes
22740 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22741 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22742 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22743 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22744 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22745 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22746 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22747 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22748 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22750 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22751 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22755 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22756 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22757 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22758 echo $ECHO_N "(cached
) $ECHO_C" >&6
22760 eval "$as_ac_Header=\
$ac_header_preproc"
22762 ac_res=`eval echo '${'$as_ac_Header'}'`
22763 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22764 echo "${ECHO_T}$ac_res" >&6; }
22767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22768 cat >>confdefs.h <<_ACEOF
22769 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22778 for ac_func in fork vfork
22780 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22781 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22782 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22783 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached
) $ECHO_C" >&6
22786 cat >conftest.$ac_ext <<_ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22794 #define $ac_func innocuous_$ac_func
22796 /* System header to define __stub macros and hopefully few prototypes,
22797 which can conflict with char $ac_func (); below.
22798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22799 <limits.h> exists even on freestanding compilers. */
22802 # include <limits.h>
22804 # include <assert.h>
22809 /* Override any GCC internal prototype to avoid an error.
22810 Use char because int might match the return type of a GCC
22811 builtin and then its argument prototype would still apply. */
22816 /* The GNU C library defines this for functions which it implements
22817 to always fail with ENOSYS. Some functions are actually named
22818 something starting with __ and the normal name is an alias. */
22819 #if defined __stub_$ac_func || defined __stub___$ac_func
22826 return $ac_func ();
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (ac_try="$ac_link"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22838 (eval "$ac_link") 2>conftest.er1
22840 grep -v '^ *+' conftest.er1 >conftest.err
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22844 (exit $ac_status); } && {
22845 test -z "$ac_c_werror_flag" ||
22846 test ! -s conftest.err
22847 } && test -s conftest$ac_exeext &&
22848 $as_test_x conftest$ac_exeext; then
22849 eval "$as_ac_var=yes"
22851 echo "$as_me: failed program was
:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 eval "$as_ac_var=no
"
22857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22858 conftest$ac_exeext conftest.$ac_ext
22860 ac_res=`eval echo '${'$as_ac_var'}'`
22861 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22862 echo "${ECHO_T}$ac_res" >&6; }
22863 if test `eval echo '${'$as_ac_var'}'` = yes; then
22864 cat >>confdefs.h <<_ACEOF
22865 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22871 if test "x
$ac_cv_func_fork" = xyes; then
22872 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22873 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22874 if test "${ac_cv_func_fork_works+set}" = set; then
22875 echo $ECHO_N "(cached
) $ECHO_C" >&6
22877 if test "$cross_compiling" = yes; then
22878 ac_cv_func_fork_works=cross
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22891 /* By Ruediger Kuhlmann. */
22892 return fork () < 0;
22898 rm -f conftest$ac_exeext
22899 if { (ac_try="$ac_link"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_link") 2>&5
22907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22909 { (case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_try") 2>&5
22916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_func_fork_works=yes
22920 echo "$as_me: program exited with status
$ac_status" >&5
22921 echo "$as_me: failed program was
:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22924 ( exit $ac_status )
22925 ac_cv_func_fork_works=no
22927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22932 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22933 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22936 ac_cv_func_fork_works=$ac_cv_func_fork
22938 if test "x
$ac_cv_func_fork_works" = xcross; then
22940 *-*-amigaos* | *-*-msdosdjgpp*)
22941 # Override, as these systems have only a dummy fork() stub
22942 ac_cv_func_fork_works=no
22945 ac_cv_func_fork_works=yes
22948 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22949 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22951 ac_cv_func_vfork_works=$ac_cv_func_vfork
22952 if test "x
$ac_cv_func_vfork" = xyes; then
22953 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22954 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22955 if test "${ac_cv_func_vfork_works+set}" = set; then
22956 echo $ECHO_N "(cached
) $ECHO_C" >&6
22958 if test "$cross_compiling" = yes; then
22959 ac_cv_func_vfork_works=cross
22961 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 /* Thanks to Paul Eggert for this test. */
22968 $ac_includes_default
22969 #include <sys/wait.h>
22970 #ifdef HAVE_VFORK_H
22971 # include <vfork.h>
22973 /* On some sparc systems, changes by the child to local and incoming
22974 argument registers are propagated back to the parent. The compiler
22975 is told about this with #include <vfork.h>, but some compilers
22976 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22977 static variable whose address is put into a register that is
22978 clobbered by the vfork. */
22981 sparc_address_test (int arg)
22983 sparc_address_test (arg) int arg;
22986 static pid_t child;
23004 pid_t parent = getpid ();
23007 sparc_address_test (0);
23012 /* Here is another test for sparc vfork register problems. This
23013 test uses lots of local variables, at least as many local
23014 variables as main has allocated so far including compiler
23015 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23016 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23017 reuse the register of parent for one of the local variables,
23018 since it will think that parent can't possibly be used any more
23019 in this routine. Assigning to the local variable will thus
23020 munge parent in the parent process. */
23022 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23023 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23024 /* Convince the compiler that p..p7 are live; otherwise, it might
23025 use the same hardware register for all 8 local variables. */
23026 if (p != p1 || p != p2 || p != p3 || p != p4
23027 || p != p5 || p != p6 || p != p7)
23030 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23031 from child file descriptors. If the child closes a descriptor
23032 before it execs or exits, this munges the parent's descriptor
23033 as well. Test for this by closing stdout in the child. */
23034 _exit(close(fileno(stdout)) != 0);
23039 while (wait(&status) != child)
23042 /* Was there some problem with vforking? */
23045 /* Did the child fail? (This shouldn't happen.) */
23048 /* Did the vfork/compiler bug occur? */
23049 || parent != getpid()
23051 /* Did the file descriptor bug occur? */
23052 || fstat(fileno(stdout), &st) != 0
23057 rm -f conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_link") 2>&5
23066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23068 { (case "(($ac_try" in
23069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070 *) ac_try_echo=$ac_try;;
23072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23073 (eval "$ac_try") 2>&5
23075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 ac_cv_func_vfork_works=yes
23079 echo "$as_me: program exited with status
$ac_status" >&5
23080 echo "$as_me: failed program was
:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ( exit $ac_status )
23084 ac_cv_func_vfork_works=no
23086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23091 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23092 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23095 if test "x
$ac_cv_func_fork_works" = xcross; then
23096 ac_cv_func_vfork_works=$ac_cv_func_vfork
23097 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23098 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23101 if test "x
$ac_cv_func_vfork_works" = xyes; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_WORKING_VFORK 1
23109 cat >>confdefs.h <<\_ACEOF
23114 if test "x
$ac_cv_func_fork_works" = xyes; then
23116 cat >>confdefs.h <<\_ACEOF
23117 #define HAVE_WORKING_FORK 1
23123 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23124 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23125 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23126 echo $ECHO_N "(cached
) $ECHO_C" >&6
23128 cat >conftest.$ac_ext <<_ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 #include <langinfo.h>
23138 char* cs = nl_langinfo(CODESET);
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_link") 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest$ac_exeext &&
23160 $as_test_x conftest$ac_exeext; then
23161 emacs_cv_langinfo_codeset=yes
23163 echo "$as_me: failed program was
:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 emacs_cv_langinfo_codeset=no
23169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23170 conftest$ac_exeext conftest.$ac_ext
23173 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23174 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23175 if test $emacs_cv_langinfo_codeset = yes; then
23177 cat >>confdefs.h <<\_ACEOF
23178 #define HAVE_LANGINFO_CODESET 1
23183 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23184 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23185 if test "${ac_cv_type_size_t+set}" = set; then
23186 echo $ECHO_N "(cached
) $ECHO_C" >&6
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23195 typedef size_t ac__type_new_;
23199 if ((ac__type_new_ *) 0)
23201 if (sizeof (ac__type_new_))
23207 rm -f conftest.$ac_objext
23208 if { (ac_try="$ac_compile"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_compile") 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest.$ac_objext; then
23224 ac_cv_type_size_t=yes
23226 echo "$as_me: failed program was
:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 ac_cv_type_size_t=no
23232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23235 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23236 if test $ac_cv_type_size_t = yes; then
23238 cat >>confdefs.h <<_ACEOF
23239 #define HAVE_SIZE_T 1
23246 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23247 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23248 if test "${ac_cv_type_mbstate_t+set}" = set; then
23249 echo $ECHO_N "(cached
) $ECHO_C" >&6
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 $ac_includes_default
23258 # include <wchar.h>
23262 mbstate_t x; return sizeof x;
23267 rm -f conftest.$ac_objext
23268 if { (ac_try="$ac_compile"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_compile") 2>conftest.er1
23276 grep -v '^ *+' conftest.er1 >conftest.err
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest.$ac_objext; then
23284 ac_cv_type_mbstate_t=yes
23286 echo "$as_me: failed program was
:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23289 ac_cv_type_mbstate_t=no
23292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23294 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23295 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23296 if test $ac_cv_type_mbstate_t = yes; then
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_MBSTATE_T 1
23304 cat >>confdefs.h <<\_ACEOF
23305 #define mbstate_t int
23310 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23311 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23312 if test "${emacs_cv_c_restrict+set}" = set; then
23313 echo $ECHO_N "(cached
) $ECHO_C" >&6
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 void fred (int *restrict x);
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23337 (eval "$ac_compile") 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23343 (exit $ac_status); } && {
23344 test -z "$ac_c_werror_flag" ||
23345 test ! -s conftest.err
23346 } && test -s conftest.$ac_objext; then
23347 emacs_cv_c_restrict=yes
23349 echo "$as_me: failed program was
:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352 cat >conftest.$ac_ext <<_ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 void fred (int *__restrict x);
23367 rm -f conftest.$ac_objext
23368 if { (ac_try="$ac_compile"
23369 case "(($ac_try" in
23370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23371 *) ac_try_echo=$ac_try;;
23373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23374 (eval "$ac_compile") 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23380 (exit $ac_status); } && {
23381 test -z "$ac_c_werror_flag" ||
23382 test ! -s conftest.err
23383 } && test -s conftest.$ac_objext; then
23384 emacs_cv_c_restrict=__restrict
23386 echo "$as_me: failed program was
:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 emacs_cv_c_restrict=no
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23398 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23399 case "$emacs_cv_c_restrict" in
23400 yes) emacs_restrict=restrict;;
23401 no) emacs_restrict="";;
23402 *) emacs_restrict="$emacs_cv_c_restrict";;
23404 if test "$emacs_restrict" != __restrict; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define __restrict $emacs_restrict
23412 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23413 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23414 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23415 echo $ECHO_N "(cached
) $ECHO_C" >&6
23417 cat >conftest.$ac_ext <<_ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23423 void fred (int x[__restrict]);
23432 rm -f conftest.$ac_objext
23433 if { (ac_try="$ac_compile"
23434 case "(($ac_try" in
23435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436 *) ac_try_echo=$ac_try;;
23438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23439 (eval "$ac_compile") 2>conftest.er1
23441 grep -v '^ *+' conftest.er1 >conftest.err
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23445 (exit $ac_status); } && {
23446 test -z "$ac_c_werror_flag" ||
23447 test ! -s conftest.err
23448 } && test -s conftest.$ac_objext; then
23449 emacs_cv_c_restrict_arr=yes
23451 echo "$as_me: failed program was
:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23454 emacs_cv_c_restrict_arr=no
23457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23459 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23460 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23461 if test "$emacs_cv_c_restrict_arr" = yes; then
23463 cat >>confdefs.h <<\_ACEOF
23464 #define __restrict_arr __restrict
23471 # Set up the CFLAGS for real compilation, so we can substitute it.
23472 CFLAGS="$REAL_CFLAGS"
23473 CPPFLAGS="$REAL_CPPFLAGS"
23475 #### Find out which version of Emacs this is.
23476 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23477 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23478 if test x"${version}" = x; then
23479 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23480 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23481 { (exit 1); exit 1; }; }
23484 ### Specify what sort of things we'll be editing into Makefile and config.h.
23485 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23521 cat >>confdefs.h <<_ACEOF
23522 #define EMACS_CONFIGURATION "${canonical}"
23526 cat >>confdefs.h <<_ACEOF
23527 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23531 cat >>confdefs.h <<_ACEOF
23532 #define config_machfile "${machfile}"
23536 cat >>confdefs.h <<_ACEOF
23537 #define config_opsysfile "${opsysfile}"
23541 cat >>confdefs.h <<_ACEOF
23542 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23546 cat >>confdefs.h <<_ACEOF
23547 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23551 cat >>confdefs.h <<_ACEOF
23552 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23556 cat >>confdefs.h <<_ACEOF
23557 #define UNEXEC_SRC ${UNEXEC_SRC}
23561 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23563 cat >>confdefs.h <<\_ACEOF
23564 #define HAVE_X_WINDOWS 1
23568 if test "${USE_X_TOOLKIT}" != "none
" ; then
23570 cat >>confdefs.h <<\_ACEOF
23571 #define USE_X_TOOLKIT 1
23575 if test "${HAVE_X11}" = "yes" ; then
23577 cat >>confdefs.h <<\_ACEOF
23582 if test "${HAVE_XFREE386}" = "yes" ; then
23584 cat >>confdefs.h <<\_ACEOF
23585 #define HAVE_XFREE386 1
23589 if test "${HAVE_MENUS}" = "yes" ; then
23591 cat >>confdefs.h <<\_ACEOF
23592 #define HAVE_MENUS 1
23596 if test "${GNU_MALLOC}" = "yes" ; then
23598 cat >>confdefs.h <<\_ACEOF
23599 #define GNU_MALLOC 1
23603 if test "${REL_ALLOC}" = "yes" ; then
23605 cat >>confdefs.h <<\_ACEOF
23606 #define REL_ALLOC 1
23616 #### Report on what we decided to do.
23617 #### Report GTK as a toolkit, even if it doesn't use Xt.
23618 #### It makes printing result more understandable as using GTK sets
23619 #### toolkit_scroll_bars to yes by default.
23620 if test "${HAVE_GTK}" = "yes"; then
23625 Configured
for \
`${canonical}'.
23627 Where should the build process find the source code? ${srcdir}
23628 What operating system and machine description files should Emacs use?
23629 \`${opsysfile}' and \`${machfile}'
23630 What compiler should emacs be built with?
${CC} ${CFLAGS}
23631 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23632 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23633 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23634 What window system should Emacs use?
${window_system}
23635 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23637 if test -n "${x_includes}"; then
23638 echo " Where
do we
find X Windows header files?
${x_includes}"
23640 echo " Where
do we
find X Windows header files? Standard
dirs"
23642 if test -n "${x_libraries}"; then
23643 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23645 echo " Where
do we
find X Windows libraries? Standard
dirs"
23648 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23649 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23650 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23651 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23652 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23653 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23654 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23655 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23656 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23659 if test $USE_XASSERTS = yes; then
23660 echo " Compiling with asserts turned on.
"
23661 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23665 if test "$USE_X_TOOLKIT" = GTK; then
23666 case "$canonical" in
23668 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23669 will probably get a crash on startup. If this happens
, please use another
23670 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23677 # Remove any trailing slashes in these variables.
23678 test "${prefix}" != NONE &&
23679 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23680 test "${exec_prefix}" != NONE &&
23681 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23683 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23684 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23685 ## from Makefile.c can correctly provide the arg `-traditional' to the
23688 cat >conftest.$ac_ext <<_ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23696 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23697 $EGREP "yes..
yes" >/dev/null 2>&1; then
23698 CPP_NEED_TRADITIONAL=no
23700 CPP_NEED_TRADITIONAL=yes
23705 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
"
23707 ac_config_commands="$ac_config_commands default
"
23709 cat >confcache <<\_ACEOF
23710 # This file is a shell script that caches the results of configure
23711 # tests run on this system so they can be shared between configure
23712 # scripts and configure runs, see configure's option --config-cache.
23713 # It is not useful on other systems. If it contains results you don't
23714 # want to keep, you may remove or edit it.
23716 # config.status only pays attention to the cache file if you give it
23717 # the --recheck option to rerun configure.
23719 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23720 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23721 # following values.
23725 # The following way of writing the cache mishandles newlines in values,
23726 # but we know of no workaround that is simple, portable, and efficient.
23727 # So, we kill variables containing newlines.
23728 # Ultrix sh set writes to stderr and can't be redirected directly,
23729 # and sets the high bit in the cache file unless we assign to the vars.
23731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23732 eval ac_val=\$$ac_var
23736 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23737 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23740 _ | IFS | as_nl) ;; #(
23741 *) $as_unset $ac_var ;;
23747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23748 *${as_nl}ac_space=\ *)
23749 # `set' does not quote correctly, so add quotes (double-quote
23750 # substitution turns \\\\ into \\, and sed turns \\ into \).
23753 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23756 # `set' quotes correctly as required by POSIX, so do not add quotes.
23757 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23770 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23771 if test -w "$cache_file"; then
23772 test "x
$cache_file" != "x
/dev
/null
" &&
23773 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23774 echo "$as_me: updating cache
$cache_file" >&6;}
23775 cat confcache >$cache_file
23777 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23778 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23783 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23784 # Let make expand exec_prefix.
23785 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23787 DEFS=-DHAVE_CONFIG_H
23791 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23792 # 1. Remove the extension, and $U if already installed.
23793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23794 ac_i=`echo "$ac_i" | sed "$ac_script"`
23795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23796 # will be set to the directory where LIBOBJS objects are built.
23797 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23798 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23800 LIBOBJS=$ac_libobjs
23802 LTLIBOBJS=$ac_ltlibobjs
23806 : ${CONFIG_STATUS=./config.status}
23807 ac_clean_files_save=$ac_clean_files
23808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23809 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23810 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23811 cat >$CONFIG_STATUS <<_ACEOF
23813 # Generated by $as_me.
23814 # Run this file to recreate the current configuration.
23815 # Compiler output produced by configure, useful for debugging
23816 # configure, is in config.log if it exists.
23819 ac_cs_recheck=false
23821 SHELL=\${CONFIG_SHELL-$SHELL}
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23825 ## --------------------- ##
23826 ## M4sh Initialization. ##
23827 ## --------------------- ##
23829 # Be more Bourne compatible
23830 DUALCASE=1; export DUALCASE # for MKS sh
23831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23834 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23835 # is contrary to our usage. Disable this feature.
23836 alias -g '${1+"$@"}'='"$@
"'
23837 setopt NO_GLOB_SUBST
23839 case `(set -o) 2>/dev/null` in
23840 *posix*) set -o posix ;;
23849 # Avoid depending upon Character Ranges.
23850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23853 as_cr_digits='0123456789'
23854 as_cr_alnum=$as_cr_Letters$as_cr_digits
23856 # The user is always right.
23857 if test "${PATH_SEPARATOR+set}" != set; then
23858 echo "#! /bin/sh" >conf$$.sh
23859 echo "exit 0" >>conf$$.sh
23861 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23869 # Support unset when possible.
23870 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23878 # We need space, tab and new line, in precisely that order. Quoting is
23879 # there to prevent editors from complaining about space-tab.
23880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23881 # splitting by setting IFS to empty value.)
23886 # Find who we are. Look in the path if we contain no directory separator.
23888 *[\\/]* ) as_myself
=$0 ;;
23889 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23890 for as_dir
in $PATH
23893 test -z "$as_dir" && as_dir
=.
23894 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23900 # We did not find ourselves, most probably we were run as `sh COMMAND'
23901 # in which case we are not to be found in the path.
23902 if test "x$as_myself" = x
; then
23905 if test ! -f "$as_myself"; then
23906 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23907 { (exit 1); exit 1; }
23910 # Work around bugs in pre-3.0 UWIN ksh.
23911 for as_var
in ENV MAIL MAILPATH
23912 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23920 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23921 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23922 LC_TELEPHONE LC_TIME
23924 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23925 eval $as_var=C
; export $as_var
23927 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23931 # Required to use basename.
23932 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23933 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23939 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23940 as_basename
=basename
23946 # Name of the executable.
23947 as_me
=`$as_basename -- "$0" ||
23948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23949 X"$0" : 'X\(//\)$' \| \
23950 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23952 sed '/^.*\/\([^/][^/]*\)\/*$/{
23971 as_lineno_1
=$LINENO
23972 as_lineno_2
=$LINENO
23973 test "x$as_lineno_1" != "x$as_lineno_2" &&
23974 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23976 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23977 # uniformly replaced by the line number. The first 'sed' inserts a
23978 # line-number line after each line using $LINENO; the second 'sed'
23979 # does the real work. The second script uses 'N' to pair each
23980 # line-number line with the line containing $LINENO, and appends
23981 # trailing '-' during substitution so that $LINENO is not a special
23982 # case at line end.
23983 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23984 # scripts with optimization help from Paolo Bonzini. Blame Lee
23985 # E. McMahon (1931-1989) for sed's syntax. :-)
23997 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24000 ' >$as_me.lineno
&&
24001 chmod +x
"$as_me.lineno" ||
24002 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24003 { (exit 1); exit 1; }; }
24005 # Don't try to exec as it changes $[0], causing all sort of problems
24006 # (the dirname of $[0] is not the place where we might find the
24007 # original and so on. Autoconf is especially sensitive to this).
24008 .
"./$as_me.lineno"
24009 # Exit status is that of the last command.
24014 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24020 ECHO_C
= ECHO_N
= ECHO_T
=
24021 case `echo -n x` in
24023 case `echo 'x\c'` in
24024 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24031 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24032 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24038 rm -f conf$$ conf$$.exe conf$$.
file
24039 if test -d conf$$.dir
; then
24040 rm -f conf$$.dir
/conf$$.
file
24046 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24048 # ... but there are two gotchas:
24049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24051 # In both cases, we have to default to `cp -p'.
24052 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24054 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24059 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24060 rmdir conf$$.dir
2>/dev
/null
24062 if mkdir
-p .
2>/dev
/null
; then
24065 test -d .
/-p && rmdir .
/-p
24069 if test -x / >/dev
/null
2>&1; then
24070 as_test_x
='test -x'
24072 if ls -dL / >/dev
/null
2>&1; then
24079 if test -d "$1"; then
24085 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24086 ???[sx]*):;;*)false;;esac;fi
24090 as_executable_p
=$as_test_x
24092 # Sed expression to map a string onto a valid CPP name.
24093 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24095 # Sed expression to map a string onto a valid variable name.
24096 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24101 # Save the log message, to keep $[0] and so on meaningful, and to
24102 # report actual input values of CONFIG_FILES etc. instead of their
24103 # values after options handling.
24105 This file was extended by $as_me, which was
24106 generated by GNU Autoconf 2.61. Invocation command line was
24108 CONFIG_FILES = $CONFIG_FILES
24109 CONFIG_HEADERS = $CONFIG_HEADERS
24110 CONFIG_LINKS = $CONFIG_LINKS
24111 CONFIG_COMMANDS = $CONFIG_COMMANDS
24114 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24119 cat >>$CONFIG_STATUS <<_ACEOF
24120 # Files that config.status was made for.
24121 config_files="$ac_config_files"
24122 config_headers="$ac_config_headers"
24123 config_commands="$ac_config_commands"
24127 cat >>$CONFIG_STATUS <<\_ACEOF
24129 \`$as_me' instantiates files from templates according to the
24130 current configuration.
24132 Usage: $0 [OPTIONS] [FILE]...
24134 -h, --help print this help, then exit
24135 -V, --version print version number and configuration settings, then exit
24136 -q, --quiet do not print progress messages
24137 -d, --debug don't remove temporary files
24138 --recheck update $as_me by reconfiguring in the same conditions
24139 --file=FILE[:TEMPLATE]
24140 instantiate the configuration file FILE
24141 --header=FILE[:TEMPLATE]
24142 instantiate the configuration header FILE
24144 Configuration files:
24147 Configuration headers:
24150 Configuration commands:
24153 Report bugs to <bug-autoconf@gnu.org>."
24156 cat >>$CONFIG_STATUS <<_ACEOF
24159 configured by $0, generated by GNU Autoconf 2.61,
24160 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24162 Copyright (C) 2006 Free Software Foundation, Inc.
24163 This config.status script is free software; the Free Software Foundation
24164 gives unlimited permission to copy, distribute and modify it."
24171 cat >>$CONFIG_STATUS <<\_ACEOF
24172 # If no file are specified by the user, then we need to provide default
24173 # value. By we need to know if files were specified by the user.
24179 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24180 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24191 # Handling of the options.
24192 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24194 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24195 echo "$ac_cs_version"; exit ;;
24196 --debug |
--debu |
--deb |
--de |
--d |
-d )
24198 --file |
--fil |
--fi |
--f )
24200 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24201 ac_need_defaults
=false
;;
24202 --header |
--heade |
--head |
--hea )
24204 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24205 ac_need_defaults
=false
;;
24207 # Conflict between --help and --header
24208 { echo "$as_me: error: ambiguous option: $1
24209 Try \`$0 --help' for more information." >&2
24210 { (exit 1); exit 1; }; };;
24211 --help |
--hel |
-h )
24212 echo "$ac_cs_usage"; exit ;;
24213 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24214 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24217 # This is an error.
24218 -*) { echo "$as_me: error: unrecognized option: $1
24219 Try \`$0 --help' for more information." >&2
24220 { (exit 1); exit 1; }; } ;;
24222 *) ac_config_targets
="$ac_config_targets $1"
24223 ac_need_defaults
=false
;;
24229 ac_configure_extra_args
=
24231 if $ac_cs_silent; then
24233 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24237 cat >>$CONFIG_STATUS <<_ACEOF
24238 if \$ac_cs_recheck; then
24239 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24240 CONFIG_SHELL=$SHELL
24241 export CONFIG_SHELL
24242 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24251 ## Running $as_me. ##
24257 cat >>$CONFIG_STATUS <<_ACEOF
24261 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24265 cat >>$CONFIG_STATUS <<\_ACEOF
24267 # Handling of arguments.
24268 for ac_config_target
in $ac_config_targets
24270 case $ac_config_target in
24271 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24272 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24273 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24274 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24275 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24276 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24277 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24278 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24279 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24280 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24281 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24282 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24286 { (exit 1); exit 1; }; };;
24291 # If the user did not use the arguments to specify the items to instantiate,
24292 # then the envvar interface is used. Set only those that are not.
24293 # We use the long form for the default assignment because of an extremely
24294 # bizarre bug on SunOS 4.1.3.
24295 if $ac_need_defaults; then
24296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24298 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24301 # Have a temporary directory for convenience. Make it in the build tree
24302 # simply because there is no reason against having it here, and in addition,
24303 # creating and moving files from /tmp can sometimes cause problems.
24304 # Hook for its removal unless debugging.
24305 # Note that there is a small window in which the directory will not be cleaned:
24306 # after its creation but before its name has been assigned to `$tmp'.
24310 trap 'exit_status=$?
24311 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24313 trap '{ (exit 1); exit 1; }' 1 2 13 15
24315 # Create a (secure) tmp directory for tmp files.
24318 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24319 test -n "$tmp" && test -d "$tmp"
24322 tmp
=.
/conf$$
-$RANDOM
24323 (umask 077 && mkdir
"$tmp")
24326 echo "$me: cannot create a temporary directory in ." >&2
24327 { (exit 1); exit 1; }
24331 # Set up the sed scripts for CONFIG_FILES section.
24334 # No need to generate the scripts if there are no CONFIG_FILES.
24335 # This happens for instance when ./config.status config.h
24336 if test -n "$CONFIG_FILES"; then
24343 for ac_last_try
in false false false false false
:; do
24344 cat >conf$
$subs.
sed <<_ACEOF
24345 SHELL!$SHELL$ac_delim
24346 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24347 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24348 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24349 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24350 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24351 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24352 exec_prefix!$exec_prefix$ac_delim
24353 prefix!$prefix$ac_delim
24354 program_transform_name!$program_transform_name$ac_delim
24355 bindir!$bindir$ac_delim
24356 sbindir!$sbindir$ac_delim
24357 libexecdir!$libexecdir$ac_delim
24358 datarootdir!$datarootdir$ac_delim
24359 datadir!$datadir$ac_delim
24360 sysconfdir!$sysconfdir$ac_delim
24361 sharedstatedir!$sharedstatedir$ac_delim
24362 localstatedir!$localstatedir$ac_delim
24363 includedir!$includedir$ac_delim
24364 oldincludedir!$oldincludedir$ac_delim
24365 docdir!$docdir$ac_delim
24366 infodir!$infodir$ac_delim
24367 htmldir!$htmldir$ac_delim
24368 dvidir!$dvidir$ac_delim
24369 pdfdir!$pdfdir$ac_delim
24370 psdir!$psdir$ac_delim
24371 libdir!$libdir$ac_delim
24372 localedir!$localedir$ac_delim
24373 mandir!$mandir$ac_delim
24374 DEFS!$DEFS$ac_delim
24375 ECHO_C!$ECHO_C$ac_delim
24376 ECHO_N!$ECHO_N$ac_delim
24377 ECHO_T!$ECHO_T$ac_delim
24378 LIBS!$LIBS$ac_delim
24379 build_alias!$build_alias$ac_delim
24380 host_alias!$host_alias$ac_delim
24381 target_alias!$target_alias$ac_delim
24382 MAINT!$MAINT$ac_delim
24383 build!$build$ac_delim
24384 build_cpu!$build_cpu$ac_delim
24385 build_vendor!$build_vendor$ac_delim
24386 build_os!$build_os$ac_delim
24387 host!$host$ac_delim
24388 host_cpu!$host_cpu$ac_delim
24389 host_vendor!$host_vendor$ac_delim
24390 host_os!$host_os$ac_delim
24392 CFLAGS!$CFLAGS$ac_delim
24393 LDFLAGS!$LDFLAGS$ac_delim
24394 CPPFLAGS!$CPPFLAGS$ac_delim
24395 ac_ct_CC!$ac_ct_CC$ac_delim
24396 EXEEXT!$EXEEXT$ac_delim
24397 OBJEXT!$OBJEXT$ac_delim
24399 GREP!$GREP$ac_delim
24400 EGREP!$EGREP$ac_delim
24401 LN_S!$LN_S$ac_delim
24402 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24403 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24404 INSTALL_DATA!$INSTALL_DATA$ac_delim
24405 RANLIB!$RANLIB$ac_delim
24406 INSTALL_INFO!$INSTALL_INFO$ac_delim
24407 GZIP_PROG!$GZIP_PROG$ac_delim
24408 LIBSOUND!$LIBSOUND$ac_delim
24409 PKG_CONFIG!$PKG_CONFIG$ac_delim
24410 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24411 ALSA_LIBS!$ALSA_LIBS$ac_delim
24412 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24413 SET_MAKE!$SET_MAKE$ac_delim
24414 XMKMF!$XMKMF$ac_delim
24415 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24416 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24417 RSVG_LIBS!$RSVG_LIBS$ac_delim
24418 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24419 GTK_LIBS!$GTK_LIBS$ac_delim
24420 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24421 XFT_LIBS!$XFT_LIBS$ac_delim
24422 ALLOCA!$ALLOCA$ac_delim
24423 liblockfile!$liblockfile$ac_delim
24424 LIBOBJS!$LIBOBJS$ac_delim
24425 NEED_SETGID!$NEED_SETGID$ac_delim
24426 KMEM_GROUP!$KMEM_GROUP$ac_delim
24427 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24428 GETOPT_H!$GETOPT_H$ac_delim
24429 GETOPTOBJS!$GETOPTOBJS$ac_delim
24430 version!$version$ac_delim
24431 configuration!$configuration$ac_delim
24432 canonical!$canonical$ac_delim
24433 srcdir!$srcdir$ac_delim
24434 lispdir!$lispdir$ac_delim
24435 locallisppath!$locallisppath$ac_delim
24436 lisppath!$lisppath$ac_delim
24437 x_default_search_path!$x_default_search_path$ac_delim
24438 etcdir!$etcdir$ac_delim
24439 archlibdir!$archlibdir$ac_delim
24440 bitmapdir!$bitmapdir$ac_delim
24441 gamedir!$gamedir$ac_delim
24444 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24446 elif $ac_last_try; then
24447 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24448 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24449 { (exit 1); exit 1; }; }
24451 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24455 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24456 if test -n "$ac_eof"; then
24457 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24458 ac_eof
=`expr $ac_eof + 1`
24461 cat >>$CONFIG_STATUS <<_ACEOF
24462 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24466 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24467 s/^/s,@/; s/!/@,|#_!!_#|/
24470 s/'"$ac_delim"'$/,g/; t
24472 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24473 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24474 rm -f conf$
$subs.
sed
24475 cat >>$CONFIG_STATUS <<_ACEOF
24481 for ac_last_try
in false false false false false
:; do
24482 cat >conf$
$subs.
sed <<_ACEOF
24483 gameuser!$gameuser$ac_delim
24484 c_switch_system!$c_switch_system$ac_delim
24485 c_switch_machine!$c_switch_machine$ac_delim
24486 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24487 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24488 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24489 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24490 machfile!$machfile$ac_delim
24491 opsysfile!$opsysfile$ac_delim
24492 carbon_appdir!$carbon_appdir$ac_delim
24493 LTLIBOBJS!$LTLIBOBJS$ac_delim
24496 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
24498 elif $ac_last_try; then
24499 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24500 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24501 { (exit 1); exit 1; }; }
24503 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24507 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24508 if test -n "$ac_eof"; then
24509 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24510 ac_eof
=`expr $ac_eof + 1`
24513 cat >>$CONFIG_STATUS <<_ACEOF
24514 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24518 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24519 s/^/s,@/; s/!/@,|#_!!_#|/
24522 s/'"$ac_delim"'$/,g/; t
24524 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24525 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24526 rm -f conf$
$subs.
sed
24527 cat >>$CONFIG_STATUS <<_ACEOF
24534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24536 # trailing colons and then remove the whole line if VPATH becomes empty
24537 # (actually we leave an empty line to preserve line numbers).
24538 if test "x$srcdir" = x.
; then
24539 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24540 s/:*\$(srcdir):*/:/
24541 s/:*\${srcdir}:*/:/
24543 s/^\([^=]*=[ ]*\):*/\1/
24549 cat >>$CONFIG_STATUS <<\_ACEOF
24550 fi # test -n "$CONFIG_FILES"
24553 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24556 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24558 case $ac_mode$ac_tag in
24560 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24561 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24562 { (exit 1); exit 1; }; };;
24563 :[FH
]-) ac_tag
=-:-;;
24564 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24581 -) ac_f
="$tmp/stdin";;
24582 *) # Look for the file first in the build tree, then in the source tree
24583 # (if the path is not absolute). The absolute path cannot be DOS-style,
24584 # because $ac_f cannot contain `:'.
24588 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24590 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24591 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24592 { (exit 1); exit 1; }; };;
24594 ac_file_inputs
="$ac_file_inputs $ac_f"
24597 # Let's still pretend it is `configure' which instantiates (i.e., don't
24598 # use $as_me), people would be surprised to read:
24599 # /* config.h. Generated by config.status. */
24600 configure_input
="Generated from "`IFS=:
24601 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24602 if test x
"$ac_file" != x-
; then
24603 configure_input
="$ac_file. $configure_input"
24604 { echo "$as_me:$LINENO: creating $ac_file" >&5
24605 echo "$as_me: creating $ac_file" >&6;}
24609 *:-:* |
*:-) cat >"$tmp/stdin";;
24614 ac_dir
=`$as_dirname -- "$ac_file" ||
24615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24616 X"$ac_file" : 'X\(//\)[^/]' \| \
24617 X"$ac_file" : 'X\(//\)$' \| \
24618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24624 /^X\(\/\/\)[^/].*/{
24639 -*) as_dir
=.
/$as_dir;;
24641 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24645 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24646 *) as_qdir
=$as_dir;;
24648 as_dirs
="'$as_qdir' $as_dirs"
24649 as_dir
=`$as_dirname -- "$as_dir" ||
24650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24651 X"$as_dir" : 'X\(//\)[^/]' \| \
24652 X"$as_dir" : 'X\(//\)$' \| \
24653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24659 /^X\(\/\/\)[^/].*/{
24672 test -d "$as_dir" && break
24674 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24675 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24676 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24677 { (exit 1); exit 1; }; }; }
24681 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24683 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24684 # A ".." for each directory in $ac_dir_suffix.
24685 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24686 case $ac_top_builddir_sub in
24687 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24688 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24691 ac_abs_top_builddir
=$ac_pwd
24692 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24693 # for backward compatibility:
24694 ac_top_builddir
=$ac_top_build_prefix
24697 .
) # We are building in place.
24699 ac_top_srcdir
=$ac_top_builddir_sub
24700 ac_abs_top_srcdir
=$ac_pwd ;;
24701 [\\/]* | ?
:[\\/]* ) # Absolute name.
24702 ac_srcdir
=$srcdir$ac_dir_suffix;
24703 ac_top_srcdir
=$srcdir
24704 ac_abs_top_srcdir
=$srcdir ;;
24705 *) # Relative name.
24706 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24707 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24708 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24710 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24720 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24721 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24725 cat >>$CONFIG_STATUS <<\_ACEOF
24726 # If the template does not know about datarootdir, expand it.
24727 # FIXME: This hack should be removed a few years after 2.60.
24728 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24730 case `sed -n '/datarootdir/ {
24739 ' $ac_file_inputs` in
24740 *datarootdir
*) ac_datarootdir_seen
=yes;;
24741 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24742 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24743 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24745 cat >>$CONFIG_STATUS <<_ACEOF
24746 ac_datarootdir_hack='
24747 s&@datadir@&$datadir&g
24748 s&@docdir@&$docdir&g
24749 s&@infodir@&$infodir&g
24750 s&@localedir@&$localedir&g
24751 s&@mandir@&$mandir&g
24752 s&\\\${datarootdir}&$datarootdir&g' ;;
24756 # Neutralize VPATH when `$srcdir' = `.'.
24757 # Shell code in configure.ac might set extrasub.
24758 # FIXME: do we really want to maintain this feature?
24759 cat >>$CONFIG_STATUS <<_ACEOF
24763 cat >>$CONFIG_STATUS <<\_ACEOF
24765 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24766 s
&@configure_input@
&$configure_input&;t t
24767 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24768 s
&@srcdir@
&$ac_srcdir&;t t
24769 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24770 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24771 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24772 s
&@builddir@
&$ac_builddir&;t t
24773 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24774 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24775 s
&@INSTALL@
&$ac_INSTALL&;t t
24776 $ac_datarootdir_hack
24777 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24779 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24780 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24781 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24782 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24783 which seems to be undefined. Please make sure it is defined." >&5
24784 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24785 which seems to be undefined. Please make sure it is defined." >&2;}
24789 -) cat "$tmp/out"; rm -f "$tmp/out";;
24790 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24799 # Transform confdefs.h into a sed script `conftest.defines', that
24800 # substitutes the proper values into config.h.in to produce config.h.
24801 rm -f conftest.defines conftest.
tail
24802 # First, append a space to every undef/define line, to ease matching.
24803 echo 's/$/ /' >conftest.defines
24804 # Then, protect against being on the right side of a sed subst, or in
24805 # an unquoted here document, in config.status. If some macros were
24806 # called several times there might be several #defines for the same
24807 # symbol, which is useless. But do not sort them, since the last
24808 # AC_DEFINE must be honored.
24809 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24810 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24811 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24812 # PARAMS is the parameter list in the macro definition--in most cases, it's
24813 # just an empty string.
24814 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24815 ac_dB
='\\)[ (].*,\\1define\\2'
24823 s/^[ ]*#[ ]*define[ ][ ]*//
24828 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24829 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24830 ' >>conftest.defines
24832 # Remove the space that was appended to ease matching.
24833 # Then replace #undef with comments. This is necessary, for
24834 # example, in the case of _POSIX_SOURCE, which is predefined and required
24835 # on some systems where configure will not decide to define it.
24836 # (The regexp can be short, since the line contains either #define or #undef.)
24838 s,^[ #]*u.*,/* & */,' >>conftest.defines
24840 # Break up conftest.defines:
24841 ac_max_sed_lines
=50
24843 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24844 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24845 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24847 ac_in
='$ac_file_inputs'
24848 ac_out
='"$tmp/out1"'
24849 ac_nxt
='"$tmp/out2"'
24853 # Write a here document:
24854 cat >>$CONFIG_STATUS <<_ACEOF
24855 # First, check the format of the line:
24856 cat >"\$tmp/defines.sed" <<\\CEOF
24857 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24858 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24862 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24864 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24865 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24866 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24867 grep . conftest.
tail >/dev
/null ||
break
24868 rm -f conftest.defines
24869 mv conftest.
tail conftest.defines
24871 rm -f conftest.defines conftest.
tail
24873 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24874 cat >>$CONFIG_STATUS <<\_ACEOF
24875 if test x
"$ac_file" != x-
; then
24876 echo "/* $configure_input */" >"$tmp/config.h"
24877 cat "$ac_result" >>"$tmp/config.h"
24878 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24879 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24880 echo "$as_me: $ac_file is unchanged" >&6;}
24883 mv "$tmp/config.h" $ac_file
24886 echo "/* $configure_input */"
24892 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24893 echo "$as_me: executing $ac_file commands" >&6;}
24898 case $ac_file$ac_mode in
24901 ### Make the necessary directories, if they don't exist.
24902 for dir
in etc lisp
; do
24903 test -d ${dir} || mkdir
${dir}
24906 # Build src/Makefile from ${srcdir}/src/Makefile.c
24907 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24908 # This must be done after src/config.h is built, since we rely on that file.
24910 # Now get this: Some word that is part of the ${srcdir} directory name
24911 # or the ${configuration} value might, just might, happen to be an
24912 # identifier like `sun4' or `i386' or something, and be predefined by
24913 # the C preprocessor to some helpful value like 1, or maybe the empty
24914 # string. Needless to say consequent macro substitutions are less
24915 # than conducive to the makefile finding the correct directory.
24916 undefs
="`echo $top_srcdir $configuration $canonical |
24917 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24918 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24921 echo creating src
/epaths.h
24922 ${MAKE-make} epaths-force
24924 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24925 # `..' to `. .' unless invoked with -traditional
24927 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24928 CPPFLAGS
="$CPPFLAGS -traditional"
24931 echo creating lib-src
/Makefile
24933 rm -f junk.c junk1.c junk2.c
24934 sed -e '/start of cpp stuff/q' \
24935 < Makefile.c
> junk1.c
24936 sed -e '1,/start of cpp stuff/d'\
24937 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24938 < Makefile.c
> junk.c
24939 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24940 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24941 cat junk1.c junk2.c
> Makefile.new
24942 rm -f junk.c junk1.c junk2.c
24943 chmod 444 Makefile.new
24944 mv -f Makefile.new Makefile
24947 echo creating src
/Makefile
24949 rm -f junk.c junk1.c junk2.c
24950 sed -e '/start of cpp stuff/q' \
24951 < Makefile.c
> junk1.c
24952 sed -e '1,/start of cpp stuff/d'\
24953 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24954 < Makefile.c
> junk.c
24955 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24956 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24957 cat junk1.c junk2.c
> Makefile.new
24958 rm -f junk.c junk1.c junk2.c
24959 chmod 444 Makefile.new
24960 mv -f Makefile.new Makefile
24963 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24964 echo creating src
/.gdbinit
24965 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24968 # This is how we know whether to re-run configure in certain cases.
24969 touch src
/config.stamp
24977 { (exit 0); exit 0; }
24979 chmod +x
$CONFIG_STATUS
24980 ac_clean_files
=$ac_clean_files_save
24983 # configure is writing to config.log, and then calls config.status.
24984 # config.status does its own redirection, appending to config.log.
24985 # Unfortunately, on DOS this fails, as config.log is still kept open
24986 # by configure, so config.status won't be able to write to it; its
24987 # output is simply discarded. So we exec the FD to /dev/null,
24988 # effectively closing config.log, so it can be properly (re)opened and
24989 # appended to by config.status. When coming back to configure, we
24990 # need to make the FD available again.
24991 if test "$no_create" != yes; then
24993 ac_config_status_args
=
24994 test "$silent" = yes &&
24995 ac_config_status_args
="$ac_config_status_args --quiet"
24997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25000 # would make configure fail if this is the last instruction.
25001 $ac_cs_success ||
{ (exit 1); exit 1; }