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
709 x_default_search_path
726 ac_precious_vars
='build_alias
738 # Initialize some variables set by options.
740 ac_init_version
=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
750 program_transform_name
=s
,x
,x
,
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir
='${exec_prefix}/bin'
765 sbindir
='${exec_prefix}/sbin'
766 libexecdir
='${exec_prefix}/libexec'
767 datarootdir
='${prefix}/share'
768 datadir
='${datarootdir}'
769 sysconfdir
='${prefix}/etc'
770 sharedstatedir
='${prefix}/com'
771 localstatedir
='${prefix}/var'
772 includedir
='${prefix}/include'
773 oldincludedir
='/usr/include'
774 docdir
='${datarootdir}/doc/${PACKAGE}'
775 infodir
='${datarootdir}/info'
780 libdir
='${exec_prefix}/lib'
781 localedir
='${datarootdir}/locale'
782 mandir
='${datarootdir}/man'
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\
$ac_option
796 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_
$ac_feature=no
;;
847 -docdir |
--docdir |
--docdi |
--doc |
--do)
849 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
852 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
854 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
857 -enable-* |
--enable-*)
858 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_
$ac_feature=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_
$ac_package=\
$ac_optarg ;;
1063 -without-* |
--without-*)
1064 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1077 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1080 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1084 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1087 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1096 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val
=\$
$ac_var
1129 [\\/$
]* | ?
:[\\/]* ) continue;;
1130 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1141 target
=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x
; then
1145 if test "x$build_alias" = x
; then
1146 cross_compiling
=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1157 test "$silent" = yes && exec 6>/dev
/null
1160 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di
=`ls -di .` &&
1162 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted
=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir
=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted
=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1222 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 for ac_var
in $ac_precious_vars; do
1225 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1227 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1301 --x-includes=DIR X include files are
in DIR
1302 --x-libraries=DIR X library files are
in DIR
1305 --build=BUILD configure
for building on BUILD
[guessed
]
1306 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1310 if test -n "$ac_init_help"; then
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1318 specify
install directory
for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing
) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search
for lisp files
1324 specific to this site
1325 --disable-largefile omit support
for large files
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc don
't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP
mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version
5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server
host
1335 --without-sound don
't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lgif (or -lungif) for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1344 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1345 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1346 --without-toolkit-scroll-bars
1347 don't use Motif or Xaw3d scroll bars
1348 --without-xim don
't use X11 XIM
1349 --without-carbon don't use Carbon GUI on Mac OS X
1350 --with-x use the X Window System
1352 Some influential environment variables
:
1353 CC C compiler
command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1356 nonstandard directory
<lib dir
>
1357 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1358 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1359 you have headers
in a nonstandard directory
<include dir
>
1361 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1363 Use these variables to override the choices made by
`configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1393 .) # We are building in place.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1427 generated by GNU Autoconf 2.61
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.61. Invocation command line was
1453 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1454 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1455 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1456 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1457 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1459 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1460 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1462 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1463 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1464 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1465 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1466 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1467 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1468 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1501 ac_must_keep_next=false
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1512 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 -* ) ac_must_keep_next=true ;;
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1557 # The following way of writing the cache mishandles newlines in values,
1559 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1560 eval ac_val=\$$ac_var
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1574 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1594 for ac_var in $ac_subst_vars
1596 eval ac_val=\$$ac_var
1598 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 echo "$ac_var='\''$ac_val'\''"
1604 if test -n "$ac_subst_files"; then
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1611 for ac_var in $ac_subst_files
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1622 if test -s confdefs.h; then
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1648 # Predefined preprocessor variables.
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1713 ac_header_list="$ac_header_list sys/time.h"
1714 ac_header_list="$ac_header_list unistd.h"
1715 ac_func_list="$ac_func_list alarm"
1716 # Check that the precious variables saved in the cache have kept the same
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1727 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1731 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1738 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1739 echo "$as_me: former value
: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1741 echo "$as_me: current value
: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1759 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1760 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s
,x
,x
', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1805 lispdir='${datadir}/emacs
/${version}/lisp
'
1806 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1807 '${datadir}/emacs
/site-lisp
'
1808 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1809 etcdir='${datadir}/emacs
/${version}/etc
'
1810 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1811 docdir='${datadir}/emacs
/${version}/etc
'
1812 gamedir='${localstatedir}/games
/emacs
'
1817 # Check whether --with-gcc was given.
1818 if test "${with_gcc+set}" = set; then
1823 # Check whether --with-pop was given.
1824 if test "${with_pop+set}" = set; then
1825 withval=$with_pop; if test "$withval" = yes; then
1826 cat >>confdefs.h <<\_ACEOF
1827 #define MAIL_USE_POP 1
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1841 # Check whether --with-kerberos was given.
1842 if test "${with_kerberos+set}" = set; then
1843 withval=$with_kerberos; if test "$withval" = yes; then
1844 cat >>confdefs.h <<\_ACEOF
1853 # Check whether --with-kerberos5 was given.
1854 if test "${with_kerberos5+set}" = set; then
1855 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1856 if test "${with_kerberos+set}" != set; then
1858 cat >>confdefs.h <<\_ACEOF
1864 cat >>confdefs.h <<\_ACEOF
1872 # Check whether --with-hesiod was given.
1873 if test "${with_hesiod+set}" = set; then
1874 withval=$with_hesiod; if test "$withval" = yes; then
1876 cat >>confdefs.h <<\_ACEOF
1885 # Check whether --with-sound was given.
1886 if test "${with_sound+set}" = set; then
1887 withval=$with_sound;
1892 # Check whether --with-x-toolkit was given.
1893 if test "${with_x_toolkit+set}" = set; then
1894 withval=$with_x_toolkit; case "${withval}" in
1895 y | ye | yes ) val=gtk ;;
1897 l | lu | luc | luci | lucid ) val=lucid ;;
1898 a | at | ath | athe | athen | athena ) val=athena ;;
1899 m | mo | mot | moti | motif ) val=motif ;;
1900 g | gt | gtk ) val=gtk ;;
1902 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1903 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1904 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1905 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1906 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1907 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1908 { (exit 1); exit 1; }; }
1916 # Check whether --with-xpm was given.
1917 if test "${with_xpm+set}" = set; then
1922 # Check whether --with-jpeg was given.
1923 if test "${with_jpeg+set}" = set; then
1928 # Check whether --with-tiff was given.
1929 if test "${with_tiff+set}" = set; then
1934 # Check whether --with-gif was given.
1935 if test "${with_gif+set}" = set; then
1940 # Check whether --with-png was given.
1941 if test "${with_png+set}" = set; then
1946 # Check whether --with-gpm was given.
1947 if test "${with_gpm+set}" = set; then
1952 # Check whether --with-gtk was given.
1953 if test "${with_gtk+set}" = set; then
1958 # Check whether --with-pkg-config-prog was given.
1959 if test "${with_pkg_config_prog+set}" = set; then
1960 withval=$with_pkg_config_prog;
1964 # Check whether --with-toolkit-scroll-bars was given.
1965 if test "${with_toolkit_scroll_bars+set}" = set; then
1966 withval=$with_toolkit_scroll_bars;
1970 # Check whether --with-xim was given.
1971 if test "${with_xim+set}" = set; then
1976 # Check whether --with-carbon was given.
1977 if test "${with_carbon+set}" = set; then
1978 withval=$with_carbon;
1981 # Check whether --enable-carbon-app was given.
1982 if test "${enable_carbon_app+set}" = set; then
1983 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1987 # Check whether --enable-asserts was given.
1988 if test "${enable_asserts+set}" = set; then
1989 enableval=$enable_asserts; USE_XASSERTS=$enableval
1995 # Check whether --enable-maintainer-mode was given.
1996 if test "${enable_maintainer_mode+set}" = set; then
1997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1999 USE_MAINTAINER_MODE=no
2002 if test $USE_MAINTAINER_MODE = yes; then
2009 # Check whether --enable-locallisppath was given.
2010 if test "${enable_locallisppath+set}" = set; then
2011 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2013 elif test "${enableval}" != "yes"; then
2014 locallisppath=${enableval}
2019 #### Make srcdir absolute, if it isn't already. It
's important to
2020 #### avoid running the path through pwd unnecessarily, since pwd can
2021 #### give you automounter prefixes, which can go away. We do all this
2022 #### so Emacs can find its files when run uninstalled.
2023 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2028 ## We may be able to use the $PWD environment variable to make this
2029 ## absolute. But sometimes PWD is inaccurate.
2030 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2031 ## but that tested only for a well-formed and valid PWD,
2032 ## it did not object when PWD was well-formed and valid but just wrong.
2033 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2037 srcdir
="`(cd ${srcdir}; pwd)`"
2040 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2043 #### Check if the source directory already has a configured system in it.
2044 if test `pwd` != `(cd ${srcdir} && pwd)` \
2045 && test -f "${srcdir}/src/config.h" ; then
2046 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2047 as a build directory right now; it has been configured in its own
2048 right. To configure in another directory as well, you MUST
2049 use GNU make. If you do not have GNU make, then you must
2050 now do \`make distclean' in ${srcdir},
2051 and then run $0 again." >&5
2052 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2053 as a build directory right now; it has been configured in its own
2054 right. To configure in another directory as well, you MUST
2055 use GNU make. If you do not have GNU make, then you must
2056 now do \`make distclean' in ${srcdir},
2057 and then run $0 again." >&2;}
2060 #### Given the configuration name, set machfile and opsysfile to the
2061 #### names of the m/*.h and s/*.h files we should use.
2063 ### Canonicalize the configuration name.
2066 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2067 if test -f "$ac_dir/install-sh"; then
2069 ac_install_sh
="$ac_aux_dir/install-sh -c"
2071 elif test -f "$ac_dir/install.sh"; then
2073 ac_install_sh
="$ac_aux_dir/install.sh -c"
2075 elif test -f "$ac_dir/shtool"; then
2077 ac_install_sh
="$ac_aux_dir/shtool install -c"
2081 if test -z "$ac_aux_dir"; then
2082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084 { (exit 1); exit 1; }; }
2087 # These three variables are undocumented and unsupported,
2088 # and are intended to be withdrawn in a future Autoconf release.
2089 # They can cause serious problems if a builder's source tree is in a directory
2090 # whose full name contains unusual characters.
2091 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 ac_build_alias
=$build_alias
2108 test "x$ac_build_alias" = x
&&
2109 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x
&&
2111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2129 ac_save_IFS
=$IFS; IFS
='-'
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2139 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test "x$host_alias" = x
; then
2148 ac_cv_host
=$ac_cv_build
2150 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2166 ac_save_IFS
=$IFS; IFS
='-'
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2176 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2180 configuration
=${host_alias-${build_alias-$host}}
2184 ### If you add support for a new configuration, add code to this
2185 ### switch statement to recognize your configuration name and select
2186 ### the appropriate operating system and machine description files.
2188 ### You would hope that you could choose an m/*.h file pretty much
2189 ### based on the machine portion of the configuration name, and an s-
2190 ### file based on the operating system portion. However, it turns out
2191 ### that each m/*.h file is pretty manufacturer-specific - for
2192 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2193 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2194 ### machines. So we basically have to have a special case for each
2195 ### configuration name.
2197 ### As far as handling version numbers on operating systems is
2198 ### concerned, make sure things will fail in a fixable way. If
2199 ### /etc/MACHINES doesn't say anything about version numbers, be
2200 ### prepared to handle anything reasonably. If version numbers
2201 ### matter, be sure /etc/MACHINES says something about it.
2203 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2204 ### "System V Release 4"; he writes, "The old convention encouraged
2205 ### confusion between `system' and `release' levels'."
2207 machine
='' opsys
='' unported
=no
2208 case "${canonical}" in
2213 case "${canonical}" in
2214 alpha
*-*-freebsd*) machine
=alpha
;;
2215 ia64-
*-freebsd*) machine
=ia64
;;
2216 sparc64-
*-freebsd*) machine
=sparc
;;
2217 powerpc-
*-freebsd*) machine
=macppc
;;
2218 i
[3456]86-*-freebsd*) machine
=intel386
;;
2219 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2226 if test -f /usr
/lib
/crti.o
; then
2228 cat >>confdefs.h
<<\_ACEOF
2234 case "${canonical}" in
2235 alpha
*-*-netbsd*) machine
=alpha
;;
2236 i
[3456]86-*-netbsd*) machine
=intel386
;;
2238 # This is somewhat bogus.
2239 machine
=hp9000s300
;;
2240 mips-
*-netbsd*) machine
=pmax
;;
2241 mipsel-
*-netbsd*) machine
=pmax
;;
2242 mipseb-
*-netbsd*) machine
=pmax
;;
2243 ns32k-
*-netbsd*) machine
=ns32000
;;
2244 powerpc-
*-netbsd*) machine
=macppc
;;
2245 sparc
*-*-netbsd*) machine
=sparc
;;
2246 vax-
*-netbsd*) machine
=vax
;;
2247 arm-
*-netbsd*) machine
=arm
;;
2248 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2249 hppa-
*-netbsd*) machine
=hp800
;;
2250 shle-
*-netbsd*) machine
=sh3el
;;
2257 case "${canonical}" in
2258 alpha
*-*-openbsd*) machine
=alpha
;;
2259 arm-
*-openbsd*) machine
=arm
;;
2260 hppa-
*-openbsd*) machine
=hp9000s300
;;
2261 i386-
*-openbsd*) machine
=intel386
;;
2262 m68k-
*-openbsd*) machine
=hp9000s300
;;
2263 m88k-
*-openbsd*) machine
=aviion
;;
2264 mips64-
*-openbsd*) machine
=mips64
;;
2265 powerpc-
*-openbsd*) machine
=macppc
;;
2266 sh-
*-openbsd*) machine
=sh3el
;;
2267 sparc
*-*-openbsd*) machine
=sparc
;;
2268 vax-
*-openbsd*) machine
=vax
;;
2269 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2276 case "${canonical}" in
2277 i
[3456]86-*-lynxos*) machine
=intel386
;;
2278 powerpc-
*-lynxos*) machine
=powerpc
;;
2283 arm-acorn-riscix1.1
* )
2284 machine
=acorn opsys
=riscix1-1
2286 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2287 ## This name is riscix12 instead of riscix1.2
2288 ## to avoid a file name conflict on MSDOS.
2289 machine
=acorn opsys
=riscix12
2295 case "${canonical}" in
2296 i
[345]86-*-bsdi*) machine
=intel386
;;
2297 sparc-
*-bsdi*) machine
=sparc
;;
2298 powerpc-
*-bsdi*) machine
=macppc
;;
2300 case "${canonical}" in
2301 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2302 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2303 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2304 *-*-bsdi3* ) opsys
=bsdos3
;;
2305 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2310 ## Strictly speaking, we need the version of the alliant operating
2311 ## system to choose the right machine file, but currently the
2312 ## configuration name doesn't tell us enough to choose the right
2313 ## one; we need to give alliants their own operating system name to
2314 ## do this right. When someone cares, they can help us.
2316 machine
=alliant4 opsys
=bsd4-2
2319 machine
=alliant-2800 opsys
=bsd4-3
2322 ## Alpha (DEC) machines.
2324 machine
=alpha opsys
=osf1
2325 # This is needed to find X11R6.1 libraries for certain tests.
2326 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2327 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2328 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2329 # due to non-traditional preprocessing with the current compiler
2330 # defaults. OSF 4 can also have that compiler version, and there
2331 # seems always to have been a usable /usr/bin/cpp.
2332 NON_GNU_CPP
=/usr
/bin
/cpp
2333 case "${canonical}" in
2334 alpha
*-dec-osf[5-9]*)
2339 alpha
*-*-linux-gnu* )
2340 machine
=alpha opsys
=gnu-linux
2344 machine
=arm opsys
=gnu-linux
2349 machine
=altos opsys
=usg5-2
2354 machine
=amdahl opsys
=usg5-2-2
2357 ## Apollo, Domain/OS
2359 machine
=apollo opsys
=bsd4-3
2362 ## Apple Darwin / Mac OS X
2364 case "${canonical}" in
2365 i
[3456]86-* ) machine
=intel386
;;
2366 powerpc-
* ) machine
=powermac
;;
2370 # Define CPP as follows to make autoconf work correctly.
2371 CPP
="${CC-cc} -E -no-cpp-precomp"
2372 # Use fink packages if available.
2373 if test -d /sw
/include
&& test -d /sw
/lib
; then
2374 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2375 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2376 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2380 ## AT&T 3b2, 3b5, 3b15, 3b20
2382 machine
=att3b opsys
=usg5-2-2
2385 ## AT&T 3b1 - The Mighty Unix PC!
2387 machine
=7300 opsys
=usg5-2-2
2392 machine
=ibmrs6000 opsys
=aix3-2
2397 machine
=dpx2 opsys
=usg5-3
2402 machine
=sps7 opsys
=usg5-2
2405 ## CCI 5/32, 6/32 -- see "Tahoe".
2408 ## I don't know what configuration name to use for this; config.sub
2409 ## doesn't seem to know anything about it. Hey, Celerity users, get
2410 ## in touch with us!
2411 celerity-celerity-bsd
* )
2412 machine
=celerity opsys
=bsd4-2
2416 ## What operating systems does this chip run that Emacs has been
2420 ## We'll use the catch-all code at the bottom to guess the
2421 ## operating system.
2425 mips-compaq-nonstopux
* )
2426 machine
=nonstopux opsys
=nonstopux
2430 *-convex-bsd* |
*-convex-convexos* )
2431 machine
=convex opsys
=bsd4-3
2432 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2433 NON_GNU_CPP
="cc -E -P"
2437 i
[3456]86-cubix-sysv* )
2438 machine
=intel386 opsys
=usg5-3
2442 cydra
*-cydrome-sysv* )
2443 machine
=cydra5 opsys
=usg5-3
2446 ## Data General AViiON Machines
2447 ## DG changed naming conventions with the release of 5.4.4.10, they
2448 ## dropped the initial 5.4 but left the intervening R. Because of the
2449 ## R this shouldn't conflict with older versions of the OS (which I
2450 ## think were named like dgux4.*). In addition, DG new AViiONs series
2451 ## uses either Motorola M88k or Intel Pentium CPUs.
2452 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2453 machine
=aviion opsys
=dgux4
2455 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2456 ## This name is dgux5-4-3 instead of dgux5-4r3
2457 ## to avoid a file name conflict on MSDOS.
2458 machine
=aviion opsys
=dgux5-4-3
2460 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2461 machine
=aviion opsys
=dgux5-4r2
2464 machine
=aviion opsys
=dgux
2467 ## Data General AViiON Intel (x86) Machines
2468 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2469 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2470 i
[345]86-dg-dguxR4* )
2471 machine
=aviion-intel opsys
=dgux4
2475 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2476 machine
=pmax opsys
=bsd4-2
2478 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2479 machine
=pmax opsys
=bsd4-3
2482 machine
=pmax opsys
=ultrix4-3
2485 machine
=pmax opsys
=osf1
2487 mips-dec-mach_bsd4.3
* )
2488 machine
=pmax opsys
=mach-bsd4-3
2491 ## Motorola Delta machines
2492 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2493 machine
=delta opsys
=usg5-3
2494 if test -z "`type gnucc | grep 'not found'`"
2496 if test -s /etc
/167config
2497 then CC
="gnucc -m68040"
2498 else CC
="gnucc -m68881"
2501 if test -z "`type gcc | grep 'not found'`"
2507 m88k-motorola-sysv4
* )
2508 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2509 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2510 # I hope there are not other 4.0 versions for this machine
2511 # which really need usg5-4 instead.
2512 machine
=delta88k opsys
=usg5-4-2
2514 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2515 machine
=delta88k opsys
=usg5-3
2520 machine
=dual opsys
=usg5-2
2522 m68
*-dual-uniplus* )
2523 machine
=dual opsys
=unipl5-2
2528 machine
=elxsi opsys
=usg5-2
2533 machine
=ns16000 opsys
=umax
2536 ## The GEC 63 - apparently, this port isn't really finished yet.
2537 # I'm sure we finished off the last of the machines, though. -- fx
2539 ## Gould Power Node and NP1
2541 machine
=gould opsys
=bsd4-2
2544 machine
=gould opsys
=bsd4-3
2547 machine
=gould-np1 opsys
=bsd4-3
2550 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2551 ## as far as Emacs is concerned).
2553 # Build needs to be different on 7.0 and later releases
2554 case "`uname -r`" in
2555 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2556 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2558 NON_GNU_CPP
="/lib/cpp"
2560 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2562 machine
=nh3000 opsys
=cxux
2564 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2565 powerpc-harris-powerunix
)
2566 machine
=nh6000 opsys
=powerunix
2567 NON_GNU_CPP
="cc -Xo -E -P"
2569 ## SR2001/SR2201 running HI-UX/MPP
2570 hppa1.1
-hitachi-hiuxmpp* )
2571 machine
=sr2k opsys
=hiuxmpp
2573 hppa1.1
-hitachi-hiuxwe2* )
2574 machine
=sr2k opsys
=hiuxwe2
2577 xps
*-honeywell-sysv* )
2578 machine
=xps100 opsys
=usg5-2
2581 ## HP 9000 series 200 or 300
2583 machine
=hp9000s300 opsys
=bsd4-3
2585 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2587 case "`uname -r`" in
2588 ## Someone's system reports A.B8.05 for this.
2589 ## I wonder what other possibilities there are.
2590 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2591 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2592 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2593 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2594 *) machine
=hp9000s300 opsys
=hpux
;;
2598 ## HP 9000 series 700 and 800, running HP/UX
2600 machine
=hp800 opsys
=hpux
2603 machine
=hp800 opsys
=hpux8
2605 hppa
*-hp-hpux9shr* )
2606 machine
=hp800 opsys
=hpux9shr
2609 machine
=hp800 opsys
=hpux9
2611 hppa
*-hp-hpux10.2
* )
2612 machine
=hp800 opsys
=hpux10-20
2615 machine
=hp800 opsys
=hpux10
2617 hppa
*-hp-hpux1[1-9]* )
2618 machine
=hp800 opsys
=hpux11
2619 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2622 hppa
*-*-linux-gnu* )
2623 machine
=hp800 opsys
=gnu-linux
2626 ## HP 9000 series 700 and 800, running HP/UX
2628 ## Cross-compilation? Nah!
2629 case "`uname -r`" in
2630 ## Someone's system reports A.B8.05 for this.
2631 ## I wonder what other possibilities there are.
2632 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2633 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2634 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2635 *) machine
=hp800 opsys
=hpux10
;;
2639 machine
=hp800 opsys
=nextstep
2644 machine
=orion opsys
=bsd4-2
2646 clipper-orion-bsd
* )
2647 machine
=orion105 opsys
=bsd4-2
2651 i
[3456]86-ibm-aix1.1
* )
2652 machine
=ibmps2-aix opsys
=usg5-2-2
2654 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2655 machine
=ibmps2-aix opsys
=usg5-3
2658 machine
=ibm370aix opsys
=usg5-3
2661 machine
=ibms390 opsys
=gnu-linux
2663 s390x-
*-linux-gnu* )
2664 machine
=ibms390x opsys
=gnu-linux
2666 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2667 machine
=ibmrs6000 opsys
=aix3-1
2669 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2670 machine
=ibmrs6000 opsys
=aix3-2-5
2672 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2673 machine
=ibmrs6000 opsys
=aix4-1
2675 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2676 machine
=ibmrs6000 opsys
=aix4-2
2678 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2679 machine
=ibmrs6000 opsys
=aix4-2
2681 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2682 machine
=ibmrs6000 opsys
=aix4-2
2684 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2685 machine
=ibmrs6000 opsys
=aix4
2687 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2688 machine
=ibmrs6000 opsys
=aix4-1
2690 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2691 machine
=ibmrs6000 opsys
=aix3-2
2694 machine
=ibmrt opsys
=bsd4-3
2697 machine
=ibmrt opsys
=bsd4-2
2700 machine
=ibmrt opsys
=bsd4-3
2703 machine
=ibmrt opsys
=bsd4-2
2706 machine
=ibmrt opsys
=bsd4-3
2709 machine
=ibmrt opsys
=bsd4-3
2712 machine
=ibmrt-aix opsys
=usg5-2-2
2715 ## Integrated Solutions `Optimum V'
2717 machine
=isi-ov opsys
=bsd4-2
2720 machine
=isi-ov opsys
=bsd4-3
2723 ## Intel 386 machines where we do care about the manufacturer
2724 i
[3456]86-intsys-sysv* )
2725 machine
=is386 opsys
=usg5-2-2
2729 i
[3456]86-prime-sysv* )
2730 machine
=i386 opsys
=usg5-3
2733 ## Sequent Symmetry running Dynix
2734 i
[3456]86-sequent-bsd* )
2735 machine
=symmetry opsys
=bsd4-3
2738 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2739 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2740 machine
=sequent-ptx opsys
=ptx4
2741 NON_GNU_CPP
=/lib
/cpp
2744 ## Sequent Symmetry running DYNIX/ptx
2745 ## Use the old cpp rather than the newer ANSI one.
2746 i
[3456]86-sequent-ptx* )
2747 machine
=sequent-ptx opsys
=ptx
2748 NON_GNU_CPP
="/lib/cpp"
2751 ## ncr machine running svr4.3.
2752 i
[3456]86-ncr-sysv4.3
)
2753 machine
=ncr386 opsys
=usg5-4-3
2756 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2757 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2758 i
[3456]86-ncr-sysv* )
2759 machine
=ncr386 opsys
=usg5-4-2
2762 ## Intel Paragon OSF/1
2764 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2769 machine
=i860 opsys
=usg5-4
2770 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2771 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2774 ## Macintosh PowerPC
2775 powerpc
*-*-linux-gnu* )
2776 machine
=macppc opsys
=gnu-linux
2779 ## Masscomp machines
2780 m68
*-masscomp-rtu* )
2781 machine
=masscomp opsys
=rtu
2784 ## Megatest machines
2785 m68
*-megatest-bsd* )
2786 machine
=mega68 opsys
=bsd4-2
2789 ## Workstations sold by MIPS
2790 ## This is not necessarily all workstations using the MIPS processor -
2791 ## Irises are produced by SGI, and DECstations by DEC.
2793 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2794 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2795 ## it gives for choosing between the alternatives seems to be "Use
2796 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2797 ## the BSD world." I'll assume that these are instructions for
2798 ## handling two odd situations, and that every other situation
2799 ## should use mips.h and usg5-2-2, they being listed first.
2802 ## Fall through to the general code at the bottom to decide on the OS.
2804 mips-mips-riscos4
* )
2805 machine
=mips4 opsys
=bsd4-3
2806 NON_GNU_CC
="cc -systype bsd43"
2807 NON_GNU_CPP
="cc -systype bsd43 -E"
2809 mips-mips-riscos5
* )
2810 machine
=mips4 opsys
=riscos5
2811 NON_GNU_CC
="cc -systype bsd43"
2812 NON_GNU_CPP
="cc -systype bsd43 -E"
2815 machine
=mips opsys
=bsd4-3
2818 machine
=mips opsys
=usg5-2-2
2822 m68
*-next-* | m68k-
*-nextstep* )
2823 machine
=m68k opsys
=nextstep
2826 ## The complete machine from National Semiconductor
2828 machine
=ns32000 opsys
=usg5-2
2832 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2833 machine
=tower32 opsys
=usg5-2-2
2835 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2836 machine
=tower32v3 opsys
=usg5-3
2841 machine
=ews4800 opsys
=ux4800
2844 ## Nixdorf Targon 31
2845 m68
*-nixdorf-sysv* )
2846 machine
=targon31 opsys
=usg5-2-2
2851 machine
=nu opsys
=usg5-2
2856 machine
=plexus opsys
=usg5-2
2860 ## I don't really have any idea what sort of processor the Pyramid has,
2861 ## so I'm assuming it is its own architecture.
2862 pyramid-pyramid-bsd
* )
2863 machine
=pyramid opsys
=bsd4-2
2867 ns32k-sequent-bsd4.2
* )
2868 machine
=sequent opsys
=bsd4-2
2870 ns32k-sequent-bsd4.3
* )
2871 machine
=sequent opsys
=bsd4-3
2875 mips-siemens-sysv
* | mips-sni-sysv
*)
2876 machine
=mips-siemens opsys
=usg5-4
2877 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2878 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2881 ## Silicon Graphics machines
2882 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2884 machine
=irist opsys
=iris3-5
2886 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2887 machine
=irist opsys
=iris3-6
2891 machine
=iris4d opsys
=irix3-3
2894 machine
=iris4d opsys
=irix4-0
2897 machine
=iris4d opsys
=irix6-5
2898 # Without defining _LANGUAGE_C, things get masked out in the headers
2899 # so that, for instance, grepping for `free' in stdlib.h fails and
2900 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2901 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2902 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2905 machine
=iris4d opsys
=irix6-0
2906 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2907 # but presumably it does no harm.
2908 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2909 # -32 probably isn't necessary in later v.6s -- anyone know which?
2910 NON_GCC_TEST_OPTIONS
=-32
2912 mips-sgi-irix5.
[01]* )
2913 machine
=iris4d opsys
=irix5-0
2915 mips-sgi-irix5
* | mips-sgi-irix
* )
2916 machine
=iris4d opsys
=irix5-2
2921 machine
=news opsys
=bsd4-2
2924 machine
=news opsys
=bsd4-3
2926 m68
*-sony-newsos3* | m68
*-sony-news3*)
2927 machine
=news opsys
=bsd4-3
2929 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2930 machine
=news-risc opsys
=bsd4-3
2932 mips-sony-newsos6
* )
2933 machine
=news-r6 opsys
=newsos6
2936 machine
=news-risc opsys
=newsos5
2941 machine
=stride opsys
=usg5-2
2945 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2946 machine
=sparc opsys
=gnu-linux
2949 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2950 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2951 | rs6000-
*-solaris2*)
2952 case "${canonical}" in
2953 m68
*-sunos1* ) machine
=sun1
;;
2954 m68
*-sunos2* ) machine
=sun2
;;
2955 m68
* ) machine
=sun3
;;
2956 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2957 i
[3456]86-*-* ) machine
=intel386
;;
2958 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2959 powerpcle
* ) machine
=powerpcle
;;
2960 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2961 sparc
* ) machine
=sparc
;;
2964 case "${canonical}" in
2965 ## The Sun386 didn't get past 4.0.
2966 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2967 *-sunos4.0
* ) opsys
=sunos4-0
;;
2968 *-sunos4.1.
[3-9]*noshare
)
2969 ## This name is sunos413 instead of sunos4-1-3
2970 ## to avoid a file name conflict on MSDOS.
2972 NON_GNU_CPP
=/usr
/lib
/cpp
2973 NON_GCC_TEST_OPTIONS
=-Bstatic
2974 GCC_TEST_OPTIONS
=-static
2976 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2978 NON_GNU_CPP
=/usr
/lib
/cpp
2980 *-sunos4* |
*-sunos )
2982 NON_GCC_TEST_OPTIONS
=-Bstatic
2983 GCC_TEST_OPTIONS
=-static
2985 *-sunos5.3
* |
*-solaris2.3
* )
2987 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2989 *-sunos5.4
* |
*-solaris2.4
* )
2991 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2994 *-sunos5.5
* |
*-solaris2.5
* )
2996 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2999 *-sunos5.6
* |
*-solaris2.6
* )
3001 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3004 *-sunos5* |
*-solaris* )
3006 emacs_check_sunpro_c
=yes
3007 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3011 ## Watch out for a compiler that we know will not work.
3012 case "${canonical}" in
3013 *-solaris* |
*-sunos5* )
3014 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3015 ## /usr/ucb/cc doesn't work;
3016 ## we should find some other compiler that does work.
3024 machine
=sparc opsys
=nextstep
3028 m68
*-tadpole-sysv* )
3029 machine
=tad68k opsys
=usg5-3
3033 tahoe-tahoe-bsd4.2
* )
3034 machine
=tahoe opsys
=bsd4-2
3036 tahoe-tahoe-bsd4.3
* )
3037 machine
=tahoe opsys
=bsd4-3
3040 ## Tandem Integrity S2
3042 machine
=tandem-s2 opsys
=usg5-3
3046 m88k-tektronix-sysv3
* )
3047 machine
=tekxd88 opsys
=usg5-3
3050 ## Tektronix 16000 box (6130?)
3051 ns16k-tektronix-bsd
* )
3052 machine
=ns16000 opsys
=bsd4-2
3055 ## src/m/tek4300.h hints that this is a m68k machine.
3056 m68
*-tektronix-bsd* )
3057 machine
=tek4300 opsys
=bsd4-3
3061 ## We seem to have lost the machine-description file titan.h!
3063 machine
=titan opsys
=usg5-3
3066 ## Ustation E30 (SS5E)
3067 m68
*-unisys-uniplus* )
3068 machine
=ustation opsystem
=unipl5-2
3074 case "${canonical}" in
3075 *-bsd4.1
* ) opsys
=bsd4-1
;;
3076 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3077 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3078 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3079 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3080 *-vms* ) opsys
=vms
;;
3086 ns16k-whitechapel-
* )
3088 ## We don't know what sort of OS runs on these; we'll let the
3089 ## operating system guessing code below try.
3094 machine
=wicat opsys
=usg5-2
3099 machine
=ia64 opsys
=gnu-linux
3102 ## Intel 386 machines where we don't care about the manufacturer
3105 case "${canonical}" in
3106 *-cygwin ) opsys
=cygwin
;;
3107 *-darwin* ) opsys
=darwin
3108 CPP
="${CC-cc} -E -no-cpp-precomp"
3110 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3111 *-isc2.2
* ) opsys
=isc2-2
;;
3112 *-isc4.0
* ) opsys
=isc4-0
;;
3113 *-isc4.
* ) opsys
=isc4-1
3114 GCC_TEST_OPTIONS
=-posix
3115 NON_GCC_TEST_OPTIONS
=-Xp
3117 *-isc* ) opsys
=isc3-0
;;
3118 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3119 *-esix* ) opsys
=esix
;;
3120 *-xenix* ) opsys
=xenix
;;
3121 *-linux-gnu* ) opsys
=gnu-linux
;;
3122 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3123 *-sco3.2v5
* ) opsys
=sco5
3124 NON_GNU_CPP
=/lib
/cpp
3125 # Prevent -belf from being passed to $CPP.
3126 # /lib/cpp does not accept it.
3127 OVERRIDE_CPPFLAGS
=" "
3129 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3130 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3131 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3132 *-386bsd* ) opsys
=386bsd
;;
3133 *-nextstep* ) opsys
=nextstep
;;
3134 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3138 ## m68k Linux-based GNU system
3140 machine
=m68k opsys
=gnu-linux
3143 ## Mips Linux-based GNU system
3144 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3145 machine
=mips opsys
=gnu-linux
3149 sparc-fujitsu-sysv4
* )
3150 machine
=sparc opsys
=uxpds
3151 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3156 f301-fujitsu-uxpv4.1
)
3157 machine
=f301 opsys
=uxpv
3160 ## AMD x86-64 Linux-based GNU system
3161 x86_64-
*-linux-gnu* )
3162 machine
=amdx86-64 opsys
=gnu-linux
3165 ## Tensilica Xtensa Linux-based GNU system
3166 xtensa-
*-linux-gnu* )
3167 machine
=xtensa opsys
=gnu-linux
3175 ### If the code above didn't choose an operating system, just choose
3176 ### an operating system based on the configuration name. You really
3177 ### only want to use this when you have no idea what the right
3178 ### operating system is; if you know what operating systems a machine
3179 ### runs, it's cleaner to make it explicit in the case statement
3181 if test x
"${opsys}" = x
; then
3182 case "${canonical}" in
3183 *-gnu* ) opsys
=gnu
;;
3184 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3185 *-bsd4.2
) opsys
=bsd4-2
;;
3186 *-bsd4.3
) opsys
=bsd4-3
;;
3187 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3188 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3189 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3190 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3191 *-sysv4.2uw
* ) opsys
=unixware
;;
3192 *-sysv5uw* ) opsys
=unixware
;;
3193 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3194 *-sysv4.1
* |
*-sysvr4.1
* )
3195 NON_GNU_CPP
=/usr
/lib
/cpp
3197 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3198 if [ x
$NON_GNU_CPP = x
]; then
3199 if [ -f /usr
/ccs
/lib
/cpp
]; then
3200 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3202 NON_GNU_CPP
=/lib
/cpp
3206 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3215 if test $unported = yes; then
3216 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3217 Check \`etc/MACHINES' for recognized configuration names." >&5
3218 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3219 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3220 { (exit 1); exit 1; }; }
3223 machfile
="m/${machine}.h"
3224 opsysfile
="s/${opsys}.h"
3227 #### Choose a compiler.
3228 test -n "$CC" && cc_specified
=yes
3230 # Save the value of CFLAGS that the user specified.
3231 SPECIFIED_CFLAGS
="$CFLAGS"
3234 "yes" ) CC
="gcc" GCC
=yes ;;
3235 "no" ) : ${CC=cc} ;;
3239 ac_cpp
='$CPP $CPPFLAGS'
3240 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC
="$CC" # Let the user override the test.
3254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir
=.
3259 for ac_exec_ext
in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 if test -n "$CC"; then
3273 { echo "$as_me:$LINENO: result: $CC" >&5
3274 echo "${ECHO_T}$CC" >&6; }
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3282 if test -z "$ac_cv_prog_CC"; then
3284 # Extract the first word of "gcc", so it can be a program name with args.
3285 set dummy gcc
; ac_word
=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir
=.
3299 for ac_exec_ext
in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_ac_ct_CC
="gcc"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3314 echo "${ECHO_T}$ac_ct_CC" >&6; }
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3320 if test "x$ac_ct_CC" = x
; then
3323 case $cross_compiling:$ac_tool_warned in
3325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned
=yes ;;
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC
="$CC" # Let the user override the test.
3351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir
=.
3356 for ac_exec_ext
in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 if test -n "$CC"; then
3370 { echo "$as_me:$LINENO: result: $CC" >&5
3371 echo "${ECHO_T}$CC" >&6; }
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3380 if test -z "$CC"; then
3381 # Extract the first word of "cc", so it can be a program name with args.
3382 set dummy cc
; ac_word
=$2
3383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC
="$CC" # Let the user override the test.
3392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir
=.
3397 for ac_exec_ext
in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3400 ac_prog_rejected
=yes
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy
$ac_cv_prog_CC
3415 if test $# != 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3420 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 for ac_prog
in cl.exe
3440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC
="$CC" # Let the user override the test.
3450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir
=.
3455 for ac_exec_ext
in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test -n "$CC"; then
3469 { echo "$as_me:$LINENO: result: $CC" >&5
3470 echo "${ECHO_T}$CC" >&6; }
3472 { echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6; }
3477 test -n "$CC" && break
3480 if test -z "$CC"; then
3482 for ac_prog
in cl.exe
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy
$ac_prog; ac_word
=$2
3486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir
=.
3499 for ac_exec_ext
in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_CC
="$ac_prog"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3514 echo "${ECHO_T}$ac_ct_CC" >&6; }
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3521 test -n "$ac_ct_CC" && break
3524 if test "x$ac_ct_CC" = x
; then
3527 case $cross_compiling:$ac_tool_warned in
3529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3530 whose name does not start with the host triplet. If you think this
3531 configuration is useful to you, please write to autoconf@gnu.org." >&5
3532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3535 ac_tool_warned
=yes ;;
3544 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&5
3546 echo "$as_me: error: no acceptable C compiler found in \$PATH
3547 See \`config.log' for more details." >&2;}
3548 { (exit 1); exit 1; }; }
3550 # Provide some information about the compiler.
3551 echo "$as_me:$LINENO: checking for C compiler version" >&5
3552 ac_compiler
=`set X $ac_compile; echo $2`
3553 { (ac_try
="$ac_compiler --version >&5"
3555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compiler --version >&5") 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 { (ac_try="$ac_compiler -v >&5"
3565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3566 *) ac_try_echo
=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compiler -v >&5") 2>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }
3573 { (ac_try
="$ac_compiler -V >&5"
3575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compiler -V >&5") 2>&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3604 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3605 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3606 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3608 # List of possible output files, starting from the most likely.
3609 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3610 # only as a last resort. b.out is created by i960 compilers.
3611 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3613 # The IRIX 6 linker writes into existing files which may not be
3614 # executable, retaining their permissions. Remove them first so a
3615 # subsequent execution test works.
3617 for ac_file in $ac_files
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626 if { (ac_try="$ac_link_default"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_link_default") 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; then
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3641 for ac_file
in $ac_files ''
3643 test -f "$ac_file" ||
continue
3645 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3648 # We found the default executable, but exeext='' is most
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3654 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3666 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3672 { echo "$as_me:$LINENO: result: $ac_file" >&5
3673 echo "${ECHO_T}$ac_file" >&6; }
3674 if test -z "$ac_file"; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.
$ac_ext >&5
3678 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C compiler cannot create executables
3681 See \`config.log' for more details." >&2;}
3682 { (exit 77); exit 77; }; }
3685 ac_exeext
=$ac_cv_exeext
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3692 # If not cross compiling, check that we can run a simple program.
3693 if test "$cross_compiling" != yes; then
3694 if { ac_try
='./$ac_file'
3695 { (case "(($ac_try" in
3696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3706 if test "$cross_compiling" = maybe; then
3709 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details.
" >&5
3712 echo "$as_me: error
: cannot run C compiled programs.
3713 If you meant to cross compile
, use \
`--host'.
3714 See \`config.log
' for more details." >&2;}
3715 { (exit 1); exit 1; }; }
3719 { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3722 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 # Check that the compiler produces executables we can run. If not, either
3725 # the compiler is broken, or we cross compile.
3726 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3727 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3728 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3729 echo "${ECHO_T}$cross_compiling" >&6; }
3731 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3732 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3733 if { (ac_try="$ac_link"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_link") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3747 for ac_file
in conftest.exe conftest conftest.
*; do
3748 test -f "$ac_file" ||
continue
3750 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3751 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details." >&2;}
3761 { (exit 1); exit 1; }; }
3764 rm -f conftest
$ac_cv_exeext
3765 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3766 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3768 rm -f conftest.
$ac_ext
3769 EXEEXT
=$ac_cv_exeext
3771 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3772 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3773 if test "${ac_cv_objext+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 cat >conftest.
$ac_ext <<_ACEOF
3779 cat confdefs.h
>>conftest.
$ac_ext
3780 cat >>conftest.
$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3791 rm -f conftest.o conftest.obj
3792 if { (ac_try
="$ac_compile"
3794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 for ac_file in conftest.o conftest.obj conftest.*; do
3803 test -f "$ac_file" || continue;
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log
' for more details." >&5
3816 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3817 See \`config.log' for more details.
" >&2;}
3818 { (exit 1); exit 1; }; }
3821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3823 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3824 echo "${ECHO_T}$ac_cv_objext" >&6; }
3825 OBJEXT=$ac_cv_objext
3827 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3828 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3829 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3830 echo $ECHO_N "(cached
) $ECHO_C" >&6
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3869 echo "$as_me: failed program was
:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3879 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3881 GCC=`test $ac_compiler_gnu = yes && echo yes`
3882 ac_test_CFLAGS=${CFLAGS+set}
3883 ac_save_CFLAGS=$CFLAGS
3884 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3885 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3886 if test "${ac_cv_prog_cc_g+set}" = set; then
3887 echo $ECHO_N "(cached
) $ECHO_C" >&6
3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3927 echo "$as_me: failed program was
:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3955 grep -v '^ *+' conftest.er1 >conftest.err
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3965 echo "$as_me: failed program was
:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4004 echo "$as_me: failed program was
:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4019 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4030 if test "$GCC" = yes; then
4036 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4037 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then
4039 echo $ECHO_N "(cached
) $ECHO_C" >&6
4041 ac_cv_prog_cc_c89=no
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4067 s = g (p, va_arg (v,int));
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 CC="$ac_save_CC $ac_arg"
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest.$ac_objext; then
4121 ac_cv_prog_cc_c89=$ac_arg
4123 echo "$as_me: failed program was
:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4129 rm -f core conftest.err conftest.$ac_objext
4130 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4132 rm -f conftest.$ac_ext
4137 case "x
$ac_cv_prog_cc_c89" in
4139 { echo "$as_me:$LINENO: result
: none needed
" >&5
4140 echo "${ECHO_T}none needed
" >&6; } ;;
4142 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4143 echo "${ECHO_T}unsupported
" >&6; } ;;
4145 CC="$CC $ac_cv_prog_cc_c89"
4146 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4147 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 # On Suns, sometimes $CPP names a directory.
4159 if test -n "$CPP" && test -d "$CPP"; then
4163 ## If not using gcc, and on Solaris, and no CPP specified, see if
4164 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4165 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4166 test x"$CPP" = x; then
4167 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4168 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4170 if test "${emacs_cv_sunpro_c+set}" = set; then
4171 echo $ECHO_N "(cached
) $ECHO_C" >&6
4173 cat >conftest.$ac_ext <<_ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_link") 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest$ac_exeext &&
4208 $as_test_x conftest$ac_exeext; then
4209 emacs_cv_sunpro_c=yes
4211 echo "$as_me: failed program was
:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 emacs_cv_sunpro_c=no
4217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4218 conftest$ac_exeext conftest.$ac_ext
4221 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4222 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4224 if test x"$emacs_cv_sunpro_c" = xyes; then
4225 NON_GNU_CPP="$CC -E -Xs"
4229 #### Some systems specify a CPP to use unless we are using GCC.
4230 #### Now that we know whether we are using GCC, we can decide whether
4231 #### to use that one.
4232 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4237 #### Some systems specify a CC to use unless we are using GCC.
4238 #### Now that we know whether we are using GCC, we can decide whether
4239 #### to use that one.
4240 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4241 test x$cc_specified != xyes
4246 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4248 CC="$CC $GCC_TEST_OPTIONS"
4251 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4253 CC="$CC $NON_GCC_TEST_OPTIONS"
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4262 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4267 if test -z "$CPP"; then
4268 if test "${ac_cv_prog_CPP+set}" = set; then
4269 echo $ECHO_N "(cached
) $ECHO_C" >&6
4271 # Double quotes because CPP needs to be expanded
4272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4275 for ac_c_preproc_warn_flag in '' yes
4277 # Use a header file that comes with gcc, so configuring glibc
4278 # with a fresh cross-compiler works.
4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 # <limits.h> exists even on freestanding compilers.
4281 # On the NeXT, cc -E runs the code through the compiler's parser,
4282 # not just through cpp. "Syntax error
" is here to catch this case.
4283 cat >conftest.$ac_ext <<_ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4290 # include <limits.h>
4292 # include <assert.h>
4296 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4308 (exit $ac_status); } >/dev/null && {
4309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4314 echo "$as_me: failed program was
:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 # Broken: fails on valid input.
4321 rm -f conftest.err conftest.$ac_ext
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <ac_nonexistent.h>
4333 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4349 # Broken: success on invalid input.
4352 echo "$as_me: failed program was
:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 # Passes both tests.
4360 rm -f conftest.err conftest.$ac_ext
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.err conftest.$ac_ext
4365 if $ac_preproc_ok; then
4377 { echo "$as_me:$LINENO: result
: $CPP" >&5
4378 echo "${ECHO_T}$CPP" >&6; }
4380 for ac_c_preproc_warn_flag in '' yes
4382 # Use a header file that comes with gcc, so configuring glibc
4383 # with a fresh cross-compiler works.
4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385 # <limits.h> exists even on freestanding compilers.
4386 # On the NeXT, cc -E runs the code through the compiler's parser,
4387 # not just through cpp. "Syntax error
" is here to catch this case.
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4395 # include <limits.h>
4397 # include <assert.h>
4401 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4413 (exit $ac_status); } >/dev/null && {
4414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4419 echo "$as_me: failed program was
:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 # Broken: fails on valid input.
4426 rm -f conftest.err conftest.$ac_ext
4428 # OK, works on sane cases. Now check whether nonexistent headers
4429 # can be detected and how.
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <ac_nonexistent.h>
4438 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4446 grep -v '^ *+' conftest.er1 >conftest.err
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4450 (exit $ac_status); } >/dev/null && {
4451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4454 # Broken: success on invalid input.
4457 echo "$as_me: failed program was
:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 # Passes both tests.
4465 rm -f conftest.err conftest.$ac_ext
4468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469 rm -f conftest.err conftest.$ac_ext
4470 if $ac_preproc_ok; then
4473 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4474 See \
`config.log' for more details." >&5
4475 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4476 See \`config.log
' for more details." >&2;}
4477 { (exit 1); exit 1; }; }
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4483 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4488 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_GREP+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 # Extract the first word of "grep ggrep" to use in msg output
4493 if test -z "$GREP"; then
4494 set dummy grep ggrep; ac_prog_name=$2
4495 if test "${ac_cv_path_GREP+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 ac_path_GREP_found=false
4499 # Loop through the user's path and
test for each of PROGNAME-LIST
4500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4501 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4504 test -z "$as_dir" && as_dir
=.
4505 for ac_prog
in grep ggrep
; do
4506 for ac_exec_ext
in '' $ac_executable_extensions; do
4507 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4508 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4509 # Check for GNU ac_path_GREP and select it if it is found.
4510 # Check for GNU $ac_path_GREP
4511 case `"$ac_path_GREP" --version 2>&1` in
4513 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4516 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 echo 'GREP' >> "conftest.nl"
4523 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4524 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4525 ac_count
=`expr $ac_count + 1`
4526 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_GREP
="$ac_path_GREP"
4529 ac_path_GREP_max
=$ac_count
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4534 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4538 $ac_path_GREP_found && break 3
4548 GREP
="$ac_cv_path_GREP"
4549 if test -z "$GREP"; then
4550 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4551 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4552 { (exit 1); exit 1; }; }
4556 ac_cv_path_GREP
=$GREP
4561 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4562 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4563 GREP
="$ac_cv_path_GREP"
4566 { echo "$as_me:$LINENO: checking for egrep" >&5
4567 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4568 if test "${ac_cv_path_EGREP+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4572 then ac_cv_path_EGREP
="$GREP -E"
4574 # Extract the first word of "egrep" to use in msg output
4575 if test -z "$EGREP"; then
4576 set dummy
egrep; ac_prog_name
=$2
4577 if test "${ac_cv_path_EGREP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_path_EGREP_found
=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4583 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4586 test -z "$as_dir" && as_dir
=.
4587 for ac_prog
in egrep; do
4588 for ac_exec_ext
in '' $ac_executable_extensions; do
4589 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4591 # Check for GNU ac_path_EGREP and select it if it is found.
4592 # Check for GNU $ac_path_EGREP
4593 case `"$ac_path_EGREP" --version 2>&1` in
4595 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4598 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 echo 'EGREP' >> "conftest.nl"
4605 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4606 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4607 ac_count
=`expr $ac_count + 1`
4608 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_EGREP
="$ac_path_EGREP"
4611 ac_path_EGREP_max
=$ac_count
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4616 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4620 $ac_path_EGREP_found && break 3
4630 EGREP
="$ac_cv_path_EGREP"
4631 if test -z "$EGREP"; then
4632 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4633 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4634 { (exit 1); exit 1; }; }
4638 ac_cv_path_EGREP
=$EGREP
4644 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4645 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4646 EGREP
="$ac_cv_path_EGREP"
4650 { echo "$as_me:$LINENO: checking for AIX" >&5
4651 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4652 cat >conftest.
$ac_ext <<_ACEOF
4655 cat confdefs.h
>>conftest.
$ac_ext
4656 cat >>conftest.
$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "yes" >/dev
/null
2>&1; then
4665 { echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6; }
4667 cat >>confdefs.h
<<\_ACEOF
4668 #define _ALL_SOURCE 1
4672 { echo "$as_me:$LINENO: result: no" >&5
4673 echo "${ECHO_T}no" >&6; }
4679 cat >>confdefs.h
<<\_ACEOF
4680 #define _GNU_SOURCE 1
4685 ### Use -Wno-pointer-sign if the compiler supports it
4686 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4687 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4688 SAVE_CFLAGS
="$CFLAGS"
4689 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4690 cat >conftest.
$ac_ext <<_ACEOF
4693 cat confdefs.h
>>conftest.
$ac_ext
4694 cat >>conftest.
$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4705 rm -f conftest.
$ac_objext
4706 if { (ac_try
="$ac_compile"
4708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 if test $has_option = yes; then
4732 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4734 { echo "$as_me:$LINENO: result: $has_option" >&5
4735 echo "${ECHO_T}$has_option" >&6; }
4736 CFLAGS="$SAVE_CFLAGS"
4740 #### Some other nice autoconf tests.
4742 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4745 if test "$LN_S" = "ln -s"; then
4746 { echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6; }
4749 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4750 echo "${ECHO_T}no, using $LN_S" >&6; }
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4759 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4760 # On Suns, sometimes $CPP names a directory.
4761 if test -n "$CPP" && test -d "$CPP"; then
4764 if test -z "$CPP"; then
4765 if test "${ac_cv_prog_CPP+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 # Double quotes because CPP needs to be expanded
4769 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4772 for ac_c_preproc_warn_flag in '' yes
4774 # Use a header file that comes with gcc, so configuring glibc
4775 # with a fresh cross-compiler works.
4776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777 # <limits.h> exists even on freestanding compilers.
4778 # On the NeXT, cc -E runs the code through the compiler's parser,
4779 # not just through cpp. "Syntax error" is here to catch this case.
4780 cat >conftest.$ac_ext <<_ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4787 # include <limits.h>
4789 # include <assert.h>
4793 if { (ac_try="$ac_cpp conftest.$ac_ext"
4795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4796 *) ac_try_echo
=$ac_try;;
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801 grep -v '^ *+' conftest.er1
>conftest.err
4803 cat conftest.err
>&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev
/null
&& {
4806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.
$ac_ext >&5
4814 # Broken: fails on valid input.
4818 rm -f conftest.err conftest.
$ac_ext
4820 # OK, works on sane cases. Now check whether nonexistent headers
4821 # can be detected and how.
4822 cat >conftest.
$ac_ext <<_ACEOF
4825 cat confdefs.h
>>conftest.
$ac_ext
4826 cat >>conftest.
$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 #include <ac_nonexistent.h>
4830 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null && {
4843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4846 # Broken: success on invalid input.
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Passes both tests.
4857 rm -f conftest.err conftest.$ac_ext
4860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861 rm -f conftest.err conftest.
$ac_ext
4862 if $ac_preproc_ok; then
4874 { echo "$as_me:$LINENO: result: $CPP" >&5
4875 echo "${ECHO_T}$CPP" >&6; }
4877 for ac_c_preproc_warn_flag
in '' yes
4879 # Use a header file that comes with gcc, so configuring glibc
4880 # with a fresh cross-compiler works.
4881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4882 # <limits.h> exists even on freestanding compilers.
4883 # On the NeXT, cc -E runs the code through the compiler's parser,
4884 # not just through cpp. "Syntax error" is here to catch this case.
4885 cat >conftest.
$ac_ext <<_ACEOF
4888 cat confdefs.h
>>conftest.
$ac_ext
4889 cat >>conftest.
$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4892 # include <limits.h>
4894 # include <assert.h>
4898 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } >/dev/null && {
4911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 # Broken: fails on valid input.
4923 rm -f conftest.err conftest.$ac_ext
4925 # OK, works on sane cases. Now check whether nonexistent headers
4926 # can be detected and how.
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <ac_nonexistent.h>
4935 if { (ac_try="$ac_cpp conftest.$ac_ext"
4937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4938 *) ac_try_echo
=$ac_try;;
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943 grep -v '^ *+' conftest.er1
>conftest.err
4945 cat conftest.err
>&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev
/null
&& {
4948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4951 # Broken: success on invalid input.
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.
$ac_ext >&5
4957 # Passes both tests.
4962 rm -f conftest.err conftest.
$ac_ext
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.
$ac_ext
4967 if $ac_preproc_ok; then
4970 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4971 See \`config.log' for more details." >&5
4972 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." >&2;}
4974 { (exit 1); exit 1; }; }
4978 ac_cpp
='$CPP $CPPFLAGS'
4979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4983 # Find a good install program. We prefer a C program (faster),
4984 # so one script is as good as another. But avoid the broken or
4985 # incompatible versions:
4986 # SysV /etc/install, /usr/sbin/install
4987 # SunOS /usr/etc/install
4988 # IRIX /sbin/install
4990 # AmigaOS /C/install, which installs bootblocks on floppy discs
4991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4994 # OS/2's system install, which has a completely different semantic
4995 # ./install, which can be erroneously created by make from ./install.sh.
4996 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4997 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4998 if test -z "$INSTALL"; then
4999 if test "${ac_cv_path_install+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir
=.
5007 # Account for people who put trailing slashes in PATH elements.
5009 .
/ | .
// |
/cC
/* | \
5010 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5011 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5014 # OSF1 and SCO ODT 3.0 have their own names for install.
5015 # Don't use installbsd from OSF since it installs stuff as root
5017 for ac_prog
in ginstall scoinst
install; do
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5020 if test $ac_prog = install &&
5021 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5022 # AIX install. It has an incompatible calling convention.
5024 elif test $ac_prog = install &&
5025 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5026 # program-specific install script used by HP pwplus--don't use.
5029 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5042 if test "${ac_cv_path_install+set}" = set; then
5043 INSTALL
=$ac_cv_path_install
5045 # As a last resort, use the slow shell script. Don't cache a
5046 # value for INSTALL within a source directory, because that will
5047 # break other packages using the cache if that directory is
5048 # removed, or if the value is a relative name.
5049 INSTALL
=$ac_install_sh
5052 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5053 echo "${ECHO_T}$INSTALL" >&6; }
5055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5056 # It thinks the first close brace ends the variable substitution.
5057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5061 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5063 if test "x$RANLIB" = x
; then
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5066 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_prog_RANLIB+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 if test -n "$RANLIB"; then
5073 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5079 test -z "$as_dir" && as_dir
=.
5080 for ac_exec_ext
in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 RANLIB
=$ac_cv_prog_RANLIB
5093 if test -n "$RANLIB"; then
5094 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5095 echo "${ECHO_T}$RANLIB" >&6; }
5097 { echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6; }
5103 if test -z "$ac_cv_prog_RANLIB"; then
5104 ac_ct_RANLIB
=$RANLIB
5105 # Extract the first word of "ranlib", so it can be a program name with args.
5106 set dummy ranlib
; ac_word
=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 if test -n "$ac_ct_RANLIB"; then
5113 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir
=.
5120 for ac_exec_ext
in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5133 if test -n "$ac_ct_RANLIB"; then
5134 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5135 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5141 if test "x$ac_ct_RANLIB" = x
; then
5144 case $cross_compiling:$ac_tool_warned in
5146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5147 whose name does not start with the host triplet. If you think this
5148 configuration is useful to you, please write to autoconf@gnu.org." >&5
5149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5150 whose name does not start with the host triplet. If you think this
5151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5152 ac_tool_warned
=yes ;;
5154 RANLIB
=$ac_ct_RANLIB
5157 RANLIB
="$ac_cv_prog_RANLIB"
5161 # Extract the first word of "install-info", so it can be a program name with args.
5162 set dummy install-info
; ac_word
=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 case $INSTALL_INFO in
5170 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5192 if test -n "$INSTALL_INFO"; then
5193 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5194 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5201 # Extract the first word of "install-info", so it can be a program name with args.
5202 set dummy install-info
; ac_word
=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 case $INSTALL_INFO in
5210 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5214 for as_dir
in /usr
/sbin
5217 test -z "$as_dir" && as_dir
=.
5218 for ac_exec_ext
in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5232 if test -n "$INSTALL_INFO"; then
5233 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5234 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5236 { echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6; }
5241 # Extract the first word of "install-info", so it can be a program name with args.
5242 set dummy install-info
; ac_word
=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 case $INSTALL_INFO in
5250 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir
=.
5258 for ac_exec_ext
in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5272 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5273 if test -n "$INSTALL_INFO"; then
5274 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5275 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5277 { echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6; }
5282 # Extract the first word of "gzip", so it can be a program name with args.
5283 set dummy
gzip; ac_word
=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_exec_ext
in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5313 if test -n "$GZIP_PROG"; then
5314 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5315 echo "${ECHO_T}$GZIP_PROG" >&6; }
5317 { echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6; }
5324 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5326 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5329 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5331 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5335 late_LDFLAGS
=$LDFLAGS
5336 if test "$GCC" = yes; then
5337 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5339 LDFLAGS
="$LDFLAGS -znocombreloc"
5342 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5343 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5344 cat >conftest.
$ac_ext <<_ACEOF
5347 rm -f conftest.
$ac_objext conftest
$ac_exeext
5348 if { (ac_try
="$ac_link"
5350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_link") 2>conftest.er1
5356 grep -v '^ *+' conftest.er1 >conftest.err
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && {
5361 test -z "$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 } && test -s conftest$ac_exeext &&
5364 $as_test_x conftest$ac_exeext; then
5365 { echo "$as_me:$LINENO: result: yes" >&5
5366 echo "${ECHO_T}yes" >&6; }
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5371 LDFLAGS=$late_LDFLAGS
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5377 conftest$ac_exeext conftest.$ac_ext
5379 #### Extract some information from the operating system and machine files.
5381 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5382 - which libraries the lib-src programs will want, and
5383 - whether the GNU malloc routines are usable..." >&5
5384 echo "$as_me: checking the machine- and system-dependent files to find out
5385 - which libraries the lib-src programs will want, and
5386 - whether the GNU malloc routines are usable..." >&6;}
5388 ### First figure out CFLAGS (which we use for running the compiler here)
5389 ### and REAL_CFLAGS (which we use for real compilation).
5390 ### The two are the same except on a few systems, where they are made
5391 ### different to work around various lossages. For example,
5392 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5393 ### as implying static linking.
5395 ### If the CFLAGS env var is specified, we use that value
5396 ### instead of the default.
5398 ### It's not important that this name contain the PID; you can't run
5399 ### two configures in the same directory and have anything work
5401 tempcname="conftest.c"
5404 #include "'${srcdir}'/src/'${opsysfile}'"
5405 #include "'${srcdir}'/src/'${machfile}'"
5406 #ifndef LIBS_MACHINE
5407 #define LIBS_MACHINE
5412 #ifndef C_SWITCH_SYSTEM
5413 #define C_SWITCH_SYSTEM
5415 #ifndef C_SWITCH_MACHINE
5416 #define C_SWITCH_MACHINE
5418 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5419 configure___ c_switch_system=C_SWITCH_SYSTEM
5420 configure___ c_switch_machine=C_SWITCH_MACHINE
5423 #define LIB_X11_LIB -lX11
5426 #ifndef LIBX11_MACHINE
5427 #define LIBX11_MACHINE
5430 #ifndef LIBX11_SYSTEM
5431 #define LIBX11_SYSTEM
5433 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5436 configure___ unexec=UNEXEC
5438 configure___ unexec=unexec.o
5441 #ifdef SYSTEM_MALLOC
5442 configure___ system_malloc=yes
5444 configure___ system_malloc=no
5447 #ifdef USE_MMAP_FOR_BUFFERS
5448 configure___ use_mmap_for_buffers=yes
5450 configure___ use_mmap_for_buffers=no
5453 #ifndef C_DEBUG_SWITCH
5454 #define C_DEBUG_SWITCH -g
5457 #ifndef C_OPTIMIZE_SWITCH
5459 #define C_OPTIMIZE_SWITCH -O2
5461 #define C_OPTIMIZE_SWITCH -O
5465 #ifndef C_WARNINGS_SWITCH
5466 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5469 #ifndef LD_SWITCH_MACHINE
5470 #define LD_SWITCH_MACHINE
5473 #ifndef LD_SWITCH_SYSTEM
5474 #define LD_SWITCH_SYSTEM
5477 #ifndef LD_SWITCH_X_SITE_AUX
5478 #define LD_SWITCH_X_SITE_AUX
5481 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5482 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5484 #ifdef THIS_IS_CONFIGURE
5486 /* Get the CFLAGS for tests in configure. */
5488 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5490 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5493 #else /* not THIS_IS_CONFIGURE */
5495 /* Get the CFLAGS for real compilation. */
5497 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5502 #endif /* not THIS_IS_CONFIGURE */
5505 # The value of CPP is a quoted variable reference, so we need to do this
5506 # to get its actual value...
5507 CPP=`eval "echo $CPP"`
5508 eval `${CPP} -Isrc ${tempcname} \
5509 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5510 if test "x$SPECIFIED_CFLAGS" = x; then
5511 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5512 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5514 REAL_CFLAGS="$CFLAGS"
5518 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5520 ### Make sure subsequent tests use flags consistent with the build flags.
5522 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5523 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5525 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5530 # Check whether --enable-largefile was given.
5531 if test "${enable_largefile+set}" = set; then
5532 enableval=$enable_largefile;
5535 if test "$enable_largefile" != no; then
5537 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5538 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5539 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 ac_cv_sys_largefile_CC=no
5543 if test "$GCC" != yes; then
5546 # IRIX 6.2 and later do not support large files by default,
5547 # so use the C compiler's -n32 option if that helps.
5548 cat >conftest.$ac_ext <<_ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <sys/types.h>
5555 /* Check that off_t can represent 2**63 - 1 correctly.
5556 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5557 since some C++ compilers masquerading as C compilers
5558 incorrectly reject 9223372036854775807. */
5559 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5561 && LARGE_OFF_T % 2147483647 == 1)
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5575 *) ac_try_echo
=$ac_try;;
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5580 grep -v '^ *+' conftest.er1
>conftest.err
5582 cat conftest.err
>&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.
$ac_objext; then
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.
$ac_ext >&5
5596 rm -f core conftest.err conftest.
$ac_objext
5598 rm -f conftest.
$ac_objext
5599 if { (ac_try
="$ac_compile"
5601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_sys_largefile_CC=' -n32'; break
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f core conftest.err conftest.$ac_objext
5627 rm -f conftest.$ac_ext
5630 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5631 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5632 if test "$ac_cv_sys_largefile_CC" != no; then
5633 CC=$CC$ac_cv_sys_largefile_CC
5636 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5637 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5638 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <sys/types.h>
5649 /* Check that off_t can represent 2**63 - 1 correctly.
5650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5651 since some C++ compilers masquerading as C compilers
5652 incorrectly reject 9223372036854775807. */
5653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5655 && LARGE_OFF_T % 2147483647 == 1)
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5669 *) ac_try_echo
=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5674 grep -v '^ *+' conftest.er1
>conftest.err
5676 cat conftest.err
>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.
$ac_objext; then
5682 ac_cv_sys_file_offset_bits
=no
; break
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.
$ac_ext >&5
5690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5691 cat >conftest.
$ac_ext <<_ACEOF
5694 cat confdefs.h
>>conftest.
$ac_ext
5695 cat >>conftest.
$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #define _FILE_OFFSET_BITS 64
5698 #include <sys/types.h>
5699 /* Check that off_t can represent 2**63 - 1 correctly.
5700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5701 since some C++ compilers masquerading as C compilers
5702 incorrectly reject 9223372036854775807. */
5703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5705 && LARGE_OFF_T % 2147483647 == 1)
5715 rm -f conftest.
$ac_objext
5716 if { (ac_try
="$ac_compile"
5718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5724 grep -v '^ *+' conftest.er1 >conftest.err
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 ac_cv_sys_file_offset_bits=64; break
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_cv_sys_file_offset_bits=unknown
5745 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5746 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5747 case $ac_cv_sys_file_offset_bits in #(
5750 cat >>confdefs.h <<_ACEOF
5751 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5756 if test $ac_cv_sys_file_offset_bits = unknown; then
5757 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5758 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5759 if test "${ac_cv_sys_large_files+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5790 *) ac_try_echo
=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1
>conftest.err
5797 cat conftest.err
>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.
$ac_objext; then
5803 ac_cv_sys_large_files
=no
; break
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.
$ac_ext >&5
5811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5812 cat >conftest.
$ac_ext <<_ACEOF
5815 cat confdefs.h
>>conftest.
$ac_ext
5816 cat >>conftest.
$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #define _LARGE_FILES 1
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5836 rm -f conftest.
$ac_objext
5837 if { (ac_try
="$ac_compile"
5839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 ac_cv_sys_large_files=1; break
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 ac_cv_sys_large_files=unknown
5866 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5867 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5868 case $ac_cv_sys_large_files in #(
5871 cat >>confdefs.h <<_ACEOF
5872 #define _LARGE_FILES $ac_cv_sys_large_files
5882 ### The standard library on x86-64 GNU/Linux distributions can
5883 ### be located in either /usr/lib64 or /usr/lib.
5884 case "${canonical}" in
5885 x86_64-*-linux-gnu* )
5886 if test -d /usr/lib64; then
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_X86_64_LIB64_DIR 1
5898 if test "${with_sound}" != "no"; then
5899 # Sound support for GNU/Linux and the free BSDs.
5900 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5902 if test "${ac_cv_header_stdc+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5928 *) ac_try_echo
=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5933 grep -v '^ *+' conftest.er1
>conftest.err
5935 cat conftest.err
>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest.
$ac_objext; then
5941 ac_cv_header_stdc
=yes
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5946 ac_cv_header_stdc
=no
5949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5951 if test $ac_cv_header_stdc = yes; then
5952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5953 cat >conftest.
$ac_ext <<_ACEOF
5956 cat confdefs.h
>>conftest.
$ac_ext
5957 cat >>conftest.
$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 $EGREP "memchr" >/dev
/null
2>&1; then
5966 ac_cv_header_stdc
=no
5972 if test $ac_cv_header_stdc = yes; then
5973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5974 cat >conftest.
$ac_ext <<_ACEOF
5977 cat confdefs.h
>>conftest.
$ac_ext
5978 cat >>conftest.
$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 $EGREP "free" >/dev
/null
2>&1; then
5987 ac_cv_header_stdc
=no
5993 if test $ac_cv_header_stdc = yes; then
5994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5995 if test "$cross_compiling" = yes; then
5998 cat >conftest.
$ac_ext <<_ACEOF
6001 cat confdefs.h
>>conftest.
$ac_ext
6002 cat >>conftest.
$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6006 #if ((' ' & 0x0FF) == 0x020)
6007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6010 # define ISLOWER(c) \
6011 (('a' <= (c) && (c) <= 'i') \
6012 || ('j' <= (c) && (c) <= 'r') \
6013 || ('s' <= (c) && (c) <= 'z'))
6014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6022 for (i = 0; i < 256; i++)
6023 if (XOR (islower (i), ISLOWER (i))
6024 || toupper (i) != TOUPPER (i))
6029 rm -f conftest
$ac_exeext
6030 if { (ac_try
="$ac_link"
6032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_link") 2>&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6040 { (case "(($ac_try" in
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_try") 2>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6051 echo "$as_me: program exited with status $ac_status" >&5
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.
$ac_ext >&5
6056 ac_cv_header_stdc
=no
6058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6064 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6065 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6066 if test $ac_cv_header_stdc = yes; then
6068 cat >>confdefs.h
<<\_ACEOF
6069 #define STDC_HEADERS 1
6074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6084 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6085 inttypes.h stdint.h unistd.h
6087 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6090 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 cat >conftest.
$ac_ext <<_ACEOF
6096 cat confdefs.h
>>conftest.
$ac_ext
6097 cat >>conftest.
$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 $ac_includes_default
6101 #include <$ac_header>
6103 rm -f conftest.
$ac_objext
6104 if { (ac_try
="$ac_compile"
6106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 eval "$as_ac_Header=yes"
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 eval "$as_ac_Header=no"
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131 { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6134 cat >>confdefs.h <<_ACEOF
6135 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6146 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6148 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_res=`eval echo '${'$as_ac_Header'}'`
6156 { echo "$as_me:$LINENO: result: $ac_res" >&5
6157 echo "${ECHO_T}$ac_res" >&6; }
6159 # Is the header compilable?
6160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6175 *) ac_try_echo
=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1
>conftest.err
6182 cat conftest.err
>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.
$ac_objext; then
6188 ac_header_compiler
=yes
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.
$ac_ext >&5
6193 ac_header_compiler
=no
6196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6198 echo "${ECHO_T}$ac_header_compiler" >&6; }
6200 # Is the header present?
6201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6203 cat >conftest.
$ac_ext <<_ACEOF
6206 cat confdefs.h
>>conftest.
$ac_ext
6207 cat >>conftest.
$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 #include <$ac_header>
6211 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null && {
6224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6227 ac_header_preproc=yes
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 ac_header_preproc=no
6235 rm -f conftest.err conftest.$ac_ext
6236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6237 echo "${ECHO_T}$ac_header_preproc" >&6; }
6239 # So? What about this header?
6240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6246 ac_header_preproc=yes
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 eval "$as_ac_Header=\$ac_header_preproc"
6271 ac_res=`eval echo '${'$as_ac_Header'}'`
6272 { echo "$as_me:$LINENO: result: $ac_res" >&5
6273 echo "${ECHO_T}$ac_res" >&6; }
6276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6285 # Emulation library used on NetBSD.
6286 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6287 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6288 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-lossaudio $LIBS"
6293 cat >conftest.$ac_ext <<_ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6300 /* Override any GCC internal prototype to avoid an error.
6301 Use char because int might match the return type of a GCC
6302 builtin and then its argument prototype would still apply. */
6310 return _oss_ioctl ();
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (ac_try="$ac_link"
6318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6319 *) ac_try_echo
=$ac_try;;
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_link") 2>conftest.er1
6324 grep -v '^ *+' conftest.er1
>conftest.err
6326 cat conftest.err
>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_c_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest
$ac_exeext &&
6332 $as_test_x conftest
$ac_exeext; then
6333 ac_cv_lib_ossaudio__oss_ioctl
=yes
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.
$ac_ext >&5
6338 ac_cv_lib_ossaudio__oss_ioctl
=no
6341 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6342 conftest
$ac_exeext conftest.
$ac_ext
6343 LIBS
=$ac_check_lib_save_LIBS
6345 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6346 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6347 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6356 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6357 if test "X${with_pkg_config_prog}" != X
; then
6358 PKG_CONFIG
="${with_pkg_config_prog}"
6363 if test -z "$PKG_CONFIG"; then
6364 # Extract the first word of "pkg-config", so it can be a program name with args.
6365 set dummy pkg-config
; ac_word
=$2
6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir
=.
6381 for ac_exec_ext
in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6395 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6396 if test -n "$PKG_CONFIG"; then
6397 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6398 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6407 if test "$PKG_CONFIG" = "no" ; then
6410 PKG_CONFIG_MIN_VERSION
=0.9.0
6411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6412 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6413 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6415 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6416 { echo "$as_me:$LINENO: result: yes" >&5
6417 echo "${ECHO_T}yes" >&6; }
6420 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6421 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6422 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6423 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6424 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6426 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6427 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6428 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6429 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6430 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6432 { echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6; }
6436 ## If we have a custom action on failure, don't print errors, but
6437 ## do set a variable so people can do so.
6438 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6450 if test $succeeded = yes; then
6456 if test $HAVE_ALSA = yes; then
6457 SAVE_CFLAGS
="$CFLAGS"
6458 SAVE_LDFLAGS
="$LDFLAGS"
6459 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6460 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6461 cat >conftest.
$ac_ext <<_ACEOF
6464 cat confdefs.h
>>conftest.
$ac_ext
6465 cat >>conftest.
$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <asoundlib.h>
6471 snd_lib_error_set_handler (0);
6476 rm -f conftest.
$ac_objext
6477 if { (ac_try
="$ac_compile"
6479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1 >conftest.err
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 emacs_alsa_normal=yes
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 emacs_alsa_normal=no
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 if test "$emacs_alsa_normal" != yes; then
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <alsa/asoundlib.h>
6513 snd_lib_error_set_handler (0);
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6522 *) ac_try_echo
=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1
>conftest.err
6529 cat conftest.err
>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.
$ac_objext; then
6535 emacs_alsa_subdir
=yes
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.
$ac_ext >&5
6540 emacs_alsa_subdir
=no
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6544 if test "$emacs_alsa_subdir" != yes; then
6545 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6546 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6547 { (exit 1); exit 1; }; }
6549 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6552 CFLAGS
="$SAVE_CFLAGS"
6553 LDFLAGS
="$SAVE_LDFLAGS"
6554 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6555 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6557 cat >>confdefs.h
<<\_ACEOF
6590 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6591 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6592 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6593 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6600 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_res
=`eval echo '${'$as_ac_Header'}'`
6604 { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6607 # Is the header compilable?
6608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6610 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 #include <$ac_header>
6619 rm -f conftest.
$ac_objext
6620 if { (ac_try
="$ac_compile"
6622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 ac_header_compiler=yes
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 ac_header_compiler=no
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6646 echo "${ECHO_T}$ac_header_compiler" >&6; }
6648 # Is the header present?
6649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <$ac_header>
6659 if { (ac_try="$ac_cpp conftest.$ac_ext"
6661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6662 *) ac_try_echo
=$ac_try;;
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6667 grep -v '^ *+' conftest.er1
>conftest.err
6669 cat conftest.err
>&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } >/dev
/null
&& {
6672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6675 ac_header_preproc
=yes
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.
$ac_ext >&5
6680 ac_header_preproc
=no
6683 rm -f conftest.err conftest.
$ac_ext
6684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6685 echo "${ECHO_T}$ac_header_preproc" >&6; }
6687 # So? What about this header?
6688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6694 ac_header_preproc
=yes
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 eval "$as_ac_Header=\$ac_header_preproc"
6719 ac_res
=`eval echo '${'$as_ac_Header'}'`
6720 { echo "$as_me:$LINENO: result: $ac_res" >&5
6721 echo "${ECHO_T}$ac_res" >&6; }
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h
<<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6734 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6735 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6736 cat >conftest.
$ac_ext <<_ACEOF
6739 cat confdefs.h
>>conftest.
$ac_ext
6740 cat >>conftest.
$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #include <sys/personality.h>
6746 personality (PER_LINUX32)
6751 rm -f conftest.
$ac_objext
6752 if { (ac_try
="$ac_compile"
6754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_compile") 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.$ac_objext; then
6768 emacs_cv_personality_linux32=yes
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 emacs_cv_personality_linux32=no
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6778 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6780 if test $emacs_cv_personality_linux32 = yes; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_PERSONALITY_LINUX32 1
6789 for ac_header in term.h
6791 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 cat >conftest.$ac_ext <<_ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 #include <$ac_header>
6805 if { (ac_try="$ac_cpp conftest.$ac_ext"
6807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6808 *) ac_try_echo
=$ac_try;;
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6813 grep -v '^ *+' conftest.er1
>conftest.err
6815 cat conftest.err
>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } >/dev
/null
&& {
6818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6821 eval "$as_ac_Header=yes"
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.
$ac_ext >&5
6826 eval "$as_ac_Header=no"
6829 rm -f conftest.err conftest.
$ac_ext
6831 ac_res
=`eval echo '${'$as_ac_Header'}'`
6832 { echo "$as_me:$LINENO: result: $ac_res" >&5
6833 echo "${ECHO_T}$ac_res" >&6; }
6834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6835 cat >>confdefs.h
<<_ACEOF
6836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6845 if test "${ac_cv_header_stdc+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6867 rm -f conftest.
$ac_objext
6868 if { (ac_try
="$ac_compile"
6870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 ac_cv_header_stdc=yes
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_header_stdc=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 if test $ac_cv_header_stdc = yes; then
6895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6906 $EGREP "memchr" >/dev/null 2>&1; then
6909 ac_cv_header_stdc=no
6915 if test $ac_cv_header_stdc = yes; then
6916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6927 $EGREP "free" >/dev/null 2>&1; then
6930 ac_cv_header_stdc=no
6936 if test $ac_cv_header_stdc = yes; then
6937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6938 if test "$cross_compiling" = yes; then
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6949 #if ((' ' & 0x0FF) == 0x020)
6950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6953 # define ISLOWER(c) \
6954 (('a' <= (c) && (c) <= 'i') \
6955 || ('j' <= (c) && (c) <= 'r') \
6956 || ('s' <= (c) && (c) <= 'z'))
6957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6965 for (i = 0; i < 256; i++)
6966 if (XOR (islower (i), ISLOWER (i))
6967 || toupper (i) != TOUPPER (i))
6972 rm -f conftest$ac_exeext
6973 if { (ac_try="$ac_link"
6975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6976 *) ac_try_echo
=$ac_try;;
6978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6979 (eval "$ac_link") 2>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6983 { (case "(($ac_try" in
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_try") 2>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6994 echo "$as_me: program exited with status $ac_status" >&5
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_cv_header_stdc=no
7001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7008 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7009 if test $ac_cv_header_stdc = yes; then
7011 cat >>confdefs.h <<\_ACEOF
7012 #define STDC_HEADERS 1
7017 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7018 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7019 if test "${ac_cv_header_time+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7029 #include <sys/time.h>
7035 if ((struct tm *) 0)
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7045 *) ac_try_echo
=$ac_try;;
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1
>conftest.err
7052 cat conftest.err
>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.
$ac_objext; then
7058 ac_cv_header_time
=yes
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.
$ac_ext >&5
7063 ac_cv_header_time
=no
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7069 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7070 if test $ac_cv_header_time = yes; then
7072 cat >>confdefs.h
<<\_ACEOF
7073 #define TIME_WITH_SYS_TIME 1
7078 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7079 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7080 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 cat >conftest.
$ac_ext <<_ACEOF
7086 cat confdefs.h
>>conftest.
$ac_ext
7087 cat >>conftest.
$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7101 rm -f conftest.
$ac_objext
7102 if { (ac_try
="$ac_compile"
7104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7110 grep -v '^ *+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_have_decl_sys_siglist=yes
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_have_decl_sys_siglist=no
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7129 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7130 if test $ac_cv_have_decl_sys_siglist = yes; then
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_DECL_SYS_SIGLIST 1
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_DECL_SYS_SIGLIST 0
7146 if test $ac_cv_have_decl_sys_siglist != yes; then
7147 # For Tru64, at least:
7148 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7149 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7150 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 cat >conftest.$ac_ext <<_ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7163 #ifndef __sys_siglist
7164 (void) __sys_siglist;
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7175 *) ac_try_echo
=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7180 grep -v '^ *+' conftest.er1
>conftest.err
7182 cat conftest.err
>&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.
$ac_objext; then
7188 ac_cv_have_decl___sys_siglist
=yes
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.
$ac_ext >&5
7193 ac_cv_have_decl___sys_siglist
=no
7196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7198 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7199 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7200 if test $ac_cv_have_decl___sys_siglist = yes; then
7202 cat >>confdefs.h
<<_ACEOF
7203 #define HAVE_DECL___SYS_SIGLIST 1
7208 cat >>confdefs.h
<<_ACEOF
7209 #define HAVE_DECL___SYS_SIGLIST 0
7216 if test $ac_cv_have_decl___sys_siglist = yes; then
7218 cat >>confdefs.h
<<\_ACEOF
7219 #define sys_siglist __sys_siglist
7224 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7225 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7226 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 cat >conftest.
$ac_ext <<_ACEOF
7232 cat confdefs.h
>>conftest.
$ac_ext
7233 cat >>conftest.
$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 #include <sys/types.h>
7236 #include <sys/wait.h>
7238 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7241 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7254 rm -f conftest.
$ac_objext
7255 if { (ac_try
="$ac_compile"
7257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_compile") 2>conftest.er1
7263 grep -v '^ *+' conftest.er1 >conftest.err
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest.$ac_objext; then
7271 ac_cv_header_sys_wait_h=yes
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 ac_cv_header_sys_wait_h=no
7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7282 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7283 if test $ac_cv_header_sys_wait_h = yes; then
7285 cat >>confdefs.h <<\_ACEOF
7286 #define HAVE_SYS_WAIT_H 1
7292 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7293 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7294 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 cat >conftest.$ac_ext <<_ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #ifdef TIME_WITH_SYS_TIME
7304 #include <sys/time.h>
7307 #ifdef HAVE_SYS_TIME_H
7308 #include <sys/time.h>
7319 static struct utimbuf x; x.actime = x.modtime;
7324 rm -f conftest.$ac_objext
7325 if { (ac_try="$ac_compile"
7327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7328 *) ac_try_echo
=$ac_try;;
7330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_compile") 2>conftest.er1
7333 grep -v '^ *+' conftest.er1
>conftest.err
7335 cat conftest.err
>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest.
$ac_objext; then
7341 emacs_cv_struct_utimbuf
=yes
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.
$ac_ext >&5
7346 emacs_cv_struct_utimbuf
=no
7349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7351 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7352 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7353 if test $emacs_cv_struct_utimbuf = yes; then
7355 cat >>confdefs.h
<<\_ACEOF
7356 #define HAVE_STRUCT_UTIMBUF 1
7361 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7362 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7363 if test "${ac_cv_type_signal+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.
$ac_ext <<_ACEOF
7369 cat confdefs.h
>>conftest.
$ac_ext
7370 cat >>conftest.
$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <sys/types.h>
7378 return *(signal (0, 0)) (0) == 1;
7383 rm -f conftest.
$ac_objext
7384 if { (ac_try
="$ac_compile"
7386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 ac_cv_type_signal=int
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_cv_type_signal=void
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7411 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7413 cat >>confdefs.h <<_ACEOF
7414 #define RETSIGTYPE $ac_cv_type_signal
7419 { echo "$as_me:$LINENO: checking for speed_t" >&5
7420 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7421 if test "${emacs_cv_speed_t+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <termios.h>
7439 rm -f conftest.$ac_objext
7440 if { (ac_try="$ac_compile"
7442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7443 *) ac_try_echo
=$ac_try;;
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_compile") 2>conftest.er1
7448 grep -v '^ *+' conftest.er1
>conftest.err
7450 cat conftest.err
>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest.
$ac_objext; then
7456 emacs_cv_speed_t
=yes
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.
$ac_ext >&5
7464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7466 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7467 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7468 if test $emacs_cv_speed_t = yes; then
7470 cat >>confdefs.h
<<\_ACEOF
7471 #define HAVE_SPEED_T 1
7476 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7477 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7478 if test "${emacs_cv_struct_timeval+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 cat >conftest.
$ac_ext <<_ACEOF
7484 cat confdefs.h
>>conftest.
$ac_ext
7485 cat >>conftest.
$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 #ifdef TIME_WITH_SYS_TIME
7488 #include <sys/time.h>
7491 #ifdef HAVE_SYS_TIME_H
7492 #include <sys/time.h>
7500 static struct timeval x; x.tv_sec = x.tv_usec;
7505 rm -f conftest.
$ac_objext
7506 if { (ac_try
="$ac_compile"
7508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7514 grep -v '^ *+' conftest.er1 >conftest.err
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 emacs_cv_struct_timeval=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 emacs_cv_struct_timeval=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7533 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7534 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7535 if test $emacs_cv_struct_timeval = yes; then
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_TIMEVAL 1
7543 { echo "$as_me:$LINENO: checking for struct exception" >&5
7544 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7545 if test "${emacs_cv_struct_exception+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7558 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7567 *) ac_try_echo
=$ac_try;;
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_compile") 2>conftest.er1
7572 grep -v '^ *+' conftest.er1
>conftest.err
7574 cat conftest.err
>&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.
$ac_objext; then
7580 emacs_cv_struct_exception
=yes
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.
$ac_ext >&5
7585 emacs_cv_struct_exception
=no
7588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7590 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7591 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7592 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7593 if test $emacs_cv_struct_exception != yes; then
7595 cat >>confdefs.h
<<\_ACEOF
7596 #define NO_MATHERR 1
7602 for ac_header
in sys
/socket.h
7604 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7608 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 ac_res
=`eval echo '${'$as_ac_Header'}'`
7612 { echo "$as_me:$LINENO: result: $ac_res" >&5
7613 echo "${ECHO_T}$ac_res" >&6; }
7615 # Is the header compilable?
7616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7618 cat >conftest.
$ac_ext <<_ACEOF
7621 cat confdefs.h
>>conftest.
$ac_ext
7622 cat >>conftest.
$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7625 #include <$ac_header>
7627 rm -f conftest.
$ac_objext
7628 if { (ac_try
="$ac_compile"
7630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7636 grep -v '^ *+' conftest.er1 >conftest.err
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 ac_header_compiler=yes
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_header_compiler=no
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7654 echo "${ECHO_T}$ac_header_compiler" >&6; }
7656 # Is the header present?
7657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7659 cat >conftest.$ac_ext <<_ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 #include <$ac_header>
7667 if { (ac_try="$ac_cpp conftest.$ac_ext"
7669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7670 *) ac_try_echo
=$ac_try;;
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7675 grep -v '^ *+' conftest.er1
>conftest.err
7677 cat conftest.err
>&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } >/dev
/null
&& {
7680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7683 ac_header_preproc
=yes
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.
$ac_ext >&5
7688 ac_header_preproc
=no
7691 rm -f conftest.err conftest.
$ac_ext
7692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7693 echo "${ECHO_T}$ac_header_preproc" >&6; }
7695 # So? What about this header?
7696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7702 ac_header_preproc
=yes
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7722 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 eval "$as_ac_Header=\$ac_header_preproc"
7727 ac_res
=`eval echo '${'$as_ac_Header'}'`
7728 { echo "$as_me:$LINENO: result: $ac_res" >&5
7729 echo "${ECHO_T}$ac_res" >&6; }
7732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7733 cat >>confdefs.h
<<_ACEOF
7734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7742 for ac_header
in net
/if.h
7744 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7747 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 cat >conftest.
$ac_ext <<_ACEOF
7753 cat confdefs.h
>>conftest.
$ac_ext
7754 cat >>conftest.
$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 #if HAVE_SYS_SOCKET_H
7758 #include <sys/socket.h>
7761 #include <$ac_header>
7763 rm -f conftest.
$ac_objext
7764 if { (ac_try
="$ac_compile"
7766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7772 grep -v '^ *+' conftest.er1 >conftest.err
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 eval "$as_ac_Header=yes"
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 eval "$as_ac_Header=no"
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 ac_res=`eval echo '${'$as_ac_Header'}'`
7791 { echo "$as_me:$LINENO: result: $ac_res" >&5
7792 echo "${ECHO_T}$ac_res" >&6; }
7793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7803 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7804 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7805 if test "${ac_cv_struct_tm+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <sys/types.h>
7821 int *p = &tm.tm_sec;
7827 rm -f conftest.$ac_objext
7828 if { (ac_try="$ac_compile"
7830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7831 *) ac_try_echo
=$ac_try;;
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_compile") 2>conftest.er1
7836 grep -v '^ *+' conftest.er1
>conftest.err
7838 cat conftest.err
>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest.
$ac_objext; then
7844 ac_cv_struct_tm
=time.h
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7849 ac_cv_struct_tm
=sys
/time.h
7852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7854 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7855 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7856 if test $ac_cv_struct_tm = sys
/time.h
; then
7858 cat >>confdefs.h
<<\_ACEOF
7859 #define TM_IN_SYS_TIME 1
7864 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7865 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7866 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #include <sys/types.h>
7876 #include <$ac_cv_struct_tm>
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_zone)
7889 rm -f conftest.
$ac_objext
7890 if { (ac_try
="$ac_compile"
7892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_zone=yes
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7918 #include <$ac_cv_struct_tm>
7924 static struct tm ac_aggr;
7925 if (sizeof ac_aggr.tm_zone)
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7935 *) ac_try_echo
=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1
>conftest.err
7942 cat conftest.err
>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.
$ac_objext; then
7948 ac_cv_member_struct_tm_tm_zone
=yes
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.
$ac_ext >&5
7953 ac_cv_member_struct_tm_tm_zone
=no
7956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7961 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7962 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7963 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7965 cat >>confdefs.h
<<_ACEOF
7966 #define HAVE_STRUCT_TM_TM_ZONE 1
7972 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7974 cat >>confdefs.h
<<\_ACEOF
7975 #define HAVE_TM_ZONE 1
7979 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7980 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7981 if test "${ac_cv_have_decl_tzname+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 cat >conftest.
$ac_ext <<_ACEOF
7987 cat confdefs.h
>>conftest.
$ac_ext
7988 cat >>conftest.
$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
8003 rm -f conftest.
$ac_objext
8004 if { (ac_try
="$ac_compile"
8006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8012 grep -v '^ *+' conftest.er1 >conftest.err
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_cv_have_decl_tzname=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_have_decl_tzname=no
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8031 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8032 if test $ac_cv_have_decl_tzname = yes; then
8034 cat >>confdefs.h <<_ACEOF
8035 #define HAVE_DECL_TZNAME 1
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_DECL_TZNAME 0
8048 { echo "$as_me:$LINENO: checking for tzname" >&5
8049 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8050 if test "${ac_cv_var_tzname+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8060 #if !HAVE_DECL_TZNAME
8061 extern char *tzname[];
8067 return tzname[0][0];
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8076 *) ac_try_echo
=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_link") 2>conftest.er1
8081 grep -v '^ *+' conftest.er1
>conftest.err
8083 cat conftest.err
>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest
$ac_exeext &&
8089 $as_test_x conftest
$ac_exeext; then
8090 ac_cv_var_tzname
=yes
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.
$ac_ext >&5
8098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8099 conftest
$ac_exeext conftest.
$ac_ext
8101 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8102 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8103 if test $ac_cv_var_tzname = yes; then
8105 cat >>confdefs.h
<<\_ACEOF
8106 #define HAVE_TZNAME 1
8112 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8113 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8114 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 cat >conftest.
$ac_ext <<_ACEOF
8120 cat confdefs.h
>>conftest.
$ac_ext
8121 cat >>conftest.
$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8128 static struct tm ac_aggr;
8129 if (ac_aggr.tm_gmtoff)
8135 rm -f conftest.
$ac_objext
8136 if { (ac_try
="$ac_compile"
8138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_cv_member_struct_tm_tm_gmtoff=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8168 static struct tm ac_aggr;
8169 if (sizeof ac_aggr.tm_gmtoff)
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8179 *) ac_try_echo
=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1
>conftest.err
8186 cat conftest.err
>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest.
$ac_objext; then
8192 ac_cv_member_struct_tm_tm_gmtoff
=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.
$ac_ext >&5
8197 ac_cv_member_struct_tm_tm_gmtoff
=no
8200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8206 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8207 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8209 cat >>confdefs.h
<<\_ACEOF
8210 #define HAVE_TM_GMTOFF 1
8215 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8216 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8217 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.
$ac_ext <<_ACEOF
8223 cat confdefs.h
>>conftest.
$ac_ext
8224 cat >>conftest.
$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8227 #if HAVE_SYS_SOCKET_H
8228 #include <sys/socket.h>
8237 static struct ifreq ac_aggr;
8238 if (ac_aggr.ifr_flags)
8244 rm -f conftest.
$ac_objext
8245 if { (ac_try
="$ac_compile"
8247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 ac_cv_member_struct_ifreq_ifr_flags=yes
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 #if HAVE_SYS_SOCKET_H
8274 #include <sys/socket.h>
8283 static struct ifreq ac_aggr;
8284 if (sizeof ac_aggr.ifr_flags)
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8294 *) ac_try_echo
=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1
>conftest.err
8301 cat conftest.err
>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.
$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_flags
=yes
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.
$ac_ext >&5
8312 ac_cv_member_struct_ifreq_ifr_flags
=no
8315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8320 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8321 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8322 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8324 cat >>confdefs.h
<<_ACEOF
8325 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8330 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8331 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8332 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 cat >conftest.
$ac_ext <<_ACEOF
8338 cat confdefs.h
>>conftest.
$ac_ext
8339 cat >>conftest.
$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 #if HAVE_SYS_SOCKET_H
8343 #include <sys/socket.h>
8352 static struct ifreq ac_aggr;
8353 if (ac_aggr.ifr_hwaddr)
8359 rm -f conftest.
$ac_objext
8360 if { (ac_try
="$ac_compile"
8362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 cat >conftest.$ac_ext <<_ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 #if HAVE_SYS_SOCKET_H
8389 #include <sys/socket.h>
8398 static struct ifreq ac_aggr;
8399 if (sizeof ac_aggr.ifr_hwaddr)
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8409 *) ac_try_echo
=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8414 grep -v '^ *+' conftest.er1
>conftest.err
8416 cat conftest.err
>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.
$ac_objext; then
8422 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.
$ac_ext >&5
8427 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8437 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8439 cat >>confdefs.h
<<_ACEOF
8440 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8445 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8446 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8447 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 cat >conftest.
$ac_ext <<_ACEOF
8453 cat confdefs.h
>>conftest.
$ac_ext
8454 cat >>conftest.
$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8467 static struct ifreq ac_aggr;
8468 if (ac_aggr.ifr_netmask)
8474 rm -f conftest.
$ac_objext
8475 if { (ac_try
="$ac_compile"
8477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_netmask=yes
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #if HAVE_SYS_SOCKET_H
8504 #include <sys/socket.h>
8513 static struct ifreq ac_aggr;
8514 if (sizeof ac_aggr.ifr_netmask)
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8524 *) ac_try_echo
=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1
>conftest.err
8531 cat conftest.err
>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.
$ac_objext; then
8537 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.
$ac_ext >&5
8542 ac_cv_member_struct_ifreq_ifr_netmask
=no
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8551 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8552 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8554 cat >>confdefs.h
<<_ACEOF
8555 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8560 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8561 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8562 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cat >conftest.
$ac_ext <<_ACEOF
8568 cat confdefs.h
>>conftest.
$ac_ext
8569 cat >>conftest.
$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #if HAVE_SYS_SOCKET_H
8573 #include <sys/socket.h>
8582 static struct ifreq ac_aggr;
8583 if (ac_aggr.ifr_broadaddr)
8589 rm -f conftest.
$ac_objext
8590 if { (ac_try
="$ac_compile"
8592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8598 grep -v '^ *+' conftest.er1 >conftest.err
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest.$ac_objext; then
8606 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #if HAVE_SYS_SOCKET_H
8619 #include <sys/socket.h>
8628 static struct ifreq ac_aggr;
8629 if (sizeof ac_aggr.ifr_broadaddr)
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8639 *) ac_try_echo
=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1
>conftest.err
8646 cat conftest.err
>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.
$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.
$ac_ext >&5
8657 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8666 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8667 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8669 cat >>confdefs.h
<<_ACEOF
8670 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8675 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8676 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8677 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 cat >conftest.
$ac_ext <<_ACEOF
8683 cat confdefs.h
>>conftest.
$ac_ext
8684 cat >>conftest.
$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #if HAVE_SYS_SOCKET_H
8688 #include <sys/socket.h>
8697 static struct ifreq ac_aggr;
8698 if (ac_aggr.ifr_addr)
8704 rm -f conftest.
$ac_objext
8705 if { (ac_try
="$ac_compile"
8707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest.$ac_objext; then
8721 ac_cv_member_struct_ifreq_ifr_addr=yes
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 $ac_includes_default
8733 #if HAVE_SYS_SOCKET_H
8734 #include <sys/socket.h>
8743 static struct ifreq ac_aggr;
8744 if (sizeof ac_aggr.ifr_addr)
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8754 *) ac_try_echo
=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1
>conftest.err
8761 cat conftest.err
>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.
$ac_objext; then
8767 ac_cv_member_struct_ifreq_ifr_addr
=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.
$ac_ext >&5
8772 ac_cv_member_struct_ifreq_ifr_addr
=no
8775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8781 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8782 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8784 cat >>confdefs.h
<<_ACEOF
8785 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8793 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8794 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8795 if test "$ac_cv_prog_cc_c89" != no
; then
8796 { echo "$as_me:$LINENO: result: yes" >&5
8797 echo "${ECHO_T}yes" >&6; }
8799 cat >>confdefs.h
<<\_ACEOF
8800 #define PROTOTYPES 1
8804 cat >>confdefs.h
<<\_ACEOF
8805 #define __PROTOTYPES 1
8809 { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8813 { echo "$as_me:$LINENO: checking for working volatile" >&5
8814 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8815 if test "${ac_cv_c_volatile+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 cat >conftest.
$ac_ext <<_ACEOF
8821 cat confdefs.h
>>conftest.
$ac_ext
8822 cat >>conftest.
$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8830 int * volatile y = (int *) 0;
8836 rm -f conftest.
$ac_objext
8837 if { (ac_try
="$ac_compile"
8839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_compile") 2>conftest.er1
8845 grep -v '^ *+' conftest.er1 >conftest.err
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 } && test -s conftest.$ac_objext; then
8853 ac_cv_c_volatile=yes
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8864 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8865 if test $ac_cv_c_volatile = no; then
8867 cat >>confdefs.h <<\_ACEOF
8873 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8875 if test "${ac_cv_c_const+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8888 /* FIXME: Include the comments suggested by Paul. */
8890 /* Ultrix mips cc rejects this. */
8891 typedef int charset[2];
8893 /* SunOS 4.1.1 cc rejects this. */
8894 char const *const *pcpcc;
8896 /* NEC SVR4.0.2 mips cc rejects this. */
8897 struct point {int x, y;};
8898 static struct point const zero = {0,0};
8899 /* AIX XL C 1.02.0.0 rejects this.
8900 It does not let you subtract one const X* pointer from another in
8901 an arm of an if-expression whose if-part is not a constant
8903 const char *g = "string";
8904 pcpcc = &g + (g ? g-g : 0);
8905 /* HPUX 7.0 cc rejects these. */
8907 ppc = (char**) pcpcc;
8908 pcpcc = (char const *const *) ppc;
8909 { /* SCO 3.2v4 cc rejects this. */
8911 char const *s = 0 ? (char *) 0 : (char const *) 0;
8916 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8918 const int *foo = &x[0];
8921 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8922 typedef const int *iptr;
8926 { /* AIX XL C 1.02.0.0 rejects this saying
8927 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8928 struct s { int j; const int *ap[3]; };
8929 struct s *b; b->j = 5;
8931 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8935 return !cs[0] && !zero.x;
8942 rm -f conftest.$ac_objext
8943 if { (ac_try="$ac_compile"
8945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8946 *) ac_try_echo
=$ac_try;;
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8951 grep -v '^ *+' conftest.er1
>conftest.err
8953 cat conftest.err
>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest.
$ac_objext; then
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.
$ac_ext >&5
8967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8969 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8970 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8971 if test $ac_cv_c_const = no
; then
8973 cat >>confdefs.h
<<\_ACEOF
8979 { echo "$as_me:$LINENO: checking for void * support" >&5
8980 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8981 if test "${emacs_cv_void_star+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 cat >conftest.
$ac_ext <<_ACEOF
8987 cat confdefs.h
>>conftest.
$ac_ext
8988 cat >>conftest.
$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8999 rm -f conftest.
$ac_objext
9000 if { (ac_try
="$ac_compile"
9002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 emacs_cv_void_star=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 emacs_cv_void_star=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9027 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9028 if test $emacs_cv_void_star = yes; then
9029 cat >>confdefs.h <<\_ACEOF
9030 #define POINTER_TYPE void
9034 cat >>confdefs.h <<\_ACEOF
9035 #define POINTER_TYPE char
9044 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9045 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9046 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9047 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.make <<\_ACEOF
9053 @echo '@@@%%%=$(MAKE)=@@@%%%'
9055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9056 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9058 eval ac_cv_prog_make_${ac_make}_set=yes;;
9060 eval ac_cv_prog_make_${ac_make}_set=no;;
9064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9065 { echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6; }
9069 { echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6; }
9071 SET_MAKE="MAKE=${MAKE-make}"
9075 { echo "$as_me:$LINENO: checking for long file names" >&5
9076 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9077 if test "${ac_cv_sys_long_file_names+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 ac_cv_sys_long_file_names=yes
9081 # Test for long file names in all the places we know might matter:
9082 # . the current directory, where building will happen
9083 # $prefix/lib where we will be installing things
9084 # $exec_prefix/lib likewise
9085 # $TMPDIR if set, where it might want to write temporary files
9086 # /tmp where it might want to write temporary files
9089 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9090 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9091 # in the usual case where exec_prefix is '${prefix}'.
9093 . | /* | ?:[\\/]*) ;; #(
9096 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9097 ac_xdir=$ac_dir/cf$$
9098 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9099 ac_tf1=$ac_xdir/conftest9012345
9100 ac_tf2=$ac_xdir/conftest9012346
9101 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9102 ac_cv_sys_long_file_names=no
9103 rm -f -r "$ac_xdir" 2>/dev/null
9104 test $ac_cv_sys_long_file_names = no && break
9107 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9108 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9109 if test $ac_cv_sys_long_file_names = yes; then
9111 cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_LONG_FILE_NAMES 1
9118 #### Choose a window system.
9120 { echo "$as_me:$LINENO: checking for X" >&5
9121 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9124 # Check whether --with-x was given.
9125 if test "${with_x+set}" = set; then
9129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9130 if test "x$with_x" = xno; then
9131 # The user explicitly disabled X.
9134 case $x_includes,$x_libraries in #(
9135 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9136 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9137 { (exit 1); exit 1; }; };; #(
9138 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 # One or both of the vars are not set, and there is no cached value.
9142 ac_x_includes=no ac_x_libraries=no
9143 rm -f -r conftest.dir
9144 if mkdir conftest.dir; then
9146 cat >Imakefile <<'_ACEOF'
9148 @echo incroot='${INCROOT}'
9150 @echo usrlibdir='${USRLIBDIR}'
9152 @echo libdir='${LIBDIR}'
9154 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9156 for ac_var in incroot usrlibdir libdir; do
9157 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9160 for ac_extension in a so sl; do
9161 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9162 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9163 ac_im_usrlibdir=$ac_im_libdir; break
9166 # Screen out bogus values from the imake configuration. They are
9167 # bogus both because they are the default anyway, and because
9168 # using them would break gcc on systems where it needs fixed includes.
9169 case $ac_im_incroot in
9170 /usr/include) ac_x_includes= ;;
9171 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9173 case $ac_im_usrlibdir in
9175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9179 rm -f -r conftest.dir
9182 # Standard set of common directories for X headers.
9183 # Check X11 before X11Rn because it is often a symlink to the current release.
9195 /usr/local/X11/include
9196 /usr/local/X11R6/include
9197 /usr/local/X11R5/include
9198 /usr/local/X11R4/include
9200 /usr/local/include/X11
9201 /usr/local/include/X11R6
9202 /usr/local/include/X11R5
9203 /usr/local/include/X11R4
9207 /usr/XFree86/include/X11
9211 /usr/unsupported/include
9213 /usr/local/x11r5/include
9214 /usr/lpp/Xamples/include
9216 /usr/openwin/include
9217 /usr/openwin/share/include'
9219 if test "$ac_x_includes" = no; then
9220 # Guess where to find include files, by looking for Xlib.h.
9221 # First, try using that file with no special directory specified.
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #include <X11/Xlib.h>
9230 if { (ac_try="$ac_cpp conftest.$ac_ext"
9232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9233 *) ac_try_echo
=$ac_try;;
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9238 grep -v '^ *+' conftest.er1
>conftest.err
9240 cat conftest.err
>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev
/null
&& {
9243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9246 # We can compile using X headers with no special include directory.
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.
$ac_ext >&5
9252 for ac_dir
in $ac_x_header_dirs; do
9253 if test -r "$ac_dir/X11/Xlib.h"; then
9254 ac_x_includes
=$ac_dir
9260 rm -f conftest.err conftest.
$ac_ext
9261 fi # $ac_x_includes = no
9263 if test "$ac_x_libraries" = no
; then
9264 # Check for the libraries.
9265 # See if we find them without any special options.
9266 # Don't add to $LIBS permanently.
9269 cat >conftest.
$ac_ext <<_ACEOF
9272 cat confdefs.h
>>conftest.
$ac_ext
9273 cat >>conftest.
$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <X11/Xlib.h>
9284 rm -f conftest.
$ac_objext conftest
$ac_exeext
9285 if { (ac_try
="$ac_link"
9287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_link") 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest$ac_exeext &&
9301 $as_test_x conftest$ac_exeext; then
9303 # We can link X programs with no special library path.
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9310 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9312 # Don't even attempt the hair of trying to link an X program!
9313 for ac_extension in a so sl; do
9314 if test -r "$ac_dir/libX11.$ac_extension"; then
9315 ac_x_libraries=$ac_dir
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 fi # $ac_x_libraries = no
9326 case $ac_x_includes,$ac_x_libraries in #(
9328 # Didn't find X, or a directory has "'" in its name.
9329 ac_cv_have_x="have_x=no";; #(
9331 # Record where we found X for the cache.
9332 ac_cv_have_x="have_x=yes\
9333 ac_x_includes='$ac_x_includes'\
9334 ac_x_libraries='$ac_x_libraries'"
9340 eval "$ac_cv_have_x"
9343 if test "$have_x" != yes; then
9344 { echo "$as_me:$LINENO: result: $have_x" >&5
9345 echo "${ECHO_T}$have_x" >&6; }
9348 # If each of the values was on the command line, it overrides each guess.
9349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9351 # Update the cache value to reflect the command line values.
9352 ac_cv_have_x="have_x=yes\
9353 ac_x_includes='$x_includes'\
9354 ac_x_libraries='$x_libraries'"
9355 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9359 if test "$no_x" = yes; then
9365 if test "${x_libraries}" != NONE; then
9366 if test -n "${x_libraries}"; then
9367 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9368 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9370 x_default_search_path=""
9371 x_search_path=${x_libraries}
9372 if test -z "${x_search_path}"; then
9373 x_search_path=/usr/lib
9375 for x_library in `echo ${x_search_path}: | \
9376 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9378 ${x_library}/X11/%L/%T/%N%C%S:\
9379 ${x_library}/X11/%l/%T/%N%C%S:\
9380 ${x_library}/X11/%T/%N%C%S:\
9381 ${x_library}/X11/%L/%T/%N%S:\
9382 ${x_library}/X11/%l/%T/%N%S:\
9383 ${x_library}/X11/%T/%N%S"
9384 if test x"${x_default_search_path}" = x; then
9385 x_default_search_path=${x_search_path}
9387 x_default_search_path="${x_search_path}:${x_default_search_path}"
9391 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9392 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9395 if test x"${x_includes}" = x; then
9396 bitmapdir=/usr/include/X11/bitmaps
9398 # accumulate include directories that have X11 bitmap subdirectories
9400 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9401 if test -d "${bmd}/X11/bitmaps"; then
9402 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9404 if test -d "${bmd}/bitmaps"; then
9405 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9408 if test ${bmd_acc} != "dummyval"; then
9409 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9414 if test "${with_carbon}" != no; then
9415 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9416 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9417 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9418 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9422 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9424 # Is the header compilable?
9425 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9426 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9427 cat >conftest.$ac_ext <<_ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9434 #include <Carbon/Carbon.h>
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9440 *) ac_try_echo
=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1
>conftest.err
9447 cat conftest.err
>&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.
$ac_objext; then
9453 ac_header_compiler
=yes
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.
$ac_ext >&5
9458 ac_header_compiler
=no
9461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9463 echo "${ECHO_T}$ac_header_compiler" >&6; }
9465 # Is the header present?
9466 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9467 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9468 cat >conftest.
$ac_ext <<_ACEOF
9471 cat confdefs.h
>>conftest.
$ac_ext
9472 cat >>conftest.
$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <Carbon/Carbon.h>
9476 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9484 grep -v '^ *+' conftest.er1 >conftest.err
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } >/dev/null && {
9489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9490 test ! -s conftest.err
9492 ac_header_preproc=yes
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 ac_header_preproc=no
9500 rm -f conftest.err conftest.$ac_ext
9501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9502 echo "${ECHO_T}$ac_header_preproc" >&6; }
9504 # So? What about this header?
9505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9507 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9508 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9509 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9510 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9511 ac_header_preproc=yes
9514 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9515 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9517 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9519 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9521 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9523 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9525 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9529 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9530 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9531 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9536 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9537 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9540 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9546 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9547 if test "${with_carbon+set}" != set \
9548 && test "${carbon_appdir_x+set}" != set; then
9549 for var in with_x with_x_toolkit with_gtk with_xim \
9550 with_xpm with_jpeg with_tiff with_gif with_png; do
9551 if eval test \"\${$var+set}\" = set; then
9558 if test "${HAVE_CARBON}" = yes; then
9562 case "${window_system}" in
9566 case "${with_x_toolkit}" in
9567 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9568 motif ) USE_X_TOOLKIT=MOTIF ;;
9570 USE_X_TOOLKIT=none ;;
9571 no ) USE_X_TOOLKIT=none ;;
9573 if test x"$with_gtk" = xyes; then
9588 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9589 # Extract the first word of "X", so it can be a program name with args.
9590 set dummy X; ac_word=$2
9591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9593 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 if test -n "$HAVE_XSERVER"; then
9597 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_prog_HAVE_XSERVER="true"
9607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9617 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9618 if test -n "$HAVE_XSERVER"; then
9619 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9620 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9622 { echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6; }
9627 if test "$HAVE_XSERVER" = true ||
9628 test -n "$DISPLAY" ||
9629 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9630 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9631 where found. You should install the relevant development files for X
9632 and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9633 sure you have development files for image handling, i.e.
9634 tiff, gif, jpeg, png and xpm.
9635 If you are sure you want Emacs compiled without X window support, pass
9638 echo "$as_me: error: You seem to be running X, but no X development libraries
9639 where found. You should install the relevant development files for X
9640 and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9641 sure you have development files for image handling, i.e.
9642 tiff, gif, jpeg, png and xpm.
9643 If you are sure you want Emacs compiled without X window support, pass
9645 to configure." >&2;}
9646 { (exit 1); exit 1; }; }
9650 ### If we're using X11, we should use the X menu package.
9653 yes ) HAVE_MENUS=yes ;;
9656 if test "${opsys}" = "hpux9"; then
9657 case "${x_libraries}" in
9659 opsysfile="s/hpux9-x11r4.h"
9664 if test "${opsys}" = "hpux9shr"; then
9665 case "${x_libraries}" in
9667 opsysfile="s/hpux9shxr4.h"
9672 ### Compute the unexec source name from the object name.
9673 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9675 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9676 # Assume not, until told otherwise.
9679 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9680 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9681 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9692 #define malloc_get_state innocuous_malloc_get_state
9694 /* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char malloc_get_state (); below.
9696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 <limits.h> exists even on freestanding compilers. */
9700 # include <limits.h>
9702 # include <assert.h>
9705 #undef malloc_get_state
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9713 char malloc_get_state ();
9714 /* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9724 return malloc_get_state ();
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9733 *) ac_try_echo
=$ac_try;;
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1
>conftest.err
9740 cat conftest.err
>&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest
$ac_exeext &&
9746 $as_test_x conftest
$ac_exeext; then
9747 ac_cv_func_malloc_get_state
=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.
$ac_ext >&5
9752 ac_cv_func_malloc_get_state
=no
9755 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9756 conftest
$ac_exeext conftest.
$ac_ext
9758 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9759 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9760 if test $ac_cv_func_malloc_get_state = yes; then
9766 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9767 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9768 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 cat >conftest.
$ac_ext <<_ACEOF
9774 cat confdefs.h
>>conftest.
$ac_ext
9775 cat >>conftest.
$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779 #define malloc_set_state innocuous_malloc_set_state
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char malloc_set_state (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9787 # include <limits.h>
9789 # include <assert.h>
9792 #undef malloc_set_state
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9800 char malloc_set_state ();
9801 /* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9811 return malloc_set_state ();
9816 rm -f conftest.
$ac_objext conftest
$ac_exeext
9817 if { (ac_try
="$ac_link"
9819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest$ac_exeext &&
9833 $as_test_x conftest$ac_exeext; then
9834 ac_cv_func_malloc_set_state=yes
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ac_cv_func_malloc_set_state=no
9842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843 conftest$ac_exeext conftest.$ac_ext
9845 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9846 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9847 if test $ac_cv_func_malloc_set_state = yes; then
9853 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9854 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9855 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 cat >conftest.$ac_ext <<_ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 extern void (* __after_morecore_hook)();
9868 __after_morecore_hook = 0
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9877 *) ac_try_echo
=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9882 grep -v '^ *+' conftest.er1
>conftest.err
9884 cat conftest.err
>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && {
9887 test -z "$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9889 } && test -s conftest
$ac_exeext &&
9890 $as_test_x conftest
$ac_exeext; then
9891 emacs_cv_var___after_morecore_hook
=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.
$ac_ext >&5
9896 emacs_cv_var___after_morecore_hook
=no
9899 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9900 conftest
$ac_exeext conftest.
$ac_ext
9902 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9903 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9904 if test $emacs_cv_var___after_morecore_hook = no
; then
9907 if test "${system_malloc}" = "yes"; then
9910 (The GNU allocators don't work with this system configuration.)"
9912 if test "$doug_lea_malloc" = "yes" ; then
9913 if test "$GNU_MALLOC" = yes ; then
9915 (Using Doug Lea's new malloc from the GNU C Library.)"
9918 cat >>confdefs.h
<<\_ACEOF
9919 #define DOUG_LEA_MALLOC 1
9924 if test x
"${REL_ALLOC}" = x
; then
9925 REL_ALLOC
=${GNU_MALLOC}
9931 for ac_header
in stdlib.h unistd.h
9933 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9934 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9937 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_res
=`eval echo '${'$as_ac_Header'}'`
9941 { echo "$as_me:$LINENO: result: $ac_res" >&5
9942 echo "${ECHO_T}$ac_res" >&6; }
9944 # Is the header compilable?
9945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9947 cat >conftest.
$ac_ext <<_ACEOF
9950 cat confdefs.h
>>conftest.
$ac_ext
9951 cat >>conftest.
$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9953 $ac_includes_default
9954 #include <$ac_header>
9956 rm -f conftest.
$ac_objext
9957 if { (ac_try
="$ac_compile"
9959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_compile") 2>conftest.er1
9965 grep -v '^ *+' conftest.er1 >conftest.err
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest.$ac_objext; then
9973 ac_header_compiler=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_header_compiler=no
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6; }
9985 # Is the header present?
9986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <$ac_header>
9996 if { (ac_try="$ac_cpp conftest.$ac_ext"
9998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9999 *) ac_try_echo
=$ac_try;;
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10004 grep -v '^ *+' conftest.er1
>conftest.err
10006 cat conftest.err
>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } >/dev
/null
&& {
10009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10010 test ! -s conftest.err
10012 ac_header_preproc
=yes
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.
$ac_ext >&5
10017 ac_header_preproc
=no
10020 rm -f conftest.err conftest.
$ac_ext
10021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022 echo "${ECHO_T}$ac_header_preproc" >&6; }
10024 # So? What about this header?
10025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10031 ac_header_preproc
=yes
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10051 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 eval "$as_ac_Header=\$ac_header_preproc"
10056 ac_res
=`eval echo '${'$as_ac_Header'}'`
10057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10062 cat >>confdefs.h
<<_ACEOF
10063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10071 for ac_func
in getpagesize
10073 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10076 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 cat >conftest.
$ac_ext <<_ACEOF
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10087 #define $ac_func innocuous_$ac_func
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char $ac_func (); below.
10091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092 <limits.h> exists even on freestanding compilers. */
10095 # include <limits.h>
10097 # include <assert.h>
10102 /* Override any GCC internal prototype to avoid an error.
10103 Use char because int might match the return type of a GCC
10104 builtin and then its argument prototype would still apply. */
10109 /* The GNU C library defines this for functions which it implements
10110 to always fail with ENOSYS. Some functions are actually named
10111 something starting with __ and the normal name is an alias. */
10112 #if defined __stub_$ac_func || defined __stub___$ac_func
10119 return $ac_func ();
10124 rm -f conftest.
$ac_objext conftest
$ac_exeext
10125 if { (ac_try
="$ac_link"
10126 case "(($ac_try" in
10127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest$ac_exeext &&
10141 $as_test_x conftest$ac_exeext; then
10142 eval "$as_ac_var=yes"
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 eval "$as_ac_var=no"
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10153 ac_res=`eval echo '${'$as_ac_var'}'`
10154 { echo "$as_me:$LINENO: result: $ac_res" >&5
10155 echo "${ECHO_T}$ac_res" >&6; }
10156 if test `eval echo '${'$as_ac_var'}'` = yes; then
10157 cat >>confdefs.h <<_ACEOF
10158 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10164 { echo "$as_me:$LINENO: checking for working mmap" >&5
10165 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10166 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 if test "$cross_compiling" = yes; then
10170 ac_cv_func_mmap_fixed_mapped=no
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 /* malloc might have been renamed as rpl_malloc. */
10182 /* Thanks to Mike Haertel and Jim Avera for this test.
10183 Here is a matrix of mmap possibilities:
10184 mmap private not fixed
10185 mmap private fixed at somewhere currently unmapped
10186 mmap private fixed at somewhere already mapped
10187 mmap shared not fixed
10188 mmap shared fixed at somewhere currently unmapped
10189 mmap shared fixed at somewhere already mapped
10190 For private mappings, we should verify that changes cannot be read()
10191 back from the file, nor mmap's back from the file at a different
10192 address. (There have been systems where private was not correctly
10193 implemented like the infamous i386 svr4.0, and systems where the
10194 VM page cache was not coherent with the file system buffer cache
10195 like early versions of FreeBSD and possibly contemporary NetBSD.)
10196 For shared mappings, we should conversely verify that changes get
10197 propagated back to all the places they're supposed to be.
10199 Grep wants private fixed already mapped.
10200 The main things grep needs to know about mmap are:
10201 * does it exist and is it safe to write into the mmap'd area
10202 * how to use it (BSD variants) */
10205 #include <sys/mman.h>
10207 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10211 /* This mess was copied from the GNU getpagesize.h. */
10212 #ifndef HAVE_GETPAGESIZE
10213 /* Assume that all systems that can run configure have sys/param.h. */
10214 # ifndef HAVE_SYS_PARAM_H
10215 # define HAVE_SYS_PARAM_H 1
10218 # ifdef _SC_PAGESIZE
10219 # define getpagesize() sysconf(_SC_PAGESIZE)
10220 # else /* no _SC_PAGESIZE */
10221 # ifdef HAVE_SYS_PARAM_H
10222 # include <sys/param.h>
10223 # ifdef EXEC_PAGESIZE
10224 # define getpagesize() EXEC_PAGESIZE
10225 # else /* no EXEC_PAGESIZE */
10227 # define getpagesize() NBPG * CLSIZE
10230 # endif /* no CLSIZE */
10231 # else /* no NBPG */
10233 # define getpagesize() NBPC
10234 # else /* no NBPC */
10236 # define getpagesize() PAGESIZE
10237 # endif /* PAGESIZE */
10238 # endif /* no NBPC */
10239 # endif /* no NBPG */
10240 # endif /* no EXEC_PAGESIZE */
10241 # else /* no HAVE_SYS_PARAM_H */
10242 # define getpagesize() 8192 /* punt totally */
10243 # endif /* no HAVE_SYS_PARAM_H */
10244 # endif /* no _SC_PAGESIZE */
10246 #endif /* no HAVE_GETPAGESIZE */
10251 char *data, *data2, *data3;
10255 pagesize = getpagesize ();
10257 /* First, make a file with some known garbage in it. */
10258 data = (char *) malloc (pagesize);
10261 for (i = 0; i < pagesize; ++i)
10262 *(data + i) = rand ();
10264 fd = creat ("conftest.mmap", 0600);
10267 if (write (fd, data, pagesize) != pagesize)
10271 /* Next, try to mmap the file at a fixed address which already has
10272 something else allocated at it. If we can, also make sure that
10273 we see the same garbage. */
10274 fd = open ("conftest.mmap", O_RDWR);
10277 data2 = (char *) malloc (2 * pagesize);
10280 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10281 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10282 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10284 for (i = 0; i < pagesize; ++i)
10285 if (*(data + i) != *(data2 + i))
10288 /* Finally, make sure that changes to the mapped area do not
10289 percolate back to the file as seen by read(). (This is a bug on
10290 some variants of i386 svr4.0.) */
10291 for (i = 0; i < pagesize; ++i)
10292 *(data2 + i) = *(data2 + i) + 1;
10293 data3 = (char *) malloc (pagesize);
10296 if (read (fd, data3, pagesize) != pagesize)
10298 for (i = 0; i < pagesize; ++i)
10299 if (*(data + i) != *(data3 + i))
10305 rm -f conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10309 *) ac_try_echo
=$ac_try;;
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_func_mmap_fixed_mapped=yes
10327 echo "$as_me: program exited with status $ac_status" >&5
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ( exit $ac_status )
10332 ac_cv_func_mmap_fixed_mapped=no
10334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10339 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10340 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_MMAP 1
10348 rm -f conftest.mmap
10350 if test $use_mmap_for_buffers = yes; then
10354 LIBS="$libsrc_libs $LIBS"
10357 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10358 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10359 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 ac_check_lib_save_LIBS=$LIBS
10363 LIBS="-ldnet $LIBS"
10364 cat >conftest.$ac_ext <<_ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10371 /* Override any GCC internal prototype to avoid an error.
10372 Use char because int might match the return type of a GCC
10373 builtin and then its argument prototype would still apply. */
10381 return dnet_ntoa ();
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10390 *) ac_try_echo
=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1
>conftest.err
10397 cat conftest.err
>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest
$ac_exeext &&
10403 $as_test_x conftest
$ac_exeext; then
10404 ac_cv_lib_dnet_dnet_ntoa
=yes
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.
$ac_ext >&5
10409 ac_cv_lib_dnet_dnet_ntoa
=no
10412 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10413 conftest
$ac_exeext conftest.
$ac_ext
10414 LIBS
=$ac_check_lib_save_LIBS
10416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10417 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10418 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10419 cat >>confdefs.h
<<_ACEOF
10420 #define HAVE_LIBDNET 1
10423 LIBS
="-ldnet $LIBS"
10428 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10429 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10430 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 ac_check_lib_save_LIBS
=$LIBS
10434 LIBS
="-lXbsd $LIBS"
10435 cat >conftest.
$ac_ext <<_ACEOF
10438 cat confdefs.h
>>conftest.
$ac_ext
10439 cat >>conftest.
$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10451 rm -f conftest.
$ac_objext conftest
$ac_exeext
10452 if { (ac_try
="$ac_link"
10453 case "(($ac_try" in
10454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10469 ac_cv_lib_Xbsd_main=yes
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_lib_Xbsd_main=no
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10481 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10482 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10483 if test $ac_cv_lib_Xbsd_main = yes; then
10484 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10489 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10490 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10491 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lpthreads $LIBS"
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10513 return cma_open ();
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10522 *) ac_try_echo
=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10527 grep -v '^ *+' conftest.er1
>conftest.err
10529 cat conftest.err
>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest
$ac_exeext &&
10535 $as_test_x conftest
$ac_exeext; then
10536 ac_cv_lib_pthreads_cma_open
=yes
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.
$ac_ext >&5
10541 ac_cv_lib_pthreads_cma_open
=no
10544 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10545 conftest
$ac_exeext conftest.
$ac_ext
10546 LIBS
=$ac_check_lib_save_LIBS
10548 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10549 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10550 if test $ac_cv_lib_pthreads_cma_open = yes; then
10551 cat >>confdefs.h
<<_ACEOF
10552 #define HAVE_LIBPTHREADS 1
10555 LIBS
="-lpthreads $LIBS"
10560 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10561 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10562 if test -d /usr
/X386
/include
; then
10564 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10568 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10569 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10574 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10575 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10576 if test "${gdb_cv_bigtoc+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10582 *) gdb_cv_bigtoc
=-bbigtoc ;;
10585 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10586 cat >conftest.
$ac_ext <<_ACEOF
10589 cat confdefs.h
>>conftest.
$ac_ext
10590 cat >>conftest.
$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10601 rm -f conftest.
$ac_objext conftest
$ac_exeext
10602 if { (ac_try
="$ac_link"
10603 case "(($ac_try" in
10604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext &&
10618 $as_test_x conftest$ac_exeext; then
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10631 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10632 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10636 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10637 # used for the tests that follow. We set them back to REAL_CFLAGS and
10638 # REAL_CPPFLAGS later on.
10640 REAL_CPPFLAGS="$CPPFLAGS"
10642 if test "${HAVE_X11}" = "yes"; then
10643 DEFS="$C_SWITCH_X_SITE $DEFS"
10644 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10646 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10647 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10649 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10650 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10651 # but it's more convenient here to set LD_RUN_PATH
10652 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10653 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10654 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10658 if test "${opsys}" = "gnu-linux"; then
10659 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10660 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10671 XOpenDisplay ("foo");
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10680 *) ac_try_echo
=$ac_try;;
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_link") 2>conftest.er1
10685 grep -v '^ *+' conftest.er1
>conftest.err
10687 cat conftest.err
>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest
$ac_exeext &&
10693 $as_test_x conftest
$ac_exeext; then
10694 xlinux_first_failure
=no
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.
$ac_ext >&5
10699 xlinux_first_failure
=yes
10702 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10703 conftest
$ac_exeext conftest.
$ac_ext
10704 if test "${xlinux_first_failure}" = "yes"; then
10705 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10706 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10707 OLD_CPPFLAGS
="$CPPFLAGS"
10709 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10710 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10711 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10712 LIBS
="$LIBS -b i486-linuxaout"
10713 cat >conftest.
$ac_ext <<_ACEOF
10716 cat confdefs.h
>>conftest.
$ac_ext
10717 cat >>conftest.
$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10723 XOpenDisplay ("foo");
10728 rm -f conftest.
$ac_objext conftest
$ac_exeext
10729 if { (ac_try
="$ac_link"
10730 case "(($ac_try" in
10731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 xlinux_second_failure=no
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 xlinux_second_failure=yes
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 if test "${xlinux_second_failure}" = "yes"; then
10757 # If we get the same failure with -b, there is no use adding -b.
10758 # So take it out. This plays safe.
10759 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10760 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10761 CPPFLAGS="$OLD_CPPFLAGS"
10763 { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10766 { echo "$as_me:$LINENO: result: yes" >&5
10767 echo "${ECHO_T}yes" >&6; }
10770 { echo "$as_me:$LINENO: result: no" >&5
10771 echo "${ECHO_T}no" >&6; }
10775 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10776 # header files included from there.
10777 { echo "$as_me:$LINENO: checking for Xkb" >&5
10778 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 #include <X11/Xlib.h>
10786 #include <X11/XKBlib.h>
10790 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (ac_try="$ac_link"
10797 case "(($ac_try" in
10798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10799 *) ac_try_echo
=$ac_try;;
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_link") 2>conftest.er1
10804 grep -v '^ *+' conftest.er1
>conftest.err
10806 cat conftest.err
>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest
$ac_exeext &&
10812 $as_test_x conftest
$ac_exeext; then
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.
$ac_ext >&5
10821 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10822 conftest
$ac_exeext conftest.
$ac_ext
10823 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10824 echo "${ECHO_T}$emacs_xkb" >&6; }
10825 if test $emacs_xkb = yes; then
10827 cat >>confdefs.h
<<\_ACEOF
10828 #define HAVE_XKBGETKEYBOARD 1
10837 for ac_func
in XrmSetDatabase XScreenResourceString \
10838 XScreenNumberOfScreen XSetWMProtocols
10840 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10843 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.
$ac_ext <<_ACEOF
10849 cat confdefs.h
>>conftest.
$ac_ext
10850 cat >>conftest.
$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10854 #define $ac_func innocuous_$ac_func
10856 /* System header to define __stub macros and hopefully few prototypes,
10857 which can conflict with char $ac_func (); below.
10858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10859 <limits.h> exists even on freestanding compilers. */
10862 # include <limits.h>
10864 # include <assert.h>
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10876 /* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879 #if defined __stub_$ac_func || defined __stub___$ac_func
10886 return $ac_func ();
10891 rm -f conftest.
$ac_objext conftest
$ac_exeext
10892 if { (ac_try
="$ac_link"
10893 case "(($ac_try" in
10894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest$ac_exeext &&
10908 $as_test_x conftest$ac_exeext; then
10909 eval "$as_ac_var=yes"
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 eval "$as_ac_var=no"
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918 conftest$ac_exeext conftest.$ac_ext
10920 ac_res=`eval echo '${'$as_ac_var'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10933 if test "${window_system}" = "x11"; then
10934 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10935 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10936 if test "${emacs_cv_x11_version_6+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 #include <X11/Xlib.h>
10949 #if XlibSpecificationRelease < 6
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (ac_try="$ac_link"
10959 case "(($ac_try" in
10960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10961 *) ac_try_echo
=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_link") 2>conftest.er1
10966 grep -v '^ *+' conftest.er1
>conftest.err
10968 cat conftest.err
>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest
$ac_exeext &&
10974 $as_test_x conftest
$ac_exeext; then
10975 emacs_cv_x11_version_6
=yes
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.
$ac_ext >&5
10980 emacs_cv_x11_version_6
=no
10983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10984 conftest
$ac_exeext conftest.
$ac_ext
10987 if test $emacs_cv_x11_version_6 = yes; then
10988 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10989 echo "${ECHO_T}6 or newer" >&6; }
10991 cat >>confdefs.h
<<\_ACEOF
10992 #define HAVE_X11R6 1
10996 { echo "$as_me:$LINENO: result: before 6" >&5
10997 echo "${ECHO_T}before 6" >&6; }
11001 if test "${window_system}" = "x11"; then
11002 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11003 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11004 if test "${emacs_cv_x11_version_5+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 cat >conftest.
$ac_ext <<_ACEOF
11010 cat confdefs.h
>>conftest.
$ac_ext
11011 cat >>conftest.
$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #include <X11/Xlib.h>
11017 #if XlibSpecificationRelease < 5
11025 rm -f conftest.
$ac_objext conftest
$ac_exeext
11026 if { (ac_try
="$ac_link"
11027 case "(($ac_try" in
11028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11043 emacs_cv_x11_version_5=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 emacs_cv_x11_version_5=no
11051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052 conftest$ac_exeext conftest.$ac_ext
11055 if test $emacs_cv_x11_version_5 = yes; then
11056 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11057 echo "${ECHO_T}5 or newer" >&6; }
11060 cat >>confdefs.h <<\_ACEOF
11061 #define HAVE_X11R5 1
11066 { echo "$as_me:$LINENO: result: before 5" >&5
11067 echo "${ECHO_T}before 5" >&6; }
11072 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11075 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11076 test "$USE_X_TOOLKIT" = "maybe"; then
11077 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11078 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11079 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11080 { (exit 1); exit 1; }; };
11084 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11086 if test "X${with_pkg_config_prog}" != X; then
11087 PKG_CONFIG="${with_pkg_config_prog}"
11092 if test -z "$PKG_CONFIG"; then
11093 # Extract the first word of "pkg-config", so it can be a program name with args.
11094 set dummy pkg-config; ac_word=$2
11095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 case $PKG_CONFIG in
11102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11125 if test -n "$PKG_CONFIG"; then
11126 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11127 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11136 if test "$PKG_CONFIG" = "no" ; then
11139 PKG_CONFIG_MIN_VERSION=0.9.0
11140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11141 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11142 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11144 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11145 { echo "$as_me:$LINENO: result: yes" >&5
11146 echo "${ECHO_T}yes" >&6; }
11149 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11150 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11151 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11152 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11153 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11155 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11156 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11157 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11158 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11159 echo "${ECHO_T}$GTK_LIBS" >&6; }
11161 { echo "$as_me:$LINENO: result: no" >&5
11162 echo "${ECHO_T}no" >&6; }
11165 ## If we have a custom action on failure, don't print errors, but
11166 ## do set a variable so people can do so.
11167 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11174 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11175 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11179 if test $succeeded = yes; then
11185 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11186 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11187 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11188 { (exit 1); exit 1; }; }
11193 if test x"$pkg_check_gtk" = xyes; then
11197 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11198 CFLAGS="$CFLAGS $GTK_CFLAGS"
11199 LIBS="$GTK_LIBS $LIBS"
11202 for ac_func in gtk_main
11204 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11218 #define $ac_func innocuous_$ac_func
11220 /* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char $ac_func (); below.
11222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223 <limits.h> exists even on freestanding compilers. */
11226 # include <limits.h>
11228 # include <assert.h>
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11240 /* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243 #if defined __stub_$ac_func || defined __stub___$ac_func
11250 return $ac_func ();
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11259 *) ac_try_echo
=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1
>conftest.err
11266 cat conftest.err
>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest
$ac_exeext &&
11272 $as_test_x conftest
$ac_exeext; then
11273 eval "$as_ac_var=yes"
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.
$ac_ext >&5
11278 eval "$as_ac_var=no"
11281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11282 conftest
$ac_exeext conftest.
$ac_ext
11284 ac_res
=`eval echo '${'$as_ac_var'}'`
11285 { echo "$as_me:$LINENO: result: $ac_res" >&5
11286 echo "${ECHO_T}$ac_res" >&6; }
11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
11288 cat >>confdefs.h
<<_ACEOF
11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 if test "${GTK_COMPILES}" != "yes"; then
11296 if test "$USE_X_TOOLKIT" != "maybe"; then
11297 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11298 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11299 { (exit 1); exit 1; }; };
11304 cat >>confdefs.h
<<\_ACEOF
11314 if test "${HAVE_GTK}" = "yes"; then
11316 if test "$with_toolkit_scroll_bars" != no
; then
11317 with_toolkit_scroll_bars
=yes
11321 for ac_func
in gdk_display_open
11323 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11326 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 cat >conftest.
$ac_ext <<_ACEOF
11332 cat confdefs.h
>>conftest.
$ac_ext
11333 cat >>conftest.
$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11345 # include <limits.h>
11347 # include <assert.h>
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined __stub_$ac_func || defined __stub___$ac_func
11369 return $ac_func ();
11374 rm -f conftest.
$ac_objext conftest
$ac_exeext
11375 if { (ac_try
="$ac_link"
11376 case "(($ac_try" in
11377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_link") 2>conftest.er1
11383 grep -v '^ *+' conftest.er1 >conftest.err
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_c_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest$ac_exeext &&
11391 $as_test_x conftest$ac_exeext; then
11392 eval "$as_ac_var=yes"
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 eval "$as_ac_var=no"
11400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11401 conftest$ac_exeext conftest.$ac_ext
11403 ac_res=`eval echo '${'$as_ac_var'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406 if test `eval echo '${'$as_ac_var'}'` = yes; then
11407 cat >>confdefs.h <<_ACEOF
11408 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11410 HAVE_GTK_MULTIDISPLAY=yes
11414 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_GTK_MULTIDISPLAY 1
11422 HAVE_GTK_FILE_SELECTION=no
11424 for ac_func in gtk_file_selection_new
11426 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 cat >conftest.$ac_ext <<_ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11440 #define $ac_func innocuous_$ac_func
11442 /* System header to define __stub macros and hopefully few prototypes,
11443 which can conflict with char $ac_func (); below.
11444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11445 <limits.h> exists even on freestanding compilers. */
11448 # include <limits.h>
11450 # include <assert.h>
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11462 /* The GNU C library defines this for functions which it implements
11463 to always fail with ENOSYS. Some functions are actually named
11464 something starting with __ and the normal name is an alias. */
11465 #if defined __stub_$ac_func || defined __stub___$ac_func
11472 return $ac_func ();
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11481 *) ac_try_echo
=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1
>conftest.err
11488 cat conftest.err
>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest
$ac_exeext &&
11494 $as_test_x conftest
$ac_exeext; then
11495 eval "$as_ac_var=yes"
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.
$ac_ext >&5
11500 eval "$as_ac_var=no"
11503 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11504 conftest
$ac_exeext conftest.
$ac_ext
11506 ac_res
=`eval echo '${'$as_ac_var'}'`
11507 { echo "$as_me:$LINENO: result: $ac_res" >&5
11508 echo "${ECHO_T}$ac_res" >&6; }
11509 if test `eval echo '${'$as_ac_var'}'` = yes; then
11510 cat >>confdefs.h
<<_ACEOF
11511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11513 HAVE_GTK_FILE_SELECTION
=yes
11518 HAVE_GTK_FILE_CHOOSER
=no
11520 for ac_func
in gtk_file_chooser_dialog_new
11522 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11525 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 cat >conftest.
$ac_ext <<_ACEOF
11531 cat confdefs.h
>>conftest.
$ac_ext
11532 cat >>conftest.
$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11536 #define $ac_func innocuous_$ac_func
11538 /* System header to define __stub macros and hopefully few prototypes,
11539 which can conflict with char $ac_func (); below.
11540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11541 <limits.h> exists even on freestanding compilers. */
11544 # include <limits.h>
11546 # include <assert.h>
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11558 /* The GNU C library defines this for functions which it implements
11559 to always fail with ENOSYS. Some functions are actually named
11560 something starting with __ and the normal name is an alias. */
11561 #if defined __stub_$ac_func || defined __stub___$ac_func
11568 return $ac_func ();
11573 rm -f conftest.
$ac_objext conftest
$ac_exeext
11574 if { (ac_try
="$ac_link"
11575 case "(($ac_try" in
11576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_link") 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && {
11587 test -z "$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11589 } && test -s conftest$ac_exeext &&
11590 $as_test_x conftest$ac_exeext; then
11591 eval "$as_ac_var=yes"
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 eval "$as_ac_var=no"
11599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11600 conftest$ac_exeext conftest.$ac_ext
11602 ac_res=`eval echo '${'$as_ac_var'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11605 if test `eval echo '${'$as_ac_var'}'` = yes; then
11606 cat >>confdefs.h <<_ACEOF
11607 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11609 HAVE_GTK_FILE_CHOOSER=yes
11614 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11615 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11617 cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_GTK_FILE_BOTH 1
11623 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11624 HAVE_GTK_AND_PTHREAD=no
11626 for ac_header in pthread.h
11628 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11639 # Is the header compilable?
11640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11649 #include <$ac_header>
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11655 *) ac_try_echo
=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11660 grep -v '^ *+' conftest.er1
>conftest.err
11662 cat conftest.err
>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } && {
11665 test -z "$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 } && test -s conftest.
$ac_objext; then
11668 ac_header_compiler
=yes
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.
$ac_ext >&5
11673 ac_header_compiler
=no
11676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11678 echo "${ECHO_T}$ac_header_compiler" >&6; }
11680 # Is the header present?
11681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11683 cat >conftest.
$ac_ext <<_ACEOF
11686 cat confdefs.h
>>conftest.
$ac_ext
11687 cat >>conftest.
$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <$ac_header>
11691 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11692 case "(($ac_try" in
11693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } >/dev/null && {
11704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11707 ac_header_preproc=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_preproc=no
11715 rm -f conftest.err conftest.$ac_ext
11716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717 echo "${ECHO_T}$ac_header_preproc" >&6; }
11719 # So? What about this header?
11720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 eval "$as_ac_Header=\$ac_header_preproc"
11751 ac_res=`eval echo '${'$as_ac_Header'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11757 cat >>confdefs.h <<_ACEOF
11758 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11765 if test "$ac_cv_header_pthread_h"; then
11766 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11767 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11768 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-lpthread $LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11780 /* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11786 char pthread_self ();
11790 return pthread_self ();
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (ac_try="$ac_link"
11797 case "(($ac_try" in
11798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11799 *) ac_try_echo
=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_link") 2>conftest.er1
11804 grep -v '^ *+' conftest.er1
>conftest.err
11806 cat conftest.err
>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest
$ac_exeext &&
11812 $as_test_x conftest
$ac_exeext; then
11813 ac_cv_lib_pthread_pthread_self
=yes
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.
$ac_ext >&5
11818 ac_cv_lib_pthread_pthread_self
=no
11821 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11822 conftest
$ac_exeext conftest.
$ac_ext
11823 LIBS
=$ac_check_lib_save_LIBS
11825 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11826 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11827 if test $ac_cv_lib_pthread_pthread_self = yes; then
11828 HAVE_GTK_AND_PTHREAD
=yes
11832 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11833 GTK_LIBS
="$GTK_LIBS -lpthread"
11835 cat >>confdefs.h
<<\_ACEOF
11836 #define HAVE_GTK_AND_PTHREAD 1
11843 ### Link with -lXft if available to work around a bug.
11845 if test "${HAVE_GTK}" = "yes"; then
11846 if test "X${with_pkg_config_prog}" != X
; then
11847 PKG_CONFIG
="${with_pkg_config_prog}"
11853 if test -z "$PKG_CONFIG"; then
11854 # Extract the first word of "pkg-config", so it can be a program name with args.
11855 set dummy pkg-config
; ac_word
=$2
11856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11858 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 case $PKG_CONFIG in
11863 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11867 for as_dir
in $PATH
11870 test -z "$as_dir" && as_dir
=.
11871 for ac_exec_ext
in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11885 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11886 if test -n "$PKG_CONFIG"; then
11887 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11888 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11890 { echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6; }
11897 if test "$PKG_CONFIG" = "no" ; then
11900 PKG_CONFIG_MIN_VERSION
=0.9.0
11901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11902 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11903 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11905 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11906 { echo "$as_me:$LINENO: result: yes" >&5
11907 echo "${ECHO_T}yes" >&6; }
11910 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11911 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11912 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11913 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11914 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11916 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11917 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11918 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11919 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11920 echo "${ECHO_T}$XFT_LIBS" >&6; }
11922 { echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6; }
11926 ## If we have a custom action on failure, don't print errors, but
11927 ## do set a variable so people can do so.
11928 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11935 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11936 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11940 if test $succeeded = yes; then
11946 if test "$HAVE_XFT" != no
; then
11947 OLD_CFLAGS
="$CPPFLAGS"
11948 OLD_CPPFLAGS
="$CFLAGS"
11950 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11951 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11952 LIBS
="$XFT_LIBS $LIBS"
11953 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11954 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11955 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11956 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11960 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11962 # Is the header compilable?
11963 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11964 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11965 cat >conftest.
$ac_ext <<_ACEOF
11968 cat confdefs.h
>>conftest.
$ac_ext
11969 cat >>conftest.
$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 $ac_includes_default
11972 #include <X11/Xft/Xft.h>
11974 rm -f conftest.
$ac_objext
11975 if { (ac_try
="$ac_compile"
11976 case "(($ac_try" in
11977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_compile") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1 >conftest.err
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest.$ac_objext; then
11991 ac_header_compiler=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_header_compiler=no
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12001 echo "${ECHO_T}$ac_header_compiler" >&6; }
12003 # Is the header present?
12004 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12005 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12006 cat >conftest.$ac_ext <<_ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 #include <X11/Xft/Xft.h>
12014 if { (ac_try="$ac_cpp conftest.$ac_ext"
12015 case "(($ac_try" in
12016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12017 *) ac_try_echo
=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12022 grep -v '^ *+' conftest.er1
>conftest.err
12024 cat conftest.err
>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } >/dev
/null
&& {
12027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12030 ac_header_preproc
=yes
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.
$ac_ext >&5
12035 ac_header_preproc
=no
12038 rm -f conftest.err conftest.
$ac_ext
12039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12040 echo "${ECHO_T}$ac_header_preproc" >&6; }
12042 # So? What about this header?
12043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12045 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12046 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12048 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12049 ac_header_preproc
=yes
12052 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12053 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12055 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12057 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12059 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12061 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12063 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12067 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12068 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12069 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12074 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12075 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12078 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12079 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12080 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12081 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 ac_check_lib_save_LIBS
=$LIBS
12085 LIBS
="-lXft $XFT_LIBS $LIBS"
12086 cat >conftest.
$ac_ext <<_ACEOF
12089 cat confdefs.h
>>conftest.
$ac_ext
12090 cat >>conftest.
$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12099 char XftFontOpen ();
12103 return XftFontOpen ();
12108 rm -f conftest.
$ac_objext conftest
$ac_exeext
12109 if { (ac_try
="$ac_link"
12110 case "(($ac_try" in
12111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_link") 2>conftest.er1
12117 grep -v '^ *+' conftest.er1 >conftest.err
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest$ac_exeext &&
12125 $as_test_x conftest$ac_exeext; then
12126 ac_cv_lib_Xft_XftFontOpen=yes
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_cv_lib_Xft_XftFontOpen=no
12134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12138 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12139 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12140 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12148 if test "${HAVE_XFT}" = "yes"; then
12150 cat >>confdefs.h <<\_ACEOF
12155 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12157 CFLAGS="$OLD_CPPFLAGS"
12158 CFLAGS="$OLD_CFLAGS"
12165 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12166 if test x"${HAVE_X11R5}" != xyes; then
12169 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12170 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12171 if test "${emacs_cv_xaw3d+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 cat >conftest.$ac_ext <<_ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12181 #include <X11/Intrinsic.h>
12182 #include <X11/Xaw3d/Simple.h>
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (ac_try="$ac_link"
12193 case "(($ac_try" in
12194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12195 *) ac_try_echo
=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_link") 2>conftest.er1
12200 grep -v '^ *+' conftest.er1
>conftest.err
12202 cat conftest.err
>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest
$ac_exeext &&
12208 $as_test_x conftest
$ac_exeext; then
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.
$ac_ext >&5
12217 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12218 conftest
$ac_exeext conftest.
$ac_ext
12221 if test $emacs_cv_xaw3d = yes; then
12222 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12223 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12224 USE_X_TOOLKIT
=LUCID
12227 cat >>confdefs.h
<<\_ACEOF
12228 #define HAVE_XAW3D 1
12232 { echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6; }
12234 { echo "$as_me:$LINENO: checking for libXaw" >&5
12235 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12236 if test "${emacs_cv_xaw+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 cat >conftest.
$ac_ext <<_ACEOF
12242 cat confdefs.h
>>conftest.
$ac_ext
12243 cat >>conftest.
$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 #include <X11/Intrinsic.h>
12247 #include <X11/Xaw/Simple.h>
12256 rm -f conftest.
$ac_objext conftest
$ac_exeext
12257 if { (ac_try
="$ac_link"
12258 case "(($ac_try" in
12259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1 >conftest.err
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext &&
12273 $as_test_x conftest$ac_exeext; then
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12283 conftest$ac_exeext conftest.$ac_ext
12286 if test $emacs_cv_xaw = yes; then
12287 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12288 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12289 USE_X_TOOLKIT=LUCID
12290 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12291 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12292 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12293 { (exit 1); exit 1; }; }
12295 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12296 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12303 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12305 if test "${USE_X_TOOLKIT}" != "none"; then
12306 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12307 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12308 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <X11/Intrinsic.h>
12321 #if XtSpecificationRelease < 6
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12333 *) ac_try_echo
=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_link") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1
>conftest.err
12340 cat conftest.err
>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest
$ac_exeext &&
12346 $as_test_x conftest
$ac_exeext; then
12347 emacs_cv_x11_toolkit_version_6
=yes
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.
$ac_ext >&5
12352 emacs_cv_x11_toolkit_version_6
=no
12355 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12356 conftest
$ac_exeext conftest.
$ac_ext
12359 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12360 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12361 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12362 echo "${ECHO_T}6 or newer" >&6; }
12364 cat >>confdefs.h
<<\_ACEOF
12365 #define HAVE_X11XTR6 1
12369 { echo "$as_me:$LINENO: result: before 6" >&5
12370 echo "${ECHO_T}before 6" >&6; }
12374 if test x
$HAVE_X11XTR6 = xyes
; then
12375 LIBS
="-lXt -lSM -lICE $LIBS"
12380 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12381 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12382 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 ac_check_lib_save_LIBS
=$LIBS
12387 cat >conftest.
$ac_ext <<_ACEOF
12390 cat confdefs.h
>>conftest.
$ac_ext
12391 cat >>conftest.
$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12400 char XmuConvertStandardSelection ();
12404 return XmuConvertStandardSelection ();
12409 rm -f conftest.
$ac_objext conftest
$ac_exeext
12410 if { (ac_try
="$ac_link"
12411 case "(($ac_try" in
12412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest$ac_exeext &&
12426 $as_test_x conftest$ac_exeext; then
12427 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12439 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12440 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12441 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12442 cat >>confdefs.h <<_ACEOF
12443 #define HAVE_LIBXMU 1
12450 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12453 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12454 if test "${HAVE_X11}" = "yes"; then
12455 if test "${USE_X_TOOLKIT}" != "none"; then
12457 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12458 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12459 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-lXext $LIBS"
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12471 /* Override any GCC internal prototype to avoid an error.
12472 Use char because int might match the return type of a GCC
12473 builtin and then its argument prototype would still apply. */
12477 char XShapeQueryExtension ();
12481 return XShapeQueryExtension ();
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12490 *) ac_try_echo
=$ac_try;;
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_link") 2>conftest.er1
12495 grep -v '^ *+' conftest.er1
>conftest.err
12497 cat conftest.err
>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && {
12500 test -z "$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12502 } && test -s conftest
$ac_exeext &&
12503 $as_test_x conftest
$ac_exeext; then
12504 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.
$ac_ext >&5
12509 ac_cv_lib_Xext_XShapeQueryExtension
=no
12512 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12513 conftest
$ac_exeext conftest.
$ac_ext
12514 LIBS
=$ac_check_lib_save_LIBS
12516 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12517 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12518 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12519 cat >>confdefs.h
<<_ACEOF
12520 #define HAVE_LIBXEXT 1
12523 LIBS
="-lXext $LIBS"
12530 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12531 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12532 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12533 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 cat >conftest.
$ac_ext <<_ACEOF
12539 cat confdefs.h
>>conftest.
$ac_ext
12540 cat >>conftest.
$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12546 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12549 Motif version prior to 2.1.
12555 rm -f conftest.
$ac_objext
12556 if { (ac_try
="$ac_compile"
12557 case "(($ac_try" in
12558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_compile") 2>conftest.er1
12564 grep -v '^ *+' conftest.er1 >conftest.err
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } && {
12569 test -z "$ac_c_werror_flag" ||
12570 test ! -s conftest.err
12571 } && test -s conftest.$ac_objext; then
12572 emacs_cv_motif_version_2_1=yes
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 emacs_cv_motif_version_2_1=no
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12583 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12584 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12585 if test $emacs_cv_motif_version_2_1 = yes; then
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_MOTIF_2_1 1
12592 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12593 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12594 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_check_lib_save_LIBS=$LIBS
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12612 char XpCreateContext ();
12616 return XpCreateContext ();
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12625 *) ac_try_echo
=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12630 grep -v '^ *+' conftest.er1
>conftest.err
12632 cat conftest.err
>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest
$ac_exeext &&
12638 $as_test_x conftest
$ac_exeext; then
12639 ac_cv_lib_Xp_XpCreateContext
=yes
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.
$ac_ext >&5
12644 ac_cv_lib_Xp_XpCreateContext
=no
12647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12648 conftest
$ac_exeext conftest.
$ac_ext
12649 LIBS
=$ac_check_lib_save_LIBS
12651 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12652 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12653 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12657 if test ${HAVE_LIBXP} = yes; then
12659 cat >>confdefs.h
<<\_ACEOF
12660 #define HAVE_LIBXP 1
12665 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12666 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12667 if test "${emacs_cv_lesstif+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 # We put this in CFLAGS temporarily to precede other -I options
12671 # that might be in CFLAGS temporarily.
12672 # We put this in CPPFLAGS where it precedes the other -I options.
12673 OLD_CPPFLAGS
=$CPPFLAGS
12675 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12676 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12677 cat >conftest.
$ac_ext <<_ACEOF
12680 cat confdefs.h
>>conftest.
$ac_ext
12681 cat >>conftest.
$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12692 rm -f conftest.
$ac_objext
12693 if { (ac_try
="$ac_compile"
12694 case "(($ac_try" in
12695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_compile") 2>conftest.er1
12701 grep -v '^ *+' conftest.er1 >conftest.err
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && {
12706 test -z "$ac_c_werror_flag" ||
12707 test ! -s conftest.err
12708 } && test -s conftest.$ac_objext; then
12709 emacs_cv_lesstif=yes
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 emacs_cv_lesstif=no
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12720 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12721 if test $emacs_cv_lesstif = yes; then
12722 # Make sure this -I option remains in CPPFLAGS after it is set
12723 # back to REAL_CPPFLAGS.
12724 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12725 # have those other -I options anyway. Ultimately, having this
12726 # directory ultimately in CPPFLAGS will be enough.
12727 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12728 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12731 CPPFLAGS=$OLD_CPPFLAGS
12738 USE_TOOLKIT_SCROLL_BARS=no
12739 if test "${with_toolkit_scroll_bars}" != "no"; then
12740 if test "${USE_X_TOOLKIT}" != "none"; then
12741 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12742 cat >>confdefs.h <<\_ACEOF
12743 #define USE_TOOLKIT_SCROLL_BARS 1
12747 USE_TOOLKIT_SCROLL_BARS=yes
12748 elif test "${HAVE_XAW3D}" = "yes"; then
12749 cat >>confdefs.h <<\_ACEOF
12750 #define USE_TOOLKIT_SCROLL_BARS 1
12753 USE_TOOLKIT_SCROLL_BARS=yes
12755 elif test "${HAVE_GTK}" = "yes"; then
12756 cat >>confdefs.h <<\_ACEOF
12757 #define USE_TOOLKIT_SCROLL_BARS 1
12760 USE_TOOLKIT_SCROLL_BARS=yes
12761 elif test "${HAVE_CARBON}" = "yes"; then
12762 cat >>confdefs.h <<\_ACEOF
12763 #define USE_TOOLKIT_SCROLL_BARS 1
12766 USE_TOOLKIT_SCROLL_BARS=yes
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12777 #include <X11/Xlib.h>
12778 #include <X11/Xresource.h>
12787 rm -f conftest.$ac_objext
12788 if { (ac_try="$ac_compile"
12789 case "(($ac_try" in
12790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12791 *) ac_try_echo
=$ac_try;;
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12796 grep -v '^ *+' conftest.er1
>conftest.err
12798 cat conftest.err
>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.
$ac_objext; then
12806 cat >>confdefs.h
<<\_ACEOF
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.
$ac_ext >&5
12817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12820 if test "${with_xim}" != "no"; then
12822 cat >>confdefs.h
<<\_ACEOF
12829 if test "${HAVE_XIM}" != "no"; then
12830 late_CFLAGS
=$CFLAGS
12831 if test "$GCC" = yes; then
12832 CFLAGS
="$CFLAGS --pedantic-errors"
12834 cat >conftest.
$ac_ext <<_ACEOF
12837 cat confdefs.h
>>conftest.
$ac_ext
12838 cat >>conftest.
$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12841 #include <X11/Xlib.h>
12842 #include <X11/Xresource.h>
12851 XPointer *client_data;
12853 /* If we're not using GCC, it's probably not XFree86, and this is
12854 probably right, but we can't use something like --pedantic-errors. */
12855 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12856 char*, XIMProc, XPointer*);
12858 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12864 rm -f conftest.
$ac_objext
12865 if { (ac_try
="$ac_compile"
12866 case "(($ac_try" in
12867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_compile") 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } && {
12878 test -z "$ac_c_werror_flag" ||
12879 test ! -s conftest.err
12880 } && test -s conftest.$ac_objext; then
12881 emacs_cv_arg6_star=yes
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 if test "$emacs_cv_arg6_star" = yes; then
12892 cat >>confdefs.h <<\_ACEOF
12893 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12897 cat >>confdefs.h <<\_ACEOF
12898 #define XRegisterIMInstantiateCallback_arg6 XPointer
12902 CFLAGS=$late_CFLAGS
12905 ### Use -lXpm if available, unless `--with-xpm=no
'.
12907 if test "${HAVE_X11}" = "yes"; then
12908 if test "${with_xpm}" != "no"; then
12909 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12910 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12911 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12912 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12916 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12918 # Is the header compilable?
12919 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12920 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12921 cat >conftest.$ac_ext <<_ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 $ac_includes_default
12928 #include <X11/xpm.h>
12930 rm -f conftest.$ac_objext
12931 if { (ac_try="$ac_compile"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_compile") 2>conftest.er1
12939 grep -v '^
*+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest.$ac_objext; then
12947 ac_header_compiler=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's
/^
/|
/' conftest.$ac_ext >&5
12952 ac_header_compiler=no
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957 echo "${ECHO_T}$ac_header_compiler" >&6; }
12959 # Is the header present?
12960 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12961 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12962 cat >conftest.$ac_ext <<_ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 #include <X11/xpm.h>
12970 if { (ac_try="$ac_cpp conftest.$ac_ext"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12978 grep -v '^
*+' conftest.er1 >conftest.err
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null && {
12983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12984 test ! -s conftest.err
12986 ac_header_preproc=yes
12988 echo "$as_me: failed program was:" >&5
12989 sed 's
/^
/|
/' conftest.$ac_ext >&5
12991 ac_header_preproc=no
12994 rm -f conftest.err conftest.$ac_ext
12995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12996 echo "${ECHO_T}$ac_header_preproc" >&6; }
12998 # So? What about this header?
12999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13001 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13002 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13004 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13005 ac_header_preproc=yes
13008 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13009 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13011 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13013 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13015 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13017 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13019 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13023 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13024 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13025 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 ac_cv_header_X11_xpm_h=$ac_header_preproc
13030 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13031 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13034 if test $ac_cv_header_X11_xpm_h = yes; then
13035 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13036 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13037 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-lXpm -lX11 $LIBS"
13042 cat >conftest.$ac_ext <<_ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13055 char XpmReadFileToPixmap ();
13059 return XpmReadFileToPixmap ();
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (ac_try="$ac_link"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_link") 2>conftest.er1
13073 grep -v '^
*+' conftest.er1 >conftest.err
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && {
13078 test -z "$ac_c_werror_flag" ||
13079 test ! -s conftest.err
13080 } && test -s conftest$ac_exeext &&
13081 $as_test_x conftest$ac_exeext; then
13082 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13084 echo "$as_me: failed program was:" >&5
13085 sed 's
/^
/|
/' conftest.$ac_ext >&5
13087 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13095 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13096 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13103 if test "${HAVE_XPM}" = "yes"; then
13104 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13105 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 #include "X11/xpm.h"
13113 #ifndef XpmReturnAllocPixels
13114 no_return_alloc_pixels
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13127 if test "${HAVE_XPM}" = "yes"; then
13128 { echo "$as_me:$LINENO: result: yes" >&5
13129 echo "${ECHO_T}yes" >&6; }
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13137 if test "${HAVE_XPM}" = "yes"; then
13139 cat >>confdefs.h <<\_ACEOF
13146 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13148 if test "${HAVE_X11}" = "yes"; then
13149 if test "${with_jpeg}" != "no"; then
13150 if test "${ac_cv_header_jerror_h+set}" = set; then
13151 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13152 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13153 if test "${ac_cv_header_jerror_h+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13157 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13159 # Is the header compilable?
13160 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13161 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13162 cat >conftest.
$ac_ext <<_ACEOF
13165 cat confdefs.h
>>conftest.
$ac_ext
13166 cat >>conftest.
$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13169 #include <jerror.h>
13171 rm -f conftest.
$ac_objext
13172 if { (ac_try
="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
13188 ac_header_compiler=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_header_compiler=no
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13198 echo "${ECHO_T}$ac_header_compiler" >&6; }
13200 # Is the header present?
13201 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13202 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13203 cat >conftest.$ac_ext <<_ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <jerror.h>
13211 if { (ac_try="$ac_cpp conftest.$ac_ext"
13212 case "(($ac_try" in
13213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13214 *) ac_try_echo
=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13219 grep -v '^ *+' conftest.er1
>conftest.err
13221 cat conftest.err
>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } >/dev
/null
&& {
13224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13227 ac_header_preproc
=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.
$ac_ext >&5
13232 ac_header_preproc
=no
13235 rm -f conftest.err conftest.
$ac_ext
13236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13237 echo "${ECHO_T}$ac_header_preproc" >&6; }
13239 # So? What about this header?
13240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13242 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13243 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13244 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13245 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13246 ac_header_preproc
=yes
13249 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13250 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13252 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13254 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13256 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13258 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13260 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13264 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13265 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13266 if test "${ac_cv_header_jerror_h+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 ac_cv_header_jerror_h
=$ac_header_preproc
13271 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13272 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13275 if test $ac_cv_header_jerror_h = yes; then
13276 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13277 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13278 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 ac_check_lib_save_LIBS
=$LIBS
13282 LIBS
="-ljpeg $LIBS"
13283 cat >conftest.
$ac_ext <<_ACEOF
13286 cat confdefs.h
>>conftest.
$ac_ext
13287 cat >>conftest.
$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13296 char jpeg_destroy_compress ();
13300 return jpeg_destroy_compress ();
13305 rm -f conftest.
$ac_objext conftest
$ac_exeext
13306 if { (ac_try
="$ac_link"
13307 case "(($ac_try" in
13308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_link") 2>conftest.er1
13314 grep -v '^ *+' conftest.er1 >conftest.err
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest$ac_exeext &&
13322 $as_test_x conftest$ac_exeext; then
13323 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13336 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13337 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13347 if test "${HAVE_JPEG}" = "yes"; then
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_JPEG 1
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <jpeglib.h>
13359 version=JPEG_LIB_VERSION
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_JPEG 1
13369 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13370 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13378 ### Use -lpng if available, unless `--with-png=no
'.
13380 if test "${HAVE_X11}" = "yes"; then
13381 if test "${with_png}" != "no"; then
13382 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13383 # in /usr/include/libpng.
13386 for ac_header in png.h libpng/png.h
13388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 ac_res=`eval echo '${'$as_ac_Header'}'`
13396 { echo "$as_me:$LINENO: result: $ac_res" >&5
13397 echo "${ECHO_T}$ac_res" >&6; }
13399 # Is the header compilable?
13400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 $ac_includes_default
13409 #include <$ac_header>
13411 rm -f conftest.$ac_objext
13412 if { (ac_try="$ac_compile"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13420 grep -v '^
*+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && {
13425 test -z "$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 } && test -s conftest.$ac_objext; then
13428 ac_header_compiler=yes
13430 echo "$as_me: failed program was:" >&5
13431 sed 's
/^
/|
/' conftest.$ac_ext >&5
13433 ac_header_compiler=no
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13438 echo "${ECHO_T}$ac_header_compiler" >&6; }
13440 # Is the header present?
13441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13443 cat >conftest.$ac_ext <<_ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 #include <$ac_header>
13451 if { (ac_try="$ac_cpp conftest.$ac_ext"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13459 grep -v '^
*+' conftest.er1 >conftest.err
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null && {
13464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13467 ac_header_preproc=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's
/^
/|
/' conftest.$ac_ext >&5
13472 ac_header_preproc=no
13475 rm -f conftest.err conftest.$ac_ext
13476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13477 echo "${ECHO_T}$ac_header_preproc" >&6; }
13479 # So? What about this header?
13480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13485 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13486 ac_header_preproc=yes
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13498 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 eval "$as_ac_Header=\$ac_header_preproc"
13511 ac_res=`eval echo '${'$as_ac_Header'}'`
13512 { echo "$as_me:$LINENO: result: $ac_res" >&5
13513 echo "${ECHO_T}$ac_res" >&6; }
13516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13526 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13527 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13528 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_check_lib_save_LIBS=$LIBS
13532 LIBS="-lpng -lz -lm $LIBS"
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply. */
13546 char png_get_channels ();
13550 return png_get_channels ();
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (ac_try="$ac_link"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_link") 2>conftest.er1
13564 grep -v '^
*+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } && {
13569 test -z "$ac_c_werror_flag" ||
13570 test ! -s conftest.err
13571 } && test -s conftest$ac_exeext &&
13572 $as_test_x conftest$ac_exeext; then
13573 ac_cv_lib_png_png_get_channels=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's
/^
/|
/' conftest.$ac_ext >&5
13578 ac_cv_lib_png_png_get_channels=no
13581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13585 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13586 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13587 if test $ac_cv_lib_png_png_get_channels = yes; then
13594 if test "${HAVE_PNG}" = "yes"; then
13596 cat >>confdefs.h <<\_ACEOF
13603 ### Use -ltiff if available, unless `--with-tiff=no'.
13605 if test "${HAVE_X11}" = "yes"; then
13606 if test "${with_tiff}" != "no"; then
13607 if test "${ac_cv_header_tiffio_h+set}" = set; then
13608 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13609 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13610 if test "${ac_cv_header_tiffio_h+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13614 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13616 # Is the header compilable?
13617 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13618 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13619 cat >conftest.
$ac_ext <<_ACEOF
13622 cat confdefs.h
>>conftest.
$ac_ext
13623 cat >>conftest.
$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $ac_includes_default
13626 #include <tiffio.h>
13628 rm -f conftest.
$ac_objext
13629 if { (ac_try
="$ac_compile"
13630 case "(($ac_try" in
13631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compile") 2>conftest.er1
13637 grep -v '^ *+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } && {
13642 test -z "$ac_c_werror_flag" ||
13643 test ! -s conftest.err
13644 } && test -s conftest.$ac_objext; then
13645 ac_header_compiler=yes
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ac_header_compiler=no
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13655 echo "${ECHO_T}$ac_header_compiler" >&6; }
13657 # Is the header present?
13658 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13659 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 #include <tiffio.h>
13668 if { (ac_try="$ac_cpp conftest.$ac_ext"
13669 case "(($ac_try" in
13670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13671 *) ac_try_echo
=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13676 grep -v '^ *+' conftest.er1
>conftest.err
13678 cat conftest.err
>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } >/dev
/null
&& {
13681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13684 ac_header_preproc
=yes
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.
$ac_ext >&5
13689 ac_header_preproc
=no
13692 rm -f conftest.err conftest.
$ac_ext
13693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13694 echo "${ECHO_T}$ac_header_preproc" >&6; }
13696 # So? What about this header?
13697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13699 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13700 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13702 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13703 ac_header_preproc
=yes
13706 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13707 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13709 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13710 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13711 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13713 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13715 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13716 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13717 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13721 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13722 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13723 if test "${ac_cv_header_tiffio_h+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 ac_cv_header_tiffio_h
=$ac_header_preproc
13728 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13729 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13732 if test $ac_cv_header_tiffio_h = yes; then
13734 # At least one tiff package requires the jpeg library.
13735 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13736 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13737 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 ac_check_lib_save_LIBS
=$LIBS
13742 LIBS
="-ltiff $tifflibs $LIBS"
13743 cat >conftest.
$ac_ext <<_ACEOF
13746 cat confdefs.h
>>conftest.
$ac_ext
13747 cat >>conftest.
$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13756 char TIFFGetVersion ();
13760 return TIFFGetVersion ();
13765 rm -f conftest.
$ac_objext conftest
$ac_exeext
13766 if { (ac_try
="$ac_link"
13767 case "(($ac_try" in
13768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext &&
13782 $as_test_x conftest$ac_exeext; then
13783 ac_cv_lib_tiff_TIFFGetVersion=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_lib_tiff_TIFFGetVersion=no
13791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13792 conftest$ac_exeext conftest.$ac_ext
13793 LIBS=$ac_check_lib_save_LIBS
13795 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13796 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13797 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13806 if test "${HAVE_TIFF}" = "yes"; then
13808 cat >>confdefs.h <<\_ACEOF
13809 #define HAVE_TIFF 1
13815 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
13817 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13818 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13819 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13820 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13821 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13825 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13827 # Is the header compilable?
13828 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13829 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <gif_lib.h>
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13848 grep -v '^
*+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.$ac_objext; then
13856 ac_header_compiler=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's
/^
/|
/' conftest.$ac_ext >&5
13861 ac_header_compiler=no
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13866 echo "${ECHO_T}$ac_header_compiler" >&6; }
13868 # Is the header present?
13869 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13870 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include <gif_lib.h>
13879 if { (ac_try="$ac_cpp conftest.$ac_ext"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13887 grep -v '^
*+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } >/dev/null && {
13892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13895 ac_header_preproc=yes
13897 echo "$as_me: failed program was:" >&5
13898 sed 's
/^
/|
/' conftest.$ac_ext >&5
13900 ac_header_preproc=no
13903 rm -f conftest.err conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6; }
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13910 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
13913 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
13914 ac_header_preproc=yes
13917 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
13926 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13932 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13933 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13934 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 ac_cv_header_gif_lib_h=$ac_header_preproc
13939 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13940 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13943 if test $ac_cv_header_gif_lib_h = yes; then
13944 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13945 # Earlier versions can crash Emacs.
13946 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13947 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13948 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 ac_check_lib_save_LIBS=$LIBS
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13966 char EGifPutExtensionLast ();
13970 return EGifPutExtensionLast ();
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13984 grep -v '^
*+' conftest.er1 >conftest.err
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest$ac_exeext &&
13992 $as_test_x conftest$ac_exeext; then
13993 ac_cv_lib_gif_EGifPutExtensionLast=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's
/^
/|
/' conftest.$ac_ext >&5
13998 ac_cv_lib_gif_EGifPutExtensionLast=no
14001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14002 conftest$ac_exeext conftest.$ac_ext
14003 LIBS=$ac_check_lib_save_LIBS
14005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14006 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14007 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14017 if test "$HAVE_GIF" = yes; then
14018 ac_gif_lib_name="-lgif"
14021 # If gif_lib.h but no libgif, try libungif.
14022 if test x"$try_libungif" = xyes; then
14023 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14024 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14025 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lungif $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14043 char EGifPutExtensionLast ();
14047 return EGifPutExtensionLast ();
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_link") 2>conftest.er1
14061 grep -v '^
*+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } && {
14066 test -z "$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 } && test -s conftest$ac_exeext &&
14069 $as_test_x conftest$ac_exeext; then
14070 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14072 echo "$as_me: failed program was:" >&5
14073 sed 's
/^
/|
/' conftest.$ac_ext >&5
14075 ac_cv_lib_ungif_EGifPutExtensionLast=no
14078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14079 conftest$ac_exeext conftest.$ac_ext
14080 LIBS=$ac_check_lib_save_LIBS
14082 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14083 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14084 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14089 if test "$HAVE_GIF" = yes; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define LIBGIF -lungif
14095 ac_gif_lib_name="-lungif"
14099 if test "${HAVE_GIF}" = "yes"; then
14101 cat >>confdefs.h <<\_ACEOF
14108 if test "${HAVE_X11}" = "yes"; then
14111 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14112 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14113 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14114 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14115 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14116 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14117 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14118 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14119 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14120 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14122 if test "X${MISSING}" != X; then
14123 { { echo "$as_me:$LINENO: error: The following required libraries was not found:
14125 Maybe some development libraries/packages are missing?
14126 If you don't want to link with them give
14128 as options to configure
" >&5
14129 echo "$as_me: error
: The following required libraries was not found
:
14131 Maybe some development libraries
/packages are missing?
14132 If you don
't want to link with them give
14134 as options to configure" >&2;}
14135 { (exit 1); exit 1; }; }
14139 ### Use -lgpm if available, unless `--with-gpm=no'.
14141 if test "${with_gpm}" != "no"; then
14142 if test "${ac_cv_header_gpm_h+set}" = set; then
14143 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14144 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_gpm_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14149 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14151 # Is the header compilable?
14152 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14153 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14154 cat >conftest.
$ac_ext <<_ACEOF
14157 cat confdefs.h
>>conftest.
$ac_ext
14158 cat >>conftest.
$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14163 rm -f conftest.
$ac_objext
14164 if { (ac_try
="$ac_compile"
14165 case "(($ac_try" in
14166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14172 grep -v '^ *+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_header_compiler=yes
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ac_header_compiler=no
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14190 echo "${ECHO_T}$ac_header_compiler" >&6; }
14192 # Is the header present?
14193 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14194 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14203 if { (ac_try="$ac_cpp conftest.$ac_ext"
14204 case "(($ac_try" in
14205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14206 *) ac_try_echo
=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14211 grep -v '^ *+' conftest.er1
>conftest.err
14213 cat conftest.err
>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev
/null
&& {
14216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14219 ac_header_preproc
=yes
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.
$ac_ext >&5
14224 ac_header_preproc
=no
14227 rm -f conftest.err conftest.
$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6; }
14231 # So? What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14234 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14237 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc
=yes
14241 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14250 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14256 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14257 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_gpm_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 ac_cv_header_gpm_h
=$ac_header_preproc
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14264 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14267 if test $ac_cv_header_gpm_h = yes; then
14268 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14269 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14270 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 ac_check_lib_save_LIBS
=$LIBS
14275 cat >conftest.
$ac_ext <<_ACEOF
14278 cat confdefs.h
>>conftest.
$ac_ext
14279 cat >>conftest.
$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14292 return Gpm_Open ();
14297 rm -f conftest.
$ac_objext conftest
$ac_exeext
14298 if { (ac_try
="$ac_link"
14299 case "(($ac_try" in
14300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_link") 2>conftest.er1
14306 grep -v '^ *+' conftest.er1 >conftest.err
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && {
14311 test -z "$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 } && test -s conftest$ac_exeext &&
14314 $as_test_x conftest$ac_exeext; then
14315 ac_cv_lib_gpm_Gpm_Open=yes
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_cv_lib_gpm_Gpm_Open=no
14323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14324 conftest$ac_exeext conftest.$ac_ext
14325 LIBS=$ac_check_lib_save_LIBS
14327 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14328 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14329 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14338 if test "${HAVE_GPM}" = "yes"; then
14340 cat >>confdefs.h <<\_ACEOF
14346 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14347 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14348 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14353 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14355 # Is the header compilable?
14356 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14357 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 $ac_includes_default
14365 #include <malloc/malloc.h>
14367 rm -f conftest.$ac_objext
14368 if { (ac_try="$ac_compile"
14369 case "(($ac_try" in
14370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14371 *) ac_try_echo
=$ac_try;;
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374 (eval "$ac_compile") 2>conftest.er1
14376 grep -v '^ *+' conftest.er1
>conftest.err
14378 cat conftest.err
>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest.
$ac_objext; then
14384 ac_header_compiler
=yes
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.
$ac_ext >&5
14389 ac_header_compiler
=no
14392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14394 echo "${ECHO_T}$ac_header_compiler" >&6; }
14396 # Is the header present?
14397 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14398 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14399 cat >conftest.
$ac_ext <<_ACEOF
14402 cat confdefs.h
>>conftest.
$ac_ext
14403 cat >>conftest.
$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 #include <malloc/malloc.h>
14407 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14408 case "(($ac_try" in
14409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } >/dev/null && {
14420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14423 ac_header_preproc=yes
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_header_preproc=no
14431 rm -f conftest.err conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6; }
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14438 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14441 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14442 ac_header_preproc=yes
14445 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14446 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14448 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14450 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14452 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14454 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14456 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14460 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14461 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14462 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14467 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14468 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14471 if test $ac_cv_header_malloc_malloc_h = yes; then
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_MALLOC_MALLOC_H 1
14481 ### Use Mac OS X Carbon API to implement GUI.
14482 if test "${HAVE_CARBON}" = "yes"; then
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_CARBON 1
14488 ## Specify the install directory
14490 if test "${carbon_appdir_x}" != ""; then
14491 case ${carbon_appdir_x} in
14492 y | ye | yes) carbon_appdir=/Applications ;;
14493 * ) carbon_appdir=${carbon_appdir_x} ;;
14496 # We also have mouse menus.
14500 ### Use session management (-lSM -lICE) if available
14502 if test "${HAVE_X11}" = "yes"; then
14503 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14504 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14505 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14506 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14510 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14512 # Is the header compilable?
14513 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14514 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 $ac_includes_default
14522 #include <X11/SM/SMlib.h>
14524 rm -f conftest.$ac_objext
14525 if { (ac_try="$ac_compile"
14526 case "(($ac_try" in
14527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14528 *) ac_try_echo
=$ac_try;;
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_compile") 2>conftest.er1
14533 grep -v '^ *+' conftest.er1
>conftest.err
14535 cat conftest.err
>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_c_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest.
$ac_objext; then
14541 ac_header_compiler
=yes
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.
$ac_ext >&5
14546 ac_header_compiler
=no
14549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14551 echo "${ECHO_T}$ac_header_compiler" >&6; }
14553 # Is the header present?
14554 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14555 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14556 cat >conftest.
$ac_ext <<_ACEOF
14559 cat confdefs.h
>>conftest.
$ac_ext
14560 cat >>conftest.
$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 #include <X11/SM/SMlib.h>
14564 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14565 case "(($ac_try" in
14566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } >/dev/null && {
14577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14580 ac_header_preproc=yes
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_header_preproc=no
14588 rm -f conftest.err conftest.$ac_ext
14589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14590 echo "${ECHO_T}$ac_header_preproc" >&6; }
14592 # So? What about this header?
14593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14595 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14596 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14598 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14599 ac_header_preproc=yes
14602 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14603 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14605 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14607 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14609 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14611 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14613 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14617 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14618 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14619 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14624 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14625 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14628 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14629 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14630 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14631 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 ac_check_lib_save_LIBS=$LIBS
14635 LIBS="-lSM -lICE $LIBS"
14636 cat >conftest.$ac_ext <<_ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14649 char SmcOpenConnection ();
14653 return SmcOpenConnection ();
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (ac_try="$ac_link"
14660 case "(($ac_try" in
14661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14662 *) ac_try_echo
=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_link") 2>conftest.er1
14667 grep -v '^ *+' conftest.er1
>conftest.err
14669 cat conftest.err
>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && {
14672 test -z "$ac_c_werror_flag" ||
14673 test ! -s conftest.err
14674 } && test -s conftest
$ac_exeext &&
14675 $as_test_x conftest
$ac_exeext; then
14676 ac_cv_lib_SM_SmcOpenConnection
=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.
$ac_ext >&5
14681 ac_cv_lib_SM_SmcOpenConnection
=no
14684 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14685 conftest
$ac_exeext conftest.
$ac_ext
14686 LIBS
=$ac_check_lib_save_LIBS
14688 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14689 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14690 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14698 if test "${HAVE_X_SM}" = "yes"; then
14700 cat >>confdefs.h
<<\_ACEOF
14701 #define HAVE_X_SM 1
14706 *) LIBS
="-lSM -lICE $LIBS" ;;
14711 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14712 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14713 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14714 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.
$ac_ext <<_ACEOF
14720 cat confdefs.h
>>conftest.
$ac_ext
14721 cat >>conftest.
$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14732 rm -f conftest.
$ac_objext conftest
$ac_exeext
14733 if { (ac_try
="$ac_link"
14734 case "(($ac_try" in
14735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14750 emacs_cv_netdb_declares_h_errno=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 emacs_cv_netdb_declares_h_errno=no
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759 conftest$ac_exeext conftest.$ac_ext
14761 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14762 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14763 if test $emacs_cv_netdb_declares_h_errno = yes; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_H_ERRNO 1
14771 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14772 # for constant arguments. Useless!
14773 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14774 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_working_alloca_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <alloca.h>
14788 char *p = (char *) alloca (2 * sizeof (int));
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (ac_try="$ac_link"
14796 case "(($ac_try" in
14797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14798 *) ac_try_echo
=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_link") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1
>conftest.err
14805 cat conftest.err
>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest
$ac_exeext &&
14811 $as_test_x conftest
$ac_exeext; then
14812 ac_cv_working_alloca_h
=yes
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.
$ac_ext >&5
14817 ac_cv_working_alloca_h
=no
14820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14821 conftest
$ac_exeext conftest.
$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14824 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14825 if test $ac_cv_working_alloca_h = yes; then
14827 cat >>confdefs.h
<<\_ACEOF
14828 #define HAVE_ALLOCA_H 1
14833 { echo "$as_me:$LINENO: checking for alloca" >&5
14834 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14835 if test "${ac_cv_func_alloca_works+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 cat >conftest.
$ac_ext <<_ACEOF
14841 cat confdefs.h
>>conftest.
$ac_ext
14842 cat >>conftest.
$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14845 # define alloca __builtin_alloca
14848 # include <malloc.h>
14849 # define alloca _alloca
14851 # ifdef HAVE_ALLOCA_H
14852 # include <alloca.h>
14857 # ifndef alloca /* predefined by HP cc +Olibcalls */
14868 char *p = (char *) alloca (1);
14874 rm -f conftest.
$ac_objext conftest
$ac_exeext
14875 if { (ac_try
="$ac_link"
14876 case "(($ac_try" in
14877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_link") 2>conftest.er1
14883 grep -v '^ *+' conftest.er1 >conftest.err
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } && {
14888 test -z "$ac_c_werror_flag" ||
14889 test ! -s conftest.err
14890 } && test -s conftest$ac_exeext &&
14891 $as_test_x conftest$ac_exeext; then
14892 ac_cv_func_alloca_works=yes
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_cv_func_alloca_works=no
14900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14901 conftest$ac_exeext conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14904 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14906 if test $ac_cv_func_alloca_works = yes; then
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_ALLOCA 1
14913 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14914 # that cause trouble. Some versions do not even contain alloca or
14915 # contain a buggy version. If you still want to use their alloca,
14916 # use ar to extract alloca.o from them instead of compiling alloca.c.
14918 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14920 cat >>confdefs.h <<\_ACEOF
14925 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14926 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14927 if test "${ac_cv_os_cray+set}" = set; then
14928 echo $ECHO_N "(cached
) $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 #if defined CRAY && ! defined CRAY2
14943 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14944 $EGREP "webecray
" >/dev/null 2>&1; then
14952 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14953 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14954 if test $ac_cv_os_cray = yes; then
14955 for ac_func in _getb67 GETB67 getb67; do
14956 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14957 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14958 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14959 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14960 echo $ECHO_N "(cached
) $ECHO_C" >&6
14962 cat >conftest.$ac_ext <<_ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14970 #define $ac_func innocuous_$ac_func
14972 /* System header to define __stub macros and hopefully few prototypes,
14973 which can conflict with char $ac_func (); below.
14974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14975 <limits.h> exists even on freestanding compilers. */
14978 # include <limits.h>
14980 # include <assert.h>
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
14992 /* The GNU C library defines this for functions which it implements
14993 to always fail with ENOSYS. Some functions are actually named
14994 something starting with __ and the normal name is an alias. */
14995 #if defined __stub_$ac_func || defined __stub___$ac_func
15002 return $ac_func ();
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 eval "$as_ac_var=yes"
15027 echo "$as_me: failed program was
:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 eval "$as_ac_var=no
"
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034 conftest$ac_exeext conftest.$ac_ext
15036 ac_res=`eval echo '${'$as_ac_var'}'`
15037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15038 echo "${ECHO_T}$ac_res" >&6; }
15039 if test `eval echo '${'$as_ac_var'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define CRAY_STACKSEG_END $ac_func
15051 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15052 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15053 if test "${ac_cv_c_stack_direction+set}" = set; then
15054 echo $ECHO_N "(cached
) $ECHO_C" >&6
15056 if test "$cross_compiling" = yes; then
15057 ac_cv_c_stack_direction=0
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15067 find_stack_direction ()
15069 static char *addr = 0;
15074 return find_stack_direction ();
15077 return (&dummy > addr) ? 1 : -1;
15083 return find_stack_direction () < 0;
15086 rm -f conftest$ac_exeext
15087 if { (ac_try="$ac_link"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_link") 2>&5
15095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_cv_c_stack_direction=1
15108 echo "$as_me: program exited with status
$ac_status" >&5
15109 echo "$as_me: failed program was
:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ( exit $ac_status )
15113 ac_cv_c_stack_direction=-1
15115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15121 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15123 cat >>confdefs.h <<_ACEOF
15124 #define STACK_DIRECTION $ac_cv_c_stack_direction
15131 # fmod, logb, and frexp are found in -lm on most systems.
15132 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15134 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15135 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15136 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15137 echo $ECHO_N "(cached
) $ECHO_C" >&6
15139 ac_check_lib_save_LIBS=$LIBS
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15163 rm -f conftest.$ac_objext conftest$ac_exeext
15164 if { (ac_try="$ac_link"
15165 case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_link") 2>conftest.er1
15172 grep -v '^ *+' conftest.er1 >conftest.err
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15176 (exit $ac_status); } && {
15177 test -z "$ac_c_werror_flag" ||
15178 test ! -s conftest.err
15179 } && test -s conftest$ac_exeext &&
15180 $as_test_x conftest$ac_exeext; then
15181 ac_cv_lib_m_sqrt=yes
15183 echo "$as_me: failed program was
:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ac_cv_lib_m_sqrt=no
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15193 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15194 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15195 if test $ac_cv_lib_m_sqrt = yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_LIBM 1
15205 # Check for mail-locking functions in a "mail" library. Probably this should
15206 # have the same check as for liblockfile below.
15208 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15209 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15210 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15211 echo $ECHO_N "(cached
) $ECHO_C" >&6
15213 ac_check_lib_save_LIBS=$LIBS
15214 LIBS="-lmail $LIBS"
15215 cat >conftest.$ac_ext <<_ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 /* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15232 return maillock ();
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest$ac_exeext &&
15254 $as_test_x conftest$ac_exeext; then
15255 ac_cv_lib_mail_maillock=yes
15257 echo "$as_me: failed program was
:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_cv_lib_mail_maillock=no
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15267 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15268 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15269 if test $ac_cv_lib_mail_maillock = yes; then
15270 cat >>confdefs.h <<_ACEOF
15271 #define HAVE_LIBMAIL 1
15274 LIBS="-lmail $LIBS"
15279 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15280 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15281 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15282 echo $ECHO_N "(cached
) $ECHO_C" >&6
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-llockfile $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15303 return maillock ();
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>conftest.er1
15317 grep -v '^ *+' conftest.er1 >conftest.err
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest$ac_exeext &&
15325 $as_test_x conftest$ac_exeext; then
15326 ac_cv_lib_lockfile_maillock=yes
15328 echo "$as_me: failed program was
:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_cv_lib_lockfile_maillock=no
15334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15338 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15339 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15340 if test $ac_cv_lib_lockfile_maillock = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_LIBLOCKFILE 1
15345 LIBS="-llockfile $LIBS"
15349 # If we have the shared liblockfile, assume we must use it for mail
15350 # locking (e.g. Debian). If we couldn't link against liblockfile
15351 # (no liblockfile.a installed), ensure that we don't need to.
15352 if test "$ac_cv_lib_lockfile_maillock" = no; then
15353 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15354 set dummy liblockfile.so; ac_word=$2
15355 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15356 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15357 if test "${ac_cv_prog_liblockfile+set}" = set; then
15358 echo $ECHO_N "(cached
) $ECHO_C" >&6
15360 if test -n "$liblockfile"; then
15361 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15364 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15365 for as_dir in $as_dummy
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15371 ac_cv_prog_liblockfile="yes"
15372 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15379 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15382 liblockfile=$ac_cv_prog_liblockfile
15383 if test -n "$liblockfile"; then
15384 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15385 echo "${ECHO_T}$liblockfile" >&6; }
15387 { echo "$as_me:$LINENO: result
: no
" >&5
15388 echo "${ECHO_T}no
" >&6; }
15392 if test $ac_cv_prog_liblockfile = yes; then
15393 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15394 This probably means that movemail could lose mail.
15395 There may be a \`development' package to
install containing liblockfile.
" >&5
15396 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15397 This probably means that movemail could lose mail.
15398 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15399 { (exit 1); exit 1; }; }
15404 for ac_func in touchlock
15406 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15407 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15408 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15409 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15410 echo $ECHO_N "(cached
) $ECHO_C" >&6
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define $ac_func innocuous_$ac_func
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15428 # include <limits.h>
15430 # include <assert.h>
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined __stub_$ac_func || defined __stub___$ac_func
15452 return $ac_func ();
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15466 grep -v '^ *+' conftest.er1 >conftest.err
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 eval "$as_ac_var=yes"
15477 echo "$as_me: failed program was
:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 eval "$as_ac_var=no
"
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15486 ac_res=`eval echo '${'$as_ac_var'}'`
15487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15490 cat >>confdefs.h <<_ACEOF
15491 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15498 for ac_header in maillock.h
15500 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15501 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15502 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15503 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached
) $ECHO_C" >&6
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15511 # Is the header compilable?
15512 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15513 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 $ac_includes_default
15521 #include <$ac_header>
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest.$ac_objext; then
15540 ac_header_compiler=yes
15542 echo "$as_me: failed program was
:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 ac_header_compiler=no
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15550 echo "${ECHO_T}$ac_header_compiler" >&6; }
15552 # Is the header present?
15553 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15554 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15555 cat >conftest.$ac_ext <<_ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 #include <$ac_header>
15563 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15571 grep -v '^ *+' conftest.er1 >conftest.err
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15575 (exit $ac_status); } >/dev/null && {
15576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15579 ac_header_preproc=yes
15581 echo "$as_me: failed program was
:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_preproc=no
15587 rm -f conftest.err conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
15591 # So? What about this header?
15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15594 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15595 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15598 ac_header_preproc=yes
15601 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15602 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15603 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15604 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15605 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15606 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15607 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15608 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15611 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15612 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15616 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15617 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15619 echo $ECHO_N "(cached
) $ECHO_C" >&6
15621 eval "$as_ac_Header=\
$ac_header_preproc"
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15707 for ac_func in gethostname getdomainname dup2 \
15708 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15709 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15710 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15711 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15712 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15713 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15714 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15715 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15717 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15718 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15719 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15720 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15721 echo $ECHO_N "(cached
) $ECHO_C" >&6
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15731 #define $ac_func innocuous_$ac_func
15733 /* System header to define __stub macros and hopefully few prototypes,
15734 which can conflict with char $ac_func (); below.
15735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15736 <limits.h> exists even on freestanding compilers. */
15739 # include <limits.h>
15741 # include <assert.h>
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15753 /* The GNU C library defines this for functions which it implements
15754 to always fail with ENOSYS. Some functions are actually named
15755 something starting with __ and the normal name is an alias. */
15756 #if defined __stub_$ac_func || defined __stub___$ac_func
15763 return $ac_func ();
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (ac_try="$ac_link"
15770 case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_link") 2>conftest.er1
15777 grep -v '^ *+' conftest.er1 >conftest.err
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15781 (exit $ac_status); } && {
15782 test -z "$ac_c_werror_flag" ||
15783 test ! -s conftest.err
15784 } && test -s conftest$ac_exeext &&
15785 $as_test_x conftest$ac_exeext; then
15786 eval "$as_ac_var=yes"
15788 echo "$as_me: failed program was
:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15791 eval "$as_ac_var=no
"
15794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15795 conftest$ac_exeext conftest.$ac_ext
15797 ac_res=`eval echo '${'$as_ac_var'}'`
15798 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15810 for ac_header in sys/un.h
15812 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15815 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached
) $ECHO_C" >&6
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15823 # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15825 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15833 #include <$ac_header>
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15848 (exit $ac_status); } && {
15849 test -z "$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 } && test -s conftest.$ac_objext; then
15852 ac_header_compiler=yes
15854 echo "$as_me: failed program was
:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_header_compiler=no
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6; }
15864 # Is the header present?
15865 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15866 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <$ac_header>
15875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15887 (exit $ac_status); } >/dev/null && {
15888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15891 ac_header_preproc=yes
15893 echo "$as_me: failed program was
:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_header_preproc=no
15899 rm -f conftest.err conftest.$ac_ext
15900 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15901 echo "${ECHO_T}$ac_header_preproc" >&6; }
15903 # So? What about this header?
15904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15906 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15907 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15908 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15910 ac_header_preproc=yes
15913 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15914 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15915 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15916 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15917 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15918 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15919 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15920 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15921 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15923 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15924 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15928 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15929 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15931 echo $ECHO_N "(cached
) $ECHO_C" >&6
15933 eval "$as_ac_Header=\
$ac_header_preproc"
15935 ac_res=`eval echo '${'$as_ac_Header'}'`
15936 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15937 echo "${ECHO_T}$ac_res" >&6; }
15940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15941 cat >>confdefs.h <<_ACEOF
15942 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15954 for ac_header in $ac_header_list
15956 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15958 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15959 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15960 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15961 echo $ECHO_N "(cached
) $ECHO_C" >&6
15963 ac_res=`eval echo '${'$as_ac_Header'}'`
15964 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15965 echo "${ECHO_T}$ac_res" >&6; }
15967 # Is the header compilable?
15968 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15969 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15977 #include <$ac_header>
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15996 ac_header_compiler=yes
15998 echo "$as_me: failed program was
:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_header_compiler=no
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16006 echo "${ECHO_T}$ac_header_compiler" >&6; }
16008 # Is the header present?
16009 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16010 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <$ac_header>
16019 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16031 (exit $ac_status); } >/dev/null && {
16032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16035 ac_header_preproc=yes
16037 echo "$as_me: failed program was
:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_preproc=no
16043 rm -f conftest.err conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16045 echo "${ECHO_T}$ac_header_preproc" >&6; }
16047 # So? What about this header?
16048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16050 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16051 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16052 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16054 ac_header_preproc=yes
16057 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16058 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16059 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16060 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16061 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16062 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16063 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16064 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16065 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16067 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16068 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16072 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16073 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16075 echo $ECHO_N "(cached
) $ECHO_C" >&6
16077 eval "$as_ac_Header=\
$ac_header_preproc"
16079 ac_res=`eval echo '${'$as_ac_Header'}'`
16080 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16081 echo "${ECHO_T}$ac_res" >&6; }
16084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16085 cat >>confdefs.h <<_ACEOF
16086 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16101 for ac_func in $ac_func_list
16103 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16104 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16105 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16106 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16107 echo $ECHO_N "(cached
) $ECHO_C" >&6
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16117 #define $ac_func innocuous_$ac_func
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char $ac_func (); below.
16121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122 <limits.h> exists even on freestanding compilers. */
16125 # include <limits.h>
16127 # include <assert.h>
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16139 /* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142 #if defined __stub_$ac_func || defined __stub___$ac_func
16149 return $ac_func ();
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_link") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext &&
16171 $as_test_x conftest$ac_exeext; then
16172 eval "$as_ac_var=yes"
16174 echo "$as_me: failed program was
:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16177 eval "$as_ac_var=no
"
16180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16181 conftest$ac_exeext conftest.$ac_ext
16183 ac_res=`eval echo '${'$as_ac_var'}'`
16184 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16185 echo "${ECHO_T}$ac_res" >&6; }
16186 if test `eval echo '${'$as_ac_var'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16210 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16211 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16212 if test "${ac_cv_func_working_mktime+set}" = set; then
16213 echo $ECHO_N "(cached
) $ECHO_C" >&6
16215 if test "$cross_compiling" = yes; then
16216 ac_cv_func_working_mktime=no
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 /* Test program from Paul Eggert and Tony Leneis. */
16225 #ifdef TIME_WITH_SYS_TIME
16226 # include <sys/time.h>
16229 # ifdef HAVE_SYS_TIME_H
16230 # include <sys/time.h>
16236 #include <stdlib.h>
16238 #ifdef HAVE_UNISTD_H
16239 # include <unistd.h>
16243 # define alarm(X) /* empty */
16246 /* Work around redefinition to rpl_putenv by other config tests. */
16249 static time_t time_t_max;
16250 static time_t time_t_min;
16252 /* Values we'll use to set the TZ environment variable. */
16253 static char *tz_strings[] = {
16254 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16255 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16257 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16259 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16260 Based on a problem report from Andreas Jaeger. */
16262 spring_forward_gap ()
16264 /* glibc (up to about 1998-10-07) failed this test. */
16267 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16268 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16269 on systems that don't support the Olson extension, or don't have the
16270 full zoneinfo tables installed. */
16271 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16280 return mktime (&tm) != (time_t) -1;
16288 return ! (lt = localtime (&now)) || mktime (lt) == now;
16295 return (mktime_test1 (now)
16296 && mktime_test1 ((time_t) (time_t_max - now))
16297 && mktime_test1 ((time_t) (time_t_min + now)));
16303 /* Based on code from Ariel Faigon. */
16313 return tm.tm_mon == 2 && tm.tm_mday == 31;
16322 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16323 now = mktime (&tm);
16324 if (now != (time_t) -1)
16326 struct tm *lt = localtime (&now);
16328 && lt->tm_year == tm.tm_year
16329 && lt->tm_mon == tm.tm_mon
16330 && lt->tm_mday == tm.tm_mday
16331 && lt->tm_hour == tm.tm_hour
16332 && lt->tm_min == tm.tm_min
16333 && lt->tm_sec == tm.tm_sec
16334 && lt->tm_yday == tm.tm_yday
16335 && lt->tm_wday == tm.tm_wday
16336 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16337 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16346 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16347 ignoring leap seconds. */
16348 unsigned long int answer = 2527315200UL;
16352 tm.tm_year = 2050 - 1900;
16355 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16358 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16359 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16360 on systems that don't support the Olson extension, or don't have the
16361 full zoneinfo tables installed. */
16362 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16366 /* Check that the result is either a failure, or close enough
16367 to the correct answer that we can assume the discrepancy is
16368 due to leap seconds. */
16369 return (t == (time_t) -1
16370 || (0 < t && answer - 120 <= t && t <= answer + 120));
16379 /* This test makes some buggy mktime implementations loop.
16380 Give up after 60 seconds; a mktime slower than that
16381 isn't worth using anyway. */
16384 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16387 if ((time_t) -1 < 0)
16388 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16390 delta = time_t_max / 997; /* a suitable prime number */
16391 for (i = 0; i < N_STRINGS; i++)
16394 putenv (tz_strings[i]);
16396 for (t = 0; t <= time_t_max - delta; t += delta)
16397 if (! mktime_test (t))
16399 if (! (mktime_test ((time_t) 1)
16400 && mktime_test ((time_t) (60 * 60))
16401 && mktime_test ((time_t) (60 * 60 * 24))))
16404 for (j = 1; 0 < j; j *= 2)
16405 if (! bigtime_test (j))
16407 if (! bigtime_test (j - 1))
16410 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16413 rm -f conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_link") 2>&5
16422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16424 { (case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_try") 2>&5
16431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_cv_func_working_mktime=yes
16435 echo "$as_me: program exited with status
$ac_status" >&5
16436 echo "$as_me: failed program was
:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ( exit $ac_status )
16440 ac_cv_func_working_mktime=no
16442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16447 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16448 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16449 if test $ac_cv_func_working_mktime = no; then
16450 case " $LIBOBJS " in
16451 *" mktime.
$ac_objext "* ) ;;
16452 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16458 if test "$ac_cv_func_working_mktime" = no; then
16460 cat >>confdefs.h <<\_ACEOF
16461 #define BROKEN_MKTIME 1
16466 ac_have_func=no # yes means we've found a way to get the load average.
16468 # Make sure getloadavg.c is where it belongs, at configure-time.
16469 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16470 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16471 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16472 { (exit 1); exit 1; }; }
16476 # Check for getloadavg, but be sure not to touch the cache variable.
16477 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16478 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16479 if test "${ac_cv_func_getloadavg+set}" = set; then
16480 echo $ECHO_N "(cached
) $ECHO_C" >&6
16482 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define getloadavg innocuous_getloadavg
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char getloadavg (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16498 # include <limits.h>
16500 # include <assert.h>
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16511 char getloadavg ();
16512 /* The GNU C library defines this for functions which it implements
16513 to always fail with ENOSYS. Some functions are actually named
16514 something starting with __ and the normal name is an alias. */
16515 #if defined __stub_getloadavg || defined __stub___getloadavg
16522 return getloadavg ();
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest$ac_exeext &&
16544 $as_test_x conftest$ac_exeext; then
16545 ac_cv_func_getloadavg=yes
16547 echo "$as_me: failed program was
:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_func_getloadavg=no
16553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16554 conftest$ac_exeext conftest.$ac_ext
16556 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16557 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16558 if test $ac_cv_func_getloadavg = yes; then
16563 ) && ac_have_func=yes
16565 # On HPUX9, an unprivileged user can get load averages through this function.
16567 for ac_func in pstat_getdynamic
16569 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16570 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16571 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16572 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16573 echo $ECHO_N "(cached
) $ECHO_C" >&6
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16583 #define $ac_func innocuous_$ac_func
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char $ac_func (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
16591 # include <limits.h>
16593 # include <assert.h>
16598 /* Override any GCC internal prototype to avoid an error.
16599 Use char because int might match the return type of a GCC
16600 builtin and then its argument prototype would still apply. */
16605 /* The GNU C library defines this for functions which it implements
16606 to always fail with ENOSYS. Some functions are actually named
16607 something starting with __ and the normal name is an alias. */
16608 #if defined __stub_$ac_func || defined __stub___$ac_func
16615 return $ac_func ();
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
16629 grep -v '^ *+' conftest.er1 >conftest.err
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16633 (exit $ac_status); } && {
16634 test -z "$ac_c_werror_flag" ||
16635 test ! -s conftest.err
16636 } && test -s conftest$ac_exeext &&
16637 $as_test_x conftest$ac_exeext; then
16638 eval "$as_ac_var=yes"
16640 echo "$as_me: failed program was
:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16643 eval "$as_ac_var=no
"
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16649 ac_res=`eval echo '${'$as_ac_var'}'`
16650 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16652 if test `eval echo '${'$as_ac_var'}'` = yes; then
16653 cat >>confdefs.h <<_ACEOF
16654 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16661 # Solaris has libkstat which does not require root.
16663 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16664 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16665 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16666 echo $ECHO_N "(cached
) $ECHO_C" >&6
16668 ac_check_lib_save_LIBS=$LIBS
16669 LIBS="-lkstat $LIBS"
16670 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16677 /* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16683 char kstat_open ();
16687 return kstat_open ();
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest$ac_exeext &&
16709 $as_test_x conftest$ac_exeext; then
16710 ac_cv_lib_kstat_kstat_open=yes
16712 echo "$as_me: failed program was
:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16715 ac_cv_lib_kstat_kstat_open=no
16718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719 conftest$ac_exeext conftest.$ac_ext
16720 LIBS=$ac_check_lib_save_LIBS
16722 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16723 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16724 if test $ac_cv_lib_kstat_kstat_open = yes; then
16725 cat >>confdefs.h <<_ACEOF
16726 #define HAVE_LIBKSTAT 1
16729 LIBS="-lkstat $LIBS"
16733 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16735 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16736 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16737 # to get the right answer into the cache.
16738 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16739 if test $ac_have_func = no; then
16740 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16741 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16742 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16743 echo $ECHO_N "(cached
) $ECHO_C" >&6
16745 ac_check_lib_save_LIBS=$LIBS
16747 cat >conftest.$ac_ext <<_ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16754 /* Override any GCC internal prototype to avoid an error.
16755 Use char because int might match the return type of a GCC
16756 builtin and then its argument prototype would still apply. */
16764 return elf_begin ();
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_link") 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest$ac_exeext &&
16786 $as_test_x conftest$ac_exeext; then
16787 ac_cv_lib_elf_elf_begin=yes
16789 echo "$as_me: failed program was
:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_cv_lib_elf_elf_begin=no
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16797 LIBS=$ac_check_lib_save_LIBS
16799 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16800 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16801 if test $ac_cv_lib_elf_elf_begin = yes; then
16806 if test $ac_have_func = no; then
16807 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16808 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16809 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16810 echo $ECHO_N "(cached
) $ECHO_C" >&6
16812 ac_check_lib_save_LIBS=$LIBS
16814 cat >conftest.$ac_ext <<_ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16821 /* Override any GCC internal prototype to avoid an error.
16822 Use char because int might match the return type of a GCC
16823 builtin and then its argument prototype would still apply. */
16831 return kvm_open ();
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (ac_try="$ac_link"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_link") 2>conftest.er1
16845 grep -v '^ *+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest$ac_exeext &&
16853 $as_test_x conftest$ac_exeext; then
16854 ac_cv_lib_kvm_kvm_open=yes
16856 echo "$as_me: failed program was
:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859 ac_cv_lib_kvm_kvm_open=no
16862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16863 conftest$ac_exeext conftest.$ac_ext
16864 LIBS=$ac_check_lib_save_LIBS
16866 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16867 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16868 if test $ac_cv_lib_kvm_kvm_open = yes; then
16872 # Check for the 4.4BSD definition of getloadavg.
16873 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16874 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16875 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16876 echo $ECHO_N "(cached
) $ECHO_C" >&6
16878 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-lutil $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. */
16893 char getloadavg ();
16897 return getloadavg ();
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_util_getloadavg=yes
16922 echo "$as_me: failed program was
:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_lib_util_getloadavg=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_util_getloadavg" >&5
16933 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16934 if test $ac_cv_lib_util_getloadavg = yes; then
16935 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16940 if test $ac_have_func = no; then
16941 # There is a commonly available library for RS/6000 AIX.
16942 # Since it is not a standard part of AIX, it might be installed locally.
16943 ac_getloadavg_LIBS=$LIBS
16944 LIBS="-L/usr
/local
/lib
$LIBS"
16945 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16946 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16947 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16948 echo $ECHO_N "(cached
) $ECHO_C" >&6
16950 ac_check_lib_save_LIBS=$LIBS
16951 LIBS="-lgetloadavg $LIBS"
16952 cat >conftest.$ac_ext <<_ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16965 char getloadavg ();
16969 return getloadavg ();
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (ac_try="$ac_link"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>conftest.er1
16983 grep -v '^ *+' conftest.er1 >conftest.err
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16987 (exit $ac_status); } && {
16988 test -z "$ac_c_werror_flag" ||
16989 test ! -s conftest.err
16990 } && test -s conftest$ac_exeext &&
16991 $as_test_x conftest$ac_exeext; then
16992 ac_cv_lib_getloadavg_getloadavg=yes
16994 echo "$as_me: failed program was
:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 ac_cv_lib_getloadavg_getloadavg=no
17000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17001 conftest$ac_exeext conftest.$ac_ext
17002 LIBS=$ac_check_lib_save_LIBS
17004 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17005 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17006 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17007 LIBS="-lgetloadavg $LIBS"
17009 LIBS=$ac_getloadavg_LIBS
17014 # Make sure it is really in the library, if we think we found it,
17015 # otherwise set up the replacement function.
17017 for ac_func in getloadavg
17019 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17020 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17021 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17022 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17023 echo $ECHO_N "(cached
) $ECHO_C" >&6
17025 cat >conftest.$ac_ext <<_ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17033 #define $ac_func innocuous_$ac_func
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func (); below.
17037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038 <limits.h> exists even on freestanding compilers. */
17041 # include <limits.h>
17043 # include <assert.h>
17048 /* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17055 /* The GNU C library defines this for functions which it implements
17056 to always fail with ENOSYS. Some functions are actually named
17057 something starting with __ and the normal name is an alias. */
17058 #if defined __stub_$ac_func || defined __stub___$ac_func
17065 return $ac_func ();
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest$ac_exeext &&
17087 $as_test_x conftest$ac_exeext; then
17088 eval "$as_ac_var=yes"
17090 echo "$as_me: failed program was
:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 eval "$as_ac_var=no
"
17096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17097 conftest$ac_exeext conftest.$ac_ext
17099 ac_res=`eval echo '${'$as_ac_var'}'`
17100 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17101 echo "${ECHO_T}$ac_res" >&6; }
17102 if test `eval echo '${'$as_ac_var'}'` = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17108 case " $LIBOBJS " in
17109 *" getloadavg.
$ac_objext "* ) ;;
17110 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17115 cat >>confdefs.h <<\_ACEOF
17116 #define C_GETLOADAVG 1
17119 # Figure out what our getloadavg.c needs.
17121 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17122 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17123 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17124 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17125 echo $ECHO_N "(cached
) $ECHO_C" >&6
17127 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17128 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17130 # Is the header compilable?
17131 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17132 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 $ac_includes_default
17140 #include <sys/dg_sys_info.h>
17142 rm -f conftest.$ac_objext
17143 if { (ac_try="$ac_compile"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_compile") 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17155 (exit $ac_status); } && {
17156 test -z "$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 } && test -s conftest.$ac_objext; then
17159 ac_header_compiler=yes
17161 echo "$as_me: failed program was
:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ac_header_compiler=no
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17169 echo "${ECHO_T}$ac_header_compiler" >&6; }
17171 # Is the header present?
17172 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17173 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17174 cat >conftest.$ac_ext <<_ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17180 #include <sys/dg_sys_info.h>
17182 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17190 grep -v '^ *+' conftest.er1 >conftest.err
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17194 (exit $ac_status); } >/dev/null && {
17195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17196 test ! -s conftest.err
17198 ac_header_preproc=yes
17200 echo "$as_me: failed program was
:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17203 ac_header_preproc=no
17206 rm -f conftest.err conftest.$ac_ext
17207 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17208 echo "${ECHO_T}$ac_header_preproc" >&6; }
17210 # So? What about this header?
17211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17213 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17214 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17215 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17216 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17217 ac_header_preproc=yes
17220 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17221 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17222 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17223 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17224 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17225 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17226 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17227 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17228 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17229 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17230 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17231 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17235 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17236 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17237 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17238 echo $ECHO_N "(cached
) $ECHO_C" >&6
17240 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17242 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17243 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17246 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17249 cat >>confdefs.h <<\_ACEOF
17254 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17255 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17256 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17257 echo $ECHO_N "(cached
) $ECHO_C" >&6
17259 ac_check_lib_save_LIBS=$LIBS
17261 cat >conftest.$ac_ext <<_ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17268 /* Override any GCC internal prototype to avoid an error.
17269 Use char because int might match the return type of a GCC
17270 builtin and then its argument prototype would still apply. */
17274 char dg_sys_info ();
17278 return dg_sys_info ();
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (ac_try="$ac_link"
17285 case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_link") 2>conftest.er1
17292 grep -v '^ *+' conftest.er1 >conftest.err
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17296 (exit $ac_status); } && {
17297 test -z "$ac_c_werror_flag" ||
17298 test ! -s conftest.err
17299 } && test -s conftest$ac_exeext &&
17300 $as_test_x conftest$ac_exeext; then
17301 ac_cv_lib_dgc_dg_sys_info=yes
17303 echo "$as_me: failed program was
:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_lib_dgc_dg_sys_info=no
17309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17313 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17314 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17315 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_LIBDGC 1
17328 if test "${ac_cv_header_locale_h+set}" = set; then
17329 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17330 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17331 if test "${ac_cv_header_locale_h+set}" = set; then
17332 echo $ECHO_N "(cached
) $ECHO_C" >&6
17334 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17335 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17337 # Is the header compilable?
17338 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17339 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 $ac_includes_default
17347 #include <locale.h>
17349 rm -f conftest.$ac_objext
17350 if { (ac_try="$ac_compile"
17351 case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17358 grep -v '^ *+' conftest.er1 >conftest.err
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17362 (exit $ac_status); } && {
17363 test -z "$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 } && test -s conftest.$ac_objext; then
17366 ac_header_compiler=yes
17368 echo "$as_me: failed program was
:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_header_compiler=no
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17376 echo "${ECHO_T}$ac_header_compiler" >&6; }
17378 # Is the header present?
17379 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17380 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <locale.h>
17389 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17397 grep -v '^ *+' conftest.er1 >conftest.err
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17401 (exit $ac_status); } >/dev/null && {
17402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17405 ac_header_preproc=yes
17407 echo "$as_me: failed program was
:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 ac_header_preproc=no
17413 rm -f conftest.err conftest.$ac_ext
17414 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17415 echo "${ECHO_T}$ac_header_preproc" >&6; }
17417 # So? What about this header?
17418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17420 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17421 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17422 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17423 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17424 ac_header_preproc=yes
17427 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17428 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17429 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17430 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17431 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17432 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17433 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17434 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17435 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17436 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17437 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17438 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17442 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17443 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17444 if test "${ac_cv_header_locale_h+set}" = set; then
17445 echo $ECHO_N "(cached
) $ECHO_C" >&6
17447 ac_cv_header_locale_h=$ac_header_preproc
17449 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17450 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17456 for ac_func in setlocale
17458 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17459 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17460 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17461 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17462 echo $ECHO_N "(cached
) $ECHO_C" >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17472 #define $ac_func innocuous_$ac_func
17474 /* System header to define __stub macros and hopefully few prototypes,
17475 which can conflict with char $ac_func (); below.
17476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477 <limits.h> exists even on freestanding compilers. */
17480 # include <limits.h>
17482 # include <assert.h>
17487 /* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17494 /* The GNU C library defines this for functions which it implements
17495 to always fail with ENOSYS. Some functions are actually named
17496 something starting with __ and the normal name is an alias. */
17497 #if defined __stub_$ac_func || defined __stub___$ac_func
17504 return $ac_func ();
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_link") 2>conftest.er1
17518 grep -v '^ *+' conftest.er1 >conftest.err
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17522 (exit $ac_status); } && {
17523 test -z "$ac_c_werror_flag" ||
17524 test ! -s conftest.err
17525 } && test -s conftest$ac_exeext &&
17526 $as_test_x conftest$ac_exeext; then
17527 eval "$as_ac_var=yes"
17529 echo "$as_me: failed program was
:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 eval "$as_ac_var=no
"
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536 conftest$ac_exeext conftest.$ac_ext
17538 ac_res=`eval echo '${'$as_ac_var'}'`
17539 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17540 echo "${ECHO_T}$ac_res" >&6; }
17541 if test `eval echo '${'$as_ac_var'}'` = yes; then
17542 cat >>confdefs.h <<_ACEOF
17543 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17550 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17551 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17552 # Irix 4.0.5F has the header but not the library.
17553 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17556 cat >>confdefs.h <<\_ACEOF
17562 if test $ac_have_func = no; then
17563 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17564 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17565 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17566 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17567 echo $ECHO_N "(cached
) $ECHO_C" >&6
17569 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17572 # Is the header compilable?
17573 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17574 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17575 cat >conftest.$ac_ext <<_ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 $ac_includes_default
17582 #include <inq_stats/cpustats.h>
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17603 echo "$as_me: failed program was
:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_compiler=no
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17611 echo "${ECHO_T}$ac_header_compiler" >&6; }
17613 # Is the header present?
17614 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17615 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <inq_stats/cpustats.h>
17624 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17632 grep -v '^ *+' conftest.er1 >conftest.err
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17636 (exit $ac_status); } >/dev/null && {
17637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17640 ac_header_preproc=yes
17642 echo "$as_me: failed program was
:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_header_preproc=no
17648 rm -f conftest.err conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17650 echo "${ECHO_T}$ac_header_preproc" >&6; }
17652 # So? What about this header?
17653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17655 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17656 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17657 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17658 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17659 ac_header_preproc=yes
17662 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17663 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17664 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17665 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17666 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17667 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17668 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17669 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17670 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17671 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17672 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17673 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17677 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17678 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17679 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17680 echo $ECHO_N "(cached
) $ECHO_C" >&6
17682 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17684 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17685 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17688 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17691 cat >>confdefs.h <<\_ACEOF
17696 cat >>confdefs.h <<\_ACEOF
17705 if test $ac_have_func = no; then
17706 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17707 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17708 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17709 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17710 echo $ECHO_N "(cached
) $ECHO_C" >&6
17712 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17713 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17715 # Is the header compilable?
17716 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17717 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17718 cat >conftest.$ac_ext <<_ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17724 $ac_includes_default
17725 #include <sys/cpustats.h>
17727 rm -f conftest.$ac_objext
17728 if { (ac_try="$ac_compile"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_compile") 2>conftest.er1
17736 grep -v '^ *+' conftest.er1 >conftest.err
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17740 (exit $ac_status); } && {
17741 test -z "$ac_c_werror_flag" ||
17742 test ! -s conftest.err
17743 } && test -s conftest.$ac_objext; then
17744 ac_header_compiler=yes
17746 echo "$as_me: failed program was
:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_header_compiler=no
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17754 echo "${ECHO_T}$ac_header_compiler" >&6; }
17756 # Is the header present?
17757 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17758 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 #include <sys/cpustats.h>
17767 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17768 case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17779 (exit $ac_status); } >/dev/null && {
17780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17781 test ! -s conftest.err
17783 ac_header_preproc=yes
17785 echo "$as_me: failed program was
:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_header_preproc=no
17791 rm -f conftest.err conftest.$ac_ext
17792 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17793 echo "${ECHO_T}$ac_header_preproc" >&6; }
17795 # So? What about this header?
17796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17798 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17799 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17800 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17801 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17802 ac_header_preproc=yes
17805 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17806 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17807 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17808 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17809 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17810 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17811 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17812 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17813 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17814 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17815 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17816 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17820 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17821 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17823 echo $ECHO_N "(cached
) $ECHO_C" >&6
17825 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17827 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17828 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17831 if test $ac_cv_header_sys_cpustats_h = yes; then
17832 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17841 if test $ac_have_func = no; then
17843 for ac_header in mach/mach.h
17845 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17846 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17847 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17848 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17849 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17850 echo $ECHO_N "(cached
) $ECHO_C" >&6
17852 ac_res=`eval echo '${'$as_ac_Header'}'`
17853 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17854 echo "${ECHO_T}$ac_res" >&6; }
17856 # Is the header compilable?
17857 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17858 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17859 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17866 #include <$ac_header>
17868 rm -f conftest.$ac_objext
17869 if { (ac_try="$ac_compile"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_compile") 2>conftest.er1
17877 grep -v '^ *+' conftest.er1 >conftest.err
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest.$ac_objext; then
17885 ac_header_compiler=yes
17887 echo "$as_me: failed program was
:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17890 ac_header_compiler=no
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17895 echo "${ECHO_T}$ac_header_compiler" >&6; }
17897 # Is the header present?
17898 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17899 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 #include <$ac_header>
17908 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17920 (exit $ac_status); } >/dev/null && {
17921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17924 ac_header_preproc=yes
17926 echo "$as_me: failed program was
:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_header_preproc=no
17932 rm -f conftest.err conftest.$ac_ext
17933 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17934 echo "${ECHO_T}$ac_header_preproc" >&6; }
17936 # So? What about this header?
17937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17939 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17940 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17941 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17943 ac_header_preproc=yes
17946 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17947 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17948 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17949 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17950 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17951 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17952 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17953 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17954 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17956 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17957 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17961 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17962 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17964 echo $ECHO_N "(cached
) $ECHO_C" >&6
17966 eval "$as_ac_Header=\
$ac_header_preproc"
17968 ac_res=`eval echo '${'$as_ac_Header'}'`
17969 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17970 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17985 for ac_header in nlist.h
17987 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17988 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17989 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17990 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17991 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17992 echo $ECHO_N "(cached
) $ECHO_C" >&6
17994 ac_res=`eval echo '${'$as_ac_Header'}'`
17995 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17996 echo "${ECHO_T}$ac_res" >&6; }
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18000 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <$ac_header>
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18029 echo "$as_me: failed program was
:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_compiler=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18041 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <$ac_header>
18050 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18066 ac_header_preproc=yes
18068 echo "$as_me: failed program was
:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_preproc=no
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18081 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18082 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18085 ac_header_preproc=yes
18088 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18089 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18090 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18091 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18092 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18093 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18094 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18095 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18098 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18099 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18103 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18104 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18105 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18106 echo $ECHO_N "(cached
) $ECHO_C" >&6
18108 eval "$as_ac_Header=\
$ac_header_preproc"
18110 ac_res=`eval echo '${'$as_ac_Header'}'`
18111 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18112 echo "${ECHO_T}$ac_res" >&6; }
18115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18116 cat >>confdefs.h <<_ACEOF
18117 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18119 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18120 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18121 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18122 echo $ECHO_N "(cached
) $ECHO_C" >&6
18124 cat >conftest.$ac_ext <<_ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18135 static struct nlist ac_aggr;
18136 if (ac_aggr.n_un.n_name)
18142 rm -f conftest.$ac_objext
18143 if { (ac_try="$ac_compile"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18159 ac_cv_member_struct_nlist_n_un_n_name=yes
18161 echo "$as_me: failed program was
:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18175 static struct nlist ac_aggr;
18176 if (sizeof ac_aggr.n_un.n_name)
18182 rm -f conftest.$ac_objext
18183 if { (ac_try="$ac_compile"
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_compile") 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); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest.$ac_objext; then
18199 ac_cv_member_struct_nlist_n_un_n_name=yes
18201 echo "$as_me: failed program was
:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_cv_member_struct_nlist_n_un_n_name=no
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18212 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18213 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18214 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18216 cat >>confdefs.h <<_ACEOF
18217 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18221 cat >>confdefs.h <<\_ACEOF
18222 #define NLIST_NAME_UNION 1
18236 # Some definitions of getloadavg require that the program be installed setgid.
18237 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18238 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18239 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18240 echo $ECHO_N "(cached
) $ECHO_C" >&6
18242 cat >conftest.$ac_ext <<_ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18249 #ifdef LDAV_PRIVILEGED
18250 Yowza Am I SETGID yet
18253 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18254 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18255 ac_cv_func_getloadavg_setgid=yes
18257 ac_cv_func_getloadavg_setgid=no
18262 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18263 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18264 if test $ac_cv_func_getloadavg_setgid = yes; then
18267 cat >>confdefs.h <<\_ACEOF
18268 #define GETLOADAVG_PRIVILEGED 1
18275 if test $ac_cv_func_getloadavg_setgid = yes; then
18276 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18277 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18278 if test "${ac_cv_group_kmem+set}" = set; then
18279 echo $ECHO_N "(cached
) $ECHO_C" >&6
18281 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18282 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18283 # If we got an error (system does not support symlinks), try without -L.
18284 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18285 ac_cv_group_kmem=`echo $ac_ls_output \
18286 | sed -ne 's/[ ][ ]*/ /g;
18287 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18291 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18292 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18293 KMEM_GROUP=$ac_cv_group_kmem
18295 if test "x
$ac_save_LIBS" = x; then
18296 GETLOADAVG_LIBS=$LIBS
18298 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18304 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18305 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18306 if test "${ac_cv_sys_largefile_source+set}" = set; then
18307 echo $ECHO_N "(cached
) $ECHO_C" >&6
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <sys/types.h> /* for off_t */
18321 int (*fp) (FILE *, off_t, int) = fseeko;
18322 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18336 grep -v '^ *+' conftest.er1 >conftest.err
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18340 (exit $ac_status); } && {
18341 test -z "$ac_c_werror_flag" ||
18342 test ! -s conftest.err
18343 } && test -s conftest$ac_exeext &&
18344 $as_test_x conftest$ac_exeext; then
18345 ac_cv_sys_largefile_source=no; break
18347 echo "$as_me: failed program was
:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18354 conftest$ac_exeext conftest.$ac_ext
18355 cat >conftest.$ac_ext <<_ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18361 #define _LARGEFILE_SOURCE 1
18362 #include <sys/types.h> /* for off_t */
18367 int (*fp) (FILE *, off_t, int) = fseeko;
18368 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18373 rm -f conftest.$ac_objext conftest$ac_exeext
18374 if { (ac_try="$ac_link"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_link") 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18386 (exit $ac_status); } && {
18387 test -z "$ac_c_werror_flag" ||
18388 test ! -s conftest.err
18389 } && test -s conftest$ac_exeext &&
18390 $as_test_x conftest$ac_exeext; then
18391 ac_cv_sys_largefile_source=1; break
18393 echo "$as_me: failed program was
:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18400 conftest$ac_exeext conftest.$ac_ext
18401 ac_cv_sys_largefile_source=unknown
18405 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18406 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18407 case $ac_cv_sys_largefile_source in #(
18410 cat >>confdefs.h <<_ACEOF
18411 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18417 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18418 # in glibc 2.1.3, but that breaks too many other things.
18419 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18420 if test $ac_cv_sys_largefile_source != unknown; then
18422 cat >>confdefs.h <<\_ACEOF
18423 #define HAVE_FSEEKO 1
18429 # Configure getopt.
18430 # getopt.m4 serial 10
18432 # The getopt module assume you want GNU getopt, with getopt_long etc,
18433 # rather than vanilla POSIX getopt. This means your your code should
18434 # always include <getopt.h> for the getopt prototypes.
18446 # Prerequisites of lib/getopt*.
18453 for ac_header in getopt.h
18455 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18456 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18457 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18458 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18459 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached
) $ECHO_C" >&6
18462 ac_res=`eval echo '${'$as_ac_Header'}'`
18463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18464 echo "${ECHO_T}$ac_res" >&6; }
18466 # Is the header compilable?
18467 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18468 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 $ac_includes_default
18476 #include <$ac_header>
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest.$ac_objext; then
18495 ac_header_compiler=yes
18497 echo "$as_me: failed program was
:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 ac_header_compiler=no
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18505 echo "${ECHO_T}$ac_header_compiler" >&6; }
18507 # Is the header present?
18508 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18509 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 #include <$ac_header>
18518 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18519 case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18526 grep -v '^ *+' conftest.er1 >conftest.err
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18530 (exit $ac_status); } >/dev/null && {
18531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18534 ac_header_preproc=yes
18536 echo "$as_me: failed program was
:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_header_preproc=no
18542 rm -f conftest.err conftest.$ac_ext
18543 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18544 echo "${ECHO_T}$ac_header_preproc" >&6; }
18546 # So? What about this header?
18547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18549 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18550 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18551 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18553 ac_header_preproc=yes
18556 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18557 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18558 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18559 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18560 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18561 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18562 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18563 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18564 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18566 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18567 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18571 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18572 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18573 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18574 echo $ECHO_N "(cached
) $ECHO_C" >&6
18576 eval "$as_ac_Header=\
$ac_header_preproc"
18578 ac_res=`eval echo '${'$as_ac_Header'}'`
18579 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18580 echo "${ECHO_T}$ac_res" >&6; }
18583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18594 if test -z "$GETOPT_H"; then
18596 for ac_func in getopt_long_only
18598 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18599 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18600 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18601 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18602 echo $ECHO_N "(cached
) $ECHO_C" >&6
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18612 #define $ac_func innocuous_$ac_func
18614 /* System header to define __stub macros and hopefully few prototypes,
18615 which can conflict with char $ac_func (); below.
18616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18617 <limits.h> exists even on freestanding compilers. */
18620 # include <limits.h>
18622 # include <assert.h>
18627 /* Override any GCC internal prototype to avoid an error.
18628 Use char because int might match the return type of a GCC
18629 builtin and then its argument prototype would still apply. */
18634 /* The GNU C library defines this for functions which it implements
18635 to always fail with ENOSYS. Some functions are actually named
18636 something starting with __ and the normal name is an alias. */
18637 #if defined __stub_$ac_func || defined __stub___$ac_func
18644 return $ac_func ();
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (ac_try="$ac_link"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_link") 2>conftest.er1
18658 grep -v '^ *+' conftest.er1 >conftest.err
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest$ac_exeext &&
18666 $as_test_x conftest$ac_exeext; then
18667 eval "$as_ac_var=yes"
18669 echo "$as_me: failed program was
:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 eval "$as_ac_var=no
"
18675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18676 conftest$ac_exeext conftest.$ac_ext
18678 ac_res=`eval echo '${'$as_ac_var'}'`
18679 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18680 echo "${ECHO_T}$ac_res" >&6; }
18681 if test `eval echo '${'$as_ac_var'}'` = yes; then
18682 cat >>confdefs.h <<_ACEOF
18683 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18693 if test -z "$GETOPT_H"; then
18694 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18695 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18696 if test "${ac_cv_have_decl_optreset+set}" = set; then
18697 echo $ECHO_N "(cached
) $ECHO_C" >&6
18699 cat >conftest.$ac_ext <<_ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 #include <getopt.h>
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_compile") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest.$ac_objext; then
18735 ac_cv_have_decl_optreset=yes
18737 echo "$as_me: failed program was
:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_have_decl_optreset=no
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18746 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18747 if test $ac_cv_have_decl_optreset = yes; then
18753 if test -z "$GETOPT_H"; then
18754 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18755 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18756 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18757 echo $ECHO_N "(cached
) $ECHO_C" >&6
18759 if test "$cross_compiling" = yes; then
18760 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18761 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18762 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18763 echo $ECHO_N "(cached
) $ECHO_C" >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <getopt.h>
18776 #ifndef getopt_clip
18777 (void) getopt_clip;
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_compile") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1 >conftest.err
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18797 (exit $ac_status); } && {
18798 test -z "$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18800 } && test -s conftest.$ac_objext; then
18801 ac_cv_have_decl_getopt_clip=yes
18803 echo "$as_me: failed program was
:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_have_decl_getopt_clip=no
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18812 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18813 if test $ac_cv_have_decl_getopt_clip = yes; then
18814 gl_cv_func_gnu_getopt=no
18816 gl_cv_func_gnu_getopt=yes
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 #include <getopt.h>
18832 myargv[0] = "conftest
";
18835 return getopt (2, myargv, "+a
") != '?';
18841 rm -f conftest$ac_exeext
18842 if { (ac_try="$ac_link"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>&5
18850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18852 { (case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_try") 2>&5
18859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18860 (exit $ac_status); }; }; then
18861 gl_cv_func_gnu_getopt=yes
18863 echo "$as_me: program exited with status
$ac_status" >&5
18864 echo "$as_me: failed program was
:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ( exit $ac_status )
18868 gl_cv_func_gnu_getopt=no
18870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18875 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18876 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18877 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18884 if test -n "$GETOPT_H"; then
18889 cat >>confdefs.h <<\_ACEOF
18890 #define __GETOPT_PREFIX rpl_
18896 GETOPTOBJS='getopt.o getopt1.o'
18903 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18904 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18905 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18906 echo $ECHO_N "(cached
) $ECHO_C" >&6
18908 # Use it with a single arg.
18909 cat >conftest.$ac_ext <<_ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18915 $ac_includes_default
18924 rm -f conftest.$ac_objext
18925 if { (ac_try="$ac_compile"
18926 case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_compile") 2>conftest.er1
18933 grep -v '^ *+' conftest.er1 >conftest.err
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18937 (exit $ac_status); } && {
18938 test -z "$ac_c_werror_flag" ||
18939 test ! -s conftest.err
18940 } && test -s conftest.$ac_objext; then
18941 ac_cv_func_getpgrp_void=no
18943 echo "$as_me: failed program was
:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_cv_func_getpgrp_void=yes
18949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18953 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18954 if test $ac_cv_func_getpgrp_void = yes; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define GETPGRP_VOID 1
18964 for ac_func in strftime
18966 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18967 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18968 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18969 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18970 echo $ECHO_N "(cached
) $ECHO_C" >&6
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18980 #define $ac_func innocuous_$ac_func
18982 /* System header to define __stub macros and hopefully few prototypes,
18983 which can conflict with char $ac_func (); below.
18984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18985 <limits.h> exists even on freestanding compilers. */
18988 # include <limits.h>
18990 # include <assert.h>
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
19002 /* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005 #if defined __stub_$ac_func || defined __stub___$ac_func
19012 return $ac_func ();
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 eval "$as_ac_var=yes"
19037 echo "$as_me: failed program was
:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 eval "$as_ac_var=no
"
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19046 ac_res=`eval echo '${'$as_ac_var'}'`
19047 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19048 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_var'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19055 # strftime is in -lintl on SCO UNIX.
19056 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19057 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19058 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19059 echo $ECHO_N "(cached
) $ECHO_C" >&6
19061 ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lintl $LIBS"
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19070 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19080 return strftime ();
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19098 (exit $ac_status); } && {
19099 test -z "$ac_c_werror_flag" ||
19100 test ! -s conftest.err
19101 } && test -s conftest$ac_exeext &&
19102 $as_test_x conftest$ac_exeext; then
19103 ac_cv_lib_intl_strftime=yes
19105 echo "$as_me: failed program was
:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 ac_cv_lib_intl_strftime=no
19111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19112 conftest$ac_exeext conftest.$ac_ext
19113 LIBS=$ac_check_lib_save_LIBS
19115 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19116 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19117 if test $ac_cv_lib_intl_strftime = yes; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_STRFTIME 1
19122 LIBS="-lintl $LIBS"
19131 for ac_func in grantpt
19133 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19134 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19135 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19136 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19137 echo $ECHO_N "(cached
) $ECHO_C" >&6
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19147 #define $ac_func innocuous_$ac_func
19149 /* System header to define __stub macros and hopefully few prototypes,
19150 which can conflict with char $ac_func (); below.
19151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19152 <limits.h> exists even on freestanding compilers. */
19155 # include <limits.h>
19157 # include <assert.h>
19162 /* Override any GCC internal prototype to avoid an error.
19163 Use char because int might match the return type of a GCC
19164 builtin and then its argument prototype would still apply. */
19169 /* The GNU C library defines this for functions which it implements
19170 to always fail with ENOSYS. Some functions are actually named
19171 something starting with __ and the normal name is an alias. */
19172 #if defined __stub_$ac_func || defined __stub___$ac_func
19179 return $ac_func ();
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (ac_try="$ac_link"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_link") 2>conftest.er1
19193 grep -v '^ *+' conftest.er1 >conftest.err
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest$ac_exeext &&
19201 $as_test_x conftest$ac_exeext; then
19202 eval "$as_ac_var=yes"
19204 echo "$as_me: failed program was
:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 eval "$as_ac_var=no
"
19210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19211 conftest$ac_exeext conftest.$ac_ext
19213 ac_res=`eval echo '${'$as_ac_var'}'`
19214 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19215 echo "${ECHO_T}$ac_res" >&6; }
19216 if test `eval echo '${'$as_ac_var'}'` = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19225 # PTY-related GNU extensions.
19227 for ac_func in getpt
19229 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19230 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19231 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19232 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19233 echo $ECHO_N "(cached
) $ECHO_C" >&6
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19243 #define $ac_func innocuous_$ac_func
19245 /* System header to define __stub macros and hopefully few prototypes,
19246 which can conflict with char $ac_func (); below.
19247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19248 <limits.h> exists even on freestanding compilers. */
19251 # include <limits.h>
19253 # include <assert.h>
19258 /* Override any GCC internal prototype to avoid an error.
19259 Use char because int might match the return type of a GCC
19260 builtin and then its argument prototype would still apply. */
19265 /* The GNU C library defines this for functions which it implements
19266 to always fail with ENOSYS. Some functions are actually named
19267 something starting with __ and the normal name is an alias. */
19268 #if defined __stub_$ac_func || defined __stub___$ac_func
19275 return $ac_func ();
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_link") 2>conftest.er1
19289 grep -v '^ *+' conftest.er1 >conftest.err
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19293 (exit $ac_status); } && {
19294 test -z "$ac_c_werror_flag" ||
19295 test ! -s conftest.err
19296 } && test -s conftest$ac_exeext &&
19297 $as_test_x conftest$ac_exeext; then
19298 eval "$as_ac_var=yes"
19300 echo "$as_me: failed program was
:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 eval "$as_ac_var=no
"
19306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19307 conftest$ac_exeext conftest.$ac_ext
19309 ac_res=`eval echo '${'$as_ac_var'}'`
19310 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19311 echo "${ECHO_T}$ac_res" >&6; }
19312 if test `eval echo '${'$as_ac_var'}'` = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19321 # Check this now, so that we will NOT find the above functions in ncurses.
19322 # That is because we have not set up to link ncurses in lib-src.
19323 # It's better to believe a function is not available
19324 # than to expect to find it in ncurses.
19326 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19327 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19328 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19329 echo $ECHO_N "(cached
) $ECHO_C" >&6
19331 ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-lncurses $LIBS"
19333 cat >conftest.$ac_ext <<_ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (ac_try="$ac_link"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_link") 2>conftest.er1
19364 grep -v '^ *+' conftest.er1 >conftest.err
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest$ac_exeext &&
19372 $as_test_x conftest$ac_exeext; then
19373 ac_cv_lib_ncurses_tparm=yes
19375 echo "$as_me: failed program was
:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 ac_cv_lib_ncurses_tparm=no
19381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382 conftest$ac_exeext conftest.$ac_ext
19383 LIBS=$ac_check_lib_save_LIBS
19385 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19386 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19387 if test $ac_cv_lib_ncurses_tparm = yes; then
19388 cat >>confdefs.h <<_ACEOF
19389 #define HAVE_LIBNCURSES 1
19392 LIBS="-lncurses $LIBS"
19397 # Do we need the Hesiod library to provide the support routines?
19398 if test "$with_hesiod" = yes ; then
19399 # Don't set $LIBS here -- see comments above.
19401 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19402 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19403 if test "${ac_cv_func_res_send+set}" = set; then
19404 echo $ECHO_N "(cached
) $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19414 #define res_send innocuous_res_send
19416 /* System header to define __stub macros and hopefully few prototypes,
19417 which can conflict with char res_send (); below.
19418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19419 <limits.h> exists even on freestanding compilers. */
19422 # include <limits.h>
19424 # include <assert.h>
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19436 /* The GNU C library defines this for functions which it implements
19437 to always fail with ENOSYS. Some functions are actually named
19438 something starting with __ and the normal name is an alias. */
19439 #if defined __stub_res_send || defined __stub___res_send
19446 return res_send ();
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_link") 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest$ac_exeext &&
19468 $as_test_x conftest$ac_exeext; then
19469 ac_cv_func_res_send=yes
19471 echo "$as_me: failed program was
:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_func_res_send=no
19477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19478 conftest$ac_exeext conftest.$ac_ext
19480 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19481 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19482 if test $ac_cv_func_res_send = yes; then
19485 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19486 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19487 if test "${ac_cv_func___res_send+set}" = set; then
19488 echo $ECHO_N "(cached
) $ECHO_C" >&6
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19498 #define __res_send innocuous___res_send
19500 /* System header to define __stub macros and hopefully few prototypes,
19501 which can conflict with char __res_send (); below.
19502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19503 <limits.h> exists even on freestanding compilers. */
19506 # include <limits.h>
19508 # include <assert.h>
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19519 char __res_send ();
19520 /* The GNU C library defines this for functions which it implements
19521 to always fail with ENOSYS. Some functions are actually named
19522 something starting with __ and the normal name is an alias. */
19523 #if defined __stub___res_send || defined __stub_____res_send
19530 return __res_send ();
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_link") 2>conftest.er1
19544 grep -v '^ *+' conftest.er1 >conftest.err
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest$ac_exeext &&
19552 $as_test_x conftest$ac_exeext; then
19553 ac_cv_func___res_send=yes
19555 echo "$as_me: failed program was
:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 ac_cv_func___res_send=no
19561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19562 conftest$ac_exeext conftest.$ac_ext
19564 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19565 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19566 if test $ac_cv_func___res_send = yes; then
19569 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19570 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19571 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19572 echo $ECHO_N "(cached
) $ECHO_C" >&6
19574 ac_check_lib_save_LIBS=$LIBS
19575 LIBS="-lresolv $LIBS"
19576 cat >conftest.$ac_ext <<_ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19593 return res_send ();
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_link") 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext &&
19615 $as_test_x conftest$ac_exeext; then
19616 ac_cv_lib_resolv_res_send=yes
19618 echo "$as_me: failed program was
:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_cv_lib_resolv_res_send=no
19624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19625 conftest$ac_exeext conftest.$ac_ext
19626 LIBS=$ac_check_lib_save_LIBS
19628 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19629 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19630 if test $ac_cv_lib_resolv_res_send = yes; then
19633 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19634 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19635 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19636 echo $ECHO_N "(cached
) $ECHO_C" >&6
19638 ac_check_lib_save_LIBS=$LIBS
19639 LIBS="-lresolv $LIBS"
19640 cat >conftest.$ac_ext <<_ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19653 char __res_send ();
19657 return __res_send ();
19662 rm -f conftest.$ac_objext conftest$ac_exeext
19663 if { (ac_try="$ac_link"
19664 case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_link") 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19675 (exit $ac_status); } && {
19676 test -z "$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19678 } && test -s conftest$ac_exeext &&
19679 $as_test_x conftest$ac_exeext; then
19680 ac_cv_lib_resolv___res_send=yes
19682 echo "$as_me: failed program was
:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ac_cv_lib_resolv___res_send=no
19688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19689 conftest$ac_exeext conftest.$ac_ext
19690 LIBS=$ac_check_lib_save_LIBS
19692 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19693 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19694 if test $ac_cv_lib_resolv___res_send = yes; then
19704 if test "$resolv" = yes ; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_LIBRESOLV 1
19714 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19715 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19716 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19717 echo $ECHO_N "(cached
) $ECHO_C" >&6
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19727 #define hes_getmailhost innocuous_hes_getmailhost
19729 /* System header to define __stub macros and hopefully few prototypes,
19730 which can conflict with char hes_getmailhost (); below.
19731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19732 <limits.h> exists even on freestanding compilers. */
19735 # include <limits.h>
19737 # include <assert.h>
19740 #undef hes_getmailhost
19742 /* Override any GCC internal prototype to avoid an error.
19743 Use char because int might match the return type of a GCC
19744 builtin and then its argument prototype would still apply. */
19748 char hes_getmailhost ();
19749 /* The GNU C library defines this for functions which it implements
19750 to always fail with ENOSYS. Some functions are actually named
19751 something starting with __ and the normal name is an alias. */
19752 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19759 return hes_getmailhost ();
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (ac_try="$ac_link"
19766 case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_link") 2>conftest.er1
19773 grep -v '^ *+' conftest.er1 >conftest.err
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19777 (exit $ac_status); } && {
19778 test -z "$ac_c_werror_flag" ||
19779 test ! -s conftest.err
19780 } && test -s conftest$ac_exeext &&
19781 $as_test_x conftest$ac_exeext; then
19782 ac_cv_func_hes_getmailhost=yes
19784 echo "$as_me: failed program was
:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_func_hes_getmailhost=no
19790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19791 conftest$ac_exeext conftest.$ac_ext
19793 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19794 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19795 if test $ac_cv_func_hes_getmailhost = yes; then
19798 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19799 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19800 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19801 echo $ECHO_N "(cached
) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lhesiod $RESOLVLIB $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19818 char hes_getmailhost ();
19822 return hes_getmailhost ();
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest$ac_exeext &&
19844 $as_test_x conftest$ac_exeext; then
19845 ac_cv_lib_hesiod_hes_getmailhost=yes
19847 echo "$as_me: failed program was
:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_cv_lib_hesiod_hes_getmailhost=no
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854 conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19857 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19858 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19859 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_LIBHESIOD 1
19873 # These tell us which Kerberos-related libraries to use.
19874 if test "${with_kerberos+set}" = set; then
19876 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19877 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19878 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19879 echo $ECHO_N "(cached
) $ECHO_C" >&6
19881 ac_check_lib_save_LIBS=$LIBS
19882 LIBS="-lcom_err $LIBS"
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 /* Override any GCC internal prototype to avoid an error.
19891 Use char because int might match the return type of a GCC
19892 builtin and then its argument prototype would still apply. */
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (ac_try="$ac_link"
19907 case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_link") 2>conftest.er1
19914 grep -v '^ *+' conftest.er1 >conftest.err
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19918 (exit $ac_status); } && {
19919 test -z "$ac_c_werror_flag" ||
19920 test ! -s conftest.err
19921 } && test -s conftest$ac_exeext &&
19922 $as_test_x conftest$ac_exeext; then
19923 ac_cv_lib_com_err_com_err=yes
19925 echo "$as_me: failed program was
:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_cv_lib_com_err_com_err=no
19931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19932 conftest$ac_exeext conftest.$ac_ext
19933 LIBS=$ac_check_lib_save_LIBS
19935 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19936 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19937 if test $ac_cv_lib_com_err_com_err = yes; then
19938 cat >>confdefs.h <<_ACEOF
19939 #define HAVE_LIBCOM_ERR 1
19942 LIBS="-lcom_err $LIBS"
19947 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19948 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19949 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19950 echo $ECHO_N "(cached
) $ECHO_C" >&6
19952 ac_check_lib_save_LIBS=$LIBS
19953 LIBS="-lk5crypto $LIBS"
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19961 /* Override any GCC internal prototype to avoid an error.
19962 Use char because int might match the return type of a GCC
19963 builtin and then its argument prototype would still apply. */
19967 char mit_des_cbc_encrypt ();
19971 return mit_des_cbc_encrypt ();
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest$ac_exeext &&
19993 $as_test_x conftest$ac_exeext; then
19994 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19996 echo "$as_me: failed program was
:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_check_lib_save_LIBS
20006 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20007 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20008 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20009 cat >>confdefs.h <<_ACEOF
20010 #define HAVE_LIBK5CRYPTO 1
20013 LIBS="-lk5crypto $LIBS"
20018 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20019 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20020 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20021 echo $ECHO_N "(cached
) $ECHO_C" >&6
20023 ac_check_lib_save_LIBS=$LIBS
20024 LIBS="-lcrypto $LIBS"
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20032 /* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
20038 char mit_des_cbc_encrypt ();
20042 return mit_des_cbc_encrypt ();
20047 rm -f conftest.$ac_objext conftest$ac_exeext
20048 if { (ac_try="$ac_link"
20049 case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_link") 2>conftest.er1
20056 grep -v '^ *+' conftest.er1 >conftest.err
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20060 (exit $ac_status); } && {
20061 test -z "$ac_c_werror_flag" ||
20062 test ! -s conftest.err
20063 } && test -s conftest$ac_exeext &&
20064 $as_test_x conftest$ac_exeext; then
20065 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20067 echo "$as_me: failed program was
:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20074 conftest$ac_exeext conftest.$ac_ext
20075 LIBS=$ac_check_lib_save_LIBS
20077 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20078 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20079 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20080 cat >>confdefs.h <<_ACEOF
20081 #define HAVE_LIBCRYPTO 1
20084 LIBS="-lcrypto $LIBS"
20089 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20090 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20091 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20092 echo $ECHO_N "(cached
) $ECHO_C" >&6
20094 ac_check_lib_save_LIBS=$LIBS
20095 LIBS="-lkrb5 $LIBS"
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20103 /* Override any GCC internal prototype to avoid an error.
20104 Use char because int might match the return type of a GCC
20105 builtin and then its argument prototype would still apply. */
20109 char krb5_init_context ();
20113 return krb5_init_context ();
20118 rm -f conftest.$ac_objext conftest$ac_exeext
20119 if { (ac_try="$ac_link"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20125 (eval "$ac_link") 2>conftest.er1
20127 grep -v '^ *+' conftest.er1 >conftest.err
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest$ac_exeext &&
20135 $as_test_x conftest$ac_exeext; then
20136 ac_cv_lib_krb5_krb5_init_context=yes
20138 echo "$as_me: failed program was
:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_cv_lib_krb5_krb5_init_context=no
20144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20145 conftest$ac_exeext conftest.$ac_ext
20146 LIBS=$ac_check_lib_save_LIBS
20148 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20149 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20150 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20151 cat >>confdefs.h <<_ACEOF
20152 #define HAVE_LIBKRB5 1
20155 LIBS="-lkrb5 $LIBS"
20159 if test "${with_kerberos5+set}" != set; then
20161 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20162 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20163 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20164 echo $ECHO_N "(cached
) $ECHO_C" >&6
20166 ac_check_lib_save_LIBS=$LIBS
20167 LIBS="-ldes425 $LIBS"
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20175 /* Override any GCC internal prototype to avoid an error.
20176 Use char because int might match the return type of a GCC
20177 builtin and then its argument prototype would still apply. */
20181 char des_cbc_encrypt ();
20185 return des_cbc_encrypt ();
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_link") 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest$ac_exeext &&
20207 $as_test_x conftest$ac_exeext; then
20208 ac_cv_lib_des425_des_cbc_encrypt=yes
20210 echo "$as_me: failed program was
:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_lib_des425_des_cbc_encrypt=no
20216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20217 conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20220 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20221 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20222 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define HAVE_LIBDES425 1
20227 LIBS="-ldes425 $LIBS"
20231 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20232 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20233 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20234 echo $ECHO_N "(cached
) $ECHO_C" >&6
20236 ac_check_lib_save_LIBS=$LIBS
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20251 char des_cbc_encrypt ();
20255 return des_cbc_encrypt ();
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest$ac_exeext &&
20277 $as_test_x conftest$ac_exeext; then
20278 ac_cv_lib_des_des_cbc_encrypt=yes
20280 echo "$as_me: failed program was
:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ac_cv_lib_des_des_cbc_encrypt=no
20286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287 conftest$ac_exeext conftest.$ac_ext
20288 LIBS=$ac_check_lib_save_LIBS
20290 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20291 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20292 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define HAVE_LIBDES 1
20304 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20305 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20306 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20307 echo $ECHO_N "(cached
) $ECHO_C" >&6
20309 ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-lkrb4 $LIBS"
20311 cat >conftest.$ac_ext <<_ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20324 char krb_get_cred ();
20328 return krb_get_cred ();
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_link") 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest$ac_exeext &&
20350 $as_test_x conftest$ac_exeext; then
20351 ac_cv_lib_krb4_krb_get_cred=yes
20353 echo "$as_me: failed program was
:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ac_cv_lib_krb4_krb_get_cred=no
20359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20360 conftest$ac_exeext conftest.$ac_ext
20361 LIBS=$ac_check_lib_save_LIBS
20363 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20364 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20365 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20366 cat >>confdefs.h <<_ACEOF
20367 #define HAVE_LIBKRB4 1
20370 LIBS="-lkrb4 $LIBS"
20374 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20375 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20376 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20377 echo $ECHO_N "(cached
) $ECHO_C" >&6
20379 ac_check_lib_save_LIBS=$LIBS
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20388 /* Override any GCC internal prototype to avoid an error.
20389 Use char because int might match the return type of a GCC
20390 builtin and then its argument prototype would still apply. */
20394 char krb_get_cred ();
20398 return krb_get_cred ();
20403 rm -f conftest.$ac_objext conftest$ac_exeext
20404 if { (ac_try="$ac_link"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>conftest.er1
20412 grep -v '^ *+' conftest.er1 >conftest.err
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20416 (exit $ac_status); } && {
20417 test -z "$ac_c_werror_flag" ||
20418 test ! -s conftest.err
20419 } && test -s conftest$ac_exeext &&
20420 $as_test_x conftest$ac_exeext; then
20421 ac_cv_lib_krb_krb_get_cred=yes
20423 echo "$as_me: failed program was
:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 ac_cv_lib_krb_krb_get_cred=no
20429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20430 conftest$ac_exeext conftest.$ac_ext
20431 LIBS=$ac_check_lib_save_LIBS
20433 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20434 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20435 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20436 cat >>confdefs.h <<_ACEOF
20437 #define HAVE_LIBKRB 1
20448 if test "${with_kerberos5+set}" = set; then
20450 for ac_header in krb5.h
20452 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20453 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20454 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20455 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20456 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20457 echo $ECHO_N "(cached
) $ECHO_C" >&6
20459 ac_res=`eval echo '${'$as_ac_Header'}'`
20460 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20461 echo "${ECHO_T}$ac_res" >&6; }
20463 # Is the header compilable?
20464 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20465 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 $ac_includes_default
20473 #include <$ac_header>
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_header_compiler=yes
20494 echo "$as_me: failed program was
:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_header_compiler=no
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20502 echo "${ECHO_T}$ac_header_compiler" >&6; }
20504 # Is the header present?
20505 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20506 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 #include <$ac_header>
20515 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20527 (exit $ac_status); } >/dev/null && {
20528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20531 ac_header_preproc=yes
20533 echo "$as_me: failed program was
:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_header_preproc=no
20539 rm -f conftest.err conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6; }
20543 # So? What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20546 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20547 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20548 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20550 ac_header_preproc=yes
20553 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20554 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20555 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20556 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20557 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20558 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20559 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20560 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20561 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20563 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20564 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20568 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20569 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20570 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20571 echo $ECHO_N "(cached
) $ECHO_C" >&6
20573 eval "$as_ac_Header=\
$ac_header_preproc"
20575 ac_res=`eval echo '${'$as_ac_Header'}'`
20576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20581 cat >>confdefs.h <<_ACEOF
20582 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20591 for ac_header in des.h
20593 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20595 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20596 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20597 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20598 echo $ECHO_N "(cached
) $ECHO_C" >&6
20600 ac_res=`eval echo '${'$as_ac_Header'}'`
20601 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20602 echo "${ECHO_T}$ac_res" >&6; }
20604 # Is the header compilable?
20605 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20606 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 $ac_includes_default
20614 #include <$ac_header>
20616 rm -f conftest.$ac_objext
20617 if { (ac_try="$ac_compile"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_compile") 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20629 (exit $ac_status); } && {
20630 test -z "$ac_c_werror_flag" ||
20631 test ! -s conftest.err
20632 } && test -s conftest.$ac_objext; then
20633 ac_header_compiler=yes
20635 echo "$as_me: failed program was
:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_header_compiler=no
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20643 echo "${ECHO_T}$ac_header_compiler" >&6; }
20645 # Is the header present?
20646 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20647 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20648 cat >conftest.$ac_ext <<_ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20654 #include <$ac_header>
20656 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20657 case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20664 grep -v '^ *+' conftest.er1 >conftest.err
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20668 (exit $ac_status); } >/dev/null && {
20669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20670 test ! -s conftest.err
20672 ac_header_preproc=yes
20674 echo "$as_me: failed program was
:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ac_header_preproc=no
20680 rm -f conftest.err conftest.$ac_ext
20681 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20682 echo "${ECHO_T}$ac_header_preproc" >&6; }
20684 # So? What about this header?
20685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20687 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20688 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20689 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20691 ac_header_preproc=yes
20694 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20695 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20696 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20697 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20698 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20699 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20700 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20701 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20702 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20704 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20705 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20709 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20710 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20712 echo $ECHO_N "(cached
) $ECHO_C" >&6
20714 eval "$as_ac_Header=\
$ac_header_preproc"
20716 ac_res=`eval echo '${'$as_ac_Header'}'`
20717 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20718 echo "${ECHO_T}$ac_res" >&6; }
20721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20722 cat >>confdefs.h <<_ACEOF
20723 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20728 for ac_header in kerberosIV/des.h
20730 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20731 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20732 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20733 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20734 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20735 echo $ECHO_N "(cached
) $ECHO_C" >&6
20737 ac_res=`eval echo '${'$as_ac_Header'}'`
20738 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20739 echo "${ECHO_T}$ac_res" >&6; }
20741 # Is the header compilable?
20742 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20743 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 $ac_includes_default
20751 #include <$ac_header>
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_compile") 2>conftest.er1
20762 grep -v '^ *+' conftest.er1 >conftest.err
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20766 (exit $ac_status); } && {
20767 test -z "$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20769 } && test -s conftest.$ac_objext; then
20770 ac_header_compiler=yes
20772 echo "$as_me: failed program was
:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ac_header_compiler=no
20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20779 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20780 echo "${ECHO_T}$ac_header_compiler" >&6; }
20782 # Is the header present?
20783 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20784 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20791 #include <$ac_header>
20793 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20801 grep -v '^ *+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20805 (exit $ac_status); } >/dev/null && {
20806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20807 test ! -s conftest.err
20809 ac_header_preproc=yes
20811 echo "$as_me: failed program was
:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 ac_header_preproc=no
20817 rm -f conftest.err conftest.$ac_ext
20818 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20819 echo "${ECHO_T}$ac_header_preproc" >&6; }
20821 # So? What about this header?
20822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20824 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20825 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20826 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20828 ac_header_preproc=yes
20831 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20832 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20833 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20834 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20835 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20836 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20837 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20838 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20839 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20841 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20842 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20846 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20847 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20848 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20849 echo $ECHO_N "(cached
) $ECHO_C" >&6
20851 eval "$as_ac_Header=\
$ac_header_preproc"
20853 ac_res=`eval echo '${'$as_ac_Header'}'`
20854 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20855 echo "${ECHO_T}$ac_res" >&6; }
20858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20859 cat >>confdefs.h <<_ACEOF
20860 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20865 for ac_header in kerberos/des.h
20867 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20868 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20869 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20870 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20871 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20872 echo $ECHO_N "(cached
) $ECHO_C" >&6
20874 ac_res=`eval echo '${'$as_ac_Header'}'`
20875 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20876 echo "${ECHO_T}$ac_res" >&6; }
20878 # Is the header compilable?
20879 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20880 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 $ac_includes_default
20888 #include <$ac_header>
20890 rm -f conftest.$ac_objext
20891 if { (ac_try="$ac_compile"
20892 case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_compile") 2>conftest.er1
20899 grep -v '^ *+' conftest.er1 >conftest.err
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest.$ac_objext; then
20907 ac_header_compiler=yes
20909 echo "$as_me: failed program was
:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ac_header_compiler=no
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20917 echo "${ECHO_T}$ac_header_compiler" >&6; }
20919 # Is the header present?
20920 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20921 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <$ac_header>
20930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20938 grep -v '^ *+' conftest.er1 >conftest.err
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20942 (exit $ac_status); } >/dev/null && {
20943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20946 ac_header_preproc=yes
20948 echo "$as_me: failed program was
:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20951 ac_header_preproc=no
20954 rm -f conftest.err conftest.$ac_ext
20955 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20956 echo "${ECHO_T}$ac_header_preproc" >&6; }
20958 # So? What about this header?
20959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20961 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20962 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20963 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20965 ac_header_preproc=yes
20968 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20969 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20970 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20971 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20972 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20973 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20974 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20975 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20976 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20978 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20979 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20983 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20984 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20985 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20986 echo $ECHO_N "(cached
) $ECHO_C" >&6
20988 eval "$as_ac_Header=\
$ac_header_preproc"
20990 ac_res=`eval echo '${'$as_ac_Header'}'`
20991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20992 echo "${ECHO_T}$ac_res" >&6; }
20995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20996 cat >>confdefs.h <<_ACEOF
20997 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21013 for ac_header in krb.h
21015 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21016 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21017 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21018 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21019 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21020 echo $ECHO_N "(cached
) $ECHO_C" >&6
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21026 # Is the header compilable?
21027 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21028 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 #include <$ac_header>
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21055 ac_header_compiler=yes
21057 echo "$as_me: failed program was
:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_header_compiler=no
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21065 echo "${ECHO_T}$ac_header_compiler" >&6; }
21067 # Is the header present?
21068 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21069 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <$ac_header>
21078 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21086 grep -v '^ *+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21090 (exit $ac_status); } >/dev/null && {
21091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21094 ac_header_preproc=yes
21096 echo "$as_me: failed program was
:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_header_preproc=no
21102 rm -f conftest.err conftest.$ac_ext
21103 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21104 echo "${ECHO_T}$ac_header_preproc" >&6; }
21106 # So? What about this header?
21107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21109 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21110 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21111 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21113 ac_header_preproc=yes
21116 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21117 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21118 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21119 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21120 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21121 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21122 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21123 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21124 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21126 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21127 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21131 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21132 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21133 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21134 echo $ECHO_N "(cached
) $ECHO_C" >&6
21136 eval "$as_ac_Header=\
$ac_header_preproc"
21138 ac_res=`eval echo '${'$as_ac_Header'}'`
21139 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21140 echo "${ECHO_T}$ac_res" >&6; }
21143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21144 cat >>confdefs.h <<_ACEOF
21145 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21150 for ac_header in kerberosIV/krb.h
21152 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21154 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21155 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21157 echo $ECHO_N "(cached
) $ECHO_C" >&6
21159 ac_res=`eval echo '${'$as_ac_Header'}'`
21160 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21161 echo "${ECHO_T}$ac_res" >&6; }
21163 # Is the header compilable?
21164 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21165 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172 $ac_includes_default
21173 #include <$ac_header>
21175 rm -f conftest.$ac_objext
21176 if { (ac_try="$ac_compile"
21177 case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21182 (eval "$ac_compile") 2>conftest.er1
21184 grep -v '^ *+' conftest.er1 >conftest.err
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21188 (exit $ac_status); } && {
21189 test -z "$ac_c_werror_flag" ||
21190 test ! -s conftest.err
21191 } && test -s conftest.$ac_objext; then
21192 ac_header_compiler=yes
21194 echo "$as_me: failed program was
:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 ac_header_compiler=no
21200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21201 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21202 echo "${ECHO_T}$ac_header_compiler" >&6; }
21204 # Is the header present?
21205 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21206 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21207 cat >conftest.$ac_ext <<_ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 #include <$ac_header>
21215 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21227 (exit $ac_status); } >/dev/null && {
21228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21231 ac_header_preproc=yes
21233 echo "$as_me: failed program was
:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ac_header_preproc=no
21239 rm -f conftest.err conftest.$ac_ext
21240 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21241 echo "${ECHO_T}$ac_header_preproc" >&6; }
21243 # So? What about this header?
21244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21246 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21247 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21248 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21250 ac_header_preproc=yes
21253 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21254 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21255 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21256 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21257 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21258 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21259 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21260 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21261 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21263 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21264 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21268 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21269 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21271 echo $ECHO_N "(cached
) $ECHO_C" >&6
21273 eval "$as_ac_Header=\
$ac_header_preproc"
21275 ac_res=`eval echo '${'$as_ac_Header'}'`
21276 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21277 echo "${ECHO_T}$ac_res" >&6; }
21280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21281 cat >>confdefs.h <<_ACEOF
21282 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21287 for ac_header in kerberos/krb.h
21289 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21290 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21291 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21292 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21293 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21294 echo $ECHO_N "(cached
) $ECHO_C" >&6
21296 ac_res=`eval echo '${'$as_ac_Header'}'`
21297 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21298 echo "${ECHO_T}$ac_res" >&6; }
21300 # Is the header compilable?
21301 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21302 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 $ac_includes_default
21310 #include <$ac_header>
21312 rm -f conftest.$ac_objext
21313 if { (ac_try="$ac_compile"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21325 (exit $ac_status); } && {
21326 test -z "$ac_c_werror_flag" ||
21327 test ! -s conftest.err
21328 } && test -s conftest.$ac_objext; then
21329 ac_header_compiler=yes
21331 echo "$as_me: failed program was
:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_header_compiler=no
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21339 echo "${ECHO_T}$ac_header_compiler" >&6; }
21341 # Is the header present?
21342 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21343 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <$ac_header>
21352 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21360 grep -v '^ *+' conftest.er1 >conftest.err
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21364 (exit $ac_status); } >/dev/null && {
21365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21366 test ! -s conftest.err
21368 ac_header_preproc=yes
21370 echo "$as_me: failed program was
:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 ac_header_preproc=no
21376 rm -f conftest.err conftest.$ac_ext
21377 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21378 echo "${ECHO_T}$ac_header_preproc" >&6; }
21380 # So? What about this header?
21381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21383 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21384 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21385 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21387 ac_header_preproc=yes
21390 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21391 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21392 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21393 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21394 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21395 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21396 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21397 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21398 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21400 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21401 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21405 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21406 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21407 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21408 echo $ECHO_N "(cached
) $ECHO_C" >&6
21410 eval "$as_ac_Header=\
$ac_header_preproc"
21412 ac_res=`eval echo '${'$as_ac_Header'}'`
21413 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21414 echo "${ECHO_T}$ac_res" >&6; }
21417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21418 cat >>confdefs.h <<_ACEOF
21419 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21436 for ac_header in com_err.h
21438 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21439 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21440 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21441 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21442 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21443 echo $ECHO_N "(cached
) $ECHO_C" >&6
21445 ac_res=`eval echo '${'$as_ac_Header'}'`
21446 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21447 echo "${ECHO_T}$ac_res" >&6; }
21449 # Is the header compilable?
21450 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21451 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 $ac_includes_default
21459 #include <$ac_header>
21461 rm -f conftest.$ac_objext
21462 if { (ac_try="$ac_compile"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_compile") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest.$ac_objext; then
21478 ac_header_compiler=yes
21480 echo "$as_me: failed program was
:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21483 ac_header_compiler=no
21486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21488 echo "${ECHO_T}$ac_header_compiler" >&6; }
21490 # Is the header present?
21491 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21492 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 #include <$ac_header>
21501 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21502 case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21509 grep -v '^ *+' conftest.er1 >conftest.err
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21513 (exit $ac_status); } >/dev/null && {
21514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21515 test ! -s conftest.err
21517 ac_header_preproc=yes
21519 echo "$as_me: failed program was
:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ac_header_preproc=no
21525 rm -f conftest.err conftest.$ac_ext
21526 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21527 echo "${ECHO_T}$ac_header_preproc" >&6; }
21529 # So? What about this header?
21530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21532 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21533 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21534 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21536 ac_header_preproc=yes
21539 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21540 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21541 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21542 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21543 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21544 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21545 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21546 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21547 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21549 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21550 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21554 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21555 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21556 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21557 echo $ECHO_N "(cached
) $ECHO_C" >&6
21559 eval "$as_ac_Header=\
$ac_header_preproc"
21561 ac_res=`eval echo '${'$as_ac_Header'}'`
21562 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21563 echo "${ECHO_T}$ac_res" >&6; }
21566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21567 cat >>confdefs.h <<_ACEOF
21568 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21577 # Solaris requires -lintl if you want strerror (which calls dgettext)
21578 # to return localized messages.
21580 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21581 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21582 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21583 echo $ECHO_N "(cached
) $ECHO_C" >&6
21585 ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-lintl $LIBS"
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21604 return dgettext ();
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_link") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext &&
21626 $as_test_x conftest$ac_exeext; then
21627 ac_cv_lib_intl_dgettext=yes
21629 echo "$as_me: failed program was
:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 ac_cv_lib_intl_dgettext=no
21635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21636 conftest$ac_exeext conftest.$ac_ext
21637 LIBS=$ac_check_lib_save_LIBS
21639 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21640 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21641 if test $ac_cv_lib_intl_dgettext = yes; then
21642 cat >>confdefs.h <<_ACEOF
21643 #define HAVE_LIBINTL 1
21646 LIBS="-lintl $LIBS"
21651 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21652 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21653 if test "${emacs_cv_localtime_cache+set}" = set; then
21654 echo $ECHO_N "(cached
) $ECHO_C" >&6
21656 if test x$ac_cv_func_tzset = xyes; then
21657 if test "$cross_compiling" = yes; then
21658 # If we have tzset, assume the worst when cross-compiling.
21659 emacs_cv_localtime_cache=yes
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 extern char **environ;
21672 for (to = from = environ; (*to = *from); from++)
21673 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21676 char TZ_GMT0[] = "TZ
=GMT0
";
21677 char TZ_PST8[] = "TZ
=PST8
";
21680 time_t now = time ((time_t *) 0);
21681 int hour_GMT0, hour_unset;
21682 if (putenv (TZ_GMT0) != 0)
21684 hour_GMT0 = localtime (&now)->tm_hour;
21686 hour_unset = localtime (&now)->tm_hour;
21687 if (putenv (TZ_PST8) != 0)
21689 if (localtime (&now)->tm_hour == hour_GMT0)
21692 if (localtime (&now)->tm_hour != hour_unset)
21697 rm -f conftest$ac_exeext
21698 if { (ac_try="$ac_link"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_link") 2>&5
21706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21708 { (case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_try") 2>&5
21715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21716 (exit $ac_status); }; }; then
21717 emacs_cv_localtime_cache=no
21719 echo "$as_me: program exited with status
$ac_status" >&5
21720 echo "$as_me: failed program was
:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ( exit $ac_status )
21724 emacs_cv_localtime_cache=yes
21726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21731 # If we lack tzset, report that localtime does not cache TZ,
21732 # since we can't invalidate the cache if we don't have tzset.
21733 emacs_cv_localtime_cache=no
21736 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21737 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21738 if test $emacs_cv_localtime_cache = yes; then
21740 cat >>confdefs.h <<\_ACEOF
21741 #define LOCALTIME_CACHE 1
21746 if test "x
$HAVE_TIMEVAL" = xyes; then
21748 for ac_func in gettimeofday
21750 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21751 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21752 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21753 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached
) $ECHO_C" >&6
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21764 #define $ac_func innocuous_$ac_func
21766 /* System header to define __stub macros and hopefully few prototypes,
21767 which can conflict with char $ac_func (); below.
21768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21769 <limits.h> exists even on freestanding compilers. */
21772 # include <limits.h>
21774 # include <assert.h>
21779 /* Override any GCC internal prototype to avoid an error.
21780 Use char because int might match the return type of a GCC
21781 builtin and then its argument prototype would still apply. */
21786 /* The GNU C library defines this for functions which it implements
21787 to always fail with ENOSYS. Some functions are actually named
21788 something starting with __ and the normal name is an alias. */
21789 #if defined __stub_$ac_func || defined __stub___$ac_func
21796 return $ac_func ();
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_link") 2>conftest.er1
21810 grep -v '^ *+' conftest.er1 >conftest.err
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21814 (exit $ac_status); } && {
21815 test -z "$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 } && test -s conftest$ac_exeext &&
21818 $as_test_x conftest$ac_exeext; then
21819 eval "$as_ac_var=yes"
21821 echo "$as_me: failed program was
:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 eval "$as_ac_var=no
"
21827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21830 ac_res=`eval echo '${'$as_ac_var'}'`
21831 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21832 echo "${ECHO_T}$ac_res" >&6; }
21833 if test `eval echo '${'$as_ac_var'}'` = yes; then
21834 cat >>confdefs.h <<_ACEOF
21835 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21841 if test $ac_cv_func_gettimeofday = yes; then
21842 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21843 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21844 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21845 echo $ECHO_N "(cached
) $ECHO_C" >&6
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21854 #ifdef TIME_WITH_SYS_TIME
21855 #include <sys/time.h>
21858 #ifdef HAVE_SYS_TIME_H
21859 #include <sys/time.h>
21867 struct timeval time;
21868 gettimeofday (&time, 0);
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_compile") 2>conftest.er1
21882 grep -v '^ *+' conftest.er1 >conftest.err
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21886 (exit $ac_status); } && {
21887 test -z "$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 } && test -s conftest.$ac_objext; then
21890 emacs_cv_gettimeofday_two_arguments=yes
21892 echo "$as_me: failed program was
:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 emacs_cv_gettimeofday_two_arguments=no
21898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21901 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21902 if test $emacs_cv_gettimeofday_two_arguments = no; then
21904 cat >>confdefs.h <<\_ACEOF
21905 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21913 { echo "$as_me:$LINENO: checking
for socket
" >&5
21914 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21915 if test "${ac_cv_func_socket+set}" = set; then
21916 echo $ECHO_N "(cached
) $ECHO_C" >&6
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21926 #define socket innocuous_socket
21928 /* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char socket (); below.
21930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21931 <limits.h> exists even on freestanding compilers. */
21934 # include <limits.h>
21936 # include <assert.h>
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21948 /* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951 #if defined __stub_socket || defined __stub___socket
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest$ac_exeext &&
21980 $as_test_x conftest$ac_exeext; then
21981 ac_cv_func_socket=yes
21983 echo "$as_me: failed program was
:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_cv_func_socket=no
21989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21990 conftest$ac_exeext conftest.$ac_ext
21992 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21993 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21994 if test $ac_cv_func_socket = yes; then
22000 if test $ok_so_far = yes; then
22001 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22002 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22003 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22004 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22005 echo $ECHO_N "(cached
) $ECHO_C" >&6
22007 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22008 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22010 # Is the header compilable?
22011 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22012 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22013 cat >conftest.$ac_ext <<_ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 $ac_includes_default
22020 #include <netinet/in.h>
22022 rm -f conftest.$ac_objext
22023 if { (ac_try="$ac_compile"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_compile") 2>conftest.er1
22031 grep -v '^ *+' conftest.er1 >conftest.err
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22035 (exit $ac_status); } && {
22036 test -z "$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 } && test -s conftest.$ac_objext; then
22039 ac_header_compiler=yes
22041 echo "$as_me: failed program was
:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22044 ac_header_compiler=no
22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22049 echo "${ECHO_T}$ac_header_compiler" >&6; }
22051 # Is the header present?
22052 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22053 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22054 cat >conftest.$ac_ext <<_ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22060 #include <netinet/in.h>
22062 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22063 case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22070 grep -v '^ *+' conftest.er1 >conftest.err
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22074 (exit $ac_status); } >/dev/null && {
22075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22076 test ! -s conftest.err
22078 ac_header_preproc=yes
22080 echo "$as_me: failed program was
:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 ac_header_preproc=no
22086 rm -f conftest.err conftest.$ac_ext
22087 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22088 echo "${ECHO_T}$ac_header_preproc" >&6; }
22090 # So? What about this header?
22091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22093 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22094 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22095 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22096 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22097 ac_header_preproc=yes
22100 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22101 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22102 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22103 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22104 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22105 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22106 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22107 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22108 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22109 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22110 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22111 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22115 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22116 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22117 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22118 echo $ECHO_N "(cached
) $ECHO_C" >&6
22120 ac_cv_header_netinet_in_h=$ac_header_preproc
22122 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22123 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22126 if test $ac_cv_header_netinet_in_h = yes; then
22134 if test $ok_so_far = yes; then
22135 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22136 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22137 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22138 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22139 echo $ECHO_N "(cached
) $ECHO_C" >&6
22141 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22142 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22144 # Is the header compilable?
22145 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22146 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 $ac_includes_default
22154 #include <arpa/inet.h>
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22165 grep -v '^ *+' conftest.er1 >conftest.err
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22173 ac_header_compiler=yes
22175 echo "$as_me: failed program was
:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ac_header_compiler=no
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22183 echo "${ECHO_T}$ac_header_compiler" >&6; }
22185 # Is the header present?
22186 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22187 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 #include <arpa/inet.h>
22196 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22197 case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22208 (exit $ac_status); } >/dev/null && {
22209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22212 ac_header_preproc=yes
22214 echo "$as_me: failed program was
:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 ac_header_preproc=no
22220 rm -f conftest.err conftest.$ac_ext
22221 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22222 echo "${ECHO_T}$ac_header_preproc" >&6; }
22224 # So? What about this header?
22225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22227 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22228 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22229 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22230 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22231 ac_header_preproc=yes
22234 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22235 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22236 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22237 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22238 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22239 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22240 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22241 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22242 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22243 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22244 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22245 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22249 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22250 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22251 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22252 echo $ECHO_N "(cached
) $ECHO_C" >&6
22254 ac_cv_header_arpa_inet_h=$ac_header_preproc
22256 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22257 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22260 if test $ac_cv_header_arpa_inet_h = yes; then
22268 if test $ok_so_far = yes; then
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_INET_SOCKETS 1
22277 for ac_header in sys/ioctl.h
22279 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22280 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22281 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22282 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22283 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22284 echo $ECHO_N "(cached
) $ECHO_C" >&6
22286 ac_res=`eval echo '${'$as_ac_Header'}'`
22287 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22288 echo "${ECHO_T}$ac_res" >&6; }
22290 # Is the header compilable?
22291 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22292 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22293 cat >conftest.$ac_ext <<_ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 $ac_includes_default
22300 #include <$ac_header>
22302 rm -f conftest.$ac_objext
22303 if { (ac_try="$ac_compile"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_compile") 2>conftest.er1
22311 grep -v '^ *+' conftest.er1 >conftest.err
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22315 (exit $ac_status); } && {
22316 test -z "$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 } && test -s conftest.$ac_objext; then
22319 ac_header_compiler=yes
22321 echo "$as_me: failed program was
:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22324 ac_header_compiler=no
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22328 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22329 echo "${ECHO_T}$ac_header_compiler" >&6; }
22331 # Is the header present?
22332 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22333 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 #include <$ac_header>
22342 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22350 grep -v '^ *+' conftest.er1 >conftest.err
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22354 (exit $ac_status); } >/dev/null && {
22355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22358 ac_header_preproc=yes
22360 echo "$as_me: failed program was
:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22363 ac_header_preproc=no
22366 rm -f conftest.err conftest.$ac_ext
22367 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22368 echo "${ECHO_T}$ac_header_preproc" >&6; }
22370 # So? What about this header?
22371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22373 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22374 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22375 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22377 ac_header_preproc=yes
22380 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22381 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22382 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22383 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22384 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22385 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22386 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22387 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22388 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22390 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22391 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22395 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22396 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22397 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22398 echo $ECHO_N "(cached
) $ECHO_C" >&6
22400 eval "$as_ac_Header=\
$ac_header_preproc"
22402 ac_res=`eval echo '${'$as_ac_Header'}'`
22403 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22404 echo "${ECHO_T}$ac_res" >&6; }
22407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22408 cat >>confdefs.h <<_ACEOF
22409 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22417 if test -f /usr/lpp/X11/bin/smt.exp; then
22419 cat >>confdefs.h <<\_ACEOF
22420 #define HAVE_AIX_SMT_EXP 1
22425 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22426 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22427 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22428 { echo "$as_me:$LINENO: result
: yes" >&5
22429 echo "${ECHO_T}yes" >&6; }
22431 cat >>confdefs.h <<\_ACEOF
22432 #define HAVE_DEV_PTMX 1
22436 { echo "$as_me:$LINENO: result
: no
" >&5
22437 echo "${ECHO_T}no
" >&6; }
22440 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22441 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22442 if test "${ac_cv_type_pid_t+set}" = set; then
22443 echo $ECHO_N "(cached
) $ECHO_C" >&6
22445 cat >conftest.$ac_ext <<_ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 $ac_includes_default
22452 typedef pid_t ac__type_new_;
22456 if ((ac__type_new_ *) 0)
22458 if (sizeof (ac__type_new_))
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_compile") 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest.$ac_objext; then
22481 ac_cv_type_pid_t=yes
22483 echo "$as_me: failed program was
:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_cv_type_pid_t=no
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22492 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22493 if test $ac_cv_type_pid_t = yes; then
22497 cat >>confdefs.h <<_ACEOF
22504 for ac_header in vfork.h
22506 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22507 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22508 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22509 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22510 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22511 echo $ECHO_N "(cached
) $ECHO_C" >&6
22513 ac_res=`eval echo '${'$as_ac_Header'}'`
22514 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22515 echo "${ECHO_T}$ac_res" >&6; }
22517 # Is the header compilable?
22518 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22519 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22520 cat >conftest.$ac_ext <<_ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 $ac_includes_default
22527 #include <$ac_header>
22529 rm -f conftest.$ac_objext
22530 if { (ac_try="$ac_compile"
22531 case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_compile") 2>conftest.er1
22538 grep -v '^ *+' conftest.er1 >conftest.err
22540 cat conftest.err >&5
22541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22542 (exit $ac_status); } && {
22543 test -z "$ac_c_werror_flag" ||
22544 test ! -s conftest.err
22545 } && test -s conftest.$ac_objext; then
22546 ac_header_compiler=yes
22548 echo "$as_me: failed program was
:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 ac_header_compiler=no
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22555 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22556 echo "${ECHO_T}$ac_header_compiler" >&6; }
22558 # Is the header present?
22559 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22560 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22561 cat >conftest.$ac_ext <<_ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22567 #include <$ac_header>
22569 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22570 case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22577 grep -v '^ *+' conftest.er1 >conftest.err
22579 cat conftest.err >&5
22580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22581 (exit $ac_status); } >/dev/null && {
22582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22583 test ! -s conftest.err
22585 ac_header_preproc=yes
22587 echo "$as_me: failed program was
:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22590 ac_header_preproc=no
22593 rm -f conftest.err conftest.$ac_ext
22594 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22595 echo "${ECHO_T}$ac_header_preproc" >&6; }
22597 # So? What about this header?
22598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22600 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22601 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22602 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22604 ac_header_preproc=yes
22607 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22608 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22609 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22610 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22611 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22612 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22613 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22614 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22615 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22617 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22618 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22622 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22623 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22624 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22625 echo $ECHO_N "(cached
) $ECHO_C" >&6
22627 eval "$as_ac_Header=\
$ac_header_preproc"
22629 ac_res=`eval echo '${'$as_ac_Header'}'`
22630 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22631 echo "${ECHO_T}$ac_res" >&6; }
22634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22635 cat >>confdefs.h <<_ACEOF
22636 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22645 for ac_func in fork vfork
22647 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22648 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22649 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22650 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22651 echo $ECHO_N "(cached
) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22661 #define $ac_func innocuous_$ac_func
22663 /* System header to define __stub macros and hopefully few prototypes,
22664 which can conflict with char $ac_func (); below.
22665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22666 <limits.h> exists even on freestanding compilers. */
22669 # include <limits.h>
22671 # include <assert.h>
22676 /* Override any GCC internal prototype to avoid an error.
22677 Use char because int might match the return type of a GCC
22678 builtin and then its argument prototype would still apply. */
22683 /* The GNU C library defines this for functions which it implements
22684 to always fail with ENOSYS. Some functions are actually named
22685 something starting with __ and the normal name is an alias. */
22686 #if defined __stub_$ac_func || defined __stub___$ac_func
22693 return $ac_func ();
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (ac_try="$ac_link"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_link") 2>conftest.er1
22707 grep -v '^ *+' conftest.er1 >conftest.err
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest$ac_exeext &&
22715 $as_test_x conftest$ac_exeext; then
22716 eval "$as_ac_var=yes"
22718 echo "$as_me: failed program was
:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 eval "$as_ac_var=no
"
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725 conftest$ac_exeext conftest.$ac_ext
22727 ac_res=`eval echo '${'$as_ac_var'}'`
22728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22729 echo "${ECHO_T}$ac_res" >&6; }
22730 if test `eval echo '${'$as_ac_var'}'` = yes; then
22731 cat >>confdefs.h <<_ACEOF
22732 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22738 if test "x
$ac_cv_func_fork" = xyes; then
22739 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22740 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22741 if test "${ac_cv_func_fork_works+set}" = set; then
22742 echo $ECHO_N "(cached
) $ECHO_C" >&6
22744 if test "$cross_compiling" = yes; then
22745 ac_cv_func_fork_works=cross
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 $ac_includes_default
22758 /* By Ruediger Kuhlmann. */
22759 return fork () < 0;
22765 rm -f conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>&5
22774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22776 { (case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_try") 2>&5
22783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22784 (exit $ac_status); }; }; then
22785 ac_cv_func_fork_works=yes
22787 echo "$as_me: program exited with status
$ac_status" >&5
22788 echo "$as_me: failed program was
:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 ( exit $ac_status )
22792 ac_cv_func_fork_works=no
22794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22800 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22803 ac_cv_func_fork_works=$ac_cv_func_fork
22805 if test "x
$ac_cv_func_fork_works" = xcross; then
22807 *-*-amigaos* | *-*-msdosdjgpp*)
22808 # Override, as these systems have only a dummy fork() stub
22809 ac_cv_func_fork_works=no
22812 ac_cv_func_fork_works=yes
22815 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22816 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22818 ac_cv_func_vfork_works=$ac_cv_func_vfork
22819 if test "x
$ac_cv_func_vfork" = xyes; then
22820 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22821 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22822 if test "${ac_cv_func_vfork_works+set}" = set; then
22823 echo $ECHO_N "(cached
) $ECHO_C" >&6
22825 if test "$cross_compiling" = yes; then
22826 ac_cv_func_vfork_works=cross
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 /* Thanks to Paul Eggert for this test. */
22835 $ac_includes_default
22836 #include <sys/wait.h>
22837 #ifdef HAVE_VFORK_H
22838 # include <vfork.h>
22840 /* On some sparc systems, changes by the child to local and incoming
22841 argument registers are propagated back to the parent. The compiler
22842 is told about this with #include <vfork.h>, but some compilers
22843 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22844 static variable whose address is put into a register that is
22845 clobbered by the vfork. */
22848 sparc_address_test (int arg)
22850 sparc_address_test (arg) int arg;
22853 static pid_t child;
22871 pid_t parent = getpid ();
22874 sparc_address_test (0);
22879 /* Here is another test for sparc vfork register problems. This
22880 test uses lots of local variables, at least as many local
22881 variables as main has allocated so far including compiler
22882 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22883 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22884 reuse the register of parent for one of the local variables,
22885 since it will think that parent can't possibly be used any more
22886 in this routine. Assigning to the local variable will thus
22887 munge parent in the parent process. */
22889 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22890 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22891 /* Convince the compiler that p..p7 are live; otherwise, it might
22892 use the same hardware register for all 8 local variables. */
22893 if (p != p1 || p != p2 || p != p3 || p != p4
22894 || p != p5 || p != p6 || p != p7)
22897 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22898 from child file descriptors. If the child closes a descriptor
22899 before it execs or exits, this munges the parent's descriptor
22900 as well. Test for this by closing stdout in the child. */
22901 _exit(close(fileno(stdout)) != 0);
22906 while (wait(&status) != child)
22909 /* Was there some problem with vforking? */
22912 /* Did the child fail? (This shouldn't happen.) */
22915 /* Did the vfork/compiler bug occur? */
22916 || parent != getpid()
22918 /* Did the file descriptor bug occur? */
22919 || fstat(fileno(stdout), &st) != 0
22924 rm -f conftest$ac_exeext
22925 if { (ac_try="$ac_link"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_link") 2>&5
22933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22935 { (case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_try") 2>&5
22942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22943 (exit $ac_status); }; }; then
22944 ac_cv_func_vfork_works=yes
22946 echo "$as_me: program exited with status
$ac_status" >&5
22947 echo "$as_me: failed program was
:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ( exit $ac_status )
22951 ac_cv_func_vfork_works=no
22953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22958 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22959 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22962 if test "x
$ac_cv_func_fork_works" = xcross; then
22963 ac_cv_func_vfork_works=$ac_cv_func_vfork
22964 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22965 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22968 if test "x
$ac_cv_func_vfork_works" = xyes; then
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_WORKING_VFORK 1
22976 cat >>confdefs.h <<\_ACEOF
22981 if test "x
$ac_cv_func_fork_works" = xyes; then
22983 cat >>confdefs.h <<\_ACEOF
22984 #define HAVE_WORKING_FORK 1
22990 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22991 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22992 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22993 echo $ECHO_N "(cached
) $ECHO_C" >&6
22995 cat >conftest.$ac_ext <<_ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 #include <langinfo.h>
23005 char* cs = nl_langinfo(CODESET);
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (ac_try="$ac_link"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_link") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest$ac_exeext &&
23027 $as_test_x conftest$ac_exeext; then
23028 emacs_cv_langinfo_codeset=yes
23030 echo "$as_me: failed program was
:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 emacs_cv_langinfo_codeset=no
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037 conftest$ac_exeext conftest.$ac_ext
23040 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23041 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23042 if test $emacs_cv_langinfo_codeset = yes; then
23044 cat >>confdefs.h <<\_ACEOF
23045 #define HAVE_LANGINFO_CODESET 1
23050 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23051 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23052 if test "${ac_cv_type_size_t+set}" = set; then
23053 echo $ECHO_N "(cached
) $ECHO_C" >&6
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 typedef size_t ac__type_new_;
23066 if ((ac__type_new_ *) 0)
23068 if (sizeof (ac__type_new_))
23074 rm -f conftest.$ac_objext
23075 if { (ac_try="$ac_compile"
23076 case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_compile") 2>conftest.er1
23083 grep -v '^ *+' conftest.er1 >conftest.err
23085 cat conftest.err >&5
23086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23087 (exit $ac_status); } && {
23088 test -z "$ac_c_werror_flag" ||
23089 test ! -s conftest.err
23090 } && test -s conftest.$ac_objext; then
23091 ac_cv_type_size_t=yes
23093 echo "$as_me: failed program was
:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 ac_cv_type_size_t=no
23099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23102 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23103 if test $ac_cv_type_size_t = yes; then
23105 cat >>confdefs.h <<_ACEOF
23106 #define HAVE_SIZE_T 1
23113 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23114 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23115 if test "${ac_cv_type_mbstate_t+set}" = set; then
23116 echo $ECHO_N "(cached
) $ECHO_C" >&6
23118 cat >conftest.$ac_ext <<_ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23124 $ac_includes_default
23125 # include <wchar.h>
23129 mbstate_t x; return sizeof x;
23134 rm -f conftest.$ac_objext
23135 if { (ac_try="$ac_compile"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_compile") 2>conftest.er1
23143 grep -v '^ *+' conftest.er1 >conftest.err
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23147 (exit $ac_status); } && {
23148 test -z "$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23150 } && test -s conftest.$ac_objext; then
23151 ac_cv_type_mbstate_t=yes
23153 echo "$as_me: failed program was
:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23156 ac_cv_type_mbstate_t=no
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23162 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23163 if test $ac_cv_type_mbstate_t = yes; then
23165 cat >>confdefs.h <<\_ACEOF
23166 #define HAVE_MBSTATE_T 1
23171 cat >>confdefs.h <<\_ACEOF
23172 #define mbstate_t int
23177 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23178 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23179 if test "${emacs_cv_c_restrict+set}" = set; then
23180 echo $ECHO_N "(cached
) $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 void fred (int *restrict x);
23197 rm -f conftest.$ac_objext
23198 if { (ac_try="$ac_compile"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_compile") 2>conftest.er1
23206 grep -v '^ *+' conftest.er1 >conftest.err
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23210 (exit $ac_status); } && {
23211 test -z "$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23213 } && test -s conftest.$ac_objext; then
23214 emacs_cv_c_restrict=yes
23216 echo "$as_me: failed program was
:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 cat >conftest.$ac_ext <<_ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23225 void fred (int *__restrict x);
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23241 (eval "$ac_compile") 2>conftest.er1
23243 grep -v '^ *+' conftest.er1 >conftest.err
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23247 (exit $ac_status); } && {
23248 test -z "$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23250 } && test -s conftest.$ac_objext; then
23251 emacs_cv_c_restrict=__restrict
23253 echo "$as_me: failed program was
:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23256 emacs_cv_c_restrict=no
23259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23264 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23265 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23266 case "$emacs_cv_c_restrict" in
23267 yes) emacs_restrict=restrict;;
23268 no) emacs_restrict="";;
23269 *) emacs_restrict="$emacs_cv_c_restrict";;
23271 if test "$emacs_restrict" != __restrict; then
23273 cat >>confdefs.h <<_ACEOF
23274 #define __restrict $emacs_restrict
23279 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23280 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23281 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23282 echo $ECHO_N "(cached
) $ECHO_C" >&6
23284 cat >conftest.$ac_ext <<_ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23290 void fred (int x[__restrict]);
23299 rm -f conftest.$ac_objext
23300 if { (ac_try="$ac_compile"
23301 case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23306 (eval "$ac_compile") 2>conftest.er1
23308 grep -v '^ *+' conftest.er1 >conftest.err
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23312 (exit $ac_status); } && {
23313 test -z "$ac_c_werror_flag" ||
23314 test ! -s conftest.err
23315 } && test -s conftest.$ac_objext; then
23316 emacs_cv_c_restrict_arr=yes
23318 echo "$as_me: failed program was
:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23321 emacs_cv_c_restrict_arr=no
23324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23327 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23328 if test "$emacs_cv_c_restrict_arr" = yes; then
23330 cat >>confdefs.h <<\_ACEOF
23331 #define __restrict_arr __restrict
23338 # Set up the CFLAGS for real compilation, so we can substitute it.
23339 CFLAGS="$REAL_CFLAGS"
23340 CPPFLAGS="$REAL_CPPFLAGS"
23342 #### Find out which version of Emacs this is.
23343 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23344 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23345 if test x"${version}" = x; then
23346 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23347 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23348 { (exit 1); exit 1; }; }
23351 ### Specify what sort of things we'll be editing into Makefile and config.h.
23352 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23388 cat >>confdefs.h <<_ACEOF
23389 #define EMACS_CONFIGURATION "${canonical}"
23393 cat >>confdefs.h <<_ACEOF
23394 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23398 cat >>confdefs.h <<_ACEOF
23399 #define config_machfile "${machfile}"
23403 cat >>confdefs.h <<_ACEOF
23404 #define config_opsysfile "${opsysfile}"
23408 cat >>confdefs.h <<_ACEOF
23409 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23413 cat >>confdefs.h <<_ACEOF
23414 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23418 cat >>confdefs.h <<_ACEOF
23419 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23423 cat >>confdefs.h <<_ACEOF
23424 #define UNEXEC_SRC ${UNEXEC_SRC}
23428 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_X_WINDOWS 1
23435 if test "${USE_X_TOOLKIT}" != "none
" ; then
23437 cat >>confdefs.h <<\_ACEOF
23438 #define USE_X_TOOLKIT 1
23442 if test "${HAVE_X11}" = "yes" ; then
23444 cat >>confdefs.h <<\_ACEOF
23449 if test "${HAVE_XFREE386}" = "yes" ; then
23451 cat >>confdefs.h <<\_ACEOF
23452 #define HAVE_XFREE386 1
23456 if test "${HAVE_MENUS}" = "yes" ; then
23458 cat >>confdefs.h <<\_ACEOF
23459 #define HAVE_MENUS 1
23463 if test "${GNU_MALLOC}" = "yes" ; then
23465 cat >>confdefs.h <<\_ACEOF
23466 #define GNU_MALLOC 1
23470 if test "${REL_ALLOC}" = "yes" ; then
23472 cat >>confdefs.h <<\_ACEOF
23473 #define REL_ALLOC 1
23483 #### Report on what we decided to do.
23484 #### Report GTK as a toolkit, even if it doesn't use Xt.
23485 #### It makes printing result more understandable as using GTK sets
23486 #### toolkit_scroll_bars to yes by default.
23487 if test "${HAVE_GTK}" = "yes"; then
23492 Configured
for \
`${canonical}'.
23494 Where should the build process find the source code? ${srcdir}
23495 What operating system and machine description files should Emacs use?
23496 \`${opsysfile}' and \`${machfile}'
23497 What compiler should emacs be built with?
${CC} ${CFLAGS}
23498 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23499 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23500 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23501 What window system should Emacs use?
${window_system}
23502 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23504 if test -n "${x_includes}"; then
23505 echo " Where
do we
find X Windows header files?
${x_includes}"
23507 echo " Where
do we
find X Windows header files? Standard
dirs"
23509 if test -n "${x_libraries}"; then
23510 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23512 echo " Where
do we
find X Windows libraries? Standard
dirs"
23515 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23516 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23517 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23518 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23519 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23520 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23521 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23522 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23525 if test $USE_XASSERTS = yes; then
23526 echo " Compiling with asserts turned on.
"
23527 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23531 if test "$USE_X_TOOLKIT" = GTK; then
23532 case "$canonical" in
23534 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23535 will probably get a crash on startup. If this happens
, please use another
23536 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23543 # Remove any trailing slashes in these variables.
23544 test "${prefix}" != NONE &&
23545 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23546 test "${exec_prefix}" != NONE &&
23547 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23549 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23550 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23551 ## from Makefile.c can correctly provide the arg `-traditional' to the
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23562 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23563 $EGREP "yes..
yes" >/dev/null 2>&1; then
23564 CPP_NEED_TRADITIONAL=no
23566 CPP_NEED_TRADITIONAL=yes
23571 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
"
23573 ac_config_commands="$ac_config_commands default
"
23575 cat >confcache <<\_ACEOF
23576 # This file is a shell script that caches the results of configure
23577 # tests run on this system so they can be shared between configure
23578 # scripts and configure runs, see configure's option --config-cache.
23579 # It is not useful on other systems. If it contains results you don't
23580 # want to keep, you may remove or edit it.
23582 # config.status only pays attention to the cache file if you give it
23583 # the --recheck option to rerun configure.
23585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23587 # following values.
23591 # The following way of writing the cache mishandles newlines in values,
23592 # but we know of no workaround that is simple, portable, and efficient.
23593 # So, we kill variables containing newlines.
23594 # Ultrix sh set writes to stderr and can't be redirected directly,
23595 # and sets the high bit in the cache file unless we assign to the vars.
23597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23598 eval ac_val=\$$ac_var
23602 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23603 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23606 _ | IFS | as_nl) ;; #(
23607 *) $as_unset $ac_var ;;
23613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23614 *${as_nl}ac_space=\ *)
23615 # `set' does not quote correctly, so add quotes (double-quote
23616 # substitution turns \\\\ into \\, and sed turns \\ into \).
23619 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23622 # `set' quotes correctly as required by POSIX, so do not add quotes.
23623 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23637 if test -w "$cache_file"; then
23638 test "x
$cache_file" != "x
/dev
/null
" &&
23639 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23640 echo "$as_me: updating cache
$cache_file" >&6;}
23641 cat confcache >$cache_file
23643 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23644 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23649 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23650 # Let make expand exec_prefix.
23651 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23653 DEFS=-DHAVE_CONFIG_H
23657 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23658 # 1. Remove the extension, and $U if already installed.
23659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23660 ac_i=`echo "$ac_i" | sed "$ac_script"`
23661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23662 # will be set to the directory where LIBOBJS objects are built.
23663 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23664 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23666 LIBOBJS=$ac_libobjs
23668 LTLIBOBJS=$ac_ltlibobjs
23672 : ${CONFIG_STATUS=./config.status}
23673 ac_clean_files_save=$ac_clean_files
23674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23675 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23676 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23677 cat >$CONFIG_STATUS <<_ACEOF
23679 # Generated by $as_me.
23680 # Run this file to recreate the current configuration.
23681 # Compiler output produced by configure, useful for debugging
23682 # configure, is in config.log if it exists.
23685 ac_cs_recheck=false
23687 SHELL=\${CONFIG_SHELL-$SHELL}
23690 cat >>$CONFIG_STATUS <<\_ACEOF
23691 ## --------------------- ##
23692 ## M4sh Initialization. ##
23693 ## --------------------- ##
23695 # Be more Bourne compatible
23696 DUALCASE=1; export DUALCASE # for MKS sh
23697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23700 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23701 # is contrary to our usage. Disable this feature.
23702 alias -g '${1+"$@"}'='"$@
"'
23703 setopt NO_GLOB_SUBST
23705 case `(set -o) 2>/dev/null` in
23706 *posix*) set -o posix ;;
23715 # Avoid depending upon Character Ranges.
23716 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23717 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23718 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23719 as_cr_digits='0123456789'
23720 as_cr_alnum=$as_cr_Letters$as_cr_digits
23722 # The user is always right.
23723 if test "${PATH_SEPARATOR+set}" != set; then
23724 echo "#! /bin/sh" >conf$$.sh
23725 echo "exit 0" >>conf$$.sh
23727 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23735 # Support unset when possible.
23736 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23744 # We need space, tab and new line, in precisely that order. Quoting is
23745 # there to prevent editors from complaining about space-tab.
23746 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23747 # splitting by setting IFS to empty value.)
23752 # Find who we are. Look in the path if we contain no directory separator.
23754 *[\\/]* ) as_myself
=$0 ;;
23755 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23756 for as_dir
in $PATH
23759 test -z "$as_dir" && as_dir
=.
23760 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23766 # We did not find ourselves, most probably we were run as `sh COMMAND'
23767 # in which case we are not to be found in the path.
23768 if test "x$as_myself" = x
; then
23771 if test ! -f "$as_myself"; then
23772 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23773 { (exit 1); exit 1; }
23776 # Work around bugs in pre-3.0 UWIN ksh.
23777 for as_var
in ENV MAIL MAILPATH
23778 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23786 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23787 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23788 LC_TELEPHONE LC_TIME
23790 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23791 eval $as_var=C
; export $as_var
23793 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23797 # Required to use basename.
23798 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23799 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23805 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23806 as_basename
=basename
23812 # Name of the executable.
23813 as_me
=`$as_basename -- "$0" ||
23814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23815 X"$0" : 'X\(//\)$' \| \
23816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23818 sed '/^.*\/\([^/][^/]*\)\/*$/{
23837 as_lineno_1
=$LINENO
23838 as_lineno_2
=$LINENO
23839 test "x$as_lineno_1" != "x$as_lineno_2" &&
23840 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23843 # uniformly replaced by the line number. The first 'sed' inserts a
23844 # line-number line after each line using $LINENO; the second 'sed'
23845 # does the real work. The second script uses 'N' to pair each
23846 # line-number line with the line containing $LINENO, and appends
23847 # trailing '-' during substitution so that $LINENO is not a special
23848 # case at line end.
23849 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23850 # scripts with optimization help from Paolo Bonzini. Blame Lee
23851 # E. McMahon (1931-1989) for sed's syntax. :-)
23863 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23866 ' >$as_me.lineno
&&
23867 chmod +x
"$as_me.lineno" ||
23868 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23869 { (exit 1); exit 1; }; }
23871 # Don't try to exec as it changes $[0], causing all sort of problems
23872 # (the dirname of $[0] is not the place where we might find the
23873 # original and so on. Autoconf is especially sensitive to this).
23874 .
"./$as_me.lineno"
23875 # Exit status is that of the last command.
23880 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23886 ECHO_C
= ECHO_N
= ECHO_T
=
23887 case `echo -n x` in
23889 case `echo 'x\c'` in
23890 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23897 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23898 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23904 rm -f conf$$ conf$$.exe conf$$.
file
23905 if test -d conf$$.dir
; then
23906 rm -f conf$$.dir
/conf$$.
file
23912 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23914 # ... but there are two gotchas:
23915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23917 # In both cases, we have to default to `cp -p'.
23918 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23920 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23925 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23926 rmdir conf$$.dir
2>/dev
/null
23928 if mkdir
-p .
2>/dev
/null
; then
23931 test -d .
/-p && rmdir .
/-p
23935 if test -x / >/dev
/null
2>&1; then
23936 as_test_x
='test -x'
23938 if ls -dL / >/dev
/null
2>&1; then
23945 if test -d "$1"; then
23951 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23952 ???[sx]*):;;*)false;;esac;fi
23956 as_executable_p
=$as_test_x
23958 # Sed expression to map a string onto a valid CPP name.
23959 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23961 # Sed expression to map a string onto a valid variable name.
23962 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23967 # Save the log message, to keep $[0] and so on meaningful, and to
23968 # report actual input values of CONFIG_FILES etc. instead of their
23969 # values after options handling.
23971 This file was extended by $as_me, which was
23972 generated by GNU Autoconf 2.61. Invocation command line was
23974 CONFIG_FILES = $CONFIG_FILES
23975 CONFIG_HEADERS = $CONFIG_HEADERS
23976 CONFIG_LINKS = $CONFIG_LINKS
23977 CONFIG_COMMANDS = $CONFIG_COMMANDS
23980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23985 cat >>$CONFIG_STATUS <<_ACEOF
23986 # Files that config.status was made for.
23987 config_files="$ac_config_files"
23988 config_headers="$ac_config_headers"
23989 config_commands="$ac_config_commands"
23993 cat >>$CONFIG_STATUS <<\_ACEOF
23995 \`$as_me' instantiates files from templates according to the
23996 current configuration.
23998 Usage: $0 [OPTIONS] [FILE]...
24000 -h, --help print this help, then exit
24001 -V, --version print version number and configuration settings, then exit
24002 -q, --quiet do not print progress messages
24003 -d, --debug don't remove temporary files
24004 --recheck update $as_me by reconfiguring in the same conditions
24005 --file=FILE[:TEMPLATE]
24006 instantiate the configuration file FILE
24007 --header=FILE[:TEMPLATE]
24008 instantiate the configuration header FILE
24010 Configuration files:
24013 Configuration headers:
24016 Configuration commands:
24019 Report bugs to <bug-autoconf@gnu.org>."
24022 cat >>$CONFIG_STATUS <<_ACEOF
24025 configured by $0, generated by GNU Autoconf 2.61,
24026 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24028 Copyright (C) 2006 Free Software Foundation, Inc.
24029 This config.status script is free software; the Free Software Foundation
24030 gives unlimited permission to copy, distribute and modify it."
24037 cat >>$CONFIG_STATUS <<\_ACEOF
24038 # If no file are specified by the user, then we need to provide default
24039 # value. By we need to know if files were specified by the user.
24045 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24046 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24057 # Handling of the options.
24058 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24060 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24061 echo "$ac_cs_version"; exit ;;
24062 --debug |
--debu |
--deb |
--de |
--d |
-d )
24064 --file |
--fil |
--fi |
--f )
24066 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24067 ac_need_defaults
=false
;;
24068 --header |
--heade |
--head |
--hea )
24070 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24071 ac_need_defaults
=false
;;
24073 # Conflict between --help and --header
24074 { echo "$as_me: error: ambiguous option: $1
24075 Try \`$0 --help' for more information." >&2
24076 { (exit 1); exit 1; }; };;
24077 --help |
--hel |
-h )
24078 echo "$ac_cs_usage"; exit ;;
24079 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24080 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24083 # This is an error.
24084 -*) { echo "$as_me: error: unrecognized option: $1
24085 Try \`$0 --help' for more information." >&2
24086 { (exit 1); exit 1; }; } ;;
24088 *) ac_config_targets
="$ac_config_targets $1"
24089 ac_need_defaults
=false
;;
24095 ac_configure_extra_args
=
24097 if $ac_cs_silent; then
24099 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24103 cat >>$CONFIG_STATUS <<_ACEOF
24104 if \$ac_cs_recheck; then
24105 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24106 CONFIG_SHELL=$SHELL
24107 export CONFIG_SHELL
24108 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24112 cat >>$CONFIG_STATUS <<\_ACEOF
24116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24117 ## Running $as_me. ##
24123 cat >>$CONFIG_STATUS <<_ACEOF
24127 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24133 # Handling of arguments.
24134 for ac_config_target
in $ac_config_targets
24136 case $ac_config_target in
24137 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24138 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24139 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24140 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24141 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24142 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24143 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24144 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24145 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24146 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24147 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24148 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24152 { (exit 1); exit 1; }; };;
24157 # If the user did not use the arguments to specify the items to instantiate,
24158 # then the envvar interface is used. Set only those that are not.
24159 # We use the long form for the default assignment because of an extremely
24160 # bizarre bug on SunOS 4.1.3.
24161 if $ac_need_defaults; then
24162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24167 # Have a temporary directory for convenience. Make it in the build tree
24168 # simply because there is no reason against having it here, and in addition,
24169 # creating and moving files from /tmp can sometimes cause problems.
24170 # Hook for its removal unless debugging.
24171 # Note that there is a small window in which the directory will not be cleaned:
24172 # after its creation but before its name has been assigned to `$tmp'.
24176 trap 'exit_status=$?
24177 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24179 trap '{ (exit 1); exit 1; }' 1 2 13 15
24181 # Create a (secure) tmp directory for tmp files.
24184 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24185 test -n "$tmp" && test -d "$tmp"
24188 tmp
=.
/conf$$
-$RANDOM
24189 (umask 077 && mkdir
"$tmp")
24192 echo "$me: cannot create a temporary directory in ." >&2
24193 { (exit 1); exit 1; }
24197 # Set up the sed scripts for CONFIG_FILES section.
24200 # No need to generate the scripts if there are no CONFIG_FILES.
24201 # This happens for instance when ./config.status config.h
24202 if test -n "$CONFIG_FILES"; then
24209 for ac_last_try
in false false false false false
:; do
24210 cat >conf$
$subs.
sed <<_ACEOF
24211 SHELL!$SHELL$ac_delim
24212 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24213 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24214 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24215 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24216 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24217 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24218 exec_prefix!$exec_prefix$ac_delim
24219 prefix!$prefix$ac_delim
24220 program_transform_name!$program_transform_name$ac_delim
24221 bindir!$bindir$ac_delim
24222 sbindir!$sbindir$ac_delim
24223 libexecdir!$libexecdir$ac_delim
24224 datarootdir!$datarootdir$ac_delim
24225 datadir!$datadir$ac_delim
24226 sysconfdir!$sysconfdir$ac_delim
24227 sharedstatedir!$sharedstatedir$ac_delim
24228 localstatedir!$localstatedir$ac_delim
24229 includedir!$includedir$ac_delim
24230 oldincludedir!$oldincludedir$ac_delim
24231 docdir!$docdir$ac_delim
24232 infodir!$infodir$ac_delim
24233 htmldir!$htmldir$ac_delim
24234 dvidir!$dvidir$ac_delim
24235 pdfdir!$pdfdir$ac_delim
24236 psdir!$psdir$ac_delim
24237 libdir!$libdir$ac_delim
24238 localedir!$localedir$ac_delim
24239 mandir!$mandir$ac_delim
24240 DEFS!$DEFS$ac_delim
24241 ECHO_C!$ECHO_C$ac_delim
24242 ECHO_N!$ECHO_N$ac_delim
24243 ECHO_T!$ECHO_T$ac_delim
24244 LIBS!$LIBS$ac_delim
24245 build_alias!$build_alias$ac_delim
24246 host_alias!$host_alias$ac_delim
24247 target_alias!$target_alias$ac_delim
24248 MAINT!$MAINT$ac_delim
24249 build!$build$ac_delim
24250 build_cpu!$build_cpu$ac_delim
24251 build_vendor!$build_vendor$ac_delim
24252 build_os!$build_os$ac_delim
24253 host!$host$ac_delim
24254 host_cpu!$host_cpu$ac_delim
24255 host_vendor!$host_vendor$ac_delim
24256 host_os!$host_os$ac_delim
24258 CFLAGS!$CFLAGS$ac_delim
24259 LDFLAGS!$LDFLAGS$ac_delim
24260 CPPFLAGS!$CPPFLAGS$ac_delim
24261 ac_ct_CC!$ac_ct_CC$ac_delim
24262 EXEEXT!$EXEEXT$ac_delim
24263 OBJEXT!$OBJEXT$ac_delim
24265 GREP!$GREP$ac_delim
24266 EGREP!$EGREP$ac_delim
24267 LN_S!$LN_S$ac_delim
24268 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24269 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24270 INSTALL_DATA!$INSTALL_DATA$ac_delim
24271 RANLIB!$RANLIB$ac_delim
24272 INSTALL_INFO!$INSTALL_INFO$ac_delim
24273 GZIP_PROG!$GZIP_PROG$ac_delim
24274 LIBSOUND!$LIBSOUND$ac_delim
24275 PKG_CONFIG!$PKG_CONFIG$ac_delim
24276 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24277 ALSA_LIBS!$ALSA_LIBS$ac_delim
24278 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24279 SET_MAKE!$SET_MAKE$ac_delim
24280 XMKMF!$XMKMF$ac_delim
24281 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24282 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24283 GTK_LIBS!$GTK_LIBS$ac_delim
24284 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24285 XFT_LIBS!$XFT_LIBS$ac_delim
24286 ALLOCA!$ALLOCA$ac_delim
24287 liblockfile!$liblockfile$ac_delim
24288 LIBOBJS!$LIBOBJS$ac_delim
24289 NEED_SETGID!$NEED_SETGID$ac_delim
24290 KMEM_GROUP!$KMEM_GROUP$ac_delim
24291 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24292 GETOPT_H!$GETOPT_H$ac_delim
24293 GETOPTOBJS!$GETOPTOBJS$ac_delim
24294 version!$version$ac_delim
24295 configuration!$configuration$ac_delim
24296 canonical!$canonical$ac_delim
24297 srcdir!$srcdir$ac_delim
24298 lispdir!$lispdir$ac_delim
24299 locallisppath!$locallisppath$ac_delim
24300 lisppath!$lisppath$ac_delim
24301 x_default_search_path!$x_default_search_path$ac_delim
24302 etcdir!$etcdir$ac_delim
24303 archlibdir!$archlibdir$ac_delim
24304 bitmapdir!$bitmapdir$ac_delim
24305 gamedir!$gamedir$ac_delim
24306 gameuser!$gameuser$ac_delim
24307 c_switch_system!$c_switch_system$ac_delim
24310 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24312 elif $ac_last_try; then
24313 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24314 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24315 { (exit 1); exit 1; }; }
24317 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24321 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24322 if test -n "$ac_eof"; then
24323 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24324 ac_eof
=`expr $ac_eof + 1`
24327 cat >>$CONFIG_STATUS <<_ACEOF
24328 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24332 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24333 s/^/s,@/; s/!/@,|#_!!_#|/
24336 s/'"$ac_delim"'$/,g/; t
24338 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24339 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24340 rm -f conf$
$subs.
sed
24341 cat >>$CONFIG_STATUS <<_ACEOF
24347 for ac_last_try
in false false false false false
:; do
24348 cat >conf$
$subs.
sed <<_ACEOF
24349 c_switch_machine!$c_switch_machine$ac_delim
24350 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24351 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24352 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24353 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24354 machfile!$machfile$ac_delim
24355 opsysfile!$opsysfile$ac_delim
24356 carbon_appdir!$carbon_appdir$ac_delim
24357 LTLIBOBJS!$LTLIBOBJS$ac_delim
24360 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
24362 elif $ac_last_try; then
24363 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24364 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24365 { (exit 1); exit 1; }; }
24367 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24371 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24372 if test -n "$ac_eof"; then
24373 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24374 ac_eof
=`expr $ac_eof + 1`
24377 cat >>$CONFIG_STATUS <<_ACEOF
24378 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24382 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24383 s/^/s,@/; s/!/@,|#_!!_#|/
24386 s/'"$ac_delim"'$/,g/; t
24388 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24389 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24390 rm -f conf$
$subs.
sed
24391 cat >>$CONFIG_STATUS <<_ACEOF
24398 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24399 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24400 # trailing colons and then remove the whole line if VPATH becomes empty
24401 # (actually we leave an empty line to preserve line numbers).
24402 if test "x$srcdir" = x.
; then
24403 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24404 s/:*\$(srcdir):*/:/
24405 s/:*\${srcdir}:*/:/
24407 s/^\([^=]*=[ ]*\):*/\1/
24413 cat >>$CONFIG_STATUS <<\_ACEOF
24414 fi # test -n "$CONFIG_FILES"
24417 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24420 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24422 case $ac_mode$ac_tag in
24424 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24425 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24426 { (exit 1); exit 1; }; };;
24427 :[FH
]-) ac_tag
=-:-;;
24428 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24445 -) ac_f
="$tmp/stdin";;
24446 *) # Look for the file first in the build tree, then in the source tree
24447 # (if the path is not absolute). The absolute path cannot be DOS-style,
24448 # because $ac_f cannot contain `:'.
24452 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24454 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24455 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24456 { (exit 1); exit 1; }; };;
24458 ac_file_inputs
="$ac_file_inputs $ac_f"
24461 # Let's still pretend it is `configure' which instantiates (i.e., don't
24462 # use $as_me), people would be surprised to read:
24463 # /* config.h. Generated by config.status. */
24464 configure_input
="Generated from "`IFS=:
24465 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24466 if test x
"$ac_file" != x-
; then
24467 configure_input
="$ac_file. $configure_input"
24468 { echo "$as_me:$LINENO: creating $ac_file" >&5
24469 echo "$as_me: creating $ac_file" >&6;}
24473 *:-:* |
*:-) cat >"$tmp/stdin";;
24478 ac_dir
=`$as_dirname -- "$ac_file" ||
24479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24480 X"$ac_file" : 'X\(//\)[^/]' \| \
24481 X"$ac_file" : 'X\(//\)$' \| \
24482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24488 /^X\(\/\/\)[^/].*/{
24503 -*) as_dir
=.
/$as_dir;;
24505 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24509 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24510 *) as_qdir
=$as_dir;;
24512 as_dirs
="'$as_qdir' $as_dirs"
24513 as_dir
=`$as_dirname -- "$as_dir" ||
24514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24515 X"$as_dir" : 'X\(//\)[^/]' \| \
24516 X"$as_dir" : 'X\(//\)$' \| \
24517 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24523 /^X\(\/\/\)[^/].*/{
24536 test -d "$as_dir" && break
24538 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24539 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24540 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24541 { (exit 1); exit 1; }; }; }
24545 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24547 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24548 # A ".." for each directory in $ac_dir_suffix.
24549 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24550 case $ac_top_builddir_sub in
24551 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24552 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24555 ac_abs_top_builddir
=$ac_pwd
24556 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24557 # for backward compatibility:
24558 ac_top_builddir
=$ac_top_build_prefix
24561 .
) # We are building in place.
24563 ac_top_srcdir
=$ac_top_builddir_sub
24564 ac_abs_top_srcdir
=$ac_pwd ;;
24565 [\\/]* | ?
:[\\/]* ) # Absolute name.
24566 ac_srcdir
=$srcdir$ac_dir_suffix;
24567 ac_top_srcdir
=$srcdir
24568 ac_abs_top_srcdir
=$srcdir ;;
24569 *) # Relative name.
24570 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24571 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24572 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24574 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24584 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24585 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24589 cat >>$CONFIG_STATUS <<\_ACEOF
24590 # If the template does not know about datarootdir, expand it.
24591 # FIXME: This hack should be removed a few years after 2.60.
24592 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24594 case `sed -n '/datarootdir/ {
24603 ' $ac_file_inputs` in
24604 *datarootdir
*) ac_datarootdir_seen
=yes;;
24605 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24606 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24607 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24609 cat >>$CONFIG_STATUS <<_ACEOF
24610 ac_datarootdir_hack='
24611 s&@datadir@&$datadir&g
24612 s&@docdir@&$docdir&g
24613 s&@infodir@&$infodir&g
24614 s&@localedir@&$localedir&g
24615 s&@mandir@&$mandir&g
24616 s&\\\${datarootdir}&$datarootdir&g' ;;
24620 # Neutralize VPATH when `$srcdir' = `.'.
24621 # Shell code in configure.ac might set extrasub.
24622 # FIXME: do we really want to maintain this feature?
24623 cat >>$CONFIG_STATUS <<_ACEOF
24627 cat >>$CONFIG_STATUS <<\_ACEOF
24629 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24630 s
&@configure_input@
&$configure_input&;t t
24631 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24632 s
&@srcdir@
&$ac_srcdir&;t t
24633 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24634 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24635 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24636 s
&@builddir@
&$ac_builddir&;t t
24637 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24638 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24639 s
&@INSTALL@
&$ac_INSTALL&;t t
24640 $ac_datarootdir_hack
24641 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24644 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24646 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24647 which seems to be undefined. Please make sure it is defined." >&5
24648 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24649 which seems to be undefined. Please make sure it is defined." >&2;}
24653 -) cat "$tmp/out"; rm -f "$tmp/out";;
24654 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24663 # Transform confdefs.h into a sed script `conftest.defines', that
24664 # substitutes the proper values into config.h.in to produce config.h.
24665 rm -f conftest.defines conftest.
tail
24666 # First, append a space to every undef/define line, to ease matching.
24667 echo 's/$/ /' >conftest.defines
24668 # Then, protect against being on the right side of a sed subst, or in
24669 # an unquoted here document, in config.status. If some macros were
24670 # called several times there might be several #defines for the same
24671 # symbol, which is useless. But do not sort them, since the last
24672 # AC_DEFINE must be honored.
24673 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24674 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24675 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24676 # PARAMS is the parameter list in the macro definition--in most cases, it's
24677 # just an empty string.
24678 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24679 ac_dB
='\\)[ (].*,\\1define\\2'
24687 s/^[ ]*#[ ]*define[ ][ ]*//
24692 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24693 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24694 ' >>conftest.defines
24696 # Remove the space that was appended to ease matching.
24697 # Then replace #undef with comments. This is necessary, for
24698 # example, in the case of _POSIX_SOURCE, which is predefined and required
24699 # on some systems where configure will not decide to define it.
24700 # (The regexp can be short, since the line contains either #define or #undef.)
24702 s,^[ #]*u.*,/* & */,' >>conftest.defines
24704 # Break up conftest.defines:
24705 ac_max_sed_lines
=50
24707 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24708 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24709 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24711 ac_in
='$ac_file_inputs'
24712 ac_out
='"$tmp/out1"'
24713 ac_nxt
='"$tmp/out2"'
24717 # Write a here document:
24718 cat >>$CONFIG_STATUS <<_ACEOF
24719 # First, check the format of the line:
24720 cat >"\$tmp/defines.sed" <<\\CEOF
24721 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24722 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24726 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24728 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24729 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24730 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24731 grep . conftest.
tail >/dev
/null ||
break
24732 rm -f conftest.defines
24733 mv conftest.
tail conftest.defines
24735 rm -f conftest.defines conftest.
tail
24737 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24738 cat >>$CONFIG_STATUS <<\_ACEOF
24739 if test x
"$ac_file" != x-
; then
24740 echo "/* $configure_input */" >"$tmp/config.h"
24741 cat "$ac_result" >>"$tmp/config.h"
24742 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24743 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24744 echo "$as_me: $ac_file is unchanged" >&6;}
24747 mv "$tmp/config.h" $ac_file
24750 echo "/* $configure_input */"
24756 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24757 echo "$as_me: executing $ac_file commands" >&6;}
24762 case $ac_file$ac_mode in
24765 ### Make the necessary directories, if they don't exist.
24766 for dir
in etc lisp
; do
24767 test -d ${dir} || mkdir
${dir}
24770 # Build src/Makefile from ${srcdir}/src/Makefile.c
24771 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24772 # This must be done after src/config.h is built, since we rely on that file.
24774 # Now get this: Some word that is part of the ${srcdir} directory name
24775 # or the ${configuration} value might, just might, happen to be an
24776 # identifier like `sun4' or `i386' or something, and be predefined by
24777 # the C preprocessor to some helpful value like 1, or maybe the empty
24778 # string. Needless to say consequent macro substitutions are less
24779 # than conducive to the makefile finding the correct directory.
24780 undefs
="`echo $top_srcdir $configuration $canonical |
24781 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24782 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24785 echo creating src
/epaths.h
24786 ${MAKE-make} epaths-force
24788 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24789 # `..' to `. .' unless invoked with -traditional
24791 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24792 CPPFLAGS
="$CPPFLAGS -traditional"
24795 echo creating lib-src
/Makefile
24797 rm -f junk.c junk1.c junk2.c
24798 sed -e '/start of cpp stuff/q' \
24799 < Makefile.c
> junk1.c
24800 sed -e '1,/start of cpp stuff/d'\
24801 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24802 < Makefile.c
> junk.c
24803 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24804 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24805 cat junk1.c junk2.c
> Makefile.new
24806 rm -f junk.c junk1.c junk2.c
24807 chmod 444 Makefile.new
24808 mv -f Makefile.new Makefile
24811 echo creating src
/Makefile
24813 rm -f junk.c junk1.c junk2.c
24814 sed -e '/start of cpp stuff/q' \
24815 < Makefile.c
> junk1.c
24816 sed -e '1,/start of cpp stuff/d'\
24817 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24818 < Makefile.c
> junk.c
24819 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24820 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24821 cat junk1.c junk2.c
> Makefile.new
24822 rm -f junk.c junk1.c junk2.c
24823 chmod 444 Makefile.new
24824 mv -f Makefile.new Makefile
24827 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24828 echo creating src
/.gdbinit
24829 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24832 # This is how we know whether to re-run configure in certain cases.
24833 touch src
/config.stamp
24841 { (exit 0); exit 0; }
24843 chmod +x
$CONFIG_STATUS
24844 ac_clean_files
=$ac_clean_files_save
24847 # configure is writing to config.log, and then calls config.status.
24848 # config.status does its own redirection, appending to config.log.
24849 # Unfortunately, on DOS this fails, as config.log is still kept open
24850 # by configure, so config.status won't be able to write to it; its
24851 # output is simply discarded. So we exec the FD to /dev/null,
24852 # effectively closing config.log, so it can be properly (re)opened and
24853 # appended to by config.status. When coming back to configure, we
24854 # need to make the FD available again.
24855 if test "$no_create" != yes; then
24857 ac_config_status_args
=
24858 test "$silent" = yes &&
24859 ac_config_status_args
="$ac_config_status_args --quiet"
24861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24864 # would make configure fail if this is the last instruction.
24865 $ac_cs_success ||
{ (exit 1); exit 1; }