2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
707 x_default_search_path
724 ac_precious_vars
='build_alias
736 # Initialize some variables set by options.
738 ac_init_version
=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
748 program_transform_name
=s
,x
,x
,
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir
='${exec_prefix}/bin'
763 sbindir
='${exec_prefix}/sbin'
764 libexecdir
='${exec_prefix}/libexec'
765 datarootdir
='${prefix}/share'
766 datadir
='${datarootdir}'
767 sysconfdir
='${prefix}/etc'
768 sharedstatedir
='${prefix}/com'
769 localstatedir
='${prefix}/var'
770 includedir
='${prefix}/include'
771 oldincludedir
='/usr/include'
772 docdir
='${datarootdir}/doc/${PACKAGE}'
773 infodir
='${datarootdir}/info'
778 libdir
='${exec_prefix}/lib'
779 localedir
='${datarootdir}/locale'
780 mandir
='${datarootdir}/man'
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\
$ac_option
794 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 # Accept the important Cygnus configure options, so we can diagnose typos.
800 case $ac_dashdash$ac_option in
804 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
806 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
809 -build |
--build |
--buil |
--bui |
--bu)
810 ac_prev
=build_alias
;;
811 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
812 build_alias
=$ac_optarg ;;
814 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
815 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
816 ac_prev
=cache_file
;;
817 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
818 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
819 cache_file
=$ac_optarg ;;
822 cache_file
=config.cache
;;
824 -datadir |
--datadir |
--datadi |
--datad)
826 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
827 datadir
=$ac_optarg ;;
829 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
830 |
--dataroo |
--dataro |
--datar)
831 ac_prev
=datarootdir
;;
832 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
833 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
834 datarootdir
=$ac_optarg ;;
836 -disable-* |
--disable-*)
837 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_
$ac_feature=no
;;
845 -docdir |
--docdir |
--docdi |
--doc |
--do)
847 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
850 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
852 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
855 -enable-* |
--enable-*)
856 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_
$ac_feature=\
$ac_optarg ;;
864 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
865 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
866 |
--exec |
--exe |
--ex)
867 ac_prev
=exec_prefix
;;
868 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
869 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
870 |
--exec=* |
--exe=* |
--ex=*)
871 exec_prefix
=$ac_optarg ;;
873 -gas |
--gas |
--ga |
--g)
874 # Obsolete; use --with-gas.
877 -help |
--help |
--hel |
--he |
-h)
879 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
880 ac_init_help
=recursive
;;
881 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
882 ac_init_help
=short
;;
884 -host |
--host |
--hos |
--ho)
885 ac_prev
=host_alias
;;
886 -host=* |
--host=* |
--hos=* |
--ho=*)
887 host_alias
=$ac_optarg ;;
889 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
891 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
893 htmldir
=$ac_optarg ;;
895 -includedir |
--includedir |
--includedi |
--included |
--include \
896 |
--includ |
--inclu |
--incl |
--inc)
897 ac_prev
=includedir
;;
898 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
899 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
900 includedir
=$ac_optarg ;;
902 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
904 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
905 infodir
=$ac_optarg ;;
907 -libdir |
--libdir |
--libdi |
--libd)
909 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
912 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
913 |
--libexe |
--libex |
--libe)
914 ac_prev
=libexecdir
;;
915 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
916 |
--libexe=* |
--libex=* |
--libe=*)
917 libexecdir
=$ac_optarg ;;
919 -localedir |
--localedir |
--localedi |
--localed |
--locale)
921 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
922 localedir
=$ac_optarg ;;
924 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
925 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
926 ac_prev
=localstatedir
;;
927 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
928 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
929 localstatedir
=$ac_optarg ;;
931 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
933 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
937 # Obsolete; use --without-fp.
940 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
941 |
--no-cr |
--no-c |
-n)
944 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
945 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
948 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
949 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
950 |
--oldin |
--oldi |
--old |
--ol |
--o)
951 ac_prev
=oldincludedir
;;
952 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
953 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
954 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
955 oldincludedir
=$ac_optarg ;;
957 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
959 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
962 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
963 |
--program-pre |
--program-pr |
--program-p)
964 ac_prev
=program_prefix
;;
965 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
966 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
967 program_prefix
=$ac_optarg ;;
969 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
970 |
--program-suf |
--program-su |
--program-s)
971 ac_prev
=program_suffix
;;
972 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
973 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
974 program_suffix
=$ac_optarg ;;
976 -program-transform-name |
--program-transform-name \
977 |
--program-transform-nam |
--program-transform-na \
978 |
--program-transform-n |
--program-transform- \
979 |
--program-transform |
--program-transfor \
980 |
--program-transfo |
--program-transf \
981 |
--program-trans |
--program-tran \
982 |
--progr-tra |
--program-tr |
--program-t)
983 ac_prev
=program_transform_name
;;
984 -program-transform-name=* |
--program-transform-name=* \
985 |
--program-transform-nam=* |
--program-transform-na=* \
986 |
--program-transform-n=* |
--program-transform-=* \
987 |
--program-transform=* |
--program-transfor=* \
988 |
--program-transfo=* |
--program-transf=* \
989 |
--program-trans=* |
--program-tran=* \
990 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
991 program_transform_name
=$ac_optarg ;;
993 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
995 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
998 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1000 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1003 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1004 |
-silent |
--silent |
--silen |
--sile |
--sil)
1007 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1009 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1011 sbindir
=$ac_optarg ;;
1013 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1014 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1015 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1017 ac_prev
=sharedstatedir
;;
1018 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1019 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1020 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1022 sharedstatedir
=$ac_optarg ;;
1024 -site |
--site |
--sit)
1026 -site=* |
--site=* |
--sit=*)
1029 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1031 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1032 srcdir
=$ac_optarg ;;
1034 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1035 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1036 ac_prev
=sysconfdir
;;
1037 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1038 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1039 sysconfdir
=$ac_optarg ;;
1041 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1042 ac_prev
=target_alias
;;
1043 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1044 target_alias
=$ac_optarg ;;
1046 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1049 -version |
--version |
--versio |
--versi |
--vers |
-V)
1050 ac_init_version
=: ;;
1053 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1059 eval with_
$ac_package=\
$ac_optarg ;;
1061 -without-* |
--without-*)
1062 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_
$ac_package=no
;;
1071 # Obsolete; use --with-x.
1074 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1075 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1076 ac_prev
=x_includes
;;
1077 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1078 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1079 x_includes
=$ac_optarg ;;
1081 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1082 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1083 ac_prev
=x_libraries
;;
1084 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1085 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1086 x_libraries
=$ac_optarg ;;
1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
1094 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098 { (exit 1); exit 1; }; }
1099 eval $ac_envvar=\
$ac_optarg
1100 export $ac_envvar ;;
1103 # FIXME: should be removed in autoconf 3.0.
1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 if test -n "$ac_prev"; then
1114 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1115 { echo "$as_me: error: missing argument to $ac_option" >&2
1116 { (exit 1); exit 1; }; }
1119 # Be sure to have absolute directory names.
1120 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1125 eval ac_val
=\$
$ac_var
1127 [\\/$
]* | ?
:[\\/]* ) continue;;
1128 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131 { (exit 1); exit 1; }; }
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1139 target
=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x
; then
1143 if test "x$build_alias" = x
; then
1144 cross_compiling
=maybe
1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1153 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1155 test "$silent" = yes && exec 6>/dev
/null
1158 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di
=`ls -di .` &&
1160 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1161 { echo "$as_me: error: Working directory cannot be determined" >&2
1162 { (exit 1); exit 1; }; }
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
1165 { (exit 1); exit 1; }; }
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted
=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir
=`$as_dirname -- "$0" ||
1173 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1200 ac_srcdir_defaulted
=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205 { (exit 1); exit 1; }; }
1207 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210 { (exit 1); exit 1; }; }
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1220 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 for ac_var
in $ac_precious_vars; do
1223 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1225 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1236 \`configure' configures this package to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1299 --x-includes=DIR X include files are
in DIR
1300 --x-libraries=DIR X library files are
in DIR
1303 --build=BUILD configure
for building on BUILD
[guessed
]
1304 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1308 if test -n "$ac_init_help"; then
1313 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1314 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1315 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1316 specify
install directory
for Emacs.app on Mac OS X
1317 --enable-asserts compile code with asserts enabled
1318 --enable-maintainer-mode enable make rules and dependencies not useful
1319 (and sometimes confusing
) to the casual installer
1320 --enable-locallisppath=PATH
1321 directories Emacs should search
for lisp files
1322 specific to this site
1323 --disable-largefile omit support
for large files
1326 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1327 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1328 --without-gcc don
't use GCC to compile Emacs if GCC is found
1329 --without-pop don't support POP
mail retrieval with movemail
1330 --with-kerberos support Kerberos-authenticated POP
1331 --with-kerberos5 support Kerberos version
5 authenticated POP
1332 --with-hesiod support Hesiod to get the POP server
host
1333 --without-sound don
't compile with sound support
1334 --with-x-toolkit=KIT use an X toolkit
1335 (KIT = yes/lucid/athena/motif/gtk/no)
1336 --with-xpm use -lXpm for displaying XPM images
1337 --with-jpeg use -ljpeg for displaying JPEG images
1338 --with-tiff use -ltiff for displaying TIFF images
1339 --with-gif use -lungif for displaying GIF images
1340 --with-png use -lpng for displaying PNG images
1341 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1342 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1343 --without-toolkit-scroll-bars
1344 don't use Motif or Xaw3d scroll bars
1345 --without-xim don
't use X11 XIM
1346 --without-carbon don't use Carbon GUI on Mac OS X
1347 --with-x use the X Window System
1349 Some influential environment variables
:
1350 CC C compiler
command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1353 nonstandard directory
<lib dir
>
1354 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1355 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1356 you have headers
in a nonstandard directory
<include dir
>
1358 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1360 Use these variables to override the choices made by
`configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" || continue
1374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1377 # A ".." for each directory in $ac_dir_suffix.
1378 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1379 case $ac_top_builddir_sub in
1380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 ac_abs_top_builddir=$ac_pwd
1385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386 # for backward compatibility:
1387 ac_top_builddir=$ac_top_build_prefix
1390 .) # We are building in place.
1392 ac_top_srcdir=$ac_top_builddir_sub
1393 ac_abs_top_srcdir=$ac_pwd ;;
1394 [\\/]* | ?:[\\/]* ) # Absolute name.
1395 ac_srcdir=$srcdir$ac_dir_suffix;
1396 ac_top_srcdir=$srcdir
1397 ac_abs_top_srcdir=$srcdir ;;
1399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400 ac_top_srcdir=$ac_top_build_prefix$srcdir
1401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405 cd "$ac_dir" || { ac_status=$?; continue; }
1406 # Check for guested configure.
1407 if test -f "$ac_srcdir/configure.gnu"; then
1409 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410 elif test -f "$ac_srcdir/configure"; then
1412 $SHELL "$ac_srcdir/configure" --help=recursive
1414 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 cd "$ac_pwd" || { ac_status=$?; break; }
1420 test -n "$ac_init_help" && exit $ac_status
1421 if $ac_init_version; then
1424 generated by GNU Autoconf 2.61
1426 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1427 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1433 cat >config.log <<_ACEOF
1434 This file contains any messages produced by compilers while
1435 running configure, to aid debugging if configure makes a mistake.
1437 It was created by $as_me, which was
1438 generated by GNU Autoconf 2.61. Invocation command line was
1450 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1451 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1452 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1453 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1454 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1456 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1457 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1459 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1460 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1461 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1463 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1465 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 test -z "$as_dir" && as_dir=.
1474 echo "PATH: $as_dir"
1490 # Keep a trace of the command line.
1491 # Strip out --no-create and --no-recursion so they do not pile up.
1492 # Strip out --silent because we don't want to record it for future runs.
1493 # Also quote any args containing shell meta-characters.
1494 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_must_keep_next=false
1504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1506 | -silent | --silent | --silen | --sile | --sil)
1509 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1512 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1514 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1515 if test $ac_must_keep_next = true; then
1516 ac_must_keep_next=false # Got value, back to normal.
1519 *=* | --config-cache | -C | -disable-* | --disable-* \
1520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1522 | -with-* | --with-* | -without-* | --without-* | --x)
1523 case "$ac_configure_args0 " in
1524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 -* ) ac_must_keep_next=true ;;
1530 ac_configure_args="$ac_configure_args '$ac_arg'"
1535 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1536 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1538 # When interrupted or exit'd, cleanup temporary files, and complete
1539 # config.log. We remove comments because anyway the quotes in there
1540 # would cause problems or look ugly.
1541 # WARNING: Use '\'' to represent an apostrophe within the trap.
1542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1543 trap 'exit_status=$?
1544 # Save into config.log some information that might help in debugging.
1549 ## ---------------- ##
1550 ## Cache variables. ##
1551 ## ---------------- ##
1554 # The following way of writing the cache mishandles newlines in values,
1556 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1557 eval ac_val=\$$ac_var
1561 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1562 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 _ | IFS | as_nl) ;; #(
1566 *) $as_unset $ac_var ;;
1571 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1572 *${as_nl}ac_space=\ *)
1574 "s/'\''/'\''\\\\'\'''\''/g;
1575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1586 ## ----------------- ##
1587 ## Output variables. ##
1588 ## ----------------- ##
1591 for ac_var in $ac_subst_vars
1593 eval ac_val=\$$ac_var
1595 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 echo "$ac_var='\''$ac_val'\''"
1601 if test -n "$ac_subst_files"; then
1603 ## ------------------- ##
1604 ## File substitutions. ##
1605 ## ------------------- ##
1608 for ac_var in $ac_subst_files
1610 eval ac_val=\$$ac_var
1612 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 echo "$ac_var='\''$ac_val'\''"
1619 if test -s confdefs.h; then
1629 test "$ac_signal" != 0 &&
1630 echo "$as_me: caught signal $ac_signal"
1631 echo "$as_me: exit $exit_status"
1633 rm -f core *.core core.conftest.* &&
1634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 for ac_signal in 1 2 13 15; do
1638 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1643 rm -f -r conftest* confdefs.h
1645 # Predefined preprocessor variables.
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 cat >>confdefs.h <<_ACEOF
1653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 # Let the site file select an alternate cache file if it wants to.
1673 # Prefer explicitly selected file to automatically selected ones.
1674 if test -n "$CONFIG_SITE"; then
1675 set x "$CONFIG_SITE"
1676 elif test "x$prefix" != xNONE; then
1677 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1679 set x "$ac_default_prefix/share/config.site" \
1680 "$ac_default_prefix/etc/config.site"
1685 if test -r "$ac_site_file"; then
1686 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1687 echo "$as_me: loading site script $ac_site_file" >&6;}
1688 sed 's/^/| /' "$ac_site_file" >&5
1693 if test -r "$cache_file"; then
1694 # Some versions of bash will fail to source /dev/null (special
1695 # files actually), so we avoid doing that.
1696 if test -f "$cache_file"; then
1697 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1698 echo "$as_me: loading cache $cache_file" >&6;}
1700 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1701 *) . "./$cache_file";;
1705 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1706 echo "$as_me: creating cache $cache_file" >&6;}
1710 ac_header_list="$ac_header_list sys/time.h"
1711 ac_header_list="$ac_header_list unistd.h"
1712 ac_func_list="$ac_func_list alarm"
1713 # Check that the precious variables saved in the cache have kept the same
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1724 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1728 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1735 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1736 echo "$as_me: former value
: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1738 echo "$as_me: current value
: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1756 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1757 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1779 ac_cpp='$CPP $CPPFLAGS'
1780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788 test "$program_prefix" != NONE &&
1789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1790 # Use a double $ so make ignores it.
1791 test "$program_suffix" != NONE &&
1792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1793 # Double any \ or $. echo might interpret backslashes.
1794 # By default was `s
,x
,x
', remove it if useless.
1795 cat <<\_ACEOF >conftest.sed
1796 s/[\\$]/&&/g;s/;s,x,x,$//
1798 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802 lispdir='${datadir}/emacs
/${version}/lisp
'
1803 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1804 '${datadir}/emacs
/site-lisp
'
1805 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1806 etcdir='${datadir}/emacs
/${version}/etc
'
1807 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1808 docdir='${datadir}/emacs
/${version}/etc
'
1809 gamedir='${localstatedir}/games
/emacs
'
1814 # Check whether --with-gcc was given.
1815 if test "${with_gcc+set}" = set; then
1820 # Check whether --with-pop was given.
1821 if test "${with_pop+set}" = set; then
1822 withval=$with_pop; if test "$withval" = yes; then
1823 cat >>confdefs.h <<\_ACEOF
1824 #define MAIL_USE_POP 1
1830 cat >>confdefs.h <<\_ACEOF
1831 #define MAIL_USE_POP 1
1838 # Check whether --with-kerberos was given.
1839 if test "${with_kerberos+set}" = set; then
1840 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1848 # Check whether --with-kerberos5 was given.
1849 if test "${with_kerberos5+set}" = set; then
1850 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1851 if test "${with_kerberos+set}" != set; then
1853 cat >>confdefs.h <<\_ACEOF
1860 cat >>confdefs.h <<\_ACEOF
1867 # Check whether --with-hesiod was given.
1868 if test "${with_hesiod+set}" = set; then
1869 withval=$with_hesiod;
1870 cat >>confdefs.h <<\_ACEOF
1878 # Check whether --with-sound was given.
1879 if test "${with_sound+set}" = set; then
1880 withval=$with_sound;
1885 # Check whether --with-x-toolkit was given.
1886 if test "${with_x_toolkit+set}" = set; then
1887 withval=$with_x_toolkit; case "${withval}" in
1888 y | ye | yes ) val=athena ;;
1890 l | lu | luc | luci | lucid ) val=lucid ;;
1891 a | at | ath | athe | athen | athena ) val=athena ;;
1892 m | mo | mot | moti | motif ) val=motif ;;
1893 g | gt | gtk ) val=gtk ;;
1895 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1896 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1897 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1898 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1899 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1900 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1901 { (exit 1); exit 1; }; }
1909 # Check whether --with-xpm was given.
1910 if test "${with_xpm+set}" = set; then
1915 # Check whether --with-jpeg was given.
1916 if test "${with_jpeg+set}" = set; then
1921 # Check whether --with-tiff was given.
1922 if test "${with_tiff+set}" = set; then
1927 # Check whether --with-gif was given.
1928 if test "${with_gif+set}" = set; then
1933 # Check whether --with-png was given.
1934 if test "${with_png+set}" = set; then
1939 # Check whether --with-gtk was given.
1940 if test "${with_gtk+set}" = set; then
1945 # Check whether --with-pkg-config-prog was given.
1946 if test "${with_pkg_config_prog+set}" = set; then
1947 withval=$with_pkg_config_prog;
1951 # Check whether --with-toolkit-scroll-bars was given.
1952 if test "${with_toolkit_scroll_bars+set}" = set; then
1953 withval=$with_toolkit_scroll_bars;
1957 # Check whether --with-xim was given.
1958 if test "${with_xim+set}" = set; then
1963 # Check whether --with-carbon was given.
1964 if test "${with_carbon+set}" = set; then
1965 withval=$with_carbon;
1968 # Check whether --enable-carbon-app was given.
1969 if test "${enable_carbon_app+set}" = set; then
1970 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1974 # Check whether --enable-asserts was given.
1975 if test "${enable_asserts+set}" = set; then
1976 enableval=$enable_asserts; USE_XASSERTS=$enableval
1982 # Check whether --enable-maintainer-mode was given.
1983 if test "${enable_maintainer_mode+set}" = set; then
1984 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1986 USE_MAINTAINER_MODE=no
1989 if test $USE_MAINTAINER_MODE = yes; then
1996 # Check whether --enable-locallisppath was given.
1997 if test "${enable_locallisppath+set}" = set; then
1998 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2000 elif test "${enableval}" != "yes"; then
2001 locallisppath=${enableval}
2006 #### Make srcdir absolute, if it isn't already. It
's important to
2007 #### avoid running the path through pwd unnecessarily, since pwd can
2008 #### give you automounter prefixes, which can go away. We do all this
2009 #### so Emacs can find its files when run uninstalled.
2010 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2015 ## We may be able to use the $PWD environment variable to make this
2016 ## absolute. But sometimes PWD is inaccurate.
2017 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2018 ## but that tested only for a well-formed and valid PWD,
2019 ## it did not object when PWD was well-formed and valid but just wrong.
2020 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2024 srcdir
="`(cd ${srcdir}; pwd)`"
2027 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2030 #### Check if the source directory already has a configured system in it.
2031 if test `pwd` != `(cd ${srcdir} && pwd)` \
2032 && test -f "${srcdir}/src/config.h" ; then
2033 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2034 as a build directory right now; it has been configured in its own
2035 right. To configure in another directory as well, you MUST
2036 use GNU make. If you do not have GNU make, then you must
2037 now do \`make distclean' in ${srcdir},
2038 and then run $0 again." >&5
2039 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&2;}
2047 #### Given the configuration name, set machfile and opsysfile to the
2048 #### names of the m/*.h and s/*.h files we should use.
2050 ### Canonicalize the configuration name.
2053 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2054 if test -f "$ac_dir/install-sh"; then
2056 ac_install_sh
="$ac_aux_dir/install-sh -c"
2058 elif test -f "$ac_dir/install.sh"; then
2060 ac_install_sh
="$ac_aux_dir/install.sh -c"
2062 elif test -f "$ac_dir/shtool"; then
2064 ac_install_sh
="$ac_aux_dir/shtool install -c"
2068 if test -z "$ac_aux_dir"; then
2069 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2070 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2071 { (exit 1); exit 1; }; }
2074 # These three variables are undocumented and unsupported,
2075 # and are intended to be withdrawn in a future Autoconf release.
2076 # They can cause serious problems if a builder's source tree is in a directory
2077 # whose full name contains unusual characters.
2078 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2079 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2080 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2083 # Make sure we can run config.sub.
2084 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2085 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2086 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2087 { (exit 1); exit 1; }; }
2089 { echo "$as_me:$LINENO: checking build system type" >&5
2090 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2091 if test "${ac_cv_build+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 ac_build_alias
=$build_alias
2095 test "x$ac_build_alias" = x
&&
2096 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2097 test "x$ac_build_alias" = x
&&
2098 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2099 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2100 { (exit 1); exit 1; }; }
2101 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2103 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2104 { (exit 1); exit 1; }; }
2107 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2108 echo "${ECHO_T}$ac_cv_build" >&6; }
2109 case $ac_cv_build in
2111 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2112 echo "$as_me: error: invalid value of canonical build" >&2;}
2113 { (exit 1); exit 1; }; };;
2116 ac_save_IFS
=$IFS; IFS
='-'
2122 # Remember, the first character of IFS is used to create $*,
2123 # except with old shells:
2126 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2129 { echo "$as_me:$LINENO: checking host system type" >&5
2130 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_host+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test "x$host_alias" = x
; then
2135 ac_cv_host
=$ac_cv_build
2137 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2145 echo "${ECHO_T}$ac_cv_host" >&6; }
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2149 echo "$as_me: error: invalid value of canonical host" >&2;}
2150 { (exit 1); exit 1; }; };;
2153 ac_save_IFS
=$IFS; IFS
='-'
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2163 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2167 configuration
=${host_alias-$host}
2171 ### If you add support for a new configuration, add code to this
2172 ### switch statement to recognize your configuration name and select
2173 ### the appropriate operating system and machine description files.
2175 ### You would hope that you could choose an m/*.h file pretty much
2176 ### based on the machine portion of the configuration name, and an s-
2177 ### file based on the operating system portion. However, it turns out
2178 ### that each m/*.h file is pretty manufacturer-specific - for
2179 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2180 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2181 ### machines. So we basically have to have a special case for each
2182 ### configuration name.
2184 ### As far as handling version numbers on operating systems is
2185 ### concerned, make sure things will fail in a fixable way. If
2186 ### /etc/MACHINES doesn't say anything about version numbers, be
2187 ### prepared to handle anything reasonably. If version numbers
2188 ### matter, be sure /etc/MACHINES says something about it.
2190 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2191 ### "System V Release 4"; he writes, "The old convention encouraged
2192 ### confusion between `system' and `release' levels'."
2194 machine
='' opsys
='' unported
=no
2195 case "${canonical}" in
2200 case "${canonical}" in
2201 alpha
*-*-freebsd*) machine
=alpha
;;
2202 ia64-
*-freebsd*) machine
=ia64
;;
2203 sparc64-
*-freebsd*) machine
=sparc
;;
2204 powerpc-
*-freebsd*) machine
=macppc
;;
2205 i
[3456]86-*-freebsd*) machine
=intel386
;;
2206 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2213 if test -f /usr
/lib
/crti.o
; then
2215 cat >>confdefs.h
<<\_ACEOF
2221 case "${canonical}" in
2222 alpha
*-*-netbsd*) machine
=alpha
;;
2223 i
[3456]86-*-netbsd*) machine
=intel386
;;
2225 # This is somewhat bogus.
2226 machine
=hp9000s300
;;
2227 powerpc-apple-netbsd
*) machine
=macppc
;;
2228 mips-
*-netbsd*) machine
=pmax
;;
2229 mipsel-
*-netbsd*) machine
=pmax
;;
2230 mipseb-
*-netbsd*) machine
=pmax
;;
2231 ns32k-
*-netbsd*) machine
=ns32000
;;
2232 powerpc-
*-netbsd*) machine
=macppc
;;
2233 sparc
*-*-netbsd*) machine
=sparc
;;
2234 vax-
*-netbsd*) machine
=vax
;;
2235 arm-
*-netbsd*) machine
=arm
;;
2242 case "${canonical}" in
2243 alpha
*-*-openbsd*) machine
=alpha
;;
2244 i386-
*-openbsd*) machine
=intel386
;;
2245 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2246 m68k-
*-openbsd*) machine
=hp9000s300
;;
2247 mipsel-
*-openbsd*) machine
=pmax
;;
2248 ns32k-
*-openbsd*) machine
=ns32000
;;
2249 sparc-
*-openbsd*) machine
=sparc
;;
2250 vax-
*-openbsd*) machine
=vax
;;
2257 case "${canonical}" in
2258 i
[3456]86-*-lynxos*) machine
=intel386
;;
2259 powerpc-
*-lynxos*) machine
=powerpc
;;
2264 arm-acorn-riscix1.1
* )
2265 machine
=acorn opsys
=riscix1-1
2267 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2268 ## This name is riscix12 instead of riscix1.2
2269 ## to avoid a file name conflict on MSDOS.
2270 machine
=acorn opsys
=riscix12
2276 case "${canonical}" in
2277 i
[345]86-*-bsdi*) machine
=intel386
;;
2278 sparc-
*-bsdi*) machine
=sparc
;;
2279 powerpc-
*-bsdi*) machine
=macppc
;;
2281 case "${canonical}" in
2282 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2283 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2284 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2285 *-*-bsdi3* ) opsys
=bsdos3
;;
2286 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2291 ## Strictly speaking, we need the version of the alliant operating
2292 ## system to choose the right machine file, but currently the
2293 ## configuration name doesn't tell us enough to choose the right
2294 ## one; we need to give alliants their own operating system name to
2295 ## do this right. When someone cares, they can help us.
2297 machine
=alliant4 opsys
=bsd4-2
2300 machine
=alliant-2800 opsys
=bsd4-3
2303 ## Alpha (DEC) machines.
2305 machine
=alpha opsys
=osf1
2306 # This is needed to find X11R6.1 libraries for certain tests.
2307 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2308 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2309 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2310 # due to non-traditional preprocessing with the current compiler
2311 # defaults. OSF 4 can also have that compiler version, and there
2312 # seems always to have been a usable /usr/bin/cpp.
2313 NON_GNU_CPP
=/usr
/bin
/cpp
2314 case "${canonical}" in
2315 alpha
*-dec-osf[5-9]*)
2320 alpha
*-*-linux-gnu* )
2321 machine
=alpha opsys
=gnu-linux
2325 machine
=arm opsys
=gnu-linux
2330 machine
=altos opsys
=usg5-2
2335 machine
=amdahl opsys
=usg5-2-2
2338 ## Apollo, Domain/OS
2340 machine
=apollo opsys
=bsd4-3
2343 ## AT&T 3b2, 3b5, 3b15, 3b20
2345 machine
=att3b opsys
=usg5-2-2
2348 ## AT&T 3b1 - The Mighty Unix PC!
2350 machine
=7300 opsys
=usg5-2-2
2355 machine
=ibmrs6000 opsys
=aix3-2
2360 machine
=dpx2 opsys
=usg5-3
2365 machine
=sps7 opsys
=usg5-2
2368 ## CCI 5/32, 6/32 -- see "Tahoe".
2371 ## I don't know what configuration name to use for this; config.sub
2372 ## doesn't seem to know anything about it. Hey, Celerity users, get
2373 ## in touch with us!
2374 celerity-celerity-bsd
* )
2375 machine
=celerity opsys
=bsd4-2
2379 ## What operating systems does this chip run that Emacs has been
2383 ## We'll use the catch-all code at the bottom to guess the
2384 ## operating system.
2388 mips-compaq-nonstopux
* )
2389 machine
=nonstopux opsys
=nonstopux
2393 *-convex-bsd* |
*-convex-convexos* )
2394 machine
=convex opsys
=bsd4-3
2395 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2396 NON_GNU_CPP
="cc -E -P"
2400 i
[3456]86-cubix-sysv* )
2401 machine
=intel386 opsys
=usg5-3
2405 cydra
*-cydrome-sysv* )
2406 machine
=cydra5 opsys
=usg5-3
2409 ## Data General AViiON Machines
2410 ## DG changed naming conventions with the release of 5.4.4.10, they
2411 ## dropped the initial 5.4 but left the intervening R. Because of the
2412 ## R this shouldn't conflict with older versions of the OS (which I
2413 ## think were named like dgux4.*). In addition, DG new AViiONs series
2414 ## uses either Motorola M88k or Intel Pentium CPUs.
2415 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2416 machine
=aviion opsys
=dgux4
2418 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2419 ## This name is dgux5-4-3 instead of dgux5-4r3
2420 ## to avoid a file name conflict on MSDOS.
2421 machine
=aviion opsys
=dgux5-4-3
2423 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2424 machine
=aviion opsys
=dgux5-4r2
2427 machine
=aviion opsys
=dgux
2430 ## Data General AViiON Intel (x86) Machines
2431 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2432 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2433 i
[345]86-dg-dguxR4* )
2434 machine
=aviion-intel opsys
=dgux4
2438 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2439 machine
=pmax opsys
=bsd4-2
2441 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2442 machine
=pmax opsys
=bsd4-3
2445 machine
=pmax opsys
=ultrix4-3
2448 machine
=pmax opsys
=osf1
2450 mips-dec-mach_bsd4.3
* )
2451 machine
=pmax opsys
=mach-bsd4-3
2454 ## Motorola Delta machines
2455 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2456 machine
=delta opsys
=usg5-3
2457 if test -z "`type gnucc | grep 'not found'`"
2459 if test -s /etc
/167config
2460 then CC
="gnucc -m68040"
2461 else CC
="gnucc -m68881"
2464 if test -z "`type gcc | grep 'not found'`"
2470 m88k-motorola-sysv4
* )
2471 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2472 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2473 # I hope there are not other 4.0 versions for this machine
2474 # which really need usg5-4 instead.
2475 machine
=delta88k opsys
=usg5-4-2
2477 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2478 machine
=delta88k opsys
=usg5-3
2483 machine
=dual opsys
=usg5-2
2485 m68
*-dual-uniplus* )
2486 machine
=dual opsys
=unipl5-2
2491 machine
=elxsi opsys
=usg5-2
2496 machine
=ns16000 opsys
=umax
2499 ## The GEC 63 - apparently, this port isn't really finished yet.
2500 # I'm sure we finished off the last of the machines, though. -- fx
2502 ## Gould Power Node and NP1
2504 machine
=gould opsys
=bsd4-2
2507 machine
=gould opsys
=bsd4-3
2510 machine
=gould-np1 opsys
=bsd4-3
2513 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2514 ## as far as Emacs is concerned).
2516 # Build needs to be different on 7.0 and later releases
2517 case "`uname -r`" in
2518 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2519 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2521 NON_GNU_CPP
="/lib/cpp"
2523 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2525 machine
=nh3000 opsys
=cxux
2527 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2528 powerpc-harris-powerunix
)
2529 machine
=nh6000 opsys
=powerunix
2530 NON_GNU_CPP
="cc -Xo -E -P"
2532 ## SR2001/SR2201 running HI-UX/MPP
2533 hppa1.1
-hitachi-hiuxmpp* )
2534 machine
=sr2k opsys
=hiuxmpp
2536 hppa1.1
-hitachi-hiuxwe2* )
2537 machine
=sr2k opsys
=hiuxwe2
2540 xps
*-honeywell-sysv* )
2541 machine
=xps100 opsys
=usg5-2
2544 ## HP 9000 series 200 or 300
2546 machine
=hp9000s300 opsys
=bsd4-3
2548 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2550 case "`uname -r`" in
2551 ## Someone's system reports A.B8.05 for this.
2552 ## I wonder what other possibilities there are.
2553 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2554 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2555 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2556 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2557 *) machine
=hp9000s300 opsys
=hpux
;;
2561 ## HP 9000 series 700 and 800, running HP/UX
2563 machine
=hp800 opsys
=hpux
2566 machine
=hp800 opsys
=hpux8
2568 hppa
*-hp-hpux9shr* )
2569 machine
=hp800 opsys
=hpux9shr
2572 machine
=hp800 opsys
=hpux9
2574 hppa
*-hp-hpux10.2
* )
2575 machine
=hp800 opsys
=hpux10-20
2578 machine
=hp800 opsys
=hpux10
2580 hppa
*-hp-hpux1[1-9]* )
2581 machine
=hp800 opsys
=hpux11
2582 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2585 hppa
*-*-linux-gnu* )
2586 machine
=hp800 opsys
=gnu-linux
2589 ## HP 9000 series 700 and 800, running HP/UX
2591 ## Cross-compilation? Nah!
2592 case "`uname -r`" in
2593 ## Someone's system reports A.B8.05 for this.
2594 ## I wonder what other possibilities there are.
2595 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2596 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2597 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2598 *) machine
=hp800 opsys
=hpux10
;;
2602 machine
=hp800 opsys
=nextstep
2607 machine
=orion opsys
=bsd4-2
2609 clipper-orion-bsd
* )
2610 machine
=orion105 opsys
=bsd4-2
2614 i
[3456]86-ibm-aix1.1
* )
2615 machine
=ibmps2-aix opsys
=usg5-2-2
2617 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2618 machine
=ibmps2-aix opsys
=usg5-3
2621 machine
=ibm370aix opsys
=usg5-3
2624 machine
=ibms390 opsys
=gnu-linux
2626 s390x-
*-linux-gnu* )
2627 machine
=ibms390x opsys
=gnu-linux
2629 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2630 machine
=ibmrs6000 opsys
=aix3-1
2632 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2633 machine
=ibmrs6000 opsys
=aix3-2-5
2635 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2636 machine
=ibmrs6000 opsys
=aix4-1
2638 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2639 machine
=ibmrs6000 opsys
=aix4-2
2641 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2642 machine
=ibmrs6000 opsys
=aix4-2
2644 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2645 machine
=ibmrs6000 opsys
=aix4
2647 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2648 machine
=ibmrs6000 opsys
=aix4-1
2650 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2651 machine
=ibmrs6000 opsys
=aix3-2
2654 machine
=ibmrt opsys
=bsd4-3
2657 machine
=ibmrt opsys
=bsd4-2
2660 machine
=ibmrt opsys
=bsd4-3
2663 machine
=ibmrt opsys
=bsd4-2
2666 machine
=ibmrt opsys
=bsd4-3
2669 machine
=ibmrt opsys
=bsd4-3
2672 machine
=ibmrt-aix opsys
=usg5-2-2
2675 ## Integrated Solutions `Optimum V'
2677 machine
=isi-ov opsys
=bsd4-2
2680 machine
=isi-ov opsys
=bsd4-3
2683 ## Intel 386 machines where we do care about the manufacturer
2684 i
[3456]86-intsys-sysv* )
2685 machine
=is386 opsys
=usg5-2-2
2689 i
[3456]86-prime-sysv* )
2690 machine
=i386 opsys
=usg5-3
2693 ## Sequent Symmetry running Dynix
2694 i
[3456]86-sequent-bsd* )
2695 machine
=symmetry opsys
=bsd4-3
2698 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2699 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2700 machine
=sequent-ptx opsys
=ptx4
2701 NON_GNU_CPP
=/lib
/cpp
2704 ## Sequent Symmetry running DYNIX/ptx
2705 ## Use the old cpp rather than the newer ANSI one.
2706 i
[3456]86-sequent-ptx* )
2707 machine
=sequent-ptx opsys
=ptx
2708 NON_GNU_CPP
="/lib/cpp"
2711 ## ncr machine running svr4.3.
2712 i
[3456]86-ncr-sysv4.3
)
2713 machine
=ncr386 opsys
=usg5-4-3
2716 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2717 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2718 i
[3456]86-ncr-sysv* )
2719 machine
=ncr386 opsys
=usg5-4-2
2722 ## Intel Paragon OSF/1
2724 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2729 machine
=i860 opsys
=usg5-4
2730 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2731 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2734 ## Macintosh PowerPC
2735 powerpc
*-*-linux-gnu* )
2736 machine
=macppc opsys
=gnu-linux
2739 ## Masscomp machines
2740 m68
*-masscomp-rtu* )
2741 machine
=masscomp opsys
=rtu
2744 ## Megatest machines
2745 m68
*-megatest-bsd* )
2746 machine
=mega68 opsys
=bsd4-2
2749 ## Workstations sold by MIPS
2750 ## This is not necessarily all workstations using the MIPS processor -
2751 ## Irises are produced by SGI, and DECstations by DEC.
2753 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2754 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2755 ## it gives for choosing between the alternatives seems to be "Use
2756 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2757 ## the BSD world." I'll assume that these are instructions for
2758 ## handling two odd situations, and that every other situation
2759 ## should use mips.h and usg5-2-2, they being listed first.
2762 ## Fall through to the general code at the bottom to decide on the OS.
2764 mips-mips-riscos4
* )
2765 machine
=mips4 opsys
=bsd4-3
2766 NON_GNU_CC
="cc -systype bsd43"
2767 NON_GNU_CPP
="cc -systype bsd43 -E"
2769 mips-mips-riscos5
* )
2770 machine
=mips4 opsys
=riscos5
2771 NON_GNU_CC
="cc -systype bsd43"
2772 NON_GNU_CPP
="cc -systype bsd43 -E"
2775 machine
=mips opsys
=bsd4-3
2778 machine
=mips opsys
=usg5-2-2
2782 m68
*-next-* | m68k-
*-nextstep* )
2783 machine
=m68k opsys
=nextstep
2786 ## The complete machine from National Semiconductor
2788 machine
=ns32000 opsys
=usg5-2
2792 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2793 machine
=tower32 opsys
=usg5-2-2
2795 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2796 machine
=tower32v3 opsys
=usg5-3
2801 machine
=ews4800 opsys
=ux4800
2804 ## Nixdorf Targon 31
2805 m68
*-nixdorf-sysv* )
2806 machine
=targon31 opsys
=usg5-2-2
2811 machine
=nu opsys
=usg5-2
2816 machine
=plexus opsys
=usg5-2
2820 ## I don't really have any idea what sort of processor the Pyramid has,
2821 ## so I'm assuming it is its own architecture.
2822 pyramid-pyramid-bsd
* )
2823 machine
=pyramid opsys
=bsd4-2
2827 ns32k-sequent-bsd4.2
* )
2828 machine
=sequent opsys
=bsd4-2
2830 ns32k-sequent-bsd4.3
* )
2831 machine
=sequent opsys
=bsd4-3
2835 mips-siemens-sysv
* | mips-sni-sysv
*)
2836 machine
=mips-siemens opsys
=usg5-4
2837 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2838 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2841 ## Silicon Graphics machines
2842 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2844 machine
=irist opsys
=iris3-5
2846 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2847 machine
=irist opsys
=iris3-6
2851 machine
=iris4d opsys
=irix3-3
2854 machine
=iris4d opsys
=irix4-0
2857 machine
=iris4d opsys
=irix6-5
2858 # Without defining _LANGUAGE_C, things get masked out in the headers
2859 # so that, for instance, grepping for `free' in stdlib.h fails and
2860 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2861 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2862 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2865 machine
=iris4d opsys
=irix6-0
2866 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2867 # but presumably it does no harm.
2868 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2869 # -32 probably isn't necessary in later v.6s -- anyone know which?
2870 NON_GCC_TEST_OPTIONS
=-32
2872 mips-sgi-irix5.
[01]* )
2873 machine
=iris4d opsys
=irix5-0
2875 mips-sgi-irix5
* | mips-sgi-irix
* )
2876 machine
=iris4d opsys
=irix5-2
2881 machine
=news opsys
=bsd4-2
2884 machine
=news opsys
=bsd4-3
2886 m68
*-sony-newsos3* | m68
*-sony-news3*)
2887 machine
=news opsys
=bsd4-3
2889 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2890 machine
=news-risc opsys
=bsd4-3
2892 mips-sony-newsos6
* )
2893 machine
=news-r6 opsys
=newsos6
2896 machine
=news-risc opsys
=newsos5
2901 machine
=stride opsys
=usg5-2
2905 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2906 machine
=sparc opsys
=gnu-linux
2909 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2910 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2911 | rs6000-
*-solaris2*)
2912 case "${canonical}" in
2913 m68
*-sunos1* ) machine
=sun1
;;
2914 m68
*-sunos2* ) machine
=sun2
;;
2915 m68
* ) machine
=sun3
;;
2916 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2917 i
[3456]86-*-* ) machine
=intel386
;;
2918 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2919 powerpcle
* ) machine
=powerpcle
;;
2920 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2921 sparc
* ) machine
=sparc
;;
2924 case "${canonical}" in
2925 ## The Sun386 didn't get past 4.0.
2926 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2927 *-sunos4.0
* ) opsys
=sunos4-0
;;
2928 *-sunos4.1.
[3-9]*noshare
)
2929 ## This name is sunos413 instead of sunos4-1-3
2930 ## to avoid a file name conflict on MSDOS.
2932 NON_GNU_CPP
=/usr
/lib
/cpp
2933 NON_GCC_TEST_OPTIONS
=-Bstatic
2934 GCC_TEST_OPTIONS
=-static
2936 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2938 NON_GNU_CPP
=/usr
/lib
/cpp
2940 *-sunos4* |
*-sunos )
2942 NON_GCC_TEST_OPTIONS
=-Bstatic
2943 GCC_TEST_OPTIONS
=-static
2945 *-sunos5.3
* |
*-solaris2.3
* )
2947 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2949 *-sunos5.4
* |
*-solaris2.4
* )
2951 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2954 *-sunos5.5
* |
*-solaris2.5
* )
2956 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2959 *-sunos5.6
* |
*-solaris2.6
* )
2961 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2964 *-sunos5* |
*-solaris* )
2966 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2970 ## Watch out for a compiler that we know will not work.
2971 case "${canonical}" in
2972 *-solaris* |
*-sunos5* )
2973 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2974 ## /usr/ucb/cc doesn't work;
2975 ## we should find some other compiler that does work.
2983 machine
=sparc opsys
=nextstep
2987 m68
*-tadpole-sysv* )
2988 machine
=tad68k opsys
=usg5-3
2992 tahoe-tahoe-bsd4.2
* )
2993 machine
=tahoe opsys
=bsd4-2
2995 tahoe-tahoe-bsd4.3
* )
2996 machine
=tahoe opsys
=bsd4-3
2999 ## Tandem Integrity S2
3001 machine
=tandem-s2 opsys
=usg5-3
3005 m88k-tektronix-sysv3
* )
3006 machine
=tekxd88 opsys
=usg5-3
3009 ## Tektronix 16000 box (6130?)
3010 ns16k-tektronix-bsd
* )
3011 machine
=ns16000 opsys
=bsd4-2
3014 ## src/m/tek4300.h hints that this is a m68k machine.
3015 m68
*-tektronix-bsd* )
3016 machine
=tek4300 opsys
=bsd4-3
3020 ## We seem to have lost the machine-description file titan.h!
3022 machine
=titan opsys
=usg5-3
3025 ## Ustation E30 (SS5E)
3026 m68
*-unisys-uniplus* )
3027 machine
=ustation opsystem
=unipl5-2
3033 case "${canonical}" in
3034 *-bsd4.1
* ) opsys
=bsd4-1
;;
3035 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3036 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3037 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3038 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3039 *-vms* ) opsys
=vms
;;
3045 ns16k-whitechapel-
* )
3047 ## We don't know what sort of OS runs on these; we'll let the
3048 ## operating system guessing code below try.
3053 machine
=wicat opsys
=usg5-2
3058 machine
=ia64 opsys
=gnu-linux
3061 ## Intel 386 machines where we don't care about the manufacturer
3064 case "${canonical}" in
3065 *-cygwin ) opsys
=cygwin
;;
3066 *-darwin* ) opsys
=darwin
3067 CPP
="${CC-cc} -E -no-cpp-precomp"
3069 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3070 *-isc2.2
* ) opsys
=isc2-2
;;
3071 *-isc4.0
* ) opsys
=isc4-0
;;
3072 *-isc4.
* ) opsys
=isc4-1
3073 GCC_TEST_OPTIONS
=-posix
3074 NON_GCC_TEST_OPTIONS
=-Xp
3076 *-isc* ) opsys
=isc3-0
;;
3077 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3078 *-esix* ) opsys
=esix
;;
3079 *-xenix* ) opsys
=xenix
;;
3080 *-linux-gnu* ) opsys
=gnu-linux
;;
3081 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3082 *-sco3.2v5
* ) opsys
=sco5
3083 NON_GNU_CPP
=/lib
/cpp
3084 # Prevent -belf from being passed to $CPP.
3085 # /lib/cpp does not accept it.
3086 OVERRIDE_CPPFLAGS
=" "
3088 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3089 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3090 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3091 *-386bsd* ) opsys
=386bsd
;;
3092 *-nextstep* ) opsys
=nextstep
;;
3093 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3097 ## m68k Linux-based GNU system
3099 machine
=m68k opsys
=gnu-linux
3102 ## Mips Linux-based GNU system
3103 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3104 machine
=mips opsys
=gnu-linux
3108 sparc-fujitsu-sysv4
* )
3109 machine
=sparc opsys
=uxpds
3110 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3115 f301-fujitsu-uxpv4.1
)
3116 machine
=f301 opsys
=uxpv
3119 ## Darwin / Mac OS X
3120 powerpc-apple-darwin
* )
3121 machine
=powermac opsys
=darwin
3122 # Define CPP as follows to make autoconf work correctly.
3123 CPP
="${CC-cc} -E -no-cpp-precomp"
3124 # Use fink packages if available.
3125 if test -d /sw
/include
&& test -d /sw
/lib
; then
3126 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3127 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3128 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3132 ## AMD x86-64 Linux-based GNU system
3133 x86_64-
*-linux-gnu* )
3134 machine
=amdx86-64 opsys
=gnu-linux
3142 ### If the code above didn't choose an operating system, just choose
3143 ### an operating system based on the configuration name. You really
3144 ### only want to use this when you have no idea what the right
3145 ### operating system is; if you know what operating systems a machine
3146 ### runs, it's cleaner to make it explicit in the case statement
3148 if test x
"${opsys}" = x
; then
3149 case "${canonical}" in
3150 *-gnu* ) opsys
=gnu
;;
3151 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3152 *-bsd4.2
) opsys
=bsd4-2
;;
3153 *-bsd4.3
) opsys
=bsd4-3
;;
3154 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3155 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3156 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3157 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3158 *-sysv4.2uw
* ) opsys
=unixware
;;
3159 *-sysv5uw* ) opsys
=unixware
;;
3160 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3161 *-sysv4.1
* |
*-sysvr4.1
* )
3162 NON_GNU_CPP
=/usr
/lib
/cpp
3164 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3165 if [ x
$NON_GNU_CPP = x
]; then
3166 if [ -f /usr
/ccs
/lib
/cpp
]; then
3167 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3169 NON_GNU_CPP
=/lib
/cpp
3173 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3182 if test $unported = yes; then
3183 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3184 Check \`etc/MACHINES' for recognized configuration names." >&5
3185 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3186 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3187 { (exit 1); exit 1; }; }
3190 machfile
="m/${machine}.h"
3191 opsysfile
="s/${opsys}.h"
3194 #### Choose a compiler.
3195 test -n "$CC" && cc_specified
=yes
3197 # Save the value of CFLAGS that the user specified.
3198 SPECIFIED_CFLAGS
="$CFLAGS"
3201 "yes" ) CC
="gcc" GCC
=yes ;;
3202 "no" ) : ${CC=cc} ;;
3206 ac_cpp
='$CPP $CPPFLAGS'
3207 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3212 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3215 if test "${ac_cv_prog_CC+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC
="$CC" # Let the user override the test.
3221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir
=.
3226 for ac_exec_ext
in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 if test -n "$CC"; then
3240 { echo "$as_me:$LINENO: result: $CC" >&5
3241 echo "${ECHO_T}$CC" >&6; }
3243 { echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6; }
3249 if test -z "$ac_cv_prog_CC"; then
3251 # Extract the first word of "gcc", so it can be a program name with args.
3252 set dummy gcc
; ac_word
=$2
3253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 if test -n "$ac_ct_CC"; then
3259 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir
=.
3266 for ac_exec_ext
in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_ac_ct_CC
="gcc"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3279 if test -n "$ac_ct_CC"; then
3280 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3281 echo "${ECHO_T}$ac_ct_CC" >&6; }
3283 { echo "$as_me:$LINENO: result: no" >&5
3284 echo "${ECHO_T}no" >&6; }
3287 if test "x$ac_ct_CC" = x
; then
3290 case $cross_compiling:$ac_tool_warned in
3292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3293 whose name does not start with the host triplet. If you think this
3294 configuration is useful to you, please write to autoconf@gnu.org." >&5
3295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3296 whose name does not start with the host triplet. If you think this
3297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3298 ac_tool_warned
=yes ;;
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3309 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_CC+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC
="$CC" # Let the user override the test.
3318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3322 test -z "$as_dir" && as_dir
=.
3323 for ac_exec_ext
in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 if test -n "$CC"; then
3337 { echo "$as_me:$LINENO: result: $CC" >&5
3338 echo "${ECHO_T}$CC" >&6; }
3340 { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3347 if test -z "$CC"; then
3348 # Extract the first word of "cc", so it can be a program name with args.
3349 set dummy cc
; ac_word
=$2
3350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC
="$CC" # Let the user override the test.
3359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir
=.
3364 for ac_exec_ext
in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3367 ac_prog_rejected
=yes
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test $ac_prog_rejected = yes; then
3379 # We found a bogon in the path, so make sure we never use it.
3380 set dummy
$ac_cv_prog_CC
3382 if test $# != 0; then
3383 # We chose a different compiler from the bogus one.
3384 # However, it has the same basename, so the bogon will be chosen
3385 # first if we set CC to just the basename; use the full file name.
3387 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3393 if test -n "$CC"; then
3394 { echo "$as_me:$LINENO: result: $CC" >&5
3395 echo "${ECHO_T}$CC" >&6; }
3397 { echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6; }
3403 if test -z "$CC"; then
3404 if test -n "$ac_tool_prefix"; then
3405 for ac_prog
in cl.exe
3407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3408 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_prog_CC+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC
="$CC" # Let the user override the test.
3417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir
=.
3422 for ac_exec_ext
in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 if test -n "$CC"; then
3436 { echo "$as_me:$LINENO: result: $CC" >&5
3437 echo "${ECHO_T}$CC" >&6; }
3439 { echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6; }
3444 test -n "$CC" && break
3447 if test -z "$CC"; then
3449 for ac_prog
in cl.exe
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy
$ac_prog; ac_word
=$2
3453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if test -n "$ac_ct_CC"; then
3459 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir
=.
3466 for ac_exec_ext
in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_ac_ct_CC
="$ac_prog"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3479 if test -n "$ac_ct_CC"; then
3480 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3481 echo "${ECHO_T}$ac_ct_CC" >&6; }
3483 { echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6; }
3488 test -n "$ac_ct_CC" && break
3491 if test "x$ac_ct_CC" = x
; then
3494 case $cross_compiling:$ac_tool_warned in
3496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3497 whose name does not start with the host triplet. If you think this
3498 configuration is useful to you, please write to autoconf@gnu.org." >&5
3499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3500 whose name does not start with the host triplet. If you think this
3501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3502 ac_tool_warned
=yes ;;
3511 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3512 See \`config.log' for more details." >&5
3513 echo "$as_me: error: no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3517 # Provide some information about the compiler.
3518 echo "$as_me:$LINENO: checking for C compiler version" >&5
3519 ac_compiler
=`set X $ac_compile; echo $2`
3520 { (ac_try
="$ac_compiler --version >&5"
3522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_compiler --version >&5") 2>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }
3530 { (ac_try="$ac_compiler -v >&5"
3532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3533 *) ac_try_echo
=$ac_try;;
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_compiler -v >&5") 2>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }
3540 { (ac_try
="$ac_compiler -V >&5"
3542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_compiler -V >&5") 2>&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 ac_clean_files_save=$ac_clean_files
3567 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3568 # Try to create an executable without -o first, disregard a.out.
3569 # It will help us diagnose broken compilers, and finding out an intuition
3571 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3572 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3573 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3575 # List of possible output files, starting from the most likely.
3576 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3577 # only as a last resort. b.out is created by i960 compilers.
3578 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3580 # The IRIX 6 linker writes into existing files which may not be
3581 # executable, retaining their permissions. Remove them first so a
3582 # subsequent execution test works.
3584 for ac_file in $ac_files
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3588 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3593 if { (ac_try="$ac_link_default"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_link_default") 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
3603 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3604 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3605 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3606 # so that the user can short-circuit this test for compilers unknown to
3608 for ac_file
in $ac_files ''
3610 test -f "$ac_file" ||
continue
3612 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3615 # We found the default executable, but exeext='' is most
3619 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3621 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623 # We set ac_cv_exeext here because the later test for it is not
3624 # safe: cross compilers may not add the suffix if given an `-o'
3625 # argument, so we may need to know it at that point already.
3626 # Even if this section looks crufty: it has the advantage of
3633 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3639 { echo "$as_me:$LINENO: result: $ac_file" >&5
3640 echo "${ECHO_T}$ac_file" >&6; }
3641 if test -z "$ac_file"; then
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3645 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3646 See \`config.log' for more details." >&5
3647 echo "$as_me: error: C compiler cannot create executables
3648 See \`config.log' for more details." >&2;}
3649 { (exit 77); exit 77; }; }
3652 ac_exeext
=$ac_cv_exeext
3654 # Check that the compiler produces executables we can run. If not, either
3655 # the compiler is broken, or we cross compile.
3656 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3657 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3658 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3659 # If not cross compiling, check that we can run a simple program.
3660 if test "$cross_compiling" != yes; then
3661 if { ac_try
='./$ac_file'
3662 { (case "(($ac_try" in
3663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_try") 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3673 if test "$cross_compiling" = maybe; then
3676 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3677 If you meant to cross compile, use \`--host'.
3678 See \`config.log' for more details.
" >&5
3679 echo "$as_me: error
: cannot run C compiled programs.
3680 If you meant to cross compile
, use \
`--host'.
3681 See \`config.log
' for more details." >&2;}
3682 { (exit 1); exit 1; }; }
3686 { echo "$as_me:$LINENO: result: yes" >&5
3687 echo "${ECHO_T}yes" >&6; }
3689 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3690 ac_clean_files=$ac_clean_files_save
3691 # Check that the compiler produces executables we can run. If not, either
3692 # the compiler is broken, or we cross compile.
3693 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3694 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3695 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3696 echo "${ECHO_T}$cross_compiling" >&6; }
3698 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3699 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3700 if { (ac_try="$ac_link"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_link") 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; then
3710 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3711 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3712 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3714 for ac_file
in conftest.exe conftest conftest.
*; do
3715 test -f "$ac_file" ||
continue
3717 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3718 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3724 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3725 See \`config.log' for more details." >&5
3726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3727 See \`config.log' for more details." >&2;}
3728 { (exit 1); exit 1; }; }
3731 rm -f conftest
$ac_cv_exeext
3732 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3733 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3735 rm -f conftest.
$ac_ext
3736 EXEEXT
=$ac_cv_exeext
3738 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3740 if test "${ac_cv_objext+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 cat >conftest.
$ac_ext <<_ACEOF
3746 cat confdefs.h
>>conftest.
$ac_ext
3747 cat >>conftest.
$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3758 rm -f conftest.o conftest.obj
3759 if { (ac_try
="$ac_compile"
3761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_compile") 2>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; then
3769 for ac_file in conftest.o conftest.obj conftest.*; do
3770 test -f "$ac_file" || continue;
3772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3773 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3782 See \`config.log
' for more details." >&5
3783 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3784 See \`config.log' for more details.
" >&2;}
3785 { (exit 1); exit 1; }; }
3788 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3790 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3791 echo "${ECHO_T}$ac_cv_objext" >&6; }
3792 OBJEXT=$ac_cv_objext
3794 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3795 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3796 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3797 echo $ECHO_N "(cached
) $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3836 echo "$as_me: failed program was
:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3846 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3847 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3848 GCC=`test $ac_compiler_gnu = yes && echo yes`
3849 ac_test_CFLAGS=${CFLAGS+set}
3850 ac_save_CFLAGS=$CFLAGS
3851 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3852 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3853 if test "${ac_cv_prog_cc_g+set}" = set; then
3854 echo $ECHO_N "(cached
) $ECHO_C" >&6
3856 ac_save_c_werror_flag=$ac_c_werror_flag
3857 ac_c_werror_flag=yes
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3888 (exit $ac_status); } && {
3889 test -z "$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 } && test -s conftest.$ac_objext; then
3894 echo "$as_me: failed program was
:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3932 echo "$as_me: failed program was
:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 ac_c_werror_flag=$ac_save_c_werror_flag
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3971 echo "$as_me: failed program was
:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 ac_c_werror_flag=$ac_save_c_werror_flag
3986 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3987 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3988 if test "$ac_test_CFLAGS" = set; then
3989 CFLAGS=$ac_save_CFLAGS
3990 elif test $ac_cv_prog_cc_g = yes; then
3991 if test "$GCC" = yes; then
3997 if test "$GCC" = yes; then
4003 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4004 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4005 if test "${ac_cv_prog_cc_c89+set}" = set; then
4006 echo $ECHO_N "(cached
) $ECHO_C" >&6
4008 ac_cv_prog_cc_c89=no
4010 cat >conftest.$ac_ext <<_ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4018 #include <sys/types.h>
4019 #include <sys/stat.h>
4020 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4021 struct buf { int x; };
4022 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4023 static char *e (p, i)
4029 static char *f (char * (*g) (char **, int), char **p, ...)
4034 s = g (p, va_arg (v,int));
4039 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4040 function prototypes and stuff, but not '\xHH' hex character constants.
4041 These don't provoke an error unfortunately, instead are silently treated
4042 as 'x'. The following induces an error, until -std is added to get
4043 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4044 array size at least. It's necessary to write '\x00'==0 to get something
4045 that's true only with -std. */
4046 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4048 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4049 inside strings and character constants. */
4051 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4053 int test (int i, double x);
4054 struct s1 {int (*f) (int a);};
4055 struct s2 {int (*f) (double a);};
4056 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4062 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4067 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4068 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4070 CC="$ac_save_CC $ac_arg"
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4084 (exit $ac_status); } && {
4085 test -z "$ac_c_werror_flag" ||
4086 test ! -s conftest.err
4087 } && test -s conftest.$ac_objext; then
4088 ac_cv_prog_cc_c89=$ac_arg
4090 echo "$as_me: failed program was
:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4096 rm -f core conftest.err conftest.$ac_objext
4097 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4099 rm -f conftest.$ac_ext
4104 case "x
$ac_cv_prog_cc_c89" in
4106 { echo "$as_me:$LINENO: result
: none needed
" >&5
4107 echo "${ECHO_T}none needed
" >&6; } ;;
4109 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4110 echo "${ECHO_T}unsupported
" >&6; } ;;
4112 CC="$CC $ac_cv_prog_cc_c89"
4113 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4114 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 # On Suns, sometimes $CPP names a directory.
4126 if test -n "$CPP" && test -d "$CPP"; then
4130 #### Some systems specify a CPP to use unless we are using GCC.
4131 #### Now that we know whether we are using GCC, we can decide whether
4132 #### to use that one.
4133 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4138 #### Some systems specify a CC to use unless we are using GCC.
4139 #### Now that we know whether we are using GCC, we can decide whether
4140 #### to use that one.
4141 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4142 test x$cc_specified != xyes
4147 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4149 CC="$CC $GCC_TEST_OPTIONS"
4152 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4154 CC="$CC $NON_GCC_TEST_OPTIONS"
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4164 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4165 # On Suns, sometimes $CPP names a directory.
4166 if test -n "$CPP" && test -d "$CPP"; then
4169 if test -z "$CPP"; then
4170 if test "${ac_cv_prog_CPP+set}" = set; then
4171 echo $ECHO_N "(cached
) $ECHO_C" >&6
4173 # Double quotes because CPP needs to be expanded
4174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4177 for ac_c_preproc_warn_flag in '' yes
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error
" is here to catch this case.
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4192 # include <limits.h>
4194 # include <assert.h>
4198 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4210 (exit $ac_status); } >/dev/null && {
4211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4216 echo "$as_me: failed program was
:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 # Broken: fails on valid input.
4223 rm -f conftest.err conftest.$ac_ext
4225 # OK, works on sane cases. Now check whether nonexistent headers
4226 # can be detected and how.
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 #include <ac_nonexistent.h>
4235 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4243 grep -v '^ *+' conftest.er1 >conftest.err
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4247 (exit $ac_status); } >/dev/null && {
4248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4249 test ! -s conftest.err
4251 # Broken: success on invalid input.
4254 echo "$as_me: failed program was
:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 # Passes both tests.
4262 rm -f conftest.err conftest.$ac_ext
4265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4266 rm -f conftest.err conftest.$ac_ext
4267 if $ac_preproc_ok; then
4279 { echo "$as_me:$LINENO: result
: $CPP" >&5
4280 echo "${ECHO_T}$CPP" >&6; }
4282 for ac_c_preproc_warn_flag in '' yes
4284 # Use a header file that comes with gcc, so configuring glibc
4285 # with a fresh cross-compiler works.
4286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 # <limits.h> exists even on freestanding compilers.
4288 # On the NeXT, cc -E runs the code through the compiler's parser,
4289 # not just through cpp. "Syntax error
" is here to catch this case.
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4297 # include <limits.h>
4299 # include <assert.h>
4303 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4311 grep -v '^ *+' conftest.er1 >conftest.err
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4315 (exit $ac_status); } >/dev/null && {
4316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4321 echo "$as_me: failed program was
:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 # Broken: fails on valid input.
4328 rm -f conftest.err conftest.$ac_ext
4330 # OK, works on sane cases. Now check whether nonexistent headers
4331 # can be detected and how.
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <ac_nonexistent.h>
4340 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4352 (exit $ac_status); } >/dev/null && {
4353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4356 # Broken: success on invalid input.
4359 echo "$as_me: failed program was
:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 # Passes both tests.
4367 rm -f conftest.err conftest.$ac_ext
4370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4371 rm -f conftest.err conftest.$ac_ext
4372 if $ac_preproc_ok; then
4375 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4376 See \
`config.log' for more details." >&5
4377 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4378 See \`config.log
' for more details." >&2;}
4379 { (exit 1); exit 1; }; }
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4385 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4390 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_GREP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 # Extract the first word of "grep ggrep" to use in msg output
4395 if test -z "$GREP"; then
4396 set dummy grep ggrep; ac_prog_name=$2
4397 if test "${ac_cv_path_GREP+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 ac_path_GREP_found=false
4401 # Loop through the user's path and
test for each of PROGNAME-LIST
4402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4403 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4406 test -z "$as_dir" && as_dir
=.
4407 for ac_prog
in grep ggrep
; do
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4410 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4411 # Check for GNU ac_path_GREP and select it if it is found.
4412 # Check for GNU $ac_path_GREP
4413 case `"$ac_path_GREP" --version 2>&1` in
4415 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4418 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4421 cat "conftest.in" "conftest.in" >"conftest.tmp"
4422 mv "conftest.tmp" "conftest.in"
4423 cp "conftest.in" "conftest.nl"
4424 echo 'GREP' >> "conftest.nl"
4425 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4426 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4427 ac_count
=`expr $ac_count + 1`
4428 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4429 # Best one so far, save it but keep looking for a better one
4430 ac_cv_path_GREP
="$ac_path_GREP"
4431 ac_path_GREP_max
=$ac_count
4433 # 10*(2^10) chars as input seems more than enough
4434 test $ac_count -gt 10 && break
4436 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4440 $ac_path_GREP_found && break 3
4450 GREP
="$ac_cv_path_GREP"
4451 if test -z "$GREP"; then
4452 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4453 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4454 { (exit 1); exit 1; }; }
4458 ac_cv_path_GREP
=$GREP
4463 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4464 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4465 GREP
="$ac_cv_path_GREP"
4468 { echo "$as_me:$LINENO: checking for egrep" >&5
4469 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4470 if test "${ac_cv_path_EGREP+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4474 then ac_cv_path_EGREP
="$GREP -E"
4476 # Extract the first word of "egrep" to use in msg output
4477 if test -z "$EGREP"; then
4478 set dummy
egrep; ac_prog_name
=$2
4479 if test "${ac_cv_path_EGREP+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_path_EGREP_found
=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4485 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4488 test -z "$as_dir" && as_dir
=.
4489 for ac_prog
in egrep; do
4490 for ac_exec_ext
in '' $ac_executable_extensions; do
4491 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4492 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4493 # Check for GNU ac_path_EGREP and select it if it is found.
4494 # Check for GNU $ac_path_EGREP
4495 case `"$ac_path_EGREP" --version 2>&1` in
4497 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4500 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4503 cat "conftest.in" "conftest.in" >"conftest.tmp"
4504 mv "conftest.tmp" "conftest.in"
4505 cp "conftest.in" "conftest.nl"
4506 echo 'EGREP' >> "conftest.nl"
4507 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4508 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4509 ac_count
=`expr $ac_count + 1`
4510 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4511 # Best one so far, save it but keep looking for a better one
4512 ac_cv_path_EGREP
="$ac_path_EGREP"
4513 ac_path_EGREP_max
=$ac_count
4515 # 10*(2^10) chars as input seems more than enough
4516 test $ac_count -gt 10 && break
4518 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4522 $ac_path_EGREP_found && break 3
4532 EGREP
="$ac_cv_path_EGREP"
4533 if test -z "$EGREP"; then
4534 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536 { (exit 1); exit 1; }; }
4540 ac_cv_path_EGREP
=$EGREP
4546 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4547 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4548 EGREP
="$ac_cv_path_EGREP"
4552 { echo "$as_me:$LINENO: checking for AIX" >&5
4553 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4554 cat >conftest.
$ac_ext <<_ACEOF
4557 cat confdefs.h
>>conftest.
$ac_ext
4558 cat >>conftest.
$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 $EGREP "yes" >/dev
/null
2>&1; then
4567 { echo "$as_me:$LINENO: result: yes" >&5
4568 echo "${ECHO_T}yes" >&6; }
4569 cat >>confdefs.h
<<\_ACEOF
4570 #define _ALL_SOURCE 1
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4581 cat >>confdefs.h
<<\_ACEOF
4582 #define _GNU_SOURCE 1
4587 ### Use -Wno-pointer-sign if the compiler supports it
4588 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4589 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4590 SAVE_CFLAGS
="$CFLAGS"
4591 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4592 cat >conftest.
$ac_ext <<_ACEOF
4595 cat confdefs.h
>>conftest.
$ac_ext
4596 cat >>conftest.
$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4607 rm -f conftest.
$ac_objext
4608 if { (ac_try
="$ac_compile"
4610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest.$ac_objext; then
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 if test $has_option = yes; then
4634 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4636 { echo "$as_me:$LINENO: result: $has_option" >&5
4637 echo "${ECHO_T}$has_option" >&6; }
4638 CFLAGS="$SAVE_CFLAGS"
4642 #### Some other nice autoconf tests.
4644 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4647 if test "$LN_S" = "ln -s"; then
4648 { echo "$as_me:$LINENO: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6; }
4651 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4652 echo "${ECHO_T}no, using $LN_S" >&6; }
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4661 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4662 # On Suns, sometimes $CPP names a directory.
4663 if test -n "$CPP" && test -d "$CPP"; then
4666 if test -z "$CPP"; then
4667 if test "${ac_cv_prog_CPP+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 # Double quotes because CPP needs to be expanded
4671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4674 for ac_c_preproc_warn_flag in '' yes
4676 # Use a header file that comes with gcc, so configuring glibc
4677 # with a fresh cross-compiler works.
4678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679 # <limits.h> exists even on freestanding compilers.
4680 # On the NeXT, cc -E runs the code through the compiler's parser,
4681 # not just through cpp. "Syntax error" is here to catch this case.
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 # include <limits.h>
4691 # include <assert.h>
4695 if { (ac_try="$ac_cpp conftest.$ac_ext"
4697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4698 *) ac_try_echo
=$ac_try;;
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev
/null
&& {
4708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.
$ac_ext >&5
4716 # Broken: fails on valid input.
4720 rm -f conftest.err conftest.
$ac_ext
4722 # OK, works on sane cases. Now check whether nonexistent headers
4723 # can be detected and how.
4724 cat >conftest.
$ac_ext <<_ACEOF
4727 cat confdefs.h
>>conftest.
$ac_ext
4728 cat >>conftest.
$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #include <ac_nonexistent.h>
4732 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null && {
4745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4748 # Broken: success on invalid input.
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 # Passes both tests.
4759 rm -f conftest.err conftest.$ac_ext
4762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4763 rm -f conftest.err conftest.
$ac_ext
4764 if $ac_preproc_ok; then
4776 { echo "$as_me:$LINENO: result: $CPP" >&5
4777 echo "${ECHO_T}$CPP" >&6; }
4779 for ac_c_preproc_warn_flag
in '' yes
4781 # Use a header file that comes with gcc, so configuring glibc
4782 # with a fresh cross-compiler works.
4783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4784 # <limits.h> exists even on freestanding compilers.
4785 # On the NeXT, cc -E runs the code through the compiler's parser,
4786 # not just through cpp. "Syntax error" is here to catch this case.
4787 cat >conftest.
$ac_ext <<_ACEOF
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4794 # include <limits.h>
4796 # include <assert.h>
4800 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null && {
4813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 # Broken: fails on valid input.
4825 rm -f conftest.err conftest.$ac_ext
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #include <ac_nonexistent.h>
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4840 *) ac_try_echo
=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4845 grep -v '^ *+' conftest.er1
>conftest.err
4847 cat conftest.err
>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev
/null
&& {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4853 # Broken: success on invalid input.
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.
$ac_ext >&5
4859 # Passes both tests.
4864 rm -f conftest.err conftest.
$ac_ext
4867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4868 rm -f conftest.err conftest.
$ac_ext
4869 if $ac_preproc_ok; then
4872 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4873 See \`config.log' for more details." >&5
4874 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4875 See \`config.log' for more details." >&2;}
4876 { (exit 1); exit 1; }; }
4880 ac_cpp
='$CPP $CPPFLAGS'
4881 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4885 # Find a good install program. We prefer a C program (faster),
4886 # so one script is as good as another. But avoid the broken or
4887 # incompatible versions:
4888 # SysV /etc/install, /usr/sbin/install
4889 # SunOS /usr/etc/install
4890 # IRIX /sbin/install
4892 # AmigaOS /C/install, which installs bootblocks on floppy discs
4893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4896 # OS/2's system install, which has a completely different semantic
4897 # ./install, which can be erroneously created by make from ./install.sh.
4898 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4899 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4900 if test -z "$INSTALL"; then
4901 if test "${ac_cv_path_install+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir
=.
4909 # Account for people who put trailing slashes in PATH elements.
4911 .
/ | .
// |
/cC
/* | \
4912 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4913 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4916 # OSF1 and SCO ODT 3.0 have their own names for install.
4917 # Don't use installbsd from OSF since it installs stuff as root
4919 for ac_prog
in ginstall scoinst
install; do
4920 for ac_exec_ext
in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4922 if test $ac_prog = install &&
4923 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4924 # AIX install. It has an incompatible calling convention.
4926 elif test $ac_prog = install &&
4927 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4928 # program-specific install script used by HP pwplus--don't use.
4931 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4944 if test "${ac_cv_path_install+set}" = set; then
4945 INSTALL
=$ac_cv_path_install
4947 # As a last resort, use the slow shell script. Don't cache a
4948 # value for INSTALL within a source directory, because that will
4949 # break other packages using the cache if that directory is
4950 # removed, or if the value is a relative name.
4951 INSTALL
=$ac_install_sh
4954 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4955 echo "${ECHO_T}$INSTALL" >&6; }
4957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4958 # It thinks the first close brace ends the variable substitution.
4959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4963 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4965 if test "x$RANLIB" = x
; then
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4968 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4971 if test "${ac_cv_prog_RANLIB+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 if test -n "$RANLIB"; then
4975 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir
=.
4982 for ac_exec_ext
in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 RANLIB
=$ac_cv_prog_RANLIB
4995 if test -n "$RANLIB"; then
4996 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4997 echo "${ECHO_T}$RANLIB" >&6; }
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5005 if test -z "$ac_cv_prog_RANLIB"; then
5006 ac_ct_RANLIB
=$RANLIB
5007 # Extract the first word of "ranlib", so it can be a program name with args.
5008 set dummy ranlib
; ac_word
=$2
5009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 if test -n "$ac_ct_RANLIB"; then
5015 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir
=.
5022 for ac_exec_ext
in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5037 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5039 { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5043 if test "x$ac_ct_RANLIB" = x
; then
5046 case $cross_compiling:$ac_tool_warned in
5048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5049 whose name does not start with the host triplet. If you think this
5050 configuration is useful to you, please write to autoconf@gnu.org." >&5
5051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5052 whose name does not start with the host triplet. If you think this
5053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5054 ac_tool_warned
=yes ;;
5056 RANLIB
=$ac_ct_RANLIB
5059 RANLIB
="$ac_cv_prog_RANLIB"
5063 # Extract the first word of "install-info", so it can be a program name with args.
5064 set dummy install-info
; ac_word
=$2
5065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 case $INSTALL_INFO in
5072 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
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_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5094 if test -n "$INSTALL_INFO"; then
5095 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5096 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5103 # Extract the first word of "install-info", so it can be a program name with args.
5104 set dummy install-info
; ac_word
=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 case $INSTALL_INFO in
5112 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5116 for as_dir
in /usr
/sbin
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_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5134 if test -n "$INSTALL_INFO"; then
5135 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5136 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5138 { echo "$as_me:$LINENO: result: no" >&5
5139 echo "${ECHO_T}no" >&6; }
5143 # Extract the first word of "install-info", so it can be a program name with args.
5144 set dummy install-info
; ac_word
=$2
5145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 case $INSTALL_INFO in
5152 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir
=.
5160 for ac_exec_ext
in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5174 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5175 if test -n "$INSTALL_INFO"; then
5176 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5177 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5179 { echo "$as_me:$LINENO: result: no" >&5
5180 echo "${ECHO_T}no" >&6; }
5184 # Extract the first word of "gzip", so it can be a program name with args.
5185 set dummy
gzip; ac_word
=$2
5186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir
=.
5201 for ac_exec_ext
in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5215 if test -n "$GZIP_PROG"; then
5216 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5217 echo "${ECHO_T}$GZIP_PROG" >&6; }
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5226 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5228 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5231 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5233 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5237 late_LDFLAGS
=$LDFLAGS
5238 if test "$GCC" = yes; then
5239 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5241 LDFLAGS
="$LDFLAGS -znocombreloc"
5244 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5245 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5246 cat >conftest.
$ac_ext <<_ACEOF
5249 rm -f conftest.
$ac_objext conftest
$ac_exeext
5250 if { (ac_try
="$ac_link"
5252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_link") 2>conftest.er1
5258 grep -v '^ *+' conftest.er1 >conftest.err
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && {
5263 test -z "$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 } && test -s conftest$ac_exeext &&
5266 $as_test_x conftest$ac_exeext; then
5267 { echo "$as_me:$LINENO: result: yes" >&5
5268 echo "${ECHO_T}yes" >&6; }
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 LDFLAGS=$late_LDFLAGS
5274 { echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6; }
5278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5279 conftest$ac_exeext conftest.$ac_ext
5281 #### Extract some information from the operating system and machine files.
5283 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5284 - which libraries the lib-src programs will want, and
5285 - whether the GNU malloc routines are usable..." >&5
5286 echo "$as_me: checking the machine- and system-dependent files to find out
5287 - which libraries the lib-src programs will want, and
5288 - whether the GNU malloc routines are usable..." >&6;}
5290 ### First figure out CFLAGS (which we use for running the compiler here)
5291 ### and REAL_CFLAGS (which we use for real compilation).
5292 ### The two are the same except on a few systems, where they are made
5293 ### different to work around various lossages. For example,
5294 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5295 ### as implying static linking.
5297 ### If the CFLAGS env var is specified, we use that value
5298 ### instead of the default.
5300 ### It's not important that this name contain the PID; you can't run
5301 ### two configures in the same directory and have anything work
5303 tempcname="conftest.c"
5306 #include "'${srcdir}'/src/'${opsysfile}'"
5307 #include "'${srcdir}'/src/'${machfile}'"
5308 #ifndef LIBS_MACHINE
5309 #define LIBS_MACHINE
5314 #ifndef C_SWITCH_SYSTEM
5315 #define C_SWITCH_SYSTEM
5317 #ifndef C_SWITCH_MACHINE
5318 #define C_SWITCH_MACHINE
5320 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5321 configure___ c_switch_system=C_SWITCH_SYSTEM
5322 configure___ c_switch_machine=C_SWITCH_MACHINE
5325 #define LIB_X11_LIB -lX11
5328 #ifndef LIBX11_MACHINE
5329 #define LIBX11_MACHINE
5332 #ifndef LIBX11_SYSTEM
5333 #define LIBX11_SYSTEM
5335 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5338 configure___ unexec=UNEXEC
5340 configure___ unexec=unexec.o
5343 #ifdef SYSTEM_MALLOC
5344 configure___ system_malloc=yes
5346 configure___ system_malloc=no
5349 #ifdef USE_MMAP_FOR_BUFFERS
5350 configure___ use_mmap_for_buffers=yes
5352 configure___ use_mmap_for_buffers=no
5355 #ifndef C_DEBUG_SWITCH
5356 #define C_DEBUG_SWITCH -g
5359 #ifndef C_OPTIMIZE_SWITCH
5361 #define C_OPTIMIZE_SWITCH -O2
5363 #define C_OPTIMIZE_SWITCH -O
5367 #ifndef C_WARNINGS_SWITCH
5368 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5371 #ifndef LD_SWITCH_MACHINE
5372 #define LD_SWITCH_MACHINE
5375 #ifndef LD_SWITCH_SYSTEM
5376 #define LD_SWITCH_SYSTEM
5379 #ifndef LD_SWITCH_X_SITE_AUX
5380 #define LD_SWITCH_X_SITE_AUX
5383 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5384 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5386 #ifdef THIS_IS_CONFIGURE
5388 /* Get the CFLAGS for tests in configure. */
5390 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5392 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5395 #else /* not THIS_IS_CONFIGURE */
5397 /* Get the CFLAGS for real compilation. */
5399 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5401 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5404 #endif /* not THIS_IS_CONFIGURE */
5407 # The value of CPP is a quoted variable reference, so we need to do this
5408 # to get its actual value...
5409 CPP=`eval "echo $CPP"`
5410 eval `${CPP} -Isrc ${tempcname} \
5411 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5412 if test "x$SPECIFIED_CFLAGS" = x; then
5413 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5414 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5416 REAL_CFLAGS="$CFLAGS"
5420 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5422 ### Make sure subsequent tests use flags consistent with the build flags.
5424 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5425 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5427 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5432 # Check whether --enable-largefile was given.
5433 if test "${enable_largefile+set}" = set; then
5434 enableval=$enable_largefile;
5437 if test "$enable_largefile" != no; then
5439 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5440 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5441 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 ac_cv_sys_largefile_CC=no
5445 if test "$GCC" != yes; then
5448 # IRIX 6.2 and later do not support large files by default,
5449 # so use the C compiler's -n32 option if that helps.
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <sys/types.h>
5457 /* Check that off_t can represent 2**63 - 1 correctly.
5458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5459 since some C++ compilers masquerading as C compilers
5460 incorrectly reject 9223372036854775807. */
5461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5463 && LARGE_OFF_T % 2147483647 == 1)
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5477 *) ac_try_echo
=$ac_try;;
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5482 grep -v '^ *+' conftest.er1
>conftest.err
5484 cat conftest.err
>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.
$ac_objext; then
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.
$ac_ext >&5
5498 rm -f core conftest.err conftest.
$ac_objext
5500 rm -f conftest.
$ac_objext
5501 if { (ac_try
="$ac_compile"
5503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_cv_sys_largefile_CC=' -n32'; break
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5525 rm -f core conftest.err conftest.$ac_objext
5529 rm -f conftest.$ac_ext
5532 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5533 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5534 if test "$ac_cv_sys_largefile_CC" != no; then
5535 CC=$CC$ac_cv_sys_largefile_CC
5538 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5539 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5540 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 #include <sys/types.h>
5551 /* Check that off_t can represent 2**63 - 1 correctly.
5552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5553 since some C++ compilers masquerading as C compilers
5554 incorrectly reject 9223372036854775807. */
5555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5557 && LARGE_OFF_T % 2147483647 == 1)
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5571 *) ac_try_echo
=$ac_try;;
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1
>conftest.err
5578 cat conftest.err
>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.
$ac_objext; then
5584 ac_cv_sys_file_offset_bits
=no
; break
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.
$ac_ext >&5
5592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5593 cat >conftest.
$ac_ext <<_ACEOF
5596 cat confdefs.h
>>conftest.
$ac_ext
5597 cat >>conftest.
$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #define _FILE_OFFSET_BITS 64
5600 #include <sys/types.h>
5601 /* Check that off_t can represent 2**63 - 1 correctly.
5602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5603 since some C++ compilers masquerading as C compilers
5604 incorrectly reject 9223372036854775807. */
5605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5607 && LARGE_OFF_T % 2147483647 == 1)
5617 rm -f conftest.
$ac_objext
5618 if { (ac_try
="$ac_compile"
5620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 ac_cv_sys_file_offset_bits=64; break
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cv_sys_file_offset_bits=unknown
5647 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5648 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5649 case $ac_cv_sys_file_offset_bits in #(
5652 cat >>confdefs.h <<_ACEOF
5653 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5658 if test $ac_cv_sys_file_offset_bits = unknown; then
5659 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5660 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5661 if test "${ac_cv_sys_large_files+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 cat >conftest.$ac_ext <<_ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 #include <sys/types.h>
5672 /* Check that off_t can represent 2**63 - 1 correctly.
5673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5674 since some C++ compilers masquerading as C compilers
5675 incorrectly reject 9223372036854775807. */
5676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5678 && LARGE_OFF_T % 2147483647 == 1)
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5692 *) ac_try_echo
=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1
>conftest.err
5699 cat conftest.err
>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest.
$ac_objext; then
5705 ac_cv_sys_large_files
=no
; break
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.
$ac_ext >&5
5713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 cat >conftest.
$ac_ext <<_ACEOF
5717 cat confdefs.h
>>conftest.
$ac_ext
5718 cat >>conftest.
$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #define _LARGE_FILES 1
5721 #include <sys/types.h>
5722 /* Check that off_t can represent 2**63 - 1 correctly.
5723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5724 since some C++ compilers masquerading as C compilers
5725 incorrectly reject 9223372036854775807. */
5726 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5728 && LARGE_OFF_T % 2147483647 == 1)
5738 rm -f conftest.
$ac_objext
5739 if { (ac_try
="$ac_compile"
5741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_cv_sys_large_files=1; break
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 ac_cv_sys_large_files=unknown
5768 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5769 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5770 case $ac_cv_sys_large_files in #(
5773 cat >>confdefs.h <<_ACEOF
5774 #define _LARGE_FILES $ac_cv_sys_large_files
5784 ### The standard library on x86-64 GNU/Linux distributions can
5785 ### be located in either /usr/lib64 or /usr/lib.
5786 case "${canonical}" in
5787 x86_64-*-linux-gnu* )
5788 if test -d /usr/lib64; then
5790 cat >>confdefs.h <<\_ACEOF
5791 #define HAVE_X86_64_LIB64_DIR 1
5800 if test "${with_sound}" != "no"; then
5801 # Sound support for GNU/Linux and the free BSDs.
5802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5804 if test "${ac_cv_header_stdc+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5830 *) ac_try_echo
=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.
$ac_objext; then
5843 ac_cv_header_stdc
=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 ac_cv_header_stdc
=no
5851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 if test $ac_cv_header_stdc = yes; then
5854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5855 cat >conftest.
$ac_ext <<_ACEOF
5858 cat confdefs.h
>>conftest.
$ac_ext
5859 cat >>conftest.
$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5865 $EGREP "memchr" >/dev
/null
2>&1; then
5868 ac_cv_header_stdc
=no
5874 if test $ac_cv_header_stdc = yes; then
5875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5876 cat >conftest.
$ac_ext <<_ACEOF
5879 cat confdefs.h
>>conftest.
$ac_ext
5880 cat >>conftest.
$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 $EGREP "free" >/dev
/null
2>&1; then
5889 ac_cv_header_stdc
=no
5895 if test $ac_cv_header_stdc = yes; then
5896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5897 if test "$cross_compiling" = yes; then
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5908 #if ((' ' & 0x0FF) == 0x020)
5909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5912 # define ISLOWER(c) \
5913 (('a' <= (c) && (c) <= 'i') \
5914 || ('j' <= (c) && (c) <= 'r') \
5915 || ('s' <= (c) && (c) <= 'z'))
5916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5924 for (i = 0; i < 256; i++)
5925 if (XOR (islower (i), ISLOWER (i))
5926 || toupper (i) != TOUPPER (i))
5931 rm -f conftest
$ac_exeext
5932 if { (ac_try
="$ac_link"
5934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5944 *) ac_try_echo
=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5953 echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.
$ac_ext >&5
5958 ac_cv_header_stdc
=no
5960 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5966 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5967 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5968 if test $ac_cv_header_stdc = yes; then
5970 cat >>confdefs.h
<<\_ACEOF
5971 #define STDC_HEADERS 1
5976 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5986 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5987 inttypes.h stdint.h unistd.h
5989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5992 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6003 #include <$ac_header>
6005 rm -f conftest.
$ac_objext
6006 if { (ac_try
="$ac_compile"
6008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6022 eval "$as_ac_Header=yes"
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 eval "$as_ac_Header=no"
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 ac_res=`eval echo '${'$as_ac_Header'}'`
6033 { echo "$as_me:$LINENO: result: $ac_res" >&5
6034 echo "${ECHO_T}$ac_res" >&6; }
6035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6048 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6050 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 ac_res=`eval echo '${'$as_ac_Header'}'`
6058 { echo "$as_me:$LINENO: result: $ac_res" >&5
6059 echo "${ECHO_T}$ac_res" >&6; }
6061 # Is the header compilable?
6062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6071 #include <$ac_header>
6073 rm -f conftest.$ac_objext
6074 if { (ac_try="$ac_compile"
6076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6077 *) ac_try_echo
=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6082 grep -v '^ *+' conftest.er1
>conftest.err
6084 cat conftest.err
>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.
$ac_objext; then
6090 ac_header_compiler
=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.
$ac_ext >&5
6095 ac_header_compiler
=no
6098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6100 echo "${ECHO_T}$ac_header_compiler" >&6; }
6102 # Is the header present?
6103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6105 cat >conftest.
$ac_ext <<_ACEOF
6108 cat confdefs.h
>>conftest.
$ac_ext
6109 cat >>conftest.
$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <$ac_header>
6113 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null && {
6126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6129 ac_header_preproc=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_header_preproc=no
6137 rm -f conftest.err conftest.$ac_ext
6138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6139 echo "${ECHO_T}$ac_header_preproc" >&6; }
6141 # So? What about this header?
6142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6148 ac_header_preproc=yes
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 eval "$as_ac_Header=\$ac_header_preproc"
6173 ac_res=`eval echo '${'$as_ac_Header'}'`
6174 { echo "$as_me:$LINENO: result: $ac_res" >&5
6175 echo "${ECHO_T}$ac_res" >&6; }
6178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6187 # Emulation library used on NetBSD.
6188 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6189 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6190 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_check_lib_save_LIBS=$LIBS
6194 LIBS="-lossaudio $LIBS"
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6202 /* Override any GCC internal prototype to avoid an error.
6203 Use char because int might match the return type of a GCC
6204 builtin and then its argument prototype would still apply. */
6212 return _oss_ioctl ();
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (ac_try="$ac_link"
6220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6221 *) ac_try_echo
=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_link") 2>conftest.er1
6226 grep -v '^ *+' conftest.er1
>conftest.err
6228 cat conftest.err
>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest
$ac_exeext &&
6234 $as_test_x conftest
$ac_exeext; then
6235 ac_cv_lib_ossaudio__oss_ioctl
=yes
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.
$ac_ext >&5
6240 ac_cv_lib_ossaudio__oss_ioctl
=no
6243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6244 conftest
$ac_exeext conftest.
$ac_ext
6245 LIBS
=$ac_check_lib_save_LIBS
6247 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6248 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6249 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6258 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6259 if test "X${with_pkg_config_prog}" != X
; then
6260 PKG_CONFIG
="${with_pkg_config_prog}"
6265 if test -z "$PKG_CONFIG"; then
6266 # Extract the first word of "pkg-config", so it can be a program name with args.
6267 set dummy pkg-config
; ac_word
=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir
=.
6283 for ac_exec_ext
in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6297 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6298 if test -n "$PKG_CONFIG"; then
6299 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6300 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6309 if test "$PKG_CONFIG" = "no" ; then
6312 PKG_CONFIG_MIN_VERSION
=0.9.0
6313 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6314 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6315 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6317 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6318 { echo "$as_me:$LINENO: result: yes" >&5
6319 echo "${ECHO_T}yes" >&6; }
6322 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6323 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6324 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6325 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6326 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6328 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6329 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6330 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6331 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6332 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6338 ## If we have a custom action on failure, don't print errors, but
6339 ## do set a variable so people can do so.
6340 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6347 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6348 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6352 if test $succeeded = yes; then
6358 if test $HAVE_ALSA = yes; then
6359 SAVE_CFLAGS
="$CFLAGS"
6360 SAVE_LDFLAGS
="$LDFLAGS"
6361 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6362 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6363 cat >conftest.
$ac_ext <<_ACEOF
6366 cat confdefs.h
>>conftest.
$ac_ext
6367 cat >>conftest.
$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #include <asoundlib.h>
6373 snd_lib_error_set_handler (0);
6378 rm -f conftest.
$ac_objext
6379 if { (ac_try
="$ac_compile"
6381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6395 emacs_alsa_normal=yes
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 emacs_alsa_normal=no
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 if test "$emacs_alsa_normal" != yes; then
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <alsa/asoundlib.h>
6415 snd_lib_error_set_handler (0);
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6424 *) ac_try_echo
=$ac_try;;
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compile") 2>conftest.er1
6429 grep -v '^ *+' conftest.er1
>conftest.err
6431 cat conftest.err
>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_c_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest.
$ac_objext; then
6437 emacs_alsa_subdir
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 emacs_alsa_subdir
=no
6445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6446 if test "$emacs_alsa_subdir" != yes; then
6447 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6448 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6449 { (exit 1); exit 1; }; }
6451 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6454 CFLAGS
="$SAVE_CFLAGS"
6455 LDFLAGS
="$SAVE_LDFLAGS"
6456 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6457 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6459 cat >>confdefs.h
<<\_ACEOF
6493 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6494 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6495 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6496 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6499 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6500 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 ac_res
=`eval echo '${'$as_ac_Header'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6510 # Is the header compilable?
6511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6513 cat >conftest.
$ac_ext <<_ACEOF
6516 cat confdefs.h
>>conftest.
$ac_ext
6517 cat >>conftest.
$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6520 #include <$ac_header>
6522 rm -f conftest.
$ac_objext
6523 if { (ac_try
="$ac_compile"
6525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_compile") 2>conftest.er1
6531 grep -v '^ *+' conftest.er1 >conftest.err
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } && {
6536 test -z "$ac_c_werror_flag" ||
6537 test ! -s conftest.err
6538 } && test -s conftest.$ac_objext; then
6539 ac_header_compiler=yes
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 ac_header_compiler=no
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6549 echo "${ECHO_T}$ac_header_compiler" >&6; }
6551 # Is the header present?
6552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <$ac_header>
6562 if { (ac_try="$ac_cpp conftest.$ac_ext"
6564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6565 *) ac_try_echo
=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1
>conftest.err
6572 cat conftest.err
>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } >/dev
/null
&& {
6575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6578 ac_header_preproc
=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.
$ac_ext >&5
6583 ac_header_preproc
=no
6586 rm -f conftest.err conftest.
$ac_ext
6587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6588 echo "${ECHO_T}$ac_header_preproc" >&6; }
6590 # So? What about this header?
6591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6597 ac_header_preproc
=yes
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6617 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 eval "$as_ac_Header=\$ac_header_preproc"
6622 ac_res
=`eval echo '${'$as_ac_Header'}'`
6623 { echo "$as_me:$LINENO: result: $ac_res" >&5
6624 echo "${ECHO_T}$ac_res" >&6; }
6627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6628 cat >>confdefs.h
<<_ACEOF
6629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6638 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6639 cat >conftest.
$ac_ext <<_ACEOF
6642 cat confdefs.h
>>conftest.
$ac_ext
6643 cat >>conftest.
$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <sys/personality.h>
6649 personality (PER_LINUX32)
6654 rm -f conftest.
$ac_objext
6655 if { (ac_try
="$ac_compile"
6657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 emacs_cv_personality_linux32=yes
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 emacs_cv_personality_linux32=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6681 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6683 if test $emacs_cv_personality_linux32 = yes; then
6685 cat >>confdefs.h <<\_ACEOF
6686 #define HAVE_PERSONALITY_LINUX32 1
6692 for ac_header in term.h
6694 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 #include <$ac_header>
6708 if { (ac_try="$ac_cpp conftest.$ac_ext"
6710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6711 *) ac_try_echo
=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1
>conftest.err
6718 cat conftest.err
>&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } >/dev
/null
&& {
6721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6724 eval "$as_ac_Header=yes"
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.
$ac_ext >&5
6729 eval "$as_ac_Header=no"
6732 rm -f conftest.err conftest.
$ac_ext
6734 ac_res
=`eval echo '${'$as_ac_Header'}'`
6735 { echo "$as_me:$LINENO: result: $ac_res" >&5
6736 echo "${ECHO_T}$ac_res" >&6; }
6737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6738 cat >>confdefs.h
<<_ACEOF
6739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6748 if test "${ac_cv_header_stdc+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 cat >conftest.
$ac_ext <<_ACEOF
6754 cat confdefs.h
>>conftest.
$ac_ext
6755 cat >>conftest.
$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6770 rm -f conftest.
$ac_objext
6771 if { (ac_try
="$ac_compile"
6773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1 >conftest.err
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 ac_cv_header_stdc=yes
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_cv_header_stdc=no
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 if test $ac_cv_header_stdc = yes; then
6798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "memchr" >/dev/null 2>&1; then
6812 ac_cv_header_stdc=no
6818 if test $ac_cv_header_stdc = yes; then
6819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "free" >/dev/null 2>&1; then
6833 ac_cv_header_stdc=no
6839 if test $ac_cv_header_stdc = yes; then
6840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6841 if test "$cross_compiling" = yes; then
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6852 #if ((' ' & 0x0FF) == 0x020)
6853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6856 # define ISLOWER(c) \
6857 (('a' <= (c) && (c) <= 'i') \
6858 || ('j' <= (c) && (c) <= 'r') \
6859 || ('s' <= (c) && (c) <= 'z'))
6860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6868 for (i = 0; i < 256; i++)
6869 if (XOR (islower (i), ISLOWER (i))
6870 || toupper (i) != TOUPPER (i))
6875 rm -f conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6879 *) ac_try_echo
=$ac_try;;
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6886 { (case "(($ac_try" in
6887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_try") 2>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6897 echo "$as_me: program exited with status $ac_status" >&5
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6902 ac_cv_header_stdc=no
6904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6911 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6912 if test $ac_cv_header_stdc = yes; then
6914 cat >>confdefs.h <<\_ACEOF
6915 #define STDC_HEADERS 1
6920 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6921 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6922 if test "${ac_cv_header_time+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <sys/types.h>
6932 #include <sys/time.h>
6938 if ((struct tm *) 0)
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6948 *) ac_try_echo
=$ac_try;;
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6953 grep -v '^ *+' conftest.er1
>conftest.err
6955 cat conftest.err
>&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.
$ac_objext; then
6961 ac_cv_header_time
=yes
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.
$ac_ext >&5
6966 ac_cv_header_time
=no
6969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6972 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6973 if test $ac_cv_header_time = yes; then
6975 cat >>confdefs.h
<<\_ACEOF
6976 #define TIME_WITH_SYS_TIME 1
6981 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6982 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6983 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 cat >conftest.
$ac_ext <<_ACEOF
6989 cat confdefs.h
>>conftest.
$ac_ext
6990 cat >>conftest.
$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 $ac_includes_default
7004 rm -f conftest.
$ac_objext
7005 if { (ac_try
="$ac_compile"
7007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011 (eval "$ac_compile") 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && {
7018 test -z "$ac_c_werror_flag" ||
7019 test ! -s conftest.err
7020 } && test -s conftest.$ac_objext; then
7021 ac_cv_have_decl_sys_siglist=yes
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7026 ac_cv_have_decl_sys_siglist=no
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7032 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7033 if test $ac_cv_have_decl_sys_siglist = yes; then
7035 cat >>confdefs.h <<_ACEOF
7036 #define HAVE_DECL_SYS_SIGLIST 1
7041 cat >>confdefs.h <<_ACEOF
7042 #define HAVE_DECL_SYS_SIGLIST 0
7049 if test $ac_cv_have_decl_sys_siglist != yes; then
7050 # For Tru64, at least:
7051 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7052 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7053 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7066 #ifndef __sys_siglist
7067 (void) __sys_siglist;
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7078 *) ac_try_echo
=$ac_try;;
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_compile") 2>conftest.er1
7083 grep -v '^ *+' conftest.er1
>conftest.err
7085 cat conftest.err
>&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } && {
7088 test -z "$ac_c_werror_flag" ||
7089 test ! -s conftest.err
7090 } && test -s conftest.
$ac_objext; then
7091 ac_cv_have_decl___sys_siglist
=yes
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.
$ac_ext >&5
7096 ac_cv_have_decl___sys_siglist
=no
7099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7102 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7103 if test $ac_cv_have_decl___sys_siglist = yes; then
7105 cat >>confdefs.h
<<_ACEOF
7106 #define HAVE_DECL___SYS_SIGLIST 1
7111 cat >>confdefs.h
<<_ACEOF
7112 #define HAVE_DECL___SYS_SIGLIST 0
7119 if test $ac_cv_have_decl___sys_siglist = yes; then
7121 cat >>confdefs.h
<<\_ACEOF
7122 #define sys_siglist __sys_siglist
7127 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7128 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7129 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 cat >conftest.
$ac_ext <<_ACEOF
7135 cat confdefs.h
>>conftest.
$ac_ext
7136 cat >>conftest.
$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <sys/types.h>
7139 #include <sys/wait.h>
7141 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7144 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7152 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7157 rm -f conftest.
$ac_objext
7158 if { (ac_try
="$ac_compile"
7160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7166 grep -v '^ *+' conftest.er1 >conftest.err
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 ac_cv_header_sys_wait_h=yes
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 ac_cv_header_sys_wait_h=no
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7185 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7186 if test $ac_cv_header_sys_wait_h = yes; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define HAVE_SYS_WAIT_H 1
7195 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7196 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7197 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 cat >conftest.$ac_ext <<_ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #ifdef TIME_WITH_SYS_TIME
7207 #include <sys/time.h>
7210 #ifdef HAVE_SYS_TIME_H
7211 #include <sys/time.h>
7222 static struct utimbuf x; x.actime = x.modtime;
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7231 *) ac_try_echo
=$ac_try;;
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7236 grep -v '^ *+' conftest.er1
>conftest.err
7238 cat conftest.err
>&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.
$ac_objext; then
7244 emacs_cv_struct_utimbuf
=yes
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.
$ac_ext >&5
7249 emacs_cv_struct_utimbuf
=no
7252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7254 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7255 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7256 if test $emacs_cv_struct_utimbuf = yes; then
7258 cat >>confdefs.h
<<\_ACEOF
7259 #define HAVE_STRUCT_UTIMBUF 1
7264 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7265 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7266 if test "${ac_cv_type_signal+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 cat >conftest.
$ac_ext <<_ACEOF
7272 cat confdefs.h
>>conftest.
$ac_ext
7273 cat >>conftest.
$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 #include <sys/types.h>
7281 return *(signal (0, 0)) (0) == 1;
7286 rm -f conftest.
$ac_objext
7287 if { (ac_try
="$ac_compile"
7289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_compile") 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest.$ac_objext; then
7303 ac_cv_type_signal=int
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_cv_type_signal=void
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7314 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7316 cat >>confdefs.h <<_ACEOF
7317 #define RETSIGTYPE $ac_cv_type_signal
7322 { echo "$as_me:$LINENO: checking for speed_t" >&5
7323 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7324 if test "${emacs_cv_speed_t+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 #include <termios.h>
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7346 *) ac_try_echo
=$ac_try;;
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1
>conftest.err
7353 cat conftest.err
>&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.
$ac_objext; then
7359 emacs_cv_speed_t
=yes
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.
$ac_ext >&5
7367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7369 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7370 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7371 if test $emacs_cv_speed_t = yes; then
7373 cat >>confdefs.h
<<\_ACEOF
7374 #define HAVE_SPEED_T 1
7379 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7380 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7381 if test "${emacs_cv_struct_timeval+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 cat >conftest.
$ac_ext <<_ACEOF
7387 cat confdefs.h
>>conftest.
$ac_ext
7388 cat >>conftest.
$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #ifdef TIME_WITH_SYS_TIME
7391 #include <sys/time.h>
7394 #ifdef HAVE_SYS_TIME_H
7395 #include <sys/time.h>
7403 static struct timeval x; x.tv_sec = x.tv_usec;
7408 rm -f conftest.
$ac_objext
7409 if { (ac_try
="$ac_compile"
7411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7417 grep -v '^ *+' conftest.er1 >conftest.err
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
7425 emacs_cv_struct_timeval=yes
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 emacs_cv_struct_timeval=no
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7436 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7437 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7438 if test $emacs_cv_struct_timeval = yes; then
7440 cat >>confdefs.h <<\_ACEOF
7441 #define HAVE_TIMEVAL 1
7446 { echo "$as_me:$LINENO: checking for struct exception" >&5
7447 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7448 if test "${emacs_cv_struct_exception+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7461 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7466 rm -f conftest.$ac_objext
7467 if { (ac_try="$ac_compile"
7469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7470 *) ac_try_echo
=$ac_try;;
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_compile") 2>conftest.er1
7475 grep -v '^ *+' conftest.er1
>conftest.err
7477 cat conftest.err
>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest.
$ac_objext; then
7483 emacs_cv_struct_exception
=yes
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.
$ac_ext >&5
7488 emacs_cv_struct_exception
=no
7491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7493 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7494 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7495 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7496 if test $emacs_cv_struct_exception != yes; then
7498 cat >>confdefs.h
<<\_ACEOF
7499 #define NO_MATHERR 1
7505 for ac_header
in sys
/socket.h
7507 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7511 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 ac_res
=`eval echo '${'$as_ac_Header'}'`
7515 { echo "$as_me:$LINENO: result: $ac_res" >&5
7516 echo "${ECHO_T}$ac_res" >&6; }
7518 # Is the header compilable?
7519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7521 cat >conftest.
$ac_ext <<_ACEOF
7524 cat confdefs.h
>>conftest.
$ac_ext
7525 cat >>conftest.
$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 #include <$ac_header>
7530 rm -f conftest.
$ac_objext
7531 if { (ac_try
="$ac_compile"
7533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7539 grep -v '^ *+' conftest.er1 >conftest.err
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 ac_header_compiler=yes
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_header_compiler=no
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7557 echo "${ECHO_T}$ac_header_compiler" >&6; }
7559 # Is the header present?
7560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <$ac_header>
7570 if { (ac_try="$ac_cpp conftest.$ac_ext"
7572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7573 *) ac_try_echo
=$ac_try;;
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7578 grep -v '^ *+' conftest.er1
>conftest.err
7580 cat conftest.err
>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } >/dev
/null
&& {
7583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7586 ac_header_preproc
=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.
$ac_ext >&5
7591 ac_header_preproc
=no
7594 rm -f conftest.err conftest.
$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7596 echo "${ECHO_T}$ac_header_preproc" >&6; }
7598 # So? What about this header?
7599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7605 ac_header_preproc
=yes
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7625 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 eval "$as_ac_Header=\$ac_header_preproc"
7630 ac_res
=`eval echo '${'$as_ac_Header'}'`
7631 { echo "$as_me:$LINENO: result: $ac_res" >&5
7632 echo "${ECHO_T}$ac_res" >&6; }
7635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7636 cat >>confdefs.h
<<_ACEOF
7637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7645 for ac_header
in net
/if.h
7647 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7650 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 cat >conftest.
$ac_ext <<_ACEOF
7656 cat confdefs.h
>>conftest.
$ac_ext
7657 cat >>conftest.
$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 #if HAVE_SYS_SOCKET_H
7661 #include <sys/socket.h>
7664 #include <$ac_header>
7666 rm -f conftest.
$ac_objext
7667 if { (ac_try
="$ac_compile"
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_compile") 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); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 eval "$as_ac_Header=yes"
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 eval "$as_ac_Header=no"
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 ac_res=`eval echo '${'$as_ac_Header'}'`
7694 { echo "$as_me:$LINENO: result: $ac_res" >&5
7695 echo "${ECHO_T}$ac_res" >&6; }
7696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7706 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7707 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7708 if test "${ac_cv_struct_tm+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7717 #include <sys/types.h>
7724 int *p = &tm.tm_sec;
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7734 *) ac_try_echo
=$ac_try;;
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1
>conftest.err
7741 cat conftest.err
>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.
$ac_objext; then
7747 ac_cv_struct_tm
=time.h
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.
$ac_ext >&5
7752 ac_cv_struct_tm
=sys
/time.h
7755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7757 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7758 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7759 if test $ac_cv_struct_tm = sys
/time.h
; then
7761 cat >>confdefs.h
<<\_ACEOF
7762 #define TM_IN_SYS_TIME 1
7767 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7768 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7769 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 cat >conftest.
$ac_ext <<_ACEOF
7775 cat confdefs.h
>>conftest.
$ac_ext
7776 cat >>conftest.
$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 #include <sys/types.h>
7779 #include <$ac_cv_struct_tm>
7785 static struct tm ac_aggr;
7786 if (ac_aggr.tm_zone)
7792 rm -f conftest.
$ac_objext
7793 if { (ac_try
="$ac_compile"
7795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1 >conftest.err
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.$ac_objext; then
7809 ac_cv_member_struct_tm_tm_zone=yes
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 #include <sys/types.h>
7821 #include <$ac_cv_struct_tm>
7827 static struct tm ac_aggr;
7828 if (sizeof ac_aggr.tm_zone)
7834 rm -f conftest.$ac_objext
7835 if { (ac_try="$ac_compile"
7837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7838 *) ac_try_echo
=$ac_try;;
7840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7841 (eval "$ac_compile") 2>conftest.er1
7843 grep -v '^ *+' conftest.er1
>conftest.err
7845 cat conftest.err
>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } && {
7848 test -z "$ac_c_werror_flag" ||
7849 test ! -s conftest.err
7850 } && test -s conftest.
$ac_objext; then
7851 ac_cv_member_struct_tm_tm_zone
=yes
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.
$ac_ext >&5
7856 ac_cv_member_struct_tm_tm_zone
=no
7859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7864 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7865 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7866 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7868 cat >>confdefs.h
<<_ACEOF
7869 #define HAVE_STRUCT_TM_TM_ZONE 1
7875 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7877 cat >>confdefs.h
<<\_ACEOF
7878 #define HAVE_TM_ZONE 1
7882 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7883 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7884 if test "${ac_cv_have_decl_tzname+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 cat >conftest.
$ac_ext <<_ACEOF
7890 cat confdefs.h
>>conftest.
$ac_ext
7891 cat >>conftest.
$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7906 rm -f conftest.
$ac_objext
7907 if { (ac_try
="$ac_compile"
7909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 ac_cv_have_decl_tzname=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_cv_have_decl_tzname=no
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7934 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7935 if test $ac_cv_have_decl_tzname = yes; then
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_DECL_TZNAME 1
7943 cat >>confdefs.h <<_ACEOF
7944 #define HAVE_DECL_TZNAME 0
7951 { echo "$as_me:$LINENO: checking for tzname" >&5
7952 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7953 if test "${ac_cv_var_tzname+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7963 #if !HAVE_DECL_TZNAME
7964 extern char *tzname[];
7970 return tzname[0][0];
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7979 *) ac_try_echo
=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_link") 2>conftest.er1
7984 grep -v '^ *+' conftest.er1
>conftest.err
7986 cat conftest.err
>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest
$ac_exeext &&
7992 $as_test_x conftest
$ac_exeext; then
7993 ac_cv_var_tzname
=yes
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.
$ac_ext >&5
8001 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8002 conftest
$ac_exeext conftest.
$ac_ext
8004 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8005 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8006 if test $ac_cv_var_tzname = yes; then
8008 cat >>confdefs.h
<<\_ACEOF
8009 #define HAVE_TZNAME 1
8015 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8016 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8017 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.
$ac_ext <<_ACEOF
8023 cat confdefs.h
>>conftest.
$ac_ext
8024 cat >>conftest.
$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8031 static struct tm ac_aggr;
8032 if (ac_aggr.tm_gmtoff)
8038 rm -f conftest.
$ac_objext
8039 if { (ac_try
="$ac_compile"
8041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compile") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest.$ac_objext; then
8055 ac_cv_member_struct_tm_tm_gmtoff=yes
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 cat >conftest.$ac_ext <<_ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8071 static struct tm ac_aggr;
8072 if (sizeof ac_aggr.tm_gmtoff)
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8082 *) ac_try_echo
=$ac_try;;
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1
>conftest.err
8089 cat conftest.err
>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.
$ac_objext; then
8095 ac_cv_member_struct_tm_tm_gmtoff
=yes
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.
$ac_ext >&5
8100 ac_cv_member_struct_tm_tm_gmtoff
=no
8103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8108 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8109 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8110 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8112 cat >>confdefs.h
<<\_ACEOF
8113 #define HAVE_TM_GMTOFF 1
8118 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8119 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8120 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 cat >conftest.
$ac_ext <<_ACEOF
8126 cat confdefs.h
>>conftest.
$ac_ext
8127 cat >>conftest.
$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8130 #if HAVE_SYS_SOCKET_H
8131 #include <sys/socket.h>
8140 static struct ifreq ac_aggr;
8141 if (ac_aggr.ifr_flags)
8147 rm -f conftest.
$ac_objext
8148 if { (ac_try
="$ac_compile"
8150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_cv_member_struct_ifreq_ifr_flags=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 #if HAVE_SYS_SOCKET_H
8177 #include <sys/socket.h>
8186 static struct ifreq ac_aggr;
8187 if (sizeof ac_aggr.ifr_flags)
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8197 *) ac_try_echo
=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1
>conftest.err
8204 cat conftest.err
>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.
$ac_objext; then
8210 ac_cv_member_struct_ifreq_ifr_flags
=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.
$ac_ext >&5
8215 ac_cv_member_struct_ifreq_ifr_flags
=no
8218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8223 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8224 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8225 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8227 cat >>confdefs.h
<<_ACEOF
8228 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8233 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8234 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8235 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.
$ac_ext <<_ACEOF
8241 cat confdefs.h
>>conftest.
$ac_ext
8242 cat >>conftest.
$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 $ac_includes_default
8245 #if HAVE_SYS_SOCKET_H
8246 #include <sys/socket.h>
8255 static struct ifreq ac_aggr;
8256 if (ac_aggr.ifr_hwaddr)
8262 rm -f conftest.
$ac_objext
8263 if { (ac_try
="$ac_compile"
8265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8291 #if HAVE_SYS_SOCKET_H
8292 #include <sys/socket.h>
8301 static struct ifreq ac_aggr;
8302 if (sizeof ac_aggr.ifr_hwaddr)
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8312 *) ac_try_echo
=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8317 grep -v '^ *+' conftest.er1
>conftest.err
8319 cat conftest.err
>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.
$ac_objext; then
8325 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.
$ac_ext >&5
8330 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8339 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8340 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8342 cat >>confdefs.h
<<_ACEOF
8343 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8348 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8349 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8350 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 cat >conftest.
$ac_ext <<_ACEOF
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #if HAVE_SYS_SOCKET_H
8361 #include <sys/socket.h>
8370 static struct ifreq ac_aggr;
8371 if (ac_aggr.ifr_netmask)
8377 rm -f conftest.
$ac_objext
8378 if { (ac_try
="$ac_compile"
8380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_compile") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest.$ac_objext; then
8394 ac_cv_member_struct_ifreq_ifr_netmask=yes
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #if HAVE_SYS_SOCKET_H
8407 #include <sys/socket.h>
8416 static struct ifreq ac_aggr;
8417 if (sizeof ac_aggr.ifr_netmask)
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8427 *) ac_try_echo
=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1
>conftest.err
8434 cat conftest.err
>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest.
$ac_objext; then
8440 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.
$ac_ext >&5
8445 ac_cv_member_struct_ifreq_ifr_netmask
=no
8448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8454 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8455 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8457 cat >>confdefs.h
<<_ACEOF
8458 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8463 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8464 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8465 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.
$ac_ext <<_ACEOF
8471 cat confdefs.h
>>conftest.
$ac_ext
8472 cat >>conftest.
$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 $ac_includes_default
8475 #if HAVE_SYS_SOCKET_H
8476 #include <sys/socket.h>
8485 static struct ifreq ac_aggr;
8486 if (ac_aggr.ifr_broadaddr)
8492 rm -f conftest.
$ac_objext
8493 if { (ac_try
="$ac_compile"
8495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_compile") 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest.$ac_objext; then
8509 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 #if HAVE_SYS_SOCKET_H
8522 #include <sys/socket.h>
8531 static struct ifreq ac_aggr;
8532 if (sizeof ac_aggr.ifr_broadaddr)
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8542 *) ac_try_echo
=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8547 grep -v '^ *+' conftest.er1
>conftest.err
8549 cat conftest.err
>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && {
8552 test -z "$ac_c_werror_flag" ||
8553 test ! -s conftest.err
8554 } && test -s conftest.
$ac_objext; then
8555 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.
$ac_ext >&5
8560 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8569 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8570 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8572 cat >>confdefs.h
<<_ACEOF
8573 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8578 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8579 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8580 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 cat >conftest.
$ac_ext <<_ACEOF
8586 cat confdefs.h
>>conftest.
$ac_ext
8587 cat >>conftest.
$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 $ac_includes_default
8590 #if HAVE_SYS_SOCKET_H
8591 #include <sys/socket.h>
8600 static struct ifreq ac_aggr;
8601 if (ac_aggr.ifr_addr)
8607 rm -f conftest.
$ac_objext
8608 if { (ac_try
="$ac_compile"
8610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8624 ac_cv_member_struct_ifreq_ifr_addr=yes
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #if HAVE_SYS_SOCKET_H
8637 #include <sys/socket.h>
8646 static struct ifreq ac_aggr;
8647 if (sizeof ac_aggr.ifr_addr)
8653 rm -f conftest.$ac_objext
8654 if { (ac_try="$ac_compile"
8656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8657 *) ac_try_echo
=$ac_try;;
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_compile") 2>conftest.er1
8662 grep -v '^ *+' conftest.er1
>conftest.err
8664 cat conftest.err
>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest.
$ac_objext; then
8670 ac_cv_member_struct_ifreq_ifr_addr
=yes
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.
$ac_ext >&5
8675 ac_cv_member_struct_ifreq_ifr_addr
=no
8678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8684 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8685 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8687 cat >>confdefs.h
<<_ACEOF
8688 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8696 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8697 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8698 if test "$ac_cv_prog_cc_c89" != no
; then
8699 { echo "$as_me:$LINENO: result: yes" >&5
8700 echo "${ECHO_T}yes" >&6; }
8702 cat >>confdefs.h
<<\_ACEOF
8703 #define PROTOTYPES 1
8707 cat >>confdefs.h
<<\_ACEOF
8708 #define __PROTOTYPES 1
8712 { echo "$as_me:$LINENO: result: no" >&5
8713 echo "${ECHO_T}no" >&6; }
8716 { echo "$as_me:$LINENO: checking for working volatile" >&5
8717 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8718 if test "${ac_cv_c_volatile+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 cat >conftest.
$ac_ext <<_ACEOF
8724 cat confdefs.h
>>conftest.
$ac_ext
8725 cat >>conftest.
$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8733 int * volatile y = (int *) 0;
8739 rm -f conftest.
$ac_objext
8740 if { (ac_try
="$ac_compile"
8742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest.$ac_objext; then
8756 ac_cv_c_volatile=yes
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8767 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8768 if test $ac_cv_c_volatile = no; then
8770 cat >>confdefs.h <<\_ACEOF
8776 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8777 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8778 if test "${ac_cv_c_const+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8791 /* FIXME: Include the comments suggested by Paul. */
8793 /* Ultrix mips cc rejects this. */
8794 typedef int charset[2];
8796 /* SunOS 4.1.1 cc rejects this. */
8797 char const *const *pcpcc;
8799 /* NEC SVR4.0.2 mips cc rejects this. */
8800 struct point {int x, y;};
8801 static struct point const zero = {0,0};
8802 /* AIX XL C 1.02.0.0 rejects this.
8803 It does not let you subtract one const X* pointer from another in
8804 an arm of an if-expression whose if-part is not a constant
8806 const char *g = "string";
8807 pcpcc = &g + (g ? g-g : 0);
8808 /* HPUX 7.0 cc rejects these. */
8810 ppc = (char**) pcpcc;
8811 pcpcc = (char const *const *) ppc;
8812 { /* SCO 3.2v4 cc rejects this. */
8814 char const *s = 0 ? (char *) 0 : (char const *) 0;
8819 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8821 const int *foo = &x[0];
8824 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8825 typedef const int *iptr;
8829 { /* AIX XL C 1.02.0.0 rejects this saying
8830 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8831 struct s { int j; const int *ap[3]; };
8832 struct s *b; b->j = 5;
8834 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8838 return !cs[0] && !zero.x;
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8849 *) ac_try_echo
=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_compile") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1
>conftest.err
8856 cat conftest.err
>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest.
$ac_objext; then
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.
$ac_ext >&5
8870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8872 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8873 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8874 if test $ac_cv_c_const = no
; then
8876 cat >>confdefs.h
<<\_ACEOF
8882 { echo "$as_me:$LINENO: checking for void * support" >&5
8883 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8884 if test "${emacs_cv_void_star+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 cat >conftest.
$ac_ext <<_ACEOF
8890 cat confdefs.h
>>conftest.
$ac_ext
8891 cat >>conftest.
$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8902 rm -f conftest.
$ac_objext
8903 if { (ac_try
="$ac_compile"
8905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_compile") 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest.$ac_objext; then
8919 emacs_cv_void_star=yes
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 emacs_cv_void_star=no
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8930 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8931 if test $emacs_cv_void_star = yes; then
8932 cat >>confdefs.h <<\_ACEOF
8933 #define POINTER_TYPE void
8937 cat >>confdefs.h <<\_ACEOF
8938 #define POINTER_TYPE char
8947 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8948 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8949 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.make <<\_ACEOF
8956 @echo '@@@%%%=$(MAKE)=@@@%%%'
8958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8959 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8961 eval ac_cv_prog_make_${ac_make}_set=yes;;
8963 eval ac_cv_prog_make_${ac_make}_set=no;;
8967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8968 { echo "$as_me:$LINENO: result: yes" >&5
8969 echo "${ECHO_T}yes" >&6; }
8972 { echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6; }
8974 SET_MAKE="MAKE=${MAKE-make}"
8978 { echo "$as_me:$LINENO: checking for long file names" >&5
8979 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8980 if test "${ac_cv_sys_long_file_names+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 ac_cv_sys_long_file_names=yes
8984 # Test for long file names in all the places we know might matter:
8985 # . the current directory, where building will happen
8986 # $prefix/lib where we will be installing things
8987 # $exec_prefix/lib likewise
8988 # $TMPDIR if set, where it might want to write temporary files
8989 # /tmp where it might want to write temporary files
8992 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8993 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8994 # in the usual case where exec_prefix is '${prefix}'.
8996 . | /* | ?:[\\/]*) ;; #(
8999 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9000 ac_xdir=$ac_dir/cf$$
9001 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9002 ac_tf1=$ac_xdir/conftest9012345
9003 ac_tf2=$ac_xdir/conftest9012346
9004 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9005 ac_cv_sys_long_file_names=no
9006 rm -f -r "$ac_xdir" 2>/dev/null
9007 test $ac_cv_sys_long_file_names = no && break
9010 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9011 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9012 if test $ac_cv_sys_long_file_names = yes; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_LONG_FILE_NAMES 1
9021 #### Choose a window system.
9023 { echo "$as_me:$LINENO: checking for X" >&5
9024 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9027 # Check whether --with-x was given.
9028 if test "${with_x+set}" = set; then
9032 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9033 if test "x$with_x" = xno; then
9034 # The user explicitly disabled X.
9037 case $x_includes,$x_libraries in #(
9038 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9039 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9040 { (exit 1); exit 1; }; };; #(
9041 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 # One or both of the vars are not set, and there is no cached value.
9045 ac_x_includes=no ac_x_libraries=no
9046 rm -f -r conftest.dir
9047 if mkdir conftest.dir; then
9049 cat >Imakefile <<'_ACEOF'
9051 @echo incroot='${INCROOT}'
9053 @echo usrlibdir='${USRLIBDIR}'
9055 @echo libdir='${LIBDIR}'
9057 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9059 for ac_var in incroot usrlibdir libdir; do
9060 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9062 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9063 for ac_extension in a so sl; do
9064 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9065 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9066 ac_im_usrlibdir=$ac_im_libdir; break
9069 # Screen out bogus values from the imake configuration. They are
9070 # bogus both because they are the default anyway, and because
9071 # using them would break gcc on systems where it needs fixed includes.
9072 case $ac_im_incroot in
9073 /usr/include) ac_x_includes= ;;
9074 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9076 case $ac_im_usrlibdir in
9078 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9082 rm -f -r conftest.dir
9085 # Standard set of common directories for X headers.
9086 # Check X11 before X11Rn because it is often a symlink to the current release.
9098 /usr/local/X11/include
9099 /usr/local/X11R6/include
9100 /usr/local/X11R5/include
9101 /usr/local/X11R4/include
9103 /usr/local/include/X11
9104 /usr/local/include/X11R6
9105 /usr/local/include/X11R5
9106 /usr/local/include/X11R4
9110 /usr/XFree86/include/X11
9114 /usr/unsupported/include
9116 /usr/local/x11r5/include
9117 /usr/lpp/Xamples/include
9119 /usr/openwin/include
9120 /usr/openwin/share/include'
9122 if test "$ac_x_includes" = no; then
9123 # Guess where to find include files, by looking for Xlib.h.
9124 # First, try using that file with no special directory specified.
9125 cat >conftest.$ac_ext <<_ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <X11/Xlib.h>
9133 if { (ac_try="$ac_cpp conftest.$ac_ext"
9135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9136 *) ac_try_echo
=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9141 grep -v '^ *+' conftest.er1
>conftest.err
9143 cat conftest.err
>&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } >/dev
/null
&& {
9146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9149 # We can compile using X headers with no special include directory.
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.
$ac_ext >&5
9155 for ac_dir
in $ac_x_header_dirs; do
9156 if test -r "$ac_dir/X11/Xlib.h"; then
9157 ac_x_includes
=$ac_dir
9163 rm -f conftest.err conftest.
$ac_ext
9164 fi # $ac_x_includes = no
9166 if test "$ac_x_libraries" = no
; then
9167 # Check for the libraries.
9168 # See if we find them without any special options.
9169 # Don't add to $LIBS permanently.
9172 cat >conftest.
$ac_ext <<_ACEOF
9175 cat confdefs.h
>>conftest.
$ac_ext
9176 cat >>conftest.
$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 #include <X11/Xlib.h>
9187 rm -f conftest.
$ac_objext conftest
$ac_exeext
9188 if { (ac_try
="$ac_link"
9190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_link") 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } && {
9201 test -z "$ac_c_werror_flag" ||
9202 test ! -s conftest.err
9203 } && test -s conftest$ac_exeext &&
9204 $as_test_x conftest$ac_exeext; then
9206 # We can link X programs with no special library path.
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9213 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9215 # Don't even attempt the hair of trying to link an X program!
9216 for ac_extension in a so sl; do
9217 if test -r "$ac_dir/libX11.$ac_extension"; then
9218 ac_x_libraries=$ac_dir
9225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9226 conftest$ac_exeext conftest.$ac_ext
9227 fi # $ac_x_libraries = no
9229 case $ac_x_includes,$ac_x_libraries in #(
9231 # Didn't find X, or a directory has "'" in its name.
9232 ac_cv_have_x="have_x=no";; #(
9234 # Record where we found X for the cache.
9235 ac_cv_have_x="have_x=yes\
9236 ac_x_includes='$ac_x_includes'\
9237 ac_x_libraries='$ac_x_libraries'"
9243 eval "$ac_cv_have_x"
9246 if test "$have_x" != yes; then
9247 { echo "$as_me:$LINENO: result: $have_x" >&5
9248 echo "${ECHO_T}$have_x" >&6; }
9251 # If each of the values was on the command line, it overrides each guess.
9252 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9253 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9254 # Update the cache value to reflect the command line values.
9255 ac_cv_have_x="have_x=yes\
9256 ac_x_includes='$x_includes'\
9257 ac_x_libraries='$x_libraries'"
9258 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9259 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9262 if test "$no_x" = yes; then
9268 if test "${x_libraries}" != NONE; then
9269 if test -n "${x_libraries}"; then
9270 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9271 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9273 x_default_search_path=""
9274 x_search_path=${x_libraries}
9275 if test -z "${x_search_path}"; then
9276 x_search_path=/usr/lib
9278 for x_library in `echo ${x_search_path}: | \
9279 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9281 ${x_library}/X11/%L/%T/%N%C%S:\
9282 ${x_library}/X11/%l/%T/%N%C%S:\
9283 ${x_library}/X11/%T/%N%C%S:\
9284 ${x_library}/X11/%L/%T/%N%S:\
9285 ${x_library}/X11/%l/%T/%N%S:\
9286 ${x_library}/X11/%T/%N%S"
9287 if test x"${x_default_search_path}" = x; then
9288 x_default_search_path=${x_search_path}
9290 x_default_search_path="${x_search_path}:${x_default_search_path}"
9294 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9295 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9298 if test x"${x_includes}" = x; then
9299 bitmapdir=/usr/include/X11/bitmaps
9301 # accumulate include directories that have X11 bitmap subdirectories
9303 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9304 if test -d "${bmd}/X11/bitmaps"; then
9305 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9307 if test -d "${bmd}/bitmaps"; then
9308 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9311 if test ${bmd_acc} != "dummyval"; then
9312 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9317 if test "${with_carbon}" != no; then
9318 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9319 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9320 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9321 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9325 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9327 # Is the header compilable?
9328 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9329 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 $ac_includes_default
9337 #include <Carbon/Carbon.h>
9339 rm -f conftest.$ac_objext
9340 if { (ac_try="$ac_compile"
9342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9343 *) ac_try_echo
=$ac_try;;
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_compile") 2>conftest.er1
9348 grep -v '^ *+' conftest.er1
>conftest.err
9350 cat conftest.err
>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest.
$ac_objext; then
9356 ac_header_compiler
=yes
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.
$ac_ext >&5
9361 ac_header_compiler
=no
9364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9366 echo "${ECHO_T}$ac_header_compiler" >&6; }
9368 # Is the header present?
9369 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9370 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9371 cat >conftest.
$ac_ext <<_ACEOF
9374 cat confdefs.h
>>conftest.
$ac_ext
9375 cat >>conftest.
$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 #include <Carbon/Carbon.h>
9379 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } >/dev/null && {
9392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9395 ac_header_preproc=yes
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ac_header_preproc=no
9403 rm -f conftest.err conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9405 echo "${ECHO_T}$ac_header_preproc" >&6; }
9407 # So? What about this header?
9408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9410 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9411 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9413 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9414 ac_header_preproc=yes
9417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9418 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9420 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9422 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9424 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9426 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9428 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9432 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9433 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9434 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9439 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9440 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9443 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9449 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9450 if test "${with_carbon+set}" != set \
9451 && test "${carbon_appdir_x+set}" != set; then
9452 for var in with_x with_x_toolkit with_gtk with_xim \
9453 with_xpm with_jpeg with_tiff with_gif with_png; do
9454 if eval test \"\${$var+set}\" = set; then
9461 if test "${HAVE_CARBON}" = yes; then
9465 case "${window_system}" in
9469 case "${with_x_toolkit}" in
9470 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9471 motif ) USE_X_TOOLKIT=MOTIF ;;
9473 USE_X_TOOLKIT=none ;;
9474 no ) USE_X_TOOLKIT=none ;;
9475 * ) USE_X_TOOLKIT=maybe ;;
9485 ### If we're using X11, we should use the X menu package.
9488 yes ) HAVE_MENUS=yes ;;
9491 if test "${opsys}" = "hpux9"; then
9492 case "${x_libraries}" in
9494 opsysfile="s/hpux9-x11r4.h"
9499 if test "${opsys}" = "hpux9shr"; then
9500 case "${x_libraries}" in
9502 opsysfile="s/hpux9shxr4.h"
9507 ### Compute the unexec source name from the object name.
9508 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9510 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9511 # Assume not, until told otherwise.
9514 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9515 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9516 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9527 #define malloc_get_state innocuous_malloc_get_state
9529 /* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char malloc_get_state (); below.
9531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 <limits.h> exists even on freestanding compilers. */
9535 # include <limits.h>
9537 # include <assert.h>
9540 #undef malloc_get_state
9542 /* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9548 char malloc_get_state ();
9549 /* The GNU C library defines this for functions which it implements
9550 to always fail with ENOSYS. Some functions are actually named
9551 something starting with __ and the normal name is an alias. */
9552 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9559 return malloc_get_state ();
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (ac_try="$ac_link"
9567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9568 *) ac_try_echo
=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1
>conftest.err
9575 cat conftest.err
>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest
$ac_exeext &&
9581 $as_test_x conftest
$ac_exeext; then
9582 ac_cv_func_malloc_get_state
=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.
$ac_ext >&5
9587 ac_cv_func_malloc_get_state
=no
9590 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9591 conftest
$ac_exeext conftest.
$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9594 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9595 if test $ac_cv_func_malloc_get_state = yes; then
9601 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9602 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9603 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 cat >conftest.
$ac_ext <<_ACEOF
9609 cat confdefs.h
>>conftest.
$ac_ext
9610 cat >>conftest.
$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9614 #define malloc_set_state innocuous_malloc_set_state
9616 /* System header to define __stub macros and hopefully few prototypes,
9617 which can conflict with char malloc_set_state (); below.
9618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9619 <limits.h> exists even on freestanding compilers. */
9622 # include <limits.h>
9624 # include <assert.h>
9627 #undef malloc_set_state
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9635 char malloc_set_state ();
9636 /* The GNU C library defines this for functions which it implements
9637 to always fail with ENOSYS. Some functions are actually named
9638 something starting with __ and the normal name is an alias. */
9639 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9646 return malloc_set_state ();
9651 rm -f conftest.
$ac_objext conftest
$ac_exeext
9652 if { (ac_try
="$ac_link"
9654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_link") 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && {
9665 test -z "$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest$ac_exeext &&
9668 $as_test_x conftest$ac_exeext; then
9669 ac_cv_func_malloc_set_state=yes
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_cv_func_malloc_set_state=no
9677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9678 conftest$ac_exeext conftest.$ac_ext
9680 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9681 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9682 if test $ac_cv_func_malloc_set_state = yes; then
9688 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9689 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9690 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 extern void (* __after_morecore_hook)();
9703 __after_morecore_hook = 0
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9712 *) ac_try_echo
=$ac_try;;
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
9717 grep -v '^ *+' conftest.er1
>conftest.err
9719 cat conftest.err
>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && {
9722 test -z "$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 } && test -s conftest
$ac_exeext &&
9725 $as_test_x conftest
$ac_exeext; then
9726 emacs_cv_var___after_morecore_hook
=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.
$ac_ext >&5
9731 emacs_cv_var___after_morecore_hook
=no
9734 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9735 conftest
$ac_exeext conftest.
$ac_ext
9737 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9738 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9739 if test $emacs_cv_var___after_morecore_hook = no
; then
9742 if test "${system_malloc}" = "yes"; then
9745 (The GNU allocators don't work with this system configuration.)"
9747 if test "$doug_lea_malloc" = "yes" ; then
9748 if test "$GNU_MALLOC" = yes ; then
9750 (Using Doug Lea's new malloc from the GNU C Library.)"
9753 cat >>confdefs.h
<<\_ACEOF
9754 #define DOUG_LEA_MALLOC 1
9759 if test x
"${REL_ALLOC}" = x
; then
9760 REL_ALLOC
=${GNU_MALLOC}
9766 for ac_header
in stdlib.h unistd.h
9768 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9772 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 ac_res
=`eval echo '${'$as_ac_Header'}'`
9776 { echo "$as_me:$LINENO: result: $ac_res" >&5
9777 echo "${ECHO_T}$ac_res" >&6; }
9779 # Is the header compilable?
9780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9782 cat >conftest.
$ac_ext <<_ACEOF
9785 cat confdefs.h
>>conftest.
$ac_ext
9786 cat >>conftest.
$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 #include <$ac_header>
9791 rm -f conftest.
$ac_objext
9792 if { (ac_try
="$ac_compile"
9794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_compile") 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest.$ac_objext; then
9808 ac_header_compiler=yes
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_header_compiler=no
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 echo "${ECHO_T}$ac_header_compiler" >&6; }
9820 # Is the header present?
9821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 #include <$ac_header>
9831 if { (ac_try="$ac_cpp conftest.$ac_ext"
9833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9834 *) ac_try_echo
=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1
>conftest.err
9841 cat conftest.err
>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } >/dev
/null
&& {
9844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9847 ac_header_preproc
=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.
$ac_ext >&5
9852 ac_header_preproc
=no
9855 rm -f conftest.err conftest.
$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 echo "${ECHO_T}$ac_header_preproc" >&6; }
9859 # So? What about this header?
9860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9866 ac_header_preproc
=yes
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9886 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 eval "$as_ac_Header=\$ac_header_preproc"
9891 ac_res
=`eval echo '${'$as_ac_Header'}'`
9892 { echo "$as_me:$LINENO: result: $ac_res" >&5
9893 echo "${ECHO_T}$ac_res" >&6; }
9896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9897 cat >>confdefs.h
<<_ACEOF
9898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9906 for ac_func
in getpagesize
9908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9911 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 cat >conftest.
$ac_ext <<_ACEOF
9917 cat confdefs.h
>>conftest.
$ac_ext
9918 cat >>conftest.
$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9922 #define $ac_func innocuous_$ac_func
9924 /* System header to define __stub macros and hopefully few prototypes,
9925 which can conflict with char $ac_func (); below.
9926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9927 <limits.h> exists even on freestanding compilers. */
9930 # include <limits.h>
9932 # include <assert.h>
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9944 /* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947 #if defined __stub_$ac_func || defined __stub___$ac_func
9959 rm -f conftest.
$ac_objext conftest
$ac_exeext
9960 if { (ac_try
="$ac_link"
9962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest$ac_exeext &&
9976 $as_test_x conftest$ac_exeext; then
9977 eval "$as_ac_var=yes"
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 eval "$as_ac_var=no"
9985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986 conftest$ac_exeext conftest.$ac_ext
9988 ac_res=`eval echo '${'$as_ac_var'}'`
9989 { echo "$as_me:$LINENO: result: $ac_res" >&5
9990 echo "${ECHO_T}$ac_res" >&6; }
9991 if test `eval echo '${'$as_ac_var'}'` = yes; then
9992 cat >>confdefs.h <<_ACEOF
9993 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9999 { echo "$as_me:$LINENO: checking for working mmap" >&5
10000 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10001 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 if test "$cross_compiling" = yes; then
10005 ac_cv_func_mmap_fixed_mapped=no
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 $ac_includes_default
10014 /* malloc might have been renamed as rpl_malloc. */
10017 /* Thanks to Mike Haertel and Jim Avera for this test.
10018 Here is a matrix of mmap possibilities:
10019 mmap private not fixed
10020 mmap private fixed at somewhere currently unmapped
10021 mmap private fixed at somewhere already mapped
10022 mmap shared not fixed
10023 mmap shared fixed at somewhere currently unmapped
10024 mmap shared fixed at somewhere already mapped
10025 For private mappings, we should verify that changes cannot be read()
10026 back from the file, nor mmap's back from the file at a different
10027 address. (There have been systems where private was not correctly
10028 implemented like the infamous i386 svr4.0, and systems where the
10029 VM page cache was not coherent with the file system buffer cache
10030 like early versions of FreeBSD and possibly contemporary NetBSD.)
10031 For shared mappings, we should conversely verify that changes get
10032 propagated back to all the places they're supposed to be.
10034 Grep wants private fixed already mapped.
10035 The main things grep needs to know about mmap are:
10036 * does it exist and is it safe to write into the mmap'd area
10037 * how to use it (BSD variants) */
10040 #include <sys/mman.h>
10042 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10046 /* This mess was copied from the GNU getpagesize.h. */
10047 #ifndef HAVE_GETPAGESIZE
10048 /* Assume that all systems that can run configure have sys/param.h. */
10049 # ifndef HAVE_SYS_PARAM_H
10050 # define HAVE_SYS_PARAM_H 1
10053 # ifdef _SC_PAGESIZE
10054 # define getpagesize() sysconf(_SC_PAGESIZE)
10055 # else /* no _SC_PAGESIZE */
10056 # ifdef HAVE_SYS_PARAM_H
10057 # include <sys/param.h>
10058 # ifdef EXEC_PAGESIZE
10059 # define getpagesize() EXEC_PAGESIZE
10060 # else /* no EXEC_PAGESIZE */
10062 # define getpagesize() NBPG * CLSIZE
10065 # endif /* no CLSIZE */
10066 # else /* no NBPG */
10068 # define getpagesize() NBPC
10069 # else /* no NBPC */
10071 # define getpagesize() PAGESIZE
10072 # endif /* PAGESIZE */
10073 # endif /* no NBPC */
10074 # endif /* no NBPG */
10075 # endif /* no EXEC_PAGESIZE */
10076 # else /* no HAVE_SYS_PARAM_H */
10077 # define getpagesize() 8192 /* punt totally */
10078 # endif /* no HAVE_SYS_PARAM_H */
10079 # endif /* no _SC_PAGESIZE */
10081 #endif /* no HAVE_GETPAGESIZE */
10086 char *data, *data2, *data3;
10090 pagesize = getpagesize ();
10092 /* First, make a file with some known garbage in it. */
10093 data = (char *) malloc (pagesize);
10096 for (i = 0; i < pagesize; ++i)
10097 *(data + i) = rand ();
10099 fd = creat ("conftest.mmap", 0600);
10102 if (write (fd, data, pagesize) != pagesize)
10106 /* Next, try to mmap the file at a fixed address which already has
10107 something else allocated at it. If we can, also make sure that
10108 we see the same garbage. */
10109 fd = open ("conftest.mmap", O_RDWR);
10112 data2 = (char *) malloc (2 * pagesize);
10115 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10116 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10119 for (i = 0; i < pagesize; ++i)
10120 if (*(data + i) != *(data2 + i))
10123 /* Finally, make sure that changes to the mapped area do not
10124 percolate back to the file as seen by read(). (This is a bug on
10125 some variants of i386 svr4.0.) */
10126 for (i = 0; i < pagesize; ++i)
10127 *(data2 + i) = *(data2 + i) + 1;
10128 data3 = (char *) malloc (pagesize);
10131 if (read (fd, data3, pagesize) != pagesize)
10133 for (i = 0; i < pagesize; ++i)
10134 if (*(data + i) != *(data3 + i))
10140 rm -f conftest$ac_exeext
10141 if { (ac_try="$ac_link"
10142 case "(($ac_try" in
10143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10144 *) ac_try_echo
=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_link") 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10151 { (case "(($ac_try" in
10152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_func_mmap_fixed_mapped=yes
10162 echo "$as_me: program exited with status $ac_status" >&5
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ( exit $ac_status )
10167 ac_cv_func_mmap_fixed_mapped=no
10169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10174 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10175 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10176 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10178 cat >>confdefs.h <<\_ACEOF
10179 #define HAVE_MMAP 1
10183 rm -f conftest.mmap
10185 if test $use_mmap_for_buffers = yes; then
10189 LIBS="$libsrc_libs $LIBS"
10192 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10193 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10194 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-ldnet $LIBS"
10199 cat >conftest.$ac_ext <<_ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10216 return dnet_ntoa ();
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10225 *) ac_try_echo
=$ac_try;;
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
10230 grep -v '^ *+' conftest.er1
>conftest.err
10232 cat conftest.err
>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest
$ac_exeext &&
10238 $as_test_x conftest
$ac_exeext; then
10239 ac_cv_lib_dnet_dnet_ntoa
=yes
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.
$ac_ext >&5
10244 ac_cv_lib_dnet_dnet_ntoa
=no
10247 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10248 conftest
$ac_exeext conftest.
$ac_ext
10249 LIBS
=$ac_check_lib_save_LIBS
10251 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10252 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10253 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10254 cat >>confdefs.h
<<_ACEOF
10255 #define HAVE_LIBDNET 1
10258 LIBS
="-ldnet $LIBS"
10263 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10264 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10265 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 ac_check_lib_save_LIBS
=$LIBS
10269 LIBS
="-lXbsd $LIBS"
10270 cat >conftest.
$ac_ext <<_ACEOF
10273 cat confdefs.h
>>conftest.
$ac_ext
10274 cat >>conftest.
$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10286 rm -f conftest.
$ac_objext conftest
$ac_exeext
10287 if { (ac_try
="$ac_link"
10288 case "(($ac_try" in
10289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_link") 2>conftest.er1
10295 grep -v '^ *+' conftest.er1 >conftest.err
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } && {
10300 test -z "$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10302 } && test -s conftest$ac_exeext &&
10303 $as_test_x conftest$ac_exeext; then
10304 ac_cv_lib_Xbsd_main=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_cv_lib_Xbsd_main=no
10312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10316 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10317 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10318 if test $ac_cv_lib_Xbsd_main = yes; then
10319 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10324 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10325 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10326 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-lpthreads $LIBS"
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10348 return cma_open ();
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10357 *) ac_try_echo
=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1
>conftest.err
10364 cat conftest.err
>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest
$ac_exeext &&
10370 $as_test_x conftest
$ac_exeext; then
10371 ac_cv_lib_pthreads_cma_open
=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.
$ac_ext >&5
10376 ac_cv_lib_pthreads_cma_open
=no
10379 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10380 conftest
$ac_exeext conftest.
$ac_ext
10381 LIBS
=$ac_check_lib_save_LIBS
10383 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10384 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10385 if test $ac_cv_lib_pthreads_cma_open = yes; then
10386 cat >>confdefs.h
<<_ACEOF
10387 #define HAVE_LIBPTHREADS 1
10390 LIBS
="-lpthreads $LIBS"
10395 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10396 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10397 if test -d /usr
/X386
/include
; then
10399 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10403 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10404 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10409 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10410 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10411 if test "${gdb_cv_bigtoc+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10417 *) gdb_cv_bigtoc
=-bbigtoc ;;
10420 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10421 cat >conftest.
$ac_ext <<_ACEOF
10424 cat confdefs.h
>>conftest.
$ac_ext
10425 cat >>conftest.
$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10436 rm -f conftest.
$ac_objext conftest
$ac_exeext
10437 if { (ac_try
="$ac_link"
10438 case "(($ac_try" in
10439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_link") 2>conftest.er1
10445 grep -v '^ *+' conftest.er1 >conftest.err
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } && {
10450 test -z "$ac_c_werror_flag" ||
10451 test ! -s conftest.err
10452 } && test -s conftest$ac_exeext &&
10453 $as_test_x conftest$ac_exeext; then
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext conftest.$ac_ext
10466 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10467 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10471 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10472 # used for the tests that follow. We set them back to REAL_CFLAGS and
10473 # REAL_CPPFLAGS later on.
10475 REAL_CPPFLAGS="$CPPFLAGS"
10477 if test "${HAVE_X11}" = "yes"; then
10478 DEFS="$C_SWITCH_X_SITE $DEFS"
10479 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10481 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10482 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10484 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10485 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10486 # but it's more convenient here to set LD_RUN_PATH
10487 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10488 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10489 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10493 if test "${opsys}" = "gnu-linux"; then
10494 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10495 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10506 XOpenDisplay ("foo");
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10515 *) ac_try_echo
=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1
>conftest.err
10522 cat conftest.err
>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest
$ac_exeext &&
10528 $as_test_x conftest
$ac_exeext; then
10529 xlinux_first_failure
=no
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.
$ac_ext >&5
10534 xlinux_first_failure
=yes
10537 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10538 conftest
$ac_exeext conftest.
$ac_ext
10539 if test "${xlinux_first_failure}" = "yes"; then
10540 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10541 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10542 OLD_CPPFLAGS
="$CPPFLAGS"
10544 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10545 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10546 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10547 LIBS
="$LIBS -b i486-linuxaout"
10548 cat >conftest.
$ac_ext <<_ACEOF
10551 cat confdefs.h
>>conftest.
$ac_ext
10552 cat >>conftest.
$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10558 XOpenDisplay ("foo");
10563 rm -f conftest.
$ac_objext conftest
$ac_exeext
10564 if { (ac_try
="$ac_link"
10565 case "(($ac_try" in
10566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_link") 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest$ac_exeext &&
10580 $as_test_x conftest$ac_exeext; then
10581 xlinux_second_failure=no
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 xlinux_second_failure=yes
10589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext conftest.$ac_ext
10591 if test "${xlinux_second_failure}" = "yes"; then
10592 # If we get the same failure with -b, there is no use adding -b.
10593 # So take it out. This plays safe.
10594 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10595 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10596 CPPFLAGS="$OLD_CPPFLAGS"
10598 { echo "$as_me:$LINENO: result: no" >&5
10599 echo "${ECHO_T}no" >&6; }
10601 { echo "$as_me:$LINENO: result: yes" >&5
10602 echo "${ECHO_T}yes" >&6; }
10605 { echo "$as_me:$LINENO: result: no" >&5
10606 echo "${ECHO_T}no" >&6; }
10610 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10611 # header files included from there.
10612 { echo "$as_me:$LINENO: checking for Xkb" >&5
10613 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10614 cat >conftest.$ac_ext <<_ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #include <X11/Xlib.h>
10621 #include <X11/XKBlib.h>
10625 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10634 *) ac_try_echo
=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1
>conftest.err
10641 cat conftest.err
>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest
$ac_exeext &&
10647 $as_test_x conftest
$ac_exeext; then
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.
$ac_ext >&5
10656 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10657 conftest
$ac_exeext conftest.
$ac_ext
10658 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10659 echo "${ECHO_T}$emacs_xkb" >&6; }
10660 if test $emacs_xkb = yes; then
10662 cat >>confdefs.h
<<\_ACEOF
10663 #define HAVE_XKBGETKEYBOARD 1
10672 for ac_func
in XrmSetDatabase XScreenResourceString \
10673 XScreenNumberOfScreen XSetWMProtocols
10675 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10678 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 cat >conftest.
$ac_ext <<_ACEOF
10684 cat confdefs.h
>>conftest.
$ac_ext
10685 cat >>conftest.
$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10689 #define $ac_func innocuous_$ac_func
10691 /* System header to define __stub macros and hopefully few prototypes,
10692 which can conflict with char $ac_func (); below.
10693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10694 <limits.h> exists even on freestanding compilers. */
10697 # include <limits.h>
10699 # include <assert.h>
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10711 /* The GNU C library defines this for functions which it implements
10712 to always fail with ENOSYS. Some functions are actually named
10713 something starting with __ and the normal name is an alias. */
10714 #if defined __stub_$ac_func || defined __stub___$ac_func
10721 return $ac_func ();
10726 rm -f conftest.
$ac_objext conftest
$ac_exeext
10727 if { (ac_try
="$ac_link"
10728 case "(($ac_try" in
10729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_link") 2>conftest.er1
10735 grep -v '^ *+' conftest.er1 >conftest.err
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest$ac_exeext &&
10743 $as_test_x conftest$ac_exeext; then
10744 eval "$as_ac_var=yes"
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 eval "$as_ac_var=no"
10752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10753 conftest$ac_exeext conftest.$ac_ext
10755 ac_res=`eval echo '${'$as_ac_var'}'`
10756 { echo "$as_me:$LINENO: result: $ac_res" >&5
10757 echo "${ECHO_T}$ac_res" >&6; }
10758 if test `eval echo '${'$as_ac_var'}'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10768 if test "${window_system}" = "x11"; then
10769 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10770 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10771 if test "${emacs_cv_x11_version_6+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 #include <X11/Xlib.h>
10784 #if XlibSpecificationRelease < 6
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10796 *) ac_try_echo
=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
10801 grep -v '^ *+' conftest.er1
>conftest.err
10803 cat conftest.err
>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest
$ac_exeext &&
10809 $as_test_x conftest
$ac_exeext; then
10810 emacs_cv_x11_version_6
=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.
$ac_ext >&5
10815 emacs_cv_x11_version_6
=no
10818 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10819 conftest
$ac_exeext conftest.
$ac_ext
10822 if test $emacs_cv_x11_version_6 = yes; then
10823 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10824 echo "${ECHO_T}6 or newer" >&6; }
10826 cat >>confdefs.h
<<\_ACEOF
10827 #define HAVE_X11R6 1
10831 { echo "$as_me:$LINENO: result: before 6" >&5
10832 echo "${ECHO_T}before 6" >&6; }
10836 if test "${window_system}" = "x11"; then
10837 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10838 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10839 if test "${emacs_cv_x11_version_5+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 cat >conftest.
$ac_ext <<_ACEOF
10845 cat confdefs.h
>>conftest.
$ac_ext
10846 cat >>conftest.
$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <X11/Xlib.h>
10852 #if XlibSpecificationRelease < 5
10860 rm -f conftest.
$ac_objext conftest
$ac_exeext
10861 if { (ac_try
="$ac_link"
10862 case "(($ac_try" in
10863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
10869 grep -v '^ *+' conftest.er1 >conftest.err
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && {
10874 test -z "$ac_c_werror_flag" ||
10875 test ! -s conftest.err
10876 } && test -s conftest$ac_exeext &&
10877 $as_test_x conftest$ac_exeext; then
10878 emacs_cv_x11_version_5=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 emacs_cv_x11_version_5=no
10886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10887 conftest$ac_exeext conftest.$ac_ext
10890 if test $emacs_cv_x11_version_5 = yes; then
10891 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10892 echo "${ECHO_T}5 or newer" >&6; }
10895 cat >>confdefs.h <<\_ACEOF
10896 #define HAVE_X11R5 1
10901 { echo "$as_me:$LINENO: result: before 5" >&5
10902 echo "${ECHO_T}before 5" >&6; }
10907 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10910 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10911 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10912 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10913 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10914 { (exit 1); exit 1; }; };
10918 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10920 if test "X${with_pkg_config_prog}" != X; then
10921 PKG_CONFIG="${with_pkg_config_prog}"
10926 if test -z "$PKG_CONFIG"; then
10927 # Extract the first word of "pkg-config", so it can be a program name with args.
10928 set dummy pkg-config; ac_word=$2
10929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 case $PKG_CONFIG in
10936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10959 if test -n "$PKG_CONFIG"; then
10960 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10961 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10963 { echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6; }
10970 if test "$PKG_CONFIG" = "no" ; then
10971 { { echo "$as_me:$LINENO: error:
10972 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10973 echo "$as_me: error:
10974 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10975 { (exit 1); exit 1; }; }
10977 PKG_CONFIG_MIN_VERSION=0.9.0
10978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10979 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10980 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10982 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10983 { echo "$as_me:$LINENO: result: yes" >&5
10984 echo "${ECHO_T}yes" >&6; }
10987 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10988 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10989 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10990 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10991 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10993 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10994 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10995 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10996 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10997 echo "${ECHO_T}$GTK_LIBS" >&6; }
10999 { echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6; }
11003 ## If we have a custom action on failure, don't print errors, but
11004 ## do set a variable so people can do so.
11005 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11006 echo $GTK_PKG_ERRORS
11012 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11013 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11017 if test $succeeded = yes; then
11020 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11021 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11022 { (exit 1); exit 1; }; }
11027 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11028 CFLAGS="$CFLAGS $GTK_CFLAGS"
11029 LIBS="$GTK_LIBS $LIBS"
11032 for ac_func in gtk_main
11034 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11048 #define $ac_func innocuous_$ac_func
11050 /* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func (); below.
11052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053 <limits.h> exists even on freestanding compilers. */
11056 # include <limits.h>
11058 # include <assert.h>
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11070 /* The GNU C library defines this for functions which it implements
11071 to always fail with ENOSYS. Some functions are actually named
11072 something starting with __ and the normal name is an alias. */
11073 #if defined __stub_$ac_func || defined __stub___$ac_func
11080 return $ac_func ();
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11089 *) ac_try_echo
=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1
>conftest.err
11096 cat conftest.err
>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest
$ac_exeext &&
11102 $as_test_x conftest
$ac_exeext; then
11103 eval "$as_ac_var=yes"
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.
$ac_ext >&5
11108 eval "$as_ac_var=no"
11111 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11112 conftest
$ac_exeext conftest.
$ac_ext
11114 ac_res
=`eval echo '${'$as_ac_var'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11117 if test `eval echo '${'$as_ac_var'}'` = yes; then
11118 cat >>confdefs.h
<<_ACEOF
11119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125 if test "${GTK_COMPILES}" != "yes"; then
11126 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11127 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11128 { (exit 1); exit 1; }; };
11133 cat >>confdefs.h
<<\_ACEOF
11139 if test "$with_toolkit_scroll_bars" != no
; then
11140 with_toolkit_scroll_bars
=yes
11143 HAVE_GTK_MULTIDISPLAY
=no
11145 for ac_func
in gdk_display_open
11147 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11150 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 cat >conftest.
$ac_ext <<_ACEOF
11156 cat confdefs.h
>>conftest.
$ac_ext
11157 cat >>conftest.
$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11161 #define $ac_func innocuous_$ac_func
11163 /* System header to define __stub macros and hopefully few prototypes,
11164 which can conflict with char $ac_func (); below.
11165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11166 <limits.h> exists even on freestanding compilers. */
11169 # include <limits.h>
11171 # include <assert.h>
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11183 /* The GNU C library defines this for functions which it implements
11184 to always fail with ENOSYS. Some functions are actually named
11185 something starting with __ and the normal name is an alias. */
11186 #if defined __stub_$ac_func || defined __stub___$ac_func
11193 return $ac_func ();
11198 rm -f conftest.
$ac_objext conftest
$ac_exeext
11199 if { (ac_try
="$ac_link"
11200 case "(($ac_try" in
11201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_link") 2>conftest.er1
11207 grep -v '^ *+' conftest.er1 >conftest.err
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest$ac_exeext &&
11215 $as_test_x conftest$ac_exeext; then
11216 eval "$as_ac_var=yes"
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 eval "$as_ac_var=no"
11224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11225 conftest$ac_exeext conftest.$ac_ext
11227 ac_res=`eval echo '${'$as_ac_var'}'`
11228 { echo "$as_me:$LINENO: result: $ac_res" >&5
11229 echo "${ECHO_T}$ac_res" >&6; }
11230 if test `eval echo '${'$as_ac_var'}'` = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11234 HAVE_GTK_MULTIDISPLAY=yes
11238 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_GTK_MULTIDISPLAY 1
11245 HAVE_GTK_FILE_SELECTION=no
11247 for ac_func in gtk_file_selection_new
11249 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11263 #define $ac_func innocuous_$ac_func
11265 /* System header to define __stub macros and hopefully few prototypes,
11266 which can conflict with char $ac_func (); below.
11267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11268 <limits.h> exists even on freestanding compilers. */
11271 # include <limits.h>
11273 # include <assert.h>
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11285 /* The GNU C library defines this for functions which it implements
11286 to always fail with ENOSYS. Some functions are actually named
11287 something starting with __ and the normal name is an alias. */
11288 #if defined __stub_$ac_func || defined __stub___$ac_func
11295 return $ac_func ();
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (ac_try="$ac_link"
11302 case "(($ac_try" in
11303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11304 *) ac_try_echo
=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_link") 2>conftest.er1
11309 grep -v '^ *+' conftest.er1
>conftest.err
11311 cat conftest.err
>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } && {
11314 test -z "$ac_c_werror_flag" ||
11315 test ! -s conftest.err
11316 } && test -s conftest
$ac_exeext &&
11317 $as_test_x conftest
$ac_exeext; then
11318 eval "$as_ac_var=yes"
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.
$ac_ext >&5
11323 eval "$as_ac_var=no"
11326 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11327 conftest
$ac_exeext conftest.
$ac_ext
11329 ac_res
=`eval echo '${'$as_ac_var'}'`
11330 { echo "$as_me:$LINENO: result: $ac_res" >&5
11331 echo "${ECHO_T}$ac_res" >&6; }
11332 if test `eval echo '${'$as_ac_var'}'` = yes; then
11333 cat >>confdefs.h
<<_ACEOF
11334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 HAVE_GTK_FILE_SELECTION
=yes
11341 HAVE_GTK_FILE_CHOOSER
=no
11343 for ac_func
in gtk_file_chooser_dialog_new
11345 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.
$ac_ext <<_ACEOF
11354 cat confdefs.h
>>conftest.
$ac_ext
11355 cat >>conftest.
$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359 #define $ac_func innocuous_$ac_func
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char $ac_func (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11367 # include <limits.h>
11369 # include <assert.h>
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11391 return $ac_func ();
11396 rm -f conftest.
$ac_objext conftest
$ac_exeext
11397 if { (ac_try
="$ac_link"
11398 case "(($ac_try" in
11399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext &&
11413 $as_test_x conftest$ac_exeext; then
11414 eval "$as_ac_var=yes"
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 eval "$as_ac_var=no"
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11425 ac_res=`eval echo '${'$as_ac_var'}'`
11426 { echo "$as_me:$LINENO: result: $ac_res" >&5
11427 echo "${ECHO_T}$ac_res" >&6; }
11428 if test `eval echo '${'$as_ac_var'}'` = yes; then
11429 cat >>confdefs.h <<_ACEOF
11430 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11432 HAVE_GTK_FILE_CHOOSER=yes
11437 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11438 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_GTK_FILE_BOTH 1
11446 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11447 HAVE_GTK_AND_PTHREAD=no
11449 for ac_header in pthread.h
11451 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_res=`eval echo '${'$as_ac_Header'}'`
11459 { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11462 # Is the header compilable?
11463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header>
11474 rm -f conftest.$ac_objext
11475 if { (ac_try="$ac_compile"
11476 case "(($ac_try" in
11477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11478 *) ac_try_echo
=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_compile") 2>conftest.er1
11483 grep -v '^ *+' conftest.er1
>conftest.err
11485 cat conftest.err
>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && {
11488 test -z "$ac_c_werror_flag" ||
11489 test ! -s conftest.err
11490 } && test -s conftest.
$ac_objext; then
11491 ac_header_compiler
=yes
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.
$ac_ext >&5
11496 ac_header_compiler
=no
11499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11501 echo "${ECHO_T}$ac_header_compiler" >&6; }
11503 # Is the header present?
11504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11506 cat >conftest.
$ac_ext <<_ACEOF
11509 cat confdefs.h
>>conftest.
$ac_ext
11510 cat >>conftest.
$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 #include <$ac_header>
11514 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11515 case "(($ac_try" in
11516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1 >conftest.err
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } >/dev/null && {
11527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11530 ac_header_preproc=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_header_preproc=no
11538 rm -f conftest.err conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540 echo "${ECHO_T}$ac_header_preproc" >&6; }
11542 # So? What about this header?
11543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549 ac_header_preproc=yes
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 eval "$as_ac_Header=\$ac_header_preproc"
11574 ac_res=`eval echo '${'$as_ac_Header'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11588 if test "$ac_cv_header_pthread_h"; then
11589 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11590 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11591 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 ac_check_lib_save_LIBS=$LIBS
11595 LIBS="-lpthread $LIBS"
11596 cat >conftest.$ac_ext <<_ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11609 char pthread_self ();
11613 return pthread_self ();
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (ac_try="$ac_link"
11620 case "(($ac_try" in
11621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11622 *) ac_try_echo
=$ac_try;;
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_link") 2>conftest.er1
11627 grep -v '^ *+' conftest.er1
>conftest.err
11629 cat conftest.err
>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest
$ac_exeext &&
11635 $as_test_x conftest
$ac_exeext; then
11636 ac_cv_lib_pthread_pthread_self
=yes
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.
$ac_ext >&5
11641 ac_cv_lib_pthread_pthread_self
=no
11644 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11645 conftest
$ac_exeext conftest.
$ac_ext
11646 LIBS
=$ac_check_lib_save_LIBS
11648 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11649 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11650 if test $ac_cv_lib_pthread_pthread_self = yes; then
11651 HAVE_GTK_AND_PTHREAD
=yes
11655 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11656 GTK_LIBS
="$GTK_LIBS -lpthread"
11658 cat >>confdefs.h
<<\_ACEOF
11659 #define HAVE_GTK_AND_PTHREAD 1
11666 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11667 if test x
"${HAVE_X11R5}" = xyes
; then
11668 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11669 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11670 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 cat >conftest.
$ac_ext <<_ACEOF
11676 cat confdefs.h
>>conftest.
$ac_ext
11677 cat >>conftest.
$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11680 #include <X11/Intrinsic.h>
11681 #include <X11/Xaw/Simple.h>
11690 rm -f conftest.
$ac_objext conftest
$ac_exeext
11691 if { (ac_try
="$ac_link"
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_link") 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); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest$ac_exeext &&
11707 $as_test_x conftest$ac_exeext; then
11708 emacs_cv_x11_version_5_with_xaw=yes
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 emacs_cv_x11_version_5_with_xaw=no
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717 conftest$ac_exeext conftest.$ac_ext
11720 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11721 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11722 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11723 USE_X_TOOLKIT=LUCID
11725 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11726 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11734 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11736 if test "${USE_X_TOOLKIT}" != "none"; then
11737 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11738 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11739 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 cat >conftest.$ac_ext <<_ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include <X11/Intrinsic.h>
11752 #if XtSpecificationRelease < 6
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11764 *) ac_try_echo
=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11769 grep -v '^ *+' conftest.er1
>conftest.err
11771 cat conftest.err
>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } && {
11774 test -z "$ac_c_werror_flag" ||
11775 test ! -s conftest.err
11776 } && test -s conftest
$ac_exeext &&
11777 $as_test_x conftest
$ac_exeext; then
11778 emacs_cv_x11_toolkit_version_6
=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.
$ac_ext >&5
11783 emacs_cv_x11_toolkit_version_6
=no
11786 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11787 conftest
$ac_exeext conftest.
$ac_ext
11790 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11791 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11792 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11793 echo "${ECHO_T}6 or newer" >&6; }
11795 cat >>confdefs.h
<<\_ACEOF
11796 #define HAVE_X11XTR6 1
11800 { echo "$as_me:$LINENO: result: before 6" >&5
11801 echo "${ECHO_T}before 6" >&6; }
11805 if test x
$HAVE_X11XTR6 = xyes
; then
11806 LIBS
="-lXt -lSM -lICE $LIBS"
11811 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11812 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11813 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 ac_check_lib_save_LIBS
=$LIBS
11818 cat >conftest.
$ac_ext <<_ACEOF
11821 cat confdefs.h
>>conftest.
$ac_ext
11822 cat >>conftest.
$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11831 char XmuConvertStandardSelection ();
11835 return XmuConvertStandardSelection ();
11840 rm -f conftest.
$ac_objext conftest
$ac_exeext
11841 if { (ac_try
="$ac_link"
11842 case "(($ac_try" in
11843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_link") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest$ac_exeext &&
11857 $as_test_x conftest$ac_exeext; then
11858 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11870 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11871 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11872 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11873 cat >>confdefs.h <<_ACEOF
11874 #define HAVE_LIBXMU 1
11881 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11884 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11885 if test "${HAVE_X11}" = "yes"; then
11886 if test "${USE_X_TOOLKIT}" != "none"; then
11888 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11889 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11890 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lXext $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11902 /* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11908 char XShapeQueryExtension ();
11912 return XShapeQueryExtension ();
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11921 *) ac_try_echo
=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1
>conftest.err
11928 cat conftest.err
>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest
$ac_exeext &&
11934 $as_test_x conftest
$ac_exeext; then
11935 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.
$ac_ext >&5
11940 ac_cv_lib_Xext_XShapeQueryExtension
=no
11943 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11944 conftest
$ac_exeext conftest.
$ac_ext
11945 LIBS
=$ac_check_lib_save_LIBS
11947 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11948 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11949 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11950 cat >>confdefs.h
<<_ACEOF
11951 #define HAVE_LIBXEXT 1
11954 LIBS
="-lXext $LIBS"
11961 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11962 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11963 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11964 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 cat >conftest.
$ac_ext <<_ACEOF
11970 cat confdefs.h
>>conftest.
$ac_ext
11971 cat >>conftest.
$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11977 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11980 Motif version prior to 2.1.
11986 rm -f conftest.
$ac_objext
11987 if { (ac_try
="$ac_compile"
11988 case "(($ac_try" in
11989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest.$ac_objext; then
12003 emacs_cv_motif_version_2_1=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 emacs_cv_motif_version_2_1=no
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12014 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12015 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12016 if test $emacs_cv_motif_version_2_1 = yes; then
12019 cat >>confdefs.h <<\_ACEOF
12020 #define HAVE_MOTIF_2_1 1
12023 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12024 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12025 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 ac_check_lib_save_LIBS=$LIBS
12030 cat >conftest.$ac_ext <<_ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12043 char XpCreateContext ();
12047 return XpCreateContext ();
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12056 *) ac_try_echo
=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1
>conftest.err
12063 cat conftest.err
>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest
$ac_exeext &&
12069 $as_test_x conftest
$ac_exeext; then
12070 ac_cv_lib_Xp_XpCreateContext
=yes
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.
$ac_ext >&5
12075 ac_cv_lib_Xp_XpCreateContext
=no
12078 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12079 conftest
$ac_exeext conftest.
$ac_ext
12080 LIBS
=$ac_check_lib_save_LIBS
12082 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12083 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12084 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12088 if test ${HAVE_LIBXP} = yes; then
12090 cat >>confdefs.h
<<\_ACEOF
12091 #define HAVE_LIBXP 1
12096 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12097 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12098 if test "${emacs_cv_lesstif+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 # We put this in CFLAGS temporarily to precede other -I options
12102 # that might be in CFLAGS temporarily.
12103 # We put this in CPPFLAGS where it precedes the other -I options.
12104 OLD_CPPFLAGS
=$CPPFLAGS
12106 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12107 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12108 cat >conftest.
$ac_ext <<_ACEOF
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12123 rm -f conftest.
$ac_objext
12124 if { (ac_try
="$ac_compile"
12125 case "(($ac_try" in
12126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_compile") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest.$ac_objext; then
12140 emacs_cv_lesstif=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 emacs_cv_lesstif=no
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12151 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12152 if test $emacs_cv_lesstif = yes; then
12153 # Make sure this -I option remains in CPPFLAGS after it is set
12154 # back to REAL_CPPFLAGS.
12155 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12156 # have those other -I options anyway. Ultimately, having this
12157 # directory ultimately in CPPFLAGS will be enough.
12158 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12159 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12162 CPPFLAGS=$OLD_CPPFLAGS
12167 ### Is -lXaw3d available?
12169 if test "${HAVE_X11}" = "yes"; then
12170 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12171 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12172 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12173 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 #include <X11/Xaw3d/Scrollbar.h>
12184 if { (ac_try="$ac_cpp conftest.$ac_ext"
12185 case "(($ac_try" in
12186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12187 *) ac_try_echo
=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1
>conftest.err
12194 cat conftest.err
>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } >/dev
/null
&& {
12197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12200 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.
$ac_ext >&5
12205 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12208 rm -f conftest.err conftest.
$ac_ext
12210 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12211 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12212 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12213 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12214 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12215 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 ac_check_lib_save_LIBS
=$LIBS
12219 LIBS
="-lXaw3d $LIBS"
12220 cat >conftest.
$ac_ext <<_ACEOF
12223 cat confdefs.h
>>conftest.
$ac_ext
12224 cat >>conftest.
$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12233 char XawScrollbarSetThumb ();
12237 return XawScrollbarSetThumb ();
12242 rm -f conftest.
$ac_objext conftest
$ac_exeext
12243 if { (ac_try
="$ac_link"
12244 case "(($ac_try" in
12245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_link") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest$ac_exeext &&
12259 $as_test_x conftest$ac_exeext; then
12260 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12272 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12273 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12274 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12281 if test "${HAVE_XAW3D}" = "yes"; then
12283 cat >>confdefs.h <<\_ACEOF
12284 #define HAVE_XAW3D 1
12293 USE_TOOLKIT_SCROLL_BARS=no
12294 if test "${with_toolkit_scroll_bars}" != "no"; then
12295 if test "${USE_X_TOOLKIT}" != "none"; then
12296 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define USE_TOOLKIT_SCROLL_BARS 1
12302 USE_TOOLKIT_SCROLL_BARS=yes
12303 elif test "${HAVE_XAW3D}" = "yes"; then
12304 cat >>confdefs.h <<\_ACEOF
12305 #define USE_TOOLKIT_SCROLL_BARS 1
12308 USE_TOOLKIT_SCROLL_BARS=yes
12310 elif test "${HAVE_GTK}" = "yes"; then
12311 cat >>confdefs.h <<\_ACEOF
12312 #define USE_TOOLKIT_SCROLL_BARS 1
12315 USE_TOOLKIT_SCROLL_BARS=yes
12316 elif test "${HAVE_CARBON}" = "yes"; then
12317 cat >>confdefs.h <<\_ACEOF
12318 #define USE_TOOLKIT_SCROLL_BARS 1
12321 USE_TOOLKIT_SCROLL_BARS=yes
12325 cat >conftest.$ac_ext <<_ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12332 #include <X11/Xlib.h>
12333 #include <X11/Xresource.h>
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12346 *) ac_try_echo
=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_compile") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1
>conftest.err
12353 cat conftest.err
>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest.
$ac_objext; then
12361 cat >>confdefs.h
<<\_ACEOF
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.
$ac_ext >&5
12372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12375 if test "${with_xim}" != "no"; then
12377 cat >>confdefs.h
<<\_ACEOF
12384 if test "${HAVE_XIM}" != "no"; then
12385 late_CFLAGS
=$CFLAGS
12386 if test "$GCC" = yes; then
12387 CFLAGS
="$CFLAGS --pedantic-errors"
12389 cat >conftest.
$ac_ext <<_ACEOF
12392 cat confdefs.h
>>conftest.
$ac_ext
12393 cat >>conftest.
$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 #include <X11/Xlib.h>
12397 #include <X11/Xresource.h>
12406 XPointer *client_data;
12408 /* If we're not using GCC, it's probably not XFree86, and this is
12409 probably right, but we can't use something like --pedantic-errors. */
12410 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12411 char*, XIMProc, XPointer*);
12413 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12419 rm -f conftest.
$ac_objext
12420 if { (ac_try
="$ac_compile"
12421 case "(($ac_try" in
12422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_compile") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest.$ac_objext; then
12436 emacs_cv_arg6_star=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 if test "$emacs_cv_arg6_star" = yes; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12452 cat >>confdefs.h <<\_ACEOF
12453 #define XRegisterIMInstantiateCallback_arg6 XPointer
12457 CFLAGS=$late_CFLAGS
12460 ### Use -lXpm if available, unless `--with-xpm=no
'.
12462 if test "${HAVE_X11}" = "yes"; then
12463 if test "${with_xpm}" != "no"; then
12464 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12465 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12466 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12467 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12471 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12473 # Is the header compilable?
12474 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12475 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12476 cat >conftest.$ac_ext <<_ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12483 #include <X11/xpm.h>
12485 rm -f conftest.$ac_objext
12486 if { (ac_try="$ac_compile"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_compile") 2>conftest.er1
12494 grep -v '^
*+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && {
12499 test -z "$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12501 } && test -s conftest.$ac_objext; then
12502 ac_header_compiler=yes
12504 echo "$as_me: failed program was:" >&5
12505 sed 's
/^
/|
/' conftest.$ac_ext >&5
12507 ac_header_compiler=no
12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12512 echo "${ECHO_T}$ac_header_compiler" >&6; }
12514 # Is the header present?
12515 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12516 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12517 cat >conftest.$ac_ext <<_ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12523 #include <X11/xpm.h>
12525 if { (ac_try="$ac_cpp conftest.$ac_ext"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12533 grep -v '^
*+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } >/dev/null && {
12538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12541 ac_header_preproc=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's
/^
/|
/' conftest.$ac_ext >&5
12546 ac_header_preproc=no
12549 rm -f conftest.err conftest.$ac_ext
12550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12551 echo "${ECHO_T}$ac_header_preproc" >&6; }
12553 # So? What about this header?
12554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12556 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12557 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
12559 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
12560 ac_header_preproc=yes
12563 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12564 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12566 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12568 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12570 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
12572 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12574 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12578 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12579 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12580 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 ac_cv_header_X11_xpm_h=$ac_header_preproc
12585 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12586 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12589 if test $ac_cv_header_X11_xpm_h = yes; then
12590 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12591 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12592 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_check_lib_save_LIBS=$LIBS
12596 LIBS="-lXpm -lX11 $LIBS"
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12610 char XpmReadFileToPixmap ();
12614 return XpmReadFileToPixmap ();
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_link") 2>conftest.er1
12628 grep -v '^
*+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest$ac_exeext &&
12636 $as_test_x conftest$ac_exeext; then
12637 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's
/^
/|
/' conftest.$ac_ext >&5
12642 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12650 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12651 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12658 if test "${HAVE_XPM}" = "yes"; then
12659 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12660 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 #include "X11/xpm.h"
12668 #ifndef XpmReturnAllocPixels
12669 no_return_alloc_pixels
12673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12674 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12682 if test "${HAVE_XPM}" = "yes"; then
12683 { echo "$as_me:$LINENO: result: yes" >&5
12684 echo "${ECHO_T}yes" >&6; }
12686 { echo "$as_me:$LINENO: result: no" >&5
12687 echo "${ECHO_T}no" >&6; }
12692 if test "${HAVE_XPM}" = "yes"; then
12694 cat >>confdefs.h <<\_ACEOF
12701 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12703 if test "${HAVE_X11}" = "yes"; then
12704 if test "${with_jpeg}" != "no"; then
12705 if test "${ac_cv_header_jerror_h+set}" = set; then
12706 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12707 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12708 if test "${ac_cv_header_jerror_h+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12712 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12714 # Is the header compilable?
12715 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12716 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12717 cat >conftest.
$ac_ext <<_ACEOF
12720 cat confdefs.h
>>conftest.
$ac_ext
12721 cat >>conftest.
$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12724 #include <jerror.h>
12726 rm -f conftest.
$ac_objext
12727 if { (ac_try
="$ac_compile"
12728 case "(($ac_try" in
12729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_compile") 2>conftest.er1
12735 grep -v '^ *+' conftest.er1 >conftest.err
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest.$ac_objext; then
12743 ac_header_compiler=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ac_header_compiler=no
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12753 echo "${ECHO_T}$ac_header_compiler" >&6; }
12755 # Is the header present?
12756 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12757 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 #include <jerror.h>
12766 if { (ac_try="$ac_cpp conftest.$ac_ext"
12767 case "(($ac_try" in
12768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12769 *) ac_try_echo
=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1
>conftest.err
12776 cat conftest.err
>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev
/null
&& {
12779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12782 ac_header_preproc
=yes
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.
$ac_ext >&5
12787 ac_header_preproc
=no
12790 rm -f conftest.err conftest.
$ac_ext
12791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792 echo "${ECHO_T}$ac_header_preproc" >&6; }
12794 # So? What about this header?
12795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12797 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12798 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12800 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12801 ac_header_preproc
=yes
12804 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12805 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12807 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12809 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12811 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12813 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12815 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12819 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12820 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12821 if test "${ac_cv_header_jerror_h+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 ac_cv_header_jerror_h
=$ac_header_preproc
12826 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12827 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12830 if test $ac_cv_header_jerror_h = yes; then
12831 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12832 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
12833 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_check_lib_save_LIBS
=$LIBS
12837 LIBS
="-ljpeg $LIBS"
12838 cat >conftest.
$ac_ext <<_ACEOF
12841 cat confdefs.h
>>conftest.
$ac_ext
12842 cat >>conftest.
$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12851 char jpeg_destroy_compress ();
12855 return jpeg_destroy_compress ();
12860 rm -f conftest.
$ac_objext conftest
$ac_exeext
12861 if { (ac_try
="$ac_link"
12862 case "(($ac_try" in
12863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_link") 2>conftest.er1
12869 grep -v '^ *+' conftest.er1 >conftest.err
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && {
12874 test -z "$ac_c_werror_flag" ||
12875 test ! -s conftest.err
12876 } && test -s conftest$ac_exeext &&
12877 $as_test_x conftest$ac_exeext; then
12878 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12890 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12891 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12892 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12902 if test "${HAVE_JPEG}" = "yes"; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_JPEG 1
12907 cat >conftest.$ac_ext <<_ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 #include <jpeglib.h>
12914 version=JPEG_LIB_VERSION
12917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12918 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12919 cat >>confdefs.h <<\_ACEOF
12920 #define HAVE_JPEG 1
12924 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12925 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12933 ### Use -lpng if available, unless `--with-png=no
'.
12935 if test "${HAVE_X11}" = "yes"; then
12936 if test "${with_png}" != "no"; then
12937 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12938 # in /usr/include/libpng.
12941 for ac_header in png.h libpng/png.h
12943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_res=`eval echo '${'$as_ac_Header'}'`
12951 { echo "$as_me:$LINENO: result: $ac_res" >&5
12952 echo "${ECHO_T}$ac_res" >&6; }
12954 # Is the header compilable?
12955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 $ac_includes_default
12964 #include <$ac_header>
12966 rm -f conftest.$ac_objext
12967 if { (ac_try="$ac_compile"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_compile") 2>conftest.er1
12975 grep -v '^
*+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest.$ac_objext; then
12983 ac_header_compiler=yes
12985 echo "$as_me: failed program was:" >&5
12986 sed 's
/^
/|
/' conftest.$ac_ext >&5
12988 ac_header_compiler=no
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12993 echo "${ECHO_T}$ac_header_compiler" >&6; }
12995 # Is the header present?
12996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12998 cat >conftest.$ac_ext <<_ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 #include <$ac_header>
13006 if { (ac_try="$ac_cpp conftest.$ac_ext"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13014 grep -v '^
*+' conftest.er1 >conftest.err
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev/null && {
13019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13022 ac_header_preproc=yes
13024 echo "$as_me: failed program was:" >&5
13025 sed 's
/^
/|
/' conftest.$ac_ext >&5
13027 ac_header_preproc=no
13030 rm -f conftest.err conftest.$ac_ext
13031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13032 echo "${ECHO_T}$ac_header_preproc" >&6; }
13034 # So? What about this header?
13035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13040 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13041 ac_header_preproc=yes
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13053 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 eval "$as_ac_Header=\$ac_header_preproc"
13066 ac_res=`eval echo '${'$as_ac_Header'}'`
13067 { echo "$as_me:$LINENO: result: $ac_res" >&5
13068 echo "${ECHO_T}$ac_res" >&6; }
13071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13072 cat >>confdefs.h <<_ACEOF
13073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13080 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13081 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13082 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13083 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lpng -lz -lm $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13101 char png_get_channels ();
13105 return png_get_channels ();
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (ac_try="$ac_link"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_link") 2>conftest.er1
13119 grep -v '^
*+' conftest.er1 >conftest.err
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest$ac_exeext &&
13127 $as_test_x conftest$ac_exeext; then
13128 ac_cv_lib_png_png_get_channels=yes
13130 echo "$as_me: failed program was:" >&5
13131 sed 's
/^
/|
/' conftest.$ac_ext >&5
13133 ac_cv_lib_png_png_get_channels=no
13136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13140 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13141 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13142 if test $ac_cv_lib_png_png_get_channels = yes; then
13149 if test "${HAVE_PNG}" = "yes"; then
13151 cat >>confdefs.h <<\_ACEOF
13158 ### Use -ltiff if available, unless `--with-tiff=no'.
13160 if test "${HAVE_X11}" = "yes"; then
13161 if test "${with_tiff}" != "no"; then
13162 if test "${ac_cv_header_tiffio_h+set}" = set; then
13163 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13164 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13165 if test "${ac_cv_header_tiffio_h+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13169 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13171 # Is the header compilable?
13172 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13173 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13174 cat >conftest.
$ac_ext <<_ACEOF
13177 cat confdefs.h
>>conftest.
$ac_ext
13178 cat >>conftest.
$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 $ac_includes_default
13181 #include <tiffio.h>
13183 rm -f conftest.
$ac_objext
13184 if { (ac_try
="$ac_compile"
13185 case "(($ac_try" in
13186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_compile") 2>conftest.er1
13192 grep -v '^ *+' conftest.er1 >conftest.err
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } && {
13197 test -z "$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 } && test -s conftest.$ac_objext; then
13200 ac_header_compiler=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_header_compiler=no
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13210 echo "${ECHO_T}$ac_header_compiler" >&6; }
13212 # Is the header present?
13213 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13214 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 #include <tiffio.h>
13223 if { (ac_try="$ac_cpp conftest.$ac_ext"
13224 case "(($ac_try" in
13225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13226 *) ac_try_echo
=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13231 grep -v '^ *+' conftest.er1
>conftest.err
13233 cat conftest.err
>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } >/dev
/null
&& {
13236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13239 ac_header_preproc
=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.
$ac_ext >&5
13244 ac_header_preproc
=no
13247 rm -f conftest.err conftest.
$ac_ext
13248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13249 echo "${ECHO_T}$ac_header_preproc" >&6; }
13251 # So? What about this header?
13252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13254 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13255 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13257 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13258 ac_header_preproc
=yes
13261 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13262 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13264 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13266 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13268 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13270 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13271 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13272 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13276 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13277 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13278 if test "${ac_cv_header_tiffio_h+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 ac_cv_header_tiffio_h
=$ac_header_preproc
13283 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13284 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13287 if test $ac_cv_header_tiffio_h = yes; then
13289 # At least one tiff package requires the jpeg library.
13290 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13291 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13292 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13293 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 ac_check_lib_save_LIBS
=$LIBS
13297 LIBS
="-ltiff $tifflibs $LIBS"
13298 cat >conftest.
$ac_ext <<_ACEOF
13301 cat confdefs.h
>>conftest.
$ac_ext
13302 cat >>conftest.
$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13305 /* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
13307 builtin and then its argument prototype would still apply. */
13311 char TIFFGetVersion ();
13315 return TIFFGetVersion ();
13320 rm -f conftest.
$ac_objext conftest
$ac_exeext
13321 if { (ac_try
="$ac_link"
13322 case "(($ac_try" in
13323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13329 grep -v '^ *+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest$ac_exeext &&
13337 $as_test_x conftest$ac_exeext; then
13338 ac_cv_lib_tiff_TIFFGetVersion=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 ac_cv_lib_tiff_TIFFGetVersion=no
13346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13347 conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS
13350 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13351 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13352 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13361 if test "${HAVE_TIFF}" = "yes"; then
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_TIFF 1
13370 ### Use -lgif if available, unless `--with-gif=no
'.
13372 if test "${HAVE_X11}" = "yes"; then
13373 if test "${with_gif}" != "no"; then
13374 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13375 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13376 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13377 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13381 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13383 # Is the header compilable?
13384 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13385 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 $ac_includes_default
13393 #include <gif_lib.h>
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_compile") 2>conftest.er1
13404 grep -v '^
*+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && {
13409 test -z "$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest.$ac_objext; then
13412 ac_header_compiler=yes
13414 echo "$as_me: failed program was:" >&5
13415 sed 's
/^
/|
/' conftest.$ac_ext >&5
13417 ac_header_compiler=no
13420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13422 echo "${ECHO_T}$ac_header_compiler" >&6; }
13424 # Is the header present?
13425 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13426 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 #include <gif_lib.h>
13435 if { (ac_try="$ac_cpp conftest.$ac_ext"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13443 grep -v '^
*+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } >/dev/null && {
13448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13451 ac_header_preproc=yes
13453 echo "$as_me: failed program was:" >&5
13454 sed 's
/^
/|
/' conftest.$ac_ext >&5
13456 ac_header_preproc=no
13459 rm -f conftest.err conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13461 echo "${ECHO_T}$ac_header_preproc" >&6; }
13463 # So? What about this header?
13464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13466 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13467 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
13469 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
13470 ac_header_preproc=yes
13473 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13474 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13476 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13478 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13480 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
13482 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13484 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13488 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13489 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13490 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 ac_cv_header_gif_lib_h=$ac_header_preproc
13495 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13496 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13499 if test $ac_cv_header_gif_lib_h = yes; then
13500 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13501 # Earlier versions can crash Emacs.
13502 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13503 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13504 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 ac_check_lib_save_LIBS=$LIBS
13508 LIBS="-lungif $LIBS"
13509 cat >conftest.$ac_ext <<_ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13516 /* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13522 char EGifPutExtensionLast ();
13526 return EGifPutExtensionLast ();
13531 rm -f conftest.$ac_objext conftest$ac_exeext
13532 if { (ac_try="$ac_link"
13533 case "(($ac_try" in
13534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538 (eval "$ac_link") 2>conftest.er1
13540 grep -v '^
*+' conftest.er1 >conftest.err
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } && {
13545 test -z "$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13547 } && test -s conftest$ac_exeext &&
13548 $as_test_x conftest$ac_exeext; then
13549 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13551 echo "$as_me: failed program was:" >&5
13552 sed 's
/^
/|
/' conftest.$ac_ext >&5
13554 ac_cv_lib_ungif_EGifPutExtensionLast=no
13557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13558 conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13561 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13562 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13563 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13572 if test "${HAVE_GIF}" = "yes"; then
13574 cat >>confdefs.h <<\_ACEOF
13581 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13582 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13583 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13584 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13588 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13590 # Is the header compilable?
13591 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13592 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 #include <malloc/malloc.h>
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_compile") 2>conftest.er1
13611 grep -v '^
*+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } && {
13616 test -z "$ac_c_werror_flag" ||
13617 test ! -s conftest.err
13618 } && test -s conftest.$ac_objext; then
13619 ac_header_compiler=yes
13621 echo "$as_me: failed program was:" >&5
13622 sed 's
/^
/|
/' conftest.$ac_ext >&5
13624 ac_header_compiler=no
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13629 echo "${ECHO_T}$ac_header_compiler" >&6; }
13631 # Is the header present?
13632 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13633 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13634 cat >conftest.$ac_ext <<_ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13640 #include <malloc/malloc.h>
13642 if { (ac_try="$ac_cpp conftest.$ac_ext"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13650 grep -v '^
*+' conftest.er1 >conftest.err
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } >/dev/null && {
13655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13658 ac_header_preproc=yes
13660 echo "$as_me: failed program was:" >&5
13661 sed 's
/^
/|
/' conftest.$ac_ext >&5
13663 ac_header_preproc=no
13666 rm -f conftest.err conftest.$ac_ext
13667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13668 echo "${ECHO_T}$ac_header_preproc" >&6; }
13670 # So? What about this header?
13671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13673 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13674 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13675 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
13676 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
13677 ac_header_preproc=yes
13680 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13681 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13683 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13685 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13687 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
13689 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13691 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13695 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13696 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13697 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13702 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13703 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13706 if test $ac_cv_header_malloc_malloc_h = yes; then
13708 cat >>confdefs.h <<\_ACEOF
13709 #define HAVE_MALLOC_MALLOC_H 1
13716 ### Use Mac OS X Carbon API to implement GUI.
13717 if test "${HAVE_CARBON}" = "yes"; then
13719 cat >>confdefs.h <<\_ACEOF
13720 #define HAVE_CARBON 1
13723 ## Specify the install directory
13725 if test "${carbon_appdir_x}" != ""; then
13726 case ${carbon_appdir_x} in
13727 y | ye | yes) carbon_appdir=/Applications ;;
13728 * ) carbon_appdir=${carbon_appdir_x} ;;
13731 # We also have mouse menus.
13735 ### Use session management (-lSM -lICE) if available
13737 if test "${HAVE_X11}" = "yes"; then
13738 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13739 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13740 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13741 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13745 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13747 # Is the header compilable?
13748 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13749 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13750 cat >conftest.$ac_ext <<_ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 $ac_includes_default
13757 #include <X11/SM/SMlib.h>
13759 rm -f conftest.$ac_objext
13760 if { (ac_try="$ac_compile"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
13768 grep -v '^
*+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && {
13773 test -z "$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 } && test -s conftest.$ac_objext; then
13776 ac_header_compiler=yes
13778 echo "$as_me: failed program was:" >&5
13779 sed 's
/^
/|
/' conftest.$ac_ext >&5
13781 ac_header_compiler=no
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13786 echo "${ECHO_T}$ac_header_compiler" >&6; }
13788 # Is the header present?
13789 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13790 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13791 cat >conftest.$ac_ext <<_ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <X11/SM/SMlib.h>
13799 if { (ac_try="$ac_cpp conftest.$ac_ext"
13800 case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13807 grep -v '^
*+' conftest.er1 >conftest.err
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev/null && {
13812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13815 ac_header_preproc=yes
13817 echo "$as_me: failed program was:" >&5
13818 sed 's
/^
/|
/' conftest.$ac_ext >&5
13820 ac_header_preproc=no
13823 rm -f conftest.err conftest.$ac_ext
13824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13825 echo "${ECHO_T}$ac_header_preproc" >&6; }
13827 # So? What about this header?
13828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13830 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13831 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
13833 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
13834 ac_header_preproc=yes
13837 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13838 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13840 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13842 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13844 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
13846 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13848 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13852 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13853 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13854 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13859 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13860 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13863 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13864 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13865 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
13866 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lSM -lICE $LIBS"
13871 cat >conftest.$ac_ext <<_ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13884 char SmcOpenConnection ();
13888 return SmcOpenConnection ();
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_link") 2>conftest.er1
13902 grep -v '^
*+' conftest.er1 >conftest.err
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && {
13907 test -z "$ac_c_werror_flag" ||
13908 test ! -s conftest.err
13909 } && test -s conftest$ac_exeext &&
13910 $as_test_x conftest$ac_exeext; then
13911 ac_cv_lib_SM_SmcOpenConnection=yes
13913 echo "$as_me: failed program was:" >&5
13914 sed 's
/^
/|
/' conftest.$ac_ext >&5
13916 ac_cv_lib_SM_SmcOpenConnection=no
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext
13921 LIBS=$ac_check_lib_save_LIBS
13923 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13924 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13925 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13933 if test "${HAVE_X_SM}" = "yes"; then
13935 cat >>confdefs.h <<\_ACEOF
13936 #define HAVE_X_SM 1
13941 *) LIBS="-lSM -lICE $LIBS" ;;
13946 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
13947 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13948 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
13949 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 cat >conftest.
$ac_ext <<_ACEOF
13955 cat confdefs.h
>>conftest.
$ac_ext
13956 cat >>conftest.
$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13967 rm -f conftest.
$ac_objext conftest
$ac_exeext
13968 if { (ac_try
="$ac_link"
13969 case "(($ac_try" in
13970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_link") 2>conftest.er1
13976 grep -v '^ *+' conftest.er1 >conftest.err
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } && {
13981 test -z "$ac_c_werror_flag" ||
13982 test ! -s conftest.err
13983 } && test -s conftest$ac_exeext &&
13984 $as_test_x conftest$ac_exeext; then
13985 emacs_cv_netdb_declares_h_errno=yes
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13990 emacs_cv_netdb_declares_h_errno=no
13993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13994 conftest$ac_exeext conftest.$ac_ext
13996 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13997 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
13998 if test $emacs_cv_netdb_declares_h_errno = yes; then
14000 cat >>confdefs.h <<\_ACEOF
14001 #define HAVE_H_ERRNO 1
14006 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14007 # for constant arguments. Useless!
14008 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14009 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14010 if test "${ac_cv_working_alloca_h+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #include <alloca.h>
14023 char *p = (char *) alloca (2 * sizeof (int));
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14033 *) ac_try_echo
=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14038 grep -v '^ *+' conftest.er1
>conftest.err
14040 cat conftest.err
>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest
$ac_exeext &&
14046 $as_test_x conftest
$ac_exeext; then
14047 ac_cv_working_alloca_h
=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.
$ac_ext >&5
14052 ac_cv_working_alloca_h
=no
14055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14056 conftest
$ac_exeext conftest.
$ac_ext
14058 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14059 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14060 if test $ac_cv_working_alloca_h = yes; then
14062 cat >>confdefs.h
<<\_ACEOF
14063 #define HAVE_ALLOCA_H 1
14068 { echo "$as_me:$LINENO: checking for alloca" >&5
14069 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14070 if test "${ac_cv_func_alloca_works+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 cat >conftest.
$ac_ext <<_ACEOF
14076 cat confdefs.h
>>conftest.
$ac_ext
14077 cat >>conftest.
$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14080 # define alloca __builtin_alloca
14083 # include <malloc.h>
14084 # define alloca _alloca
14086 # ifdef HAVE_ALLOCA_H
14087 # include <alloca.h>
14092 # ifndef alloca /* predefined by HP cc +Olibcalls */
14103 char *p = (char *) alloca (1);
14109 rm -f conftest.
$ac_objext conftest
$ac_exeext
14110 if { (ac_try
="$ac_link"
14111 case "(($ac_try" in
14112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_link") 2>conftest.er1
14118 grep -v '^ *+' conftest.er1 >conftest.err
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } && {
14123 test -z "$ac_c_werror_flag" ||
14124 test ! -s conftest.err
14125 } && test -s conftest$ac_exeext &&
14126 $as_test_x conftest$ac_exeext; then
14127 ac_cv_func_alloca_works=yes
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14132 ac_cv_func_alloca_works=no
14135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14136 conftest$ac_exeext conftest.$ac_ext
14138 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14139 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14141 if test $ac_cv_func_alloca_works = yes; then
14143 cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_ALLOCA 1
14148 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14149 # that cause trouble. Some versions do not even contain alloca or
14150 # contain a buggy version. If you still want to use their alloca,
14151 # use ar to extract alloca.o from them instead of compiling alloca.c.
14153 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14155 cat >>confdefs.h <<\_ACEOF
14160 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14161 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14162 if test "${ac_cv_os_cray+set}" = set; then
14163 echo $ECHO_N "(cached
) $ECHO_C" >&6
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #if defined CRAY && ! defined CRAY2
14178 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14179 $EGREP "webecray
" >/dev/null 2>&1; then
14187 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14188 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14189 if test $ac_cv_os_cray = yes; then
14190 for ac_func in _getb67 GETB67 getb67; do
14191 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14192 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14193 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14194 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14195 echo $ECHO_N "(cached
) $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14205 #define $ac_func innocuous_$ac_func
14207 /* System header to define __stub macros and hopefully few prototypes,
14208 which can conflict with char $ac_func (); below.
14209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14210 <limits.h> exists even on freestanding compilers. */
14213 # include <limits.h>
14215 # include <assert.h>
14220 /* Override any GCC internal prototype to avoid an error.
14221 Use char because int might match the return type of a GCC
14222 builtin and then its argument prototype would still apply. */
14227 /* The GNU C library defines this for functions which it implements
14228 to always fail with ENOSYS. Some functions are actually named
14229 something starting with __ and the normal name is an alias. */
14230 #if defined __stub_$ac_func || defined __stub___$ac_func
14237 return $ac_func ();
14242 rm -f conftest.$ac_objext conftest$ac_exeext
14243 if { (ac_try="$ac_link"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_link") 2>conftest.er1
14251 grep -v '^ *+' conftest.er1 >conftest.err
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14255 (exit $ac_status); } && {
14256 test -z "$ac_c_werror_flag" ||
14257 test ! -s conftest.err
14258 } && test -s conftest$ac_exeext &&
14259 $as_test_x conftest$ac_exeext; then
14260 eval "$as_ac_var=yes"
14262 echo "$as_me: failed program was
:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14265 eval "$as_ac_var=no
"
14268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14269 conftest$ac_exeext conftest.$ac_ext
14271 ac_res=`eval echo '${'$as_ac_var'}'`
14272 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14273 echo "${ECHO_T}$ac_res" >&6; }
14274 if test `eval echo '${'$as_ac_var'}'` = yes; then
14276 cat >>confdefs.h <<_ACEOF
14277 #define CRAY_STACKSEG_END $ac_func
14286 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14287 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14288 if test "${ac_cv_c_stack_direction+set}" = set; then
14289 echo $ECHO_N "(cached
) $ECHO_C" >&6
14291 if test "$cross_compiling" = yes; then
14292 ac_cv_c_stack_direction=0
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14302 find_stack_direction ()
14304 static char *addr = 0;
14309 return find_stack_direction ();
14312 return (&dummy > addr) ? 1 : -1;
14318 return find_stack_direction () < 0;
14321 rm -f conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>&5
14330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_c_stack_direction=1
14343 echo "$as_me: program exited with status
$ac_status" >&5
14344 echo "$as_me: failed program was
:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ( exit $ac_status )
14348 ac_cv_c_stack_direction=-1
14350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14355 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14356 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14358 cat >>confdefs.h <<_ACEOF
14359 #define STACK_DIRECTION $ac_cv_c_stack_direction
14366 # fmod, logb, and frexp are found in -lm on most systems.
14367 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14369 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14370 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14371 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14372 echo $ECHO_N "(cached
) $ECHO_C" >&6
14374 ac_check_lib_save_LIBS=$LIBS
14376 cat >conftest.$ac_ext <<_ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_link") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14411 (exit $ac_status); } && {
14412 test -z "$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest$ac_exeext &&
14415 $as_test_x conftest$ac_exeext; then
14416 ac_cv_lib_m_sqrt=yes
14418 echo "$as_me: failed program was
:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14421 ac_cv_lib_m_sqrt=no
14424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14425 conftest$ac_exeext conftest.$ac_ext
14426 LIBS=$ac_check_lib_save_LIBS
14428 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14429 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14430 if test $ac_cv_lib_m_sqrt = yes; then
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_LIBM 1
14440 # Check for mail-locking functions in a "mail" library. Probably this should
14441 # have the same check as for liblockfile below.
14443 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14444 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14445 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14446 echo $ECHO_N "(cached
) $ECHO_C" >&6
14448 ac_check_lib_save_LIBS=$LIBS
14449 LIBS="-lmail $LIBS"
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14457 /* Override any GCC internal prototype to avoid an error.
14458 Use char because int might match the return type of a GCC
14459 builtin and then its argument prototype would still apply. */
14467 return maillock ();
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (ac_try="$ac_link"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_link") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest$ac_exeext &&
14489 $as_test_x conftest$ac_exeext; then
14490 ac_cv_lib_mail_maillock=yes
14492 echo "$as_me: failed program was
:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 ac_cv_lib_mail_maillock=no
14498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14499 conftest$ac_exeext conftest.$ac_ext
14500 LIBS=$ac_check_lib_save_LIBS
14502 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14503 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14504 if test $ac_cv_lib_mail_maillock = yes; then
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_LIBMAIL 1
14509 LIBS="-lmail $LIBS"
14514 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14515 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14516 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14517 echo $ECHO_N "(cached
) $ECHO_C" >&6
14519 ac_check_lib_save_LIBS=$LIBS
14520 LIBS="-llockfile $LIBS"
14521 cat >conftest.$ac_ext <<_ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 /* Override any GCC internal prototype to avoid an error.
14529 Use char because int might match the return type of a GCC
14530 builtin and then its argument prototype would still apply. */
14538 return maillock ();
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (ac_try="$ac_link"
14545 case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_link") 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest$ac_exeext &&
14560 $as_test_x conftest$ac_exeext; then
14561 ac_cv_lib_lockfile_maillock=yes
14563 echo "$as_me: failed program was
:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_cv_lib_lockfile_maillock=no
14569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14570 conftest$ac_exeext conftest.$ac_ext
14571 LIBS=$ac_check_lib_save_LIBS
14573 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14574 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14575 if test $ac_cv_lib_lockfile_maillock = yes; then
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_LIBLOCKFILE 1
14580 LIBS="-llockfile $LIBS"
14584 # If we have the shared liblockfile, assume we must use it for mail
14585 # locking (e.g. Debian). If we couldn't link against liblockfile
14586 # (no liblockfile.a installed), ensure that we don't need to.
14587 if test "$ac_cv_lib_lockfile_maillock" = no; then
14588 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14589 set dummy liblockfile.so; ac_word=$2
14590 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14591 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14592 if test "${ac_cv_prog_liblockfile+set}" = set; then
14593 echo $ECHO_N "(cached
) $ECHO_C" >&6
14595 if test -n "$liblockfile"; then
14596 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14600 for as_dir in $as_dummy
14603 test -z "$as_dir" && as_dir=.
14604 for ac_exec_ext in '' $ac_executable_extensions; do
14605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14606 ac_cv_prog_liblockfile="yes"
14607 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14614 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14617 liblockfile=$ac_cv_prog_liblockfile
14618 if test -n "$liblockfile"; then
14619 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14620 echo "${ECHO_T}$liblockfile" >&6; }
14622 { echo "$as_me:$LINENO: result
: no
" >&5
14623 echo "${ECHO_T}no
" >&6; }
14627 if test $ac_cv_prog_liblockfile = yes; then
14628 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14629 This probably means that movemail could lose mail.
14630 There may be a \`development' package to
install containing liblockfile.
" >&5
14631 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14632 This probably means that movemail could lose mail.
14633 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14634 { (exit 1); exit 1; }; }
14639 for ac_func in touchlock
14641 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14642 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14643 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14644 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14645 echo $ECHO_N "(cached
) $ECHO_C" >&6
14647 cat >conftest.$ac_ext <<_ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14655 #define $ac_func innocuous_$ac_func
14657 /* System header to define __stub macros and hopefully few prototypes,
14658 which can conflict with char $ac_func (); below.
14659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14660 <limits.h> exists even on freestanding compilers. */
14663 # include <limits.h>
14665 # include <assert.h>
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14677 /* The GNU C library defines this for functions which it implements
14678 to always fail with ENOSYS. Some functions are actually named
14679 something starting with __ and the normal name is an alias. */
14680 #if defined __stub_$ac_func || defined __stub___$ac_func
14687 return $ac_func ();
14692 rm -f conftest.$ac_objext conftest$ac_exeext
14693 if { (ac_try="$ac_link"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_link") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest$ac_exeext &&
14709 $as_test_x conftest$ac_exeext; then
14710 eval "$as_ac_var=yes"
14712 echo "$as_me: failed program was
:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 eval "$as_ac_var=no
"
14718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14719 conftest$ac_exeext conftest.$ac_ext
14721 ac_res=`eval echo '${'$as_ac_var'}'`
14722 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14723 echo "${ECHO_T}$ac_res" >&6; }
14724 if test `eval echo '${'$as_ac_var'}'` = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14733 for ac_header in maillock.h
14735 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14736 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14737 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14738 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14739 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14740 echo $ECHO_N "(cached
) $ECHO_C" >&6
14742 ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14746 # Is the header compilable?
14747 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14748 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 $ac_includes_default
14756 #include <$ac_header>
14758 rm -f conftest.$ac_objext
14759 if { (ac_try="$ac_compile"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_compile") 2>conftest.er1
14767 grep -v '^ *+' conftest.er1 >conftest.err
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest.$ac_objext; then
14775 ac_header_compiler=yes
14777 echo "$as_me: failed program was
:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_header_compiler=no
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14785 echo "${ECHO_T}$ac_header_compiler" >&6; }
14787 # Is the header present?
14788 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14789 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <$ac_header>
14798 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14806 grep -v '^ *+' conftest.er1 >conftest.err
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14810 (exit $ac_status); } >/dev/null && {
14811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14814 ac_header_preproc=yes
14816 echo "$as_me: failed program was
:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 ac_header_preproc=no
14822 rm -f conftest.err conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14824 echo "${ECHO_T}$ac_header_preproc" >&6; }
14826 # So? What about this header?
14827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14829 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14830 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14831 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14833 ac_header_preproc=yes
14836 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14837 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14838 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14839 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14840 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14841 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14842 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14843 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14844 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14846 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14847 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14851 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14852 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14853 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14854 echo $ECHO_N "(cached
) $ECHO_C" >&6
14856 eval "$as_ac_Header=\
$ac_header_preproc"
14858 ac_res=`eval echo '${'$as_ac_Header'}'`
14859 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14860 echo "${ECHO_T}$ac_res" >&6; }
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14942 for ac_func in gethostname getdomainname dup2 \
14943 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14944 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14945 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14946 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14947 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14948 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14949 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14950 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14952 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14953 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14954 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14955 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14956 echo $ECHO_N "(cached
) $ECHO_C" >&6
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14966 #define $ac_func innocuous_$ac_func
14968 /* System header to define __stub macros and hopefully few prototypes,
14969 which can conflict with char $ac_func (); below.
14970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14971 <limits.h> exists even on freestanding compilers. */
14974 # include <limits.h>
14976 # include <assert.h>
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14988 /* The GNU C library defines this for functions which it implements
14989 to always fail with ENOSYS. Some functions are actually named
14990 something starting with __ and the normal name is an alias. */
14991 #if defined __stub_$ac_func || defined __stub___$ac_func
14998 return $ac_func ();
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15016 (exit $ac_status); } && {
15017 test -z "$ac_c_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest$ac_exeext &&
15020 $as_test_x conftest$ac_exeext; then
15021 eval "$as_ac_var=yes"
15023 echo "$as_me: failed program was
:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 eval "$as_ac_var=no
"
15029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15030 conftest$ac_exeext conftest.$ac_ext
15032 ac_res=`eval echo '${'$as_ac_var'}'`
15033 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035 if test `eval echo '${'$as_ac_var'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15045 for ac_header in sys/un.h
15047 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15049 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15050 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15051 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15052 echo $ECHO_N "(cached
) $ECHO_C" >&6
15054 ac_res=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15056 echo "${ECHO_T}$ac_res" >&6; }
15058 # Is the header compilable?
15059 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15060 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 $ac_includes_default
15068 #include <$ac_header>
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_compile") 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15083 (exit $ac_status); } && {
15084 test -z "$ac_c_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest.$ac_objext; then
15087 ac_header_compiler=yes
15089 echo "$as_me: failed program was
:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_header_compiler=no
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15097 echo "${ECHO_T}$ac_header_compiler" >&6; }
15099 # Is the header present?
15100 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15101 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15102 cat >conftest.$ac_ext <<_ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #include <$ac_header>
15110 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15111 case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15118 grep -v '^ *+' conftest.er1 >conftest.err
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15122 (exit $ac_status); } >/dev/null && {
15123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15126 ac_header_preproc=yes
15128 echo "$as_me: failed program was
:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15131 ac_header_preproc=no
15134 rm -f conftest.err conftest.$ac_ext
15135 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15136 echo "${ECHO_T}$ac_header_preproc" >&6; }
15138 # So? What about this header?
15139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15141 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15142 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15143 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15145 ac_header_preproc=yes
15148 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15149 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15150 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15151 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15152 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15153 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15154 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15155 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15156 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15158 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15159 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15163 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15164 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15165 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15166 echo $ECHO_N "(cached
) $ECHO_C" >&6
15168 eval "$as_ac_Header=\
$ac_header_preproc"
15170 ac_res=`eval echo '${'$as_ac_Header'}'`
15171 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15172 echo "${ECHO_T}$ac_res" >&6; }
15175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15189 for ac_header in $ac_header_list
15191 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15192 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15193 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15194 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15195 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15196 echo $ECHO_N "(cached
) $ECHO_C" >&6
15198 ac_res=`eval echo '${'$as_ac_Header'}'`
15199 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15200 echo "${ECHO_T}$ac_res" >&6; }
15202 # Is the header compilable?
15203 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15204 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 $ac_includes_default
15212 #include <$ac_header>
15214 rm -f conftest.$ac_objext
15215 if { (ac_try="$ac_compile"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_compile") 2>conftest.er1
15223 grep -v '^ *+' conftest.er1 >conftest.err
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest.$ac_objext; then
15231 ac_header_compiler=yes
15233 echo "$as_me: failed program was
:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 ac_header_compiler=no
15239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15241 echo "${ECHO_T}$ac_header_compiler" >&6; }
15243 # Is the header present?
15244 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15245 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <$ac_header>
15254 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15266 (exit $ac_status); } >/dev/null && {
15267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15270 ac_header_preproc=yes
15272 echo "$as_me: failed program was
:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_header_preproc=no
15278 rm -f conftest.err conftest.$ac_ext
15279 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15280 echo "${ECHO_T}$ac_header_preproc" >&6; }
15282 # So? What about this header?
15283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15285 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15286 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15287 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15289 ac_header_preproc=yes
15292 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15293 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15294 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15295 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15296 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15297 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15298 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15299 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15300 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15302 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15303 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15307 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15308 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15309 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15310 echo $ECHO_N "(cached
) $ECHO_C" >&6
15312 eval "$as_ac_Header=\
$ac_header_preproc"
15314 ac_res=`eval echo '${'$as_ac_Header'}'`
15315 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15320 cat >>confdefs.h <<_ACEOF
15321 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15336 for ac_func in $ac_func_list
15338 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15339 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15340 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15341 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached
) $ECHO_C" >&6
15344 cat >conftest.$ac_ext <<_ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15352 #define $ac_func innocuous_$ac_func
15354 /* System header to define __stub macros and hopefully few prototypes,
15355 which can conflict with char $ac_func (); below.
15356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15357 <limits.h> exists even on freestanding compilers. */
15360 # include <limits.h>
15362 # include <assert.h>
15367 /* Override any GCC internal prototype to avoid an error.
15368 Use char because int might match the return type of a GCC
15369 builtin and then its argument prototype would still apply. */
15374 /* The GNU C library defines this for functions which it implements
15375 to always fail with ENOSYS. Some functions are actually named
15376 something starting with __ and the normal name is an alias. */
15377 #if defined __stub_$ac_func || defined __stub___$ac_func
15384 return $ac_func ();
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_link") 2>conftest.er1
15398 grep -v '^ *+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext &&
15406 $as_test_x conftest$ac_exeext; then
15407 eval "$as_ac_var=yes"
15409 echo "$as_me: failed program was
:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 eval "$as_ac_var=no
"
15415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15416 conftest$ac_exeext conftest.$ac_ext
15418 ac_res=`eval echo '${'$as_ac_var'}'`
15419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15420 echo "${ECHO_T}$ac_res" >&6; }
15421 if test `eval echo '${'$as_ac_var'}'` = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15445 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15446 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15447 if test "${ac_cv_func_working_mktime+set}" = set; then
15448 echo $ECHO_N "(cached
) $ECHO_C" >&6
15450 if test "$cross_compiling" = yes; then
15451 ac_cv_func_working_mktime=no
15453 cat >conftest.$ac_ext <<_ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 /* Test program from Paul Eggert and Tony Leneis. */
15460 #ifdef TIME_WITH_SYS_TIME
15461 # include <sys/time.h>
15464 # ifdef HAVE_SYS_TIME_H
15465 # include <sys/time.h>
15471 #include <stdlib.h>
15473 #ifdef HAVE_UNISTD_H
15474 # include <unistd.h>
15478 # define alarm(X) /* empty */
15481 /* Work around redefinition to rpl_putenv by other config tests. */
15484 static time_t time_t_max;
15485 static time_t time_t_min;
15487 /* Values we'll use to set the TZ environment variable. */
15488 static char *tz_strings[] = {
15489 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15490 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15492 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15494 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15495 Based on a problem report from Andreas Jaeger. */
15497 spring_forward_gap ()
15499 /* glibc (up to about 1998-10-07) failed this test. */
15502 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15503 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15504 on systems that don't support the Olson extension, or don't have the
15505 full zoneinfo tables installed. */
15506 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15515 return mktime (&tm) != (time_t) -1;
15523 return ! (lt = localtime (&now)) || mktime (lt) == now;
15530 return (mktime_test1 (now)
15531 && mktime_test1 ((time_t) (time_t_max - now))
15532 && mktime_test1 ((time_t) (time_t_min + now)));
15538 /* Based on code from Ariel Faigon. */
15548 return tm.tm_mon == 2 && tm.tm_mday == 31;
15557 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15558 now = mktime (&tm);
15559 if (now != (time_t) -1)
15561 struct tm *lt = localtime (&now);
15563 && lt->tm_year == tm.tm_year
15564 && lt->tm_mon == tm.tm_mon
15565 && lt->tm_mday == tm.tm_mday
15566 && lt->tm_hour == tm.tm_hour
15567 && lt->tm_min == tm.tm_min
15568 && lt->tm_sec == tm.tm_sec
15569 && lt->tm_yday == tm.tm_yday
15570 && lt->tm_wday == tm.tm_wday
15571 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15572 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15581 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15582 ignoring leap seconds. */
15583 unsigned long int answer = 2527315200UL;
15587 tm.tm_year = 2050 - 1900;
15590 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15593 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15594 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15595 on systems that don't support the Olson extension, or don't have the
15596 full zoneinfo tables installed. */
15597 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15601 /* Check that the result is either a failure, or close enough
15602 to the correct answer that we can assume the discrepancy is
15603 due to leap seconds. */
15604 return (t == (time_t) -1
15605 || (0 < t && answer - 120 <= t && t <= answer + 120));
15614 /* This test makes some buggy mktime implementations loop.
15615 Give up after 60 seconds; a mktime slower than that
15616 isn't worth using anyway. */
15619 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15622 if ((time_t) -1 < 0)
15623 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15625 delta = time_t_max / 997; /* a suitable prime number */
15626 for (i = 0; i < N_STRINGS; i++)
15629 putenv (tz_strings[i]);
15631 for (t = 0; t <= time_t_max - delta; t += delta)
15632 if (! mktime_test (t))
15634 if (! (mktime_test ((time_t) 1)
15635 && mktime_test ((time_t) (60 * 60))
15636 && mktime_test ((time_t) (60 * 60 * 24))))
15639 for (j = 1; 0 < j; j *= 2)
15640 if (! bigtime_test (j))
15642 if (! bigtime_test (j - 1))
15645 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15648 rm -f conftest$ac_exeext
15649 if { (ac_try="$ac_link"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_link") 2>&5
15657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15659 { (case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_try") 2>&5
15666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_func_working_mktime=yes
15670 echo "$as_me: program exited with status
$ac_status" >&5
15671 echo "$as_me: failed program was
:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ( exit $ac_status )
15675 ac_cv_func_working_mktime=no
15677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15682 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15683 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15684 if test $ac_cv_func_working_mktime = no; then
15685 case " $LIBOBJS " in
15686 *" mktime.
$ac_objext "* ) ;;
15687 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15693 if test "$ac_cv_func_working_mktime" = no; then
15695 cat >>confdefs.h <<\_ACEOF
15696 #define BROKEN_MKTIME 1
15701 ac_have_func=no # yes means we've found a way to get the load average.
15703 # Make sure getloadavg.c is where it belongs, at configure-time.
15704 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
15705 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
15706 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
15707 { (exit 1); exit 1; }; }
15711 # Check for getloadavg, but be sure not to touch the cache variable.
15712 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
15713 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
15714 if test "${ac_cv_func_getloadavg+set}" = set; then
15715 echo $ECHO_N "(cached
) $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15725 #define getloadavg innocuous_getloadavg
15727 /* System header to define __stub macros and hopefully few prototypes,
15728 which can conflict with char getloadavg (); below.
15729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15730 <limits.h> exists even on freestanding compilers. */
15733 # include <limits.h>
15735 # include <assert.h>
15740 /* Override any GCC internal prototype to avoid an error.
15741 Use char because int might match the return type of a GCC
15742 builtin and then its argument prototype would still apply. */
15746 char getloadavg ();
15747 /* The GNU C library defines this for functions which it implements
15748 to always fail with ENOSYS. Some functions are actually named
15749 something starting with __ and the normal name is an alias. */
15750 #if defined __stub_getloadavg || defined __stub___getloadavg
15757 return getloadavg ();
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (ac_try="$ac_link"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_link") 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest$ac_exeext &&
15779 $as_test_x conftest$ac_exeext; then
15780 ac_cv_func_getloadavg=yes
15782 echo "$as_me: failed program was
:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_cv_func_getloadavg=no
15788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15789 conftest$ac_exeext conftest.$ac_ext
15791 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
15792 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15793 if test $ac_cv_func_getloadavg = yes; then
15798 ) && ac_have_func=yes
15800 # On HPUX9, an unprivileged user can get load averages through this function.
15802 for ac_func in pstat_getdynamic
15804 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15805 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15806 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15807 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15808 echo $ECHO_N "(cached
) $ECHO_C" >&6
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15818 #define $ac_func innocuous_$ac_func
15820 /* System header to define __stub macros and hopefully few prototypes,
15821 which can conflict with char $ac_func (); below.
15822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15823 <limits.h> exists even on freestanding compilers. */
15826 # include <limits.h>
15828 # include <assert.h>
15833 /* Override any GCC internal prototype to avoid an error.
15834 Use char because int might match the return type of a GCC
15835 builtin and then its argument prototype would still apply. */
15840 /* The GNU C library defines this for functions which it implements
15841 to always fail with ENOSYS. Some functions are actually named
15842 something starting with __ and the normal name is an alias. */
15843 #if defined __stub_$ac_func || defined __stub___$ac_func
15850 return $ac_func ();
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (ac_try="$ac_link"
15857 case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_link") 2>conftest.er1
15864 grep -v '^ *+' conftest.er1 >conftest.err
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15868 (exit $ac_status); } && {
15869 test -z "$ac_c_werror_flag" ||
15870 test ! -s conftest.err
15871 } && test -s conftest$ac_exeext &&
15872 $as_test_x conftest$ac_exeext; then
15873 eval "$as_ac_var=yes"
15875 echo "$as_me: failed program was
:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 eval "$as_ac_var=no
"
15881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882 conftest$ac_exeext conftest.$ac_ext
15884 ac_res=`eval echo '${'$as_ac_var'}'`
15885 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15886 echo "${ECHO_T}$ac_res" >&6; }
15887 if test `eval echo '${'$as_ac_var'}'` = yes; then
15888 cat >>confdefs.h <<_ACEOF
15889 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15896 # Solaris has libkstat which does not require root.
15898 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
15899 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
15900 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15901 echo $ECHO_N "(cached
) $ECHO_C" >&6
15903 ac_check_lib_save_LIBS=$LIBS
15904 LIBS="-lkstat $LIBS"
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15912 /* Override any GCC internal prototype to avoid an error.
15913 Use char because int might match the return type of a GCC
15914 builtin and then its argument prototype would still apply. */
15918 char kstat_open ();
15922 return kstat_open ();
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (ac_try="$ac_link"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_link") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest$ac_exeext &&
15944 $as_test_x conftest$ac_exeext; then
15945 ac_cv_lib_kstat_kstat_open=yes
15947 echo "$as_me: failed program was
:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_cv_lib_kstat_kstat_open=no
15953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15954 conftest$ac_exeext conftest.$ac_ext
15955 LIBS=$ac_check_lib_save_LIBS
15957 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
15958 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
15959 if test $ac_cv_lib_kstat_kstat_open = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define HAVE_LIBKSTAT 1
15964 LIBS="-lkstat $LIBS"
15968 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15970 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15971 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15972 # to get the right answer into the cache.
15973 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15974 if test $ac_have_func = no; then
15975 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
15976 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
15977 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15978 echo $ECHO_N "(cached
) $ECHO_C" >&6
15980 ac_check_lib_save_LIBS=$LIBS
15982 cat >conftest.$ac_ext <<_ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15989 /* Override any GCC internal prototype to avoid an error.
15990 Use char because int might match the return type of a GCC
15991 builtin and then its argument prototype would still apply. */
15999 return elf_begin ();
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (ac_try="$ac_link"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_link") 2>conftest.er1
16013 grep -v '^ *+' conftest.er1 >conftest.err
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16017 (exit $ac_status); } && {
16018 test -z "$ac_c_werror_flag" ||
16019 test ! -s conftest.err
16020 } && test -s conftest$ac_exeext &&
16021 $as_test_x conftest$ac_exeext; then
16022 ac_cv_lib_elf_elf_begin=yes
16024 echo "$as_me: failed program was
:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_cv_lib_elf_elf_begin=no
16030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16031 conftest$ac_exeext conftest.$ac_ext
16032 LIBS=$ac_check_lib_save_LIBS
16034 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16035 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16036 if test $ac_cv_lib_elf_elf_begin = yes; then
16041 if test $ac_have_func = no; then
16042 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16043 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16044 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16045 echo $ECHO_N "(cached
) $ECHO_C" >&6
16047 ac_check_lib_save_LIBS=$LIBS
16049 cat >conftest.$ac_ext <<_ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16056 /* Override any GCC internal prototype to avoid an error.
16057 Use char because int might match the return type of a GCC
16058 builtin and then its argument prototype would still apply. */
16066 return kvm_open ();
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (ac_try="$ac_link"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_link") 2>conftest.er1
16080 grep -v '^ *+' conftest.er1 >conftest.err
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16084 (exit $ac_status); } && {
16085 test -z "$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16087 } && test -s conftest$ac_exeext &&
16088 $as_test_x conftest$ac_exeext; then
16089 ac_cv_lib_kvm_kvm_open=yes
16091 echo "$as_me: failed program was
:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_cv_lib_kvm_kvm_open=no
16097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16098 conftest$ac_exeext conftest.$ac_ext
16099 LIBS=$ac_check_lib_save_LIBS
16101 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16102 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16103 if test $ac_cv_lib_kvm_kvm_open = yes; then
16107 # Check for the 4.4BSD definition of getloadavg.
16108 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16109 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16110 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16111 echo $ECHO_N "(cached
) $ECHO_C" >&6
16113 ac_check_lib_save_LIBS=$LIBS
16114 LIBS="-lutil $LIBS"
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16122 /* Override any GCC internal prototype to avoid an error.
16123 Use char because int might match the return type of a GCC
16124 builtin and then its argument prototype would still apply. */
16128 char getloadavg ();
16132 return getloadavg ();
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (ac_try="$ac_link"
16139 case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_link") 2>conftest.er1
16146 grep -v '^ *+' conftest.er1 >conftest.err
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16150 (exit $ac_status); } && {
16151 test -z "$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 } && test -s conftest$ac_exeext &&
16154 $as_test_x conftest$ac_exeext; then
16155 ac_cv_lib_util_getloadavg=yes
16157 echo "$as_me: failed program was
:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16160 ac_cv_lib_util_getloadavg=no
16163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16164 conftest$ac_exeext conftest.$ac_ext
16165 LIBS=$ac_check_lib_save_LIBS
16167 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16168 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16169 if test $ac_cv_lib_util_getloadavg = yes; then
16170 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16175 if test $ac_have_func = no; then
16176 # There is a commonly available library for RS/6000 AIX.
16177 # Since it is not a standard part of AIX, it might be installed locally.
16178 ac_getloadavg_LIBS=$LIBS
16179 LIBS="-L/usr
/local
/lib
$LIBS"
16180 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16181 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16182 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16183 echo $ECHO_N "(cached
) $ECHO_C" >&6
16185 ac_check_lib_save_LIBS=$LIBS
16186 LIBS="-lgetloadavg $LIBS"
16187 cat >conftest.$ac_ext <<_ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16194 /* Override any GCC internal prototype to avoid an error.
16195 Use char because int might match the return type of a GCC
16196 builtin and then its argument prototype would still apply. */
16200 char getloadavg ();
16204 return getloadavg ();
16209 rm -f conftest.$ac_objext conftest$ac_exeext
16210 if { (ac_try="$ac_link"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_link") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest$ac_exeext &&
16226 $as_test_x conftest$ac_exeext; then
16227 ac_cv_lib_getloadavg_getloadavg=yes
16229 echo "$as_me: failed program was
:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_cv_lib_getloadavg_getloadavg=no
16235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16236 conftest$ac_exeext conftest.$ac_ext
16237 LIBS=$ac_check_lib_save_LIBS
16239 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16240 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16241 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16242 LIBS="-lgetloadavg $LIBS"
16244 LIBS=$ac_getloadavg_LIBS
16249 # Make sure it is really in the library, if we think we found it,
16250 # otherwise set up the replacement function.
16252 for ac_func in getloadavg
16254 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16255 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16256 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16257 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16258 echo $ECHO_N "(cached
) $ECHO_C" >&6
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16268 #define $ac_func innocuous_$ac_func
16270 /* System header to define __stub macros and hopefully few prototypes,
16271 which can conflict with char $ac_func (); below.
16272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273 <limits.h> exists even on freestanding compilers. */
16276 # include <limits.h>
16278 # include <assert.h>
16283 /* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16290 /* The GNU C library defines this for functions which it implements
16291 to always fail with ENOSYS. Some functions are actually named
16292 something starting with __ and the normal name is an alias. */
16293 #if defined __stub_$ac_func || defined __stub___$ac_func
16300 return $ac_func ();
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (ac_try="$ac_link"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_link") 2>conftest.er1
16314 grep -v '^ *+' conftest.er1 >conftest.err
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest$ac_exeext &&
16322 $as_test_x conftest$ac_exeext; then
16323 eval "$as_ac_var=yes"
16325 echo "$as_me: failed program was
:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16328 eval "$as_ac_var=no
"
16331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332 conftest$ac_exeext conftest.$ac_ext
16334 ac_res=`eval echo '${'$as_ac_var'}'`
16335 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 if test `eval echo '${'$as_ac_var'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16343 case " $LIBOBJS " in
16344 *" getloadavg.
$ac_objext "* ) ;;
16345 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16350 cat >>confdefs.h <<\_ACEOF
16351 #define C_GETLOADAVG 1
16354 # Figure out what our getloadavg.c needs.
16356 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16357 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16358 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16359 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16360 echo $ECHO_N "(cached
) $ECHO_C" >&6
16362 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16363 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16365 # Is the header compilable?
16366 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16367 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16375 #include <sys/dg_sys_info.h>
16377 rm -f conftest.$ac_objext
16378 if { (ac_try="$ac_compile"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_compile") 2>conftest.er1
16386 grep -v '^ *+' conftest.er1 >conftest.err
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest.$ac_objext; then
16394 ac_header_compiler=yes
16396 echo "$as_me: failed program was
:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 ac_header_compiler=no
16402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16404 echo "${ECHO_T}$ac_header_compiler" >&6; }
16406 # Is the header present?
16407 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16408 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16409 cat >conftest.$ac_ext <<_ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #include <sys/dg_sys_info.h>
16417 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16418 case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16425 grep -v '^ *+' conftest.er1 >conftest.err
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16429 (exit $ac_status); } >/dev/null && {
16430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16431 test ! -s conftest.err
16433 ac_header_preproc=yes
16435 echo "$as_me: failed program was
:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 ac_header_preproc=no
16441 rm -f conftest.err conftest.$ac_ext
16442 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16443 echo "${ECHO_T}$ac_header_preproc" >&6; }
16445 # So? What about this header?
16446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16448 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16449 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16450 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16451 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16452 ac_header_preproc=yes
16455 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16456 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16457 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16458 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16459 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16460 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16461 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16462 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16463 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16464 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16465 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16466 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16470 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16471 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16473 echo $ECHO_N "(cached
) $ECHO_C" >&6
16475 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16477 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16478 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16481 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16484 cat >>confdefs.h <<\_ACEOF
16489 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16490 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16492 echo $ECHO_N "(cached
) $ECHO_C" >&6
16494 ac_check_lib_save_LIBS=$LIBS
16496 cat >conftest.$ac_ext <<_ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16509 char dg_sys_info ();
16513 return dg_sys_info ();
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (ac_try="$ac_link"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_link") 2>conftest.er1
16527 grep -v '^ *+' conftest.er1 >conftest.err
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest$ac_exeext &&
16535 $as_test_x conftest$ac_exeext; then
16536 ac_cv_lib_dgc_dg_sys_info=yes
16538 echo "$as_me: failed program was
:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_cv_lib_dgc_dg_sys_info=no
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545 conftest$ac_exeext conftest.$ac_ext
16546 LIBS=$ac_check_lib_save_LIBS
16548 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16549 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16550 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_LIBDGC 1
16563 if test "${ac_cv_header_locale_h+set}" = set; then
16564 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16565 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16566 if test "${ac_cv_header_locale_h+set}" = set; then
16567 echo $ECHO_N "(cached
) $ECHO_C" >&6
16569 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16570 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16572 # Is the header compilable?
16573 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16574 echo $ECHO_N "checking locale.h usability...
$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 $ac_includes_default
16582 #include <locale.h>
16584 rm -f conftest.$ac_objext
16585 if { (ac_try="$ac_compile"
16586 case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_compile") 2>conftest.er1
16593 grep -v '^ *+' conftest.er1 >conftest.err
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16597 (exit $ac_status); } && {
16598 test -z "$ac_c_werror_flag" ||
16599 test ! -s conftest.err
16600 } && test -s conftest.$ac_objext; then
16601 ac_header_compiler=yes
16603 echo "$as_me: failed program was
:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_header_compiler=no
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16611 echo "${ECHO_T}$ac_header_compiler" >&6; }
16613 # Is the header present?
16614 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16615 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 #include <locale.h>
16624 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16632 grep -v '^ *+' conftest.er1 >conftest.err
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16636 (exit $ac_status); } >/dev/null && {
16637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16638 test ! -s conftest.err
16640 ac_header_preproc=yes
16642 echo "$as_me: failed program was
:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_header_preproc=no
16648 rm -f conftest.err conftest.$ac_ext
16649 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16650 echo "${ECHO_T}$ac_header_preproc" >&6; }
16652 # So? What about this header?
16653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16655 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16656 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16657 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16658 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16659 ac_header_preproc=yes
16662 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16663 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16664 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16665 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16666 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16667 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16668 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16669 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16670 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16671 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16672 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16673 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16677 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16678 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16679 if test "${ac_cv_header_locale_h+set}" = set; then
16680 echo $ECHO_N "(cached
) $ECHO_C" >&6
16682 ac_cv_header_locale_h=$ac_header_preproc
16684 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16685 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16691 for ac_func in setlocale
16693 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16694 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16695 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16696 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16697 echo $ECHO_N "(cached
) $ECHO_C" >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16707 #define $ac_func innocuous_$ac_func
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char $ac_func (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16715 # include <limits.h>
16717 # include <assert.h>
16722 /* Override any GCC internal prototype to avoid an error.
16723 Use char because int might match the return type of a GCC
16724 builtin and then its argument prototype would still apply. */
16729 /* The GNU C library defines this for functions which it implements
16730 to always fail with ENOSYS. Some functions are actually named
16731 something starting with __ and the normal name is an alias. */
16732 #if defined __stub_$ac_func || defined __stub___$ac_func
16739 return $ac_func ();
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (ac_try="$ac_link"
16746 case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_link") 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16757 (exit $ac_status); } && {
16758 test -z "$ac_c_werror_flag" ||
16759 test ! -s conftest.err
16760 } && test -s conftest$ac_exeext &&
16761 $as_test_x conftest$ac_exeext; then
16762 eval "$as_ac_var=yes"
16764 echo "$as_me: failed program was
:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 eval "$as_ac_var=no
"
16770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16771 conftest$ac_exeext conftest.$ac_ext
16773 ac_res=`eval echo '${'$as_ac_var'}'`
16774 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16775 echo "${ECHO_T}$ac_res" >&6; }
16776 if test `eval echo '${'$as_ac_var'}'` = yes; then
16777 cat >>confdefs.h <<_ACEOF
16778 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16785 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16786 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16787 # Irix 4.0.5F has the header but not the library.
16788 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16791 cat >>confdefs.h <<\_ACEOF
16797 if test $ac_have_func = no; then
16798 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16799 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
16800 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
16801 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16802 echo $ECHO_N "(cached
) $ECHO_C" >&6
16804 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
16805 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16807 # Is the header compilable?
16808 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
16809 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 $ac_includes_default
16817 #include <inq_stats/cpustats.h>
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest.$ac_objext; then
16836 ac_header_compiler=yes
16838 echo "$as_me: failed program was
:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 ac_header_compiler=no
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16846 echo "${ECHO_T}$ac_header_compiler" >&6; }
16848 # Is the header present?
16849 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
16850 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
16851 cat >conftest.$ac_ext <<_ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <inq_stats/cpustats.h>
16859 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16860 case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16867 grep -v '^ *+' conftest.er1 >conftest.err
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16871 (exit $ac_status); } >/dev/null && {
16872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16875 ac_header_preproc=yes
16877 echo "$as_me: failed program was
:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 ac_header_preproc=no
16883 rm -f conftest.err conftest.$ac_ext
16884 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16885 echo "${ECHO_T}$ac_header_preproc" >&6; }
16887 # So? What about this header?
16888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16890 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16891 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16892 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
16893 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
16894 ac_header_preproc=yes
16897 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
16898 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
16899 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
16900 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
16901 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
16902 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
16903 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16904 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16905 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
16906 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
16907 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
16908 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
16912 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
16913 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
16914 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16915 echo $ECHO_N "(cached
) $ECHO_C" >&6
16917 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16919 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
16920 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16923 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16926 cat >>confdefs.h <<\_ACEOF
16931 cat >>confdefs.h <<\_ACEOF
16940 if test $ac_have_func = no; then
16941 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16942 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
16943 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
16944 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16945 echo $ECHO_N "(cached
) $ECHO_C" >&6
16947 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
16948 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16950 # Is the header compilable?
16951 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
16952 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 $ac_includes_default
16960 #include <sys/cpustats.h>
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1 >conftest.err
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest.$ac_objext; then
16979 ac_header_compiler=yes
16981 echo "$as_me: failed program was
:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_header_compiler=no
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16989 echo "${ECHO_T}$ac_header_compiler" >&6; }
16991 # Is the header present?
16992 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
16993 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 #include <sys/cpustats.h>
17002 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17003 case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17014 (exit $ac_status); } >/dev/null && {
17015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17016 test ! -s conftest.err
17018 ac_header_preproc=yes
17020 echo "$as_me: failed program was
:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ac_header_preproc=no
17026 rm -f conftest.err conftest.$ac_ext
17027 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17028 echo "${ECHO_T}$ac_header_preproc" >&6; }
17030 # So? What about this header?
17031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17033 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17034 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17035 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17036 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17037 ac_header_preproc=yes
17040 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17041 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17042 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17043 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17044 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17045 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17046 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17047 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17048 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17049 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17050 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17051 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17055 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17056 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17057 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17058 echo $ECHO_N "(cached
) $ECHO_C" >&6
17060 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17062 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17063 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17066 if test $ac_cv_header_sys_cpustats_h = yes; then
17067 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17076 if test $ac_have_func = no; then
17078 for ac_header in mach/mach.h
17080 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17082 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17083 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17085 echo $ECHO_N "(cached
) $ECHO_C" >&6
17087 ac_res=`eval echo '${'$as_ac_Header'}'`
17088 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17089 echo "${ECHO_T}$ac_res" >&6; }
17091 # Is the header compilable?
17092 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17093 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 $ac_includes_default
17101 #include <$ac_header>
17103 rm -f conftest.$ac_objext
17104 if { (ac_try="$ac_compile"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_compile") 2>conftest.er1
17112 grep -v '^ *+' conftest.er1 >conftest.err
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest.$ac_objext; then
17120 ac_header_compiler=yes
17122 echo "$as_me: failed program was
:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_header_compiler=no
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17130 echo "${ECHO_T}$ac_header_compiler" >&6; }
17132 # Is the header present?
17133 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17134 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <$ac_header>
17143 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
17156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17159 ac_header_preproc=yes
17161 echo "$as_me: failed program was
:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ac_header_preproc=no
17167 rm -f conftest.err conftest.$ac_ext
17168 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17169 echo "${ECHO_T}$ac_header_preproc" >&6; }
17171 # So? What about this header?
17172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17174 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17175 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17176 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17178 ac_header_preproc=yes
17181 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17182 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17183 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17184 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17185 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17186 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17187 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17188 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17189 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17191 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17192 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17196 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17197 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17199 echo $ECHO_N "(cached
) $ECHO_C" >&6
17201 eval "$as_ac_Header=\
$ac_header_preproc"
17203 ac_res=`eval echo '${'$as_ac_Header'}'`
17204 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17205 echo "${ECHO_T}$ac_res" >&6; }
17208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17209 cat >>confdefs.h <<_ACEOF
17210 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17220 for ac_header in nlist.h
17222 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17223 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17224 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17225 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17226 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17227 echo $ECHO_N "(cached
) $ECHO_C" >&6
17229 ac_res=`eval echo '${'$as_ac_Header'}'`
17230 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17231 echo "${ECHO_T}$ac_res" >&6; }
17233 # Is the header compilable?
17234 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17235 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 $ac_includes_default
17243 #include <$ac_header>
17245 rm -f conftest.$ac_objext
17246 if { (ac_try="$ac_compile"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_compile") 2>conftest.er1
17254 grep -v '^ *+' conftest.er1 >conftest.err
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest.$ac_objext; then
17262 ac_header_compiler=yes
17264 echo "$as_me: failed program was
:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_header_compiler=no
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17272 echo "${ECHO_T}$ac_header_compiler" >&6; }
17274 # Is the header present?
17275 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17276 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17277 cat >conftest.$ac_ext <<_ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 #include <$ac_header>
17285 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17286 case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17293 grep -v '^ *+' conftest.er1 >conftest.err
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17297 (exit $ac_status); } >/dev/null && {
17298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17299 test ! -s conftest.err
17301 ac_header_preproc=yes
17303 echo "$as_me: failed program was
:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_header_preproc=no
17309 rm -f conftest.err conftest.$ac_ext
17310 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17311 echo "${ECHO_T}$ac_header_preproc" >&6; }
17313 # So? What about this header?
17314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17316 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17317 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17318 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17320 ac_header_preproc=yes
17323 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17324 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17325 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17326 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17327 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17328 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17329 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17330 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17331 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17333 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17334 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17338 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17339 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17340 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached
) $ECHO_C" >&6
17343 eval "$as_ac_Header=\
$ac_header_preproc"
17345 ac_res=`eval echo '${'$as_ac_Header'}'`
17346 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17347 echo "${ECHO_T}$ac_res" >&6; }
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351 cat >>confdefs.h <<_ACEOF
17352 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17354 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17355 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17356 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17357 echo $ECHO_N "(cached
) $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17370 static struct nlist ac_aggr;
17371 if (ac_aggr.n_un.n_name)
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_compile") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest.$ac_objext; then
17394 ac_cv_member_struct_nlist_n_un_n_name=yes
17396 echo "$as_me: failed program was
:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 cat >conftest.$ac_ext <<_ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17410 static struct nlist ac_aggr;
17411 if (sizeof ac_aggr.n_un.n_name)
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_compile") 2>conftest.er1
17426 grep -v '^ *+' conftest.er1 >conftest.err
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17430 (exit $ac_status); } && {
17431 test -z "$ac_c_werror_flag" ||
17432 test ! -s conftest.err
17433 } && test -s conftest.$ac_objext; then
17434 ac_cv_member_struct_nlist_n_un_n_name=yes
17436 echo "$as_me: failed program was
:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_cv_member_struct_nlist_n_un_n_name=no
17442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17448 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17449 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17456 cat >>confdefs.h <<\_ACEOF
17457 #define NLIST_NAME_UNION 1
17471 # Some definitions of getloadavg require that the program be installed setgid.
17472 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17473 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17474 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17475 echo $ECHO_N "(cached
) $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17484 #ifdef LDAV_PRIVILEGED
17485 Yowza Am I SETGID yet
17488 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17489 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17490 ac_cv_func_getloadavg_setgid=yes
17492 ac_cv_func_getloadavg_setgid=no
17497 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17498 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17499 if test $ac_cv_func_getloadavg_setgid = yes; then
17502 cat >>confdefs.h <<\_ACEOF
17503 #define GETLOADAVG_PRIVILEGED 1
17510 if test $ac_cv_func_getloadavg_setgid = yes; then
17511 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17512 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17513 if test "${ac_cv_group_kmem+set}" = set; then
17514 echo $ECHO_N "(cached
) $ECHO_C" >&6
17516 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17517 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17518 # If we got an error (system does not support symlinks), try without -L.
17519 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17520 ac_cv_group_kmem=`echo $ac_ls_output \
17521 | sed -ne 's/[ ][ ]*/ /g;
17522 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17526 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17527 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17528 KMEM_GROUP=$ac_cv_group_kmem
17530 if test "x
$ac_save_LIBS" = x; then
17531 GETLOADAVG_LIBS=$LIBS
17533 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17539 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17540 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17541 if test "${ac_cv_sys_largefile_source+set}" = set; then
17542 echo $ECHO_N "(cached
) $ECHO_C" >&6
17545 cat >conftest.$ac_ext <<_ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17555 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_link") 2>conftest.er1
17569 grep -v '^ *+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest$ac_exeext &&
17577 $as_test_x conftest$ac_exeext; then
17578 ac_cv_sys_largefile_source=no; break
17580 echo "$as_me: failed program was
:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17587 conftest$ac_exeext conftest.$ac_ext
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #define _LARGEFILE_SOURCE 1
17599 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest$ac_exeext &&
17621 $as_test_x conftest$ac_exeext; then
17622 ac_cv_sys_largefile_source=1; break
17624 echo "$as_me: failed program was
:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631 conftest$ac_exeext conftest.$ac_ext
17632 ac_cv_sys_largefile_source=unknown
17636 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17637 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17638 case $ac_cv_sys_largefile_source in #(
17641 cat >>confdefs.h <<_ACEOF
17642 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17648 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17649 # in glibc 2.1.3, but that breaks too many other things.
17650 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17651 if test $ac_cv_sys_largefile_source != unknown; then
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_FSEEKO 1
17660 # Configure getopt.
17661 # getopt.m4 serial 10
17663 # The getopt module assume you want GNU getopt, with getopt_long etc,
17664 # rather than vanilla POSIX getopt. This means your your code should
17665 # always include <getopt.h> for the getopt prototypes.
17677 # Prerequisites of lib/getopt*.
17684 for ac_header in getopt.h
17686 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17687 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17688 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17689 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17690 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17691 echo $ECHO_N "(cached
) $ECHO_C" >&6
17693 ac_res=`eval echo '${'$as_ac_Header'}'`
17694 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17695 echo "${ECHO_T}$ac_res" >&6; }
17697 # Is the header compilable?
17698 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17699 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 $ac_includes_default
17707 #include <$ac_header>
17709 rm -f conftest.$ac_objext
17710 if { (ac_try="$ac_compile"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_compile") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest.$ac_objext; then
17726 ac_header_compiler=yes
17728 echo "$as_me: failed program was
:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_header_compiler=no
17734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17735 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17736 echo "${ECHO_T}$ac_header_compiler" >&6; }
17738 # Is the header present?
17739 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17740 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17741 cat >conftest.$ac_ext <<_ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 #include <$ac_header>
17749 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17757 grep -v '^ *+' conftest.er1 >conftest.err
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17761 (exit $ac_status); } >/dev/null && {
17762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17765 ac_header_preproc=yes
17767 echo "$as_me: failed program was
:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_header_preproc=no
17773 rm -f conftest.err conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17775 echo "${ECHO_T}$ac_header_preproc" >&6; }
17777 # So? What about this header?
17778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17780 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17781 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17782 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17784 ac_header_preproc=yes
17787 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17788 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17789 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17790 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17791 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17792 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17793 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17794 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17795 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17797 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17798 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17802 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17803 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17804 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17805 echo $ECHO_N "(cached
) $ECHO_C" >&6
17807 eval "$as_ac_Header=\
$ac_header_preproc"
17809 ac_res=`eval echo '${'$as_ac_Header'}'`
17810 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17811 echo "${ECHO_T}$ac_res" >&6; }
17814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17815 cat >>confdefs.h <<_ACEOF
17816 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17825 if test -z "$GETOPT_H"; then
17827 for ac_func in getopt_long_only
17829 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17830 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17831 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17832 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17833 echo $ECHO_N "(cached
) $ECHO_C" >&6
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17843 #define $ac_func innocuous_$ac_func
17845 /* System header to define __stub macros and hopefully few prototypes,
17846 which can conflict with char $ac_func (); below.
17847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17848 <limits.h> exists even on freestanding compilers. */
17851 # include <limits.h>
17853 # include <assert.h>
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17865 /* The GNU C library defines this for functions which it implements
17866 to always fail with ENOSYS. Some functions are actually named
17867 something starting with __ and the normal name is an alias. */
17868 #if defined __stub_$ac_func || defined __stub___$ac_func
17875 return $ac_func ();
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_link") 2>conftest.er1
17889 grep -v '^ *+' conftest.er1 >conftest.err
17891 cat conftest.err >&5
17892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17893 (exit $ac_status); } && {
17894 test -z "$ac_c_werror_flag" ||
17895 test ! -s conftest.err
17896 } && test -s conftest$ac_exeext &&
17897 $as_test_x conftest$ac_exeext; then
17898 eval "$as_ac_var=yes"
17900 echo "$as_me: failed program was
:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 eval "$as_ac_var=no
"
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17907 conftest$ac_exeext conftest.$ac_ext
17909 ac_res=`eval echo '${'$as_ac_var'}'`
17910 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17911 echo "${ECHO_T}$ac_res" >&6; }
17912 if test `eval echo '${'$as_ac_var'}'` = yes; then
17913 cat >>confdefs.h <<_ACEOF
17914 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17924 if test -z "$GETOPT_H"; then
17925 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
17926 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
17927 if test "${ac_cv_have_decl_optreset+set}" = set; then
17928 echo $ECHO_N "(cached
) $ECHO_C" >&6
17930 cat >conftest.$ac_ext <<_ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <getopt.h>
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_compile") 2>conftest.er1
17958 grep -v '^ *+' conftest.er1 >conftest.err
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17962 (exit $ac_status); } && {
17963 test -z "$ac_c_werror_flag" ||
17964 test ! -s conftest.err
17965 } && test -s conftest.$ac_objext; then
17966 ac_cv_have_decl_optreset=yes
17968 echo "$as_me: failed program was
:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 ac_cv_have_decl_optreset=no
17974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17976 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
17977 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
17978 if test $ac_cv_have_decl_optreset = yes; then
17984 if test -z "$GETOPT_H"; then
17985 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
17986 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
17987 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17988 echo $ECHO_N "(cached
) $ECHO_C" >&6
17990 if test "$cross_compiling" = yes; then
17991 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
17992 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
17993 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17994 echo $ECHO_N "(cached
) $ECHO_C" >&6
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 #include <getopt.h>
18007 #ifndef getopt_clip
18008 (void) getopt_clip;
18015 rm -f conftest.$ac_objext
18016 if { (ac_try="$ac_compile"
18017 case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_compile") 2>conftest.er1
18024 grep -v '^ *+' conftest.er1 >conftest.err
18026 cat conftest.err >&5
18027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18028 (exit $ac_status); } && {
18029 test -z "$ac_c_werror_flag" ||
18030 test ! -s conftest.err
18031 } && test -s conftest.$ac_objext; then
18032 ac_cv_have_decl_getopt_clip=yes
18034 echo "$as_me: failed program was
:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ac_cv_have_decl_getopt_clip=no
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18043 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18044 if test $ac_cv_have_decl_getopt_clip = yes; then
18045 gl_cv_func_gnu_getopt=no
18047 gl_cv_func_gnu_getopt=yes
18051 cat >conftest.$ac_ext <<_ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 #include <getopt.h>
18063 myargv[0] = "conftest
";
18066 return getopt (2, myargv, "+a
") != '?';
18072 rm -f conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>&5
18081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18091 (exit $ac_status); }; }; then
18092 gl_cv_func_gnu_getopt=yes
18094 echo "$as_me: program exited with status
$ac_status" >&5
18095 echo "$as_me: failed program was
:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ( exit $ac_status )
18099 gl_cv_func_gnu_getopt=no
18101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18106 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18107 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18108 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18115 if test -n "$GETOPT_H"; then
18120 cat >>confdefs.h <<\_ACEOF
18121 #define __GETOPT_PREFIX rpl_
18127 GETOPTOBJS='getopt.o getopt1.o'
18134 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18135 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18136 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18137 echo $ECHO_N "(cached
) $ECHO_C" >&6
18139 # Use it with a single arg.
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 $ac_includes_default
18155 rm -f conftest.$ac_objext
18156 if { (ac_try="$ac_compile"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_compile") 2>conftest.er1
18164 grep -v '^ *+' conftest.er1 >conftest.err
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18168 (exit $ac_status); } && {
18169 test -z "$ac_c_werror_flag" ||
18170 test ! -s conftest.err
18171 } && test -s conftest.$ac_objext; then
18172 ac_cv_func_getpgrp_void=no
18174 echo "$as_me: failed program was
:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18177 ac_cv_func_getpgrp_void=yes
18180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18183 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18184 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18185 if test $ac_cv_func_getpgrp_void = yes; then
18187 cat >>confdefs.h <<\_ACEOF
18188 #define GETPGRP_VOID 1
18195 for ac_func in strftime
18197 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18198 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18199 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18200 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18201 echo $ECHO_N "(cached
) $ECHO_C" >&6
18203 cat >conftest.$ac_ext <<_ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18211 #define $ac_func innocuous_$ac_func
18213 /* System header to define __stub macros and hopefully few prototypes,
18214 which can conflict with char $ac_func (); below.
18215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18216 <limits.h> exists even on freestanding compilers. */
18219 # include <limits.h>
18221 # include <assert.h>
18226 /* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
18233 /* The GNU C library defines this for functions which it implements
18234 to always fail with ENOSYS. Some functions are actually named
18235 something starting with __ and the normal name is an alias. */
18236 #if defined __stub_$ac_func || defined __stub___$ac_func
18243 return $ac_func ();
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (ac_try="$ac_link"
18250 case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_link") 2>conftest.er1
18257 grep -v '^ *+' conftest.er1 >conftest.err
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext &&
18265 $as_test_x conftest$ac_exeext; then
18266 eval "$as_ac_var=yes"
18268 echo "$as_me: failed program was
:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 eval "$as_ac_var=no
"
18274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18275 conftest$ac_exeext conftest.$ac_ext
18277 ac_res=`eval echo '${'$as_ac_var'}'`
18278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18286 # strftime is in -lintl on SCO UNIX.
18287 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18288 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18289 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18290 echo $ECHO_N "(cached
) $ECHO_C" >&6
18292 ac_check_lib_save_LIBS=$LIBS
18293 LIBS="-lintl $LIBS"
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18311 return strftime ();
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18325 grep -v '^ *+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18329 (exit $ac_status); } && {
18330 test -z "$ac_c_werror_flag" ||
18331 test ! -s conftest.err
18332 } && test -s conftest$ac_exeext &&
18333 $as_test_x conftest$ac_exeext; then
18334 ac_cv_lib_intl_strftime=yes
18336 echo "$as_me: failed program was
:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 ac_cv_lib_intl_strftime=no
18342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18343 conftest$ac_exeext conftest.$ac_ext
18344 LIBS=$ac_check_lib_save_LIBS
18346 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18348 if test $ac_cv_lib_intl_strftime = yes; then
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE_STRFTIME 1
18353 LIBS="-lintl $LIBS"
18362 for ac_func in grantpt
18364 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18365 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18366 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18367 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18368 echo $ECHO_N "(cached
) $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18378 #define $ac_func innocuous_$ac_func
18380 /* System header to define __stub macros and hopefully few prototypes,
18381 which can conflict with char $ac_func (); below.
18382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18383 <limits.h> exists even on freestanding compilers. */
18386 # include <limits.h>
18388 # include <assert.h>
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18400 /* The GNU C library defines this for functions which it implements
18401 to always fail with ENOSYS. Some functions are actually named
18402 something starting with __ and the normal name is an alias. */
18403 #if defined __stub_$ac_func || defined __stub___$ac_func
18410 return $ac_func ();
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (ac_try="$ac_link"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_link") 2>conftest.er1
18424 grep -v '^ *+' conftest.er1 >conftest.err
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18428 (exit $ac_status); } && {
18429 test -z "$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18431 } && test -s conftest$ac_exeext &&
18432 $as_test_x conftest$ac_exeext; then
18433 eval "$as_ac_var=yes"
18435 echo "$as_me: failed program was
:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 eval "$as_ac_var=no
"
18441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18442 conftest$ac_exeext conftest.$ac_ext
18444 ac_res=`eval echo '${'$as_ac_var'}'`
18445 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18446 echo "${ECHO_T}$ac_res" >&6; }
18447 if test `eval echo '${'$as_ac_var'}'` = yes; then
18448 cat >>confdefs.h <<_ACEOF
18449 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18456 # PTY-related GNU extensions.
18458 for ac_func in getpt
18460 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18461 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18462 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18463 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18464 echo $ECHO_N "(cached
) $ECHO_C" >&6
18466 cat >conftest.$ac_ext <<_ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18474 #define $ac_func innocuous_$ac_func
18476 /* System header to define __stub macros and hopefully few prototypes,
18477 which can conflict with char $ac_func (); below.
18478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479 <limits.h> exists even on freestanding compilers. */
18482 # include <limits.h>
18484 # include <assert.h>
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18496 /* The GNU C library defines this for functions which it implements
18497 to always fail with ENOSYS. Some functions are actually named
18498 something starting with __ and the normal name is an alias. */
18499 #if defined __stub_$ac_func || defined __stub___$ac_func
18506 return $ac_func ();
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest$ac_exeext &&
18528 $as_test_x conftest$ac_exeext; then
18529 eval "$as_ac_var=yes"
18531 echo "$as_me: failed program was
:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 eval "$as_ac_var=no
"
18537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18538 conftest$ac_exeext conftest.$ac_ext
18540 ac_res=`eval echo '${'$as_ac_var'}'`
18541 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18542 echo "${ECHO_T}$ac_res" >&6; }
18543 if test `eval echo '${'$as_ac_var'}'` = yes; then
18544 cat >>confdefs.h <<_ACEOF
18545 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18552 # Check this now, so that we will NOT find the above functions in ncurses.
18553 # That is because we have not set up to link ncurses in lib-src.
18554 # It's better to believe a function is not available
18555 # than to expect to find it in ncurses.
18557 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18558 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18559 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18560 echo $ECHO_N "(cached
) $ECHO_C" >&6
18562 ac_check_lib_save_LIBS=$LIBS
18563 LIBS="-lncurses $LIBS"
18564 cat >conftest.$ac_ext <<_ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18571 /* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (ac_try="$ac_link"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_link") 2>conftest.er1
18595 grep -v '^ *+' conftest.er1 >conftest.err
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest$ac_exeext &&
18603 $as_test_x conftest$ac_exeext; then
18604 ac_cv_lib_ncurses_tparm=yes
18606 echo "$as_me: failed program was
:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18609 ac_cv_lib_ncurses_tparm=no
18612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18613 conftest$ac_exeext conftest.$ac_ext
18614 LIBS=$ac_check_lib_save_LIBS
18616 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18617 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18618 if test $ac_cv_lib_ncurses_tparm = yes; then
18619 cat >>confdefs.h <<_ACEOF
18620 #define HAVE_LIBNCURSES 1
18623 LIBS="-lncurses $LIBS"
18628 # Do we need the Hesiod library to provide the support routines?
18629 if test "$with_hesiod" = yes ; then
18630 # Don't set $LIBS here -- see comments above.
18632 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18633 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18634 if test "${ac_cv_func_res_send+set}" = set; then
18635 echo $ECHO_N "(cached
) $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18645 #define res_send innocuous_res_send
18647 /* System header to define __stub macros and hopefully few prototypes,
18648 which can conflict with char res_send (); below.
18649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650 <limits.h> exists even on freestanding compilers. */
18653 # include <limits.h>
18655 # include <assert.h>
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18667 /* The GNU C library defines this for functions which it implements
18668 to always fail with ENOSYS. Some functions are actually named
18669 something starting with __ and the normal name is an alias. */
18670 #if defined __stub_res_send || defined __stub___res_send
18677 return res_send ();
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest$ac_exeext &&
18699 $as_test_x conftest$ac_exeext; then
18700 ac_cv_func_res_send=yes
18702 echo "$as_me: failed program was
:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_cv_func_res_send=no
18708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18709 conftest$ac_exeext conftest.$ac_ext
18711 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
18712 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18713 if test $ac_cv_func_res_send = yes; then
18716 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
18717 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
18718 if test "${ac_cv_func___res_send+set}" = set; then
18719 echo $ECHO_N "(cached
) $ECHO_C" >&6
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18729 #define __res_send innocuous___res_send
18731 /* System header to define __stub macros and hopefully few prototypes,
18732 which can conflict with char __res_send (); below.
18733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 <limits.h> exists even on freestanding compilers. */
18737 # include <limits.h>
18739 # include <assert.h>
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18750 char __res_send ();
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined __stub___res_send || defined __stub_____res_send
18761 return __res_send ();
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>conftest.er1
18775 grep -v '^ *+' conftest.er1 >conftest.err
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18779 (exit $ac_status); } && {
18780 test -z "$ac_c_werror_flag" ||
18781 test ! -s conftest.err
18782 } && test -s conftest$ac_exeext &&
18783 $as_test_x conftest$ac_exeext; then
18784 ac_cv_func___res_send=yes
18786 echo "$as_me: failed program was
:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 ac_cv_func___res_send=no
18792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18793 conftest$ac_exeext conftest.$ac_ext
18795 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
18796 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18797 if test $ac_cv_func___res_send = yes; then
18800 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
18801 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
18802 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18803 echo $ECHO_N "(cached
) $ECHO_C" >&6
18805 ac_check_lib_save_LIBS=$LIBS
18806 LIBS="-lresolv $LIBS"
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18814 /* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18824 return res_send ();
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_link") 2>conftest.er1
18838 grep -v '^ *+' conftest.er1 >conftest.err
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18842 (exit $ac_status); } && {
18843 test -z "$ac_c_werror_flag" ||
18844 test ! -s conftest.err
18845 } && test -s conftest$ac_exeext &&
18846 $as_test_x conftest$ac_exeext; then
18847 ac_cv_lib_resolv_res_send=yes
18849 echo "$as_me: failed program was
:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 ac_cv_lib_resolv_res_send=no
18855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18859 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
18860 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
18861 if test $ac_cv_lib_resolv_res_send = yes; then
18864 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
18865 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
18866 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18867 echo $ECHO_N "(cached
) $ECHO_C" >&6
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lresolv $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18884 char __res_send ();
18888 return __res_send ();
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 ac_cv_lib_resolv___res_send=yes
18913 echo "$as_me: failed program was
:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_cv_lib_resolv___res_send=no
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18923 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
18924 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
18925 if test $ac_cv_lib_resolv___res_send = yes; then
18935 if test "$resolv" = yes ; then
18938 cat >>confdefs.h <<\_ACEOF
18939 #define HAVE_LIBRESOLV 1
18945 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
18946 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
18947 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18948 echo $ECHO_N "(cached
) $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18958 #define hes_getmailhost innocuous_hes_getmailhost
18960 /* System header to define __stub macros and hopefully few prototypes,
18961 which can conflict with char hes_getmailhost (); below.
18962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963 <limits.h> exists even on freestanding compilers. */
18966 # include <limits.h>
18968 # include <assert.h>
18971 #undef hes_getmailhost
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18979 char hes_getmailhost ();
18980 /* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
18990 return hes_getmailhost ();
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext &&
19012 $as_test_x conftest$ac_exeext; then
19013 ac_cv_func_hes_getmailhost=yes
19015 echo "$as_me: failed program was
:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_cv_func_hes_getmailhost=no
19021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19022 conftest$ac_exeext conftest.$ac_ext
19024 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19025 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19026 if test $ac_cv_func_hes_getmailhost = yes; then
19029 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19030 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19031 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19032 echo $ECHO_N "(cached
) $ECHO_C" >&6
19034 ac_check_lib_save_LIBS=$LIBS
19035 LIBS="-lhesiod $RESOLVLIB $LIBS"
19036 cat >conftest.$ac_ext <<_ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19043 /* Override any GCC internal prototype to avoid an error.
19044 Use char because int might match the return type of a GCC
19045 builtin and then its argument prototype would still apply. */
19049 char hes_getmailhost ();
19053 return hes_getmailhost ();
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19067 grep -v '^ *+' conftest.er1 >conftest.err
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest$ac_exeext &&
19075 $as_test_x conftest$ac_exeext; then
19076 ac_cv_lib_hesiod_hes_getmailhost=yes
19078 echo "$as_me: failed program was
:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_lib_hesiod_hes_getmailhost=no
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086 LIBS=$ac_check_lib_save_LIBS
19088 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19089 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19090 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE_LIBHESIOD 1
19104 # These tell us which Kerberos-related libraries to use.
19105 if test "${with_kerberos+set}" = set; then
19107 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19108 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19109 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19110 echo $ECHO_N "(cached
) $ECHO_C" >&6
19112 ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lcom_err $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_link") 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest$ac_exeext &&
19153 $as_test_x conftest$ac_exeext; then
19154 ac_cv_lib_com_err_com_err=yes
19156 echo "$as_me: failed program was
:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_cv_lib_com_err_com_err=no
19162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19163 conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19166 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19167 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19168 if test $ac_cv_lib_com_err_com_err = yes; then
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_LIBCOM_ERR 1
19173 LIBS="-lcom_err $LIBS"
19178 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19179 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19180 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19181 echo $ECHO_N "(cached
) $ECHO_C" >&6
19183 ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-lk5crypto $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19198 char mit_des_cbc_encrypt ();
19202 return mit_des_cbc_encrypt ();
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (ac_try="$ac_link"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_link") 2>conftest.er1
19216 grep -v '^ *+' conftest.er1 >conftest.err
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19220 (exit $ac_status); } && {
19221 test -z "$ac_c_werror_flag" ||
19222 test ! -s conftest.err
19223 } && test -s conftest$ac_exeext &&
19224 $as_test_x conftest$ac_exeext; then
19225 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19227 echo "$as_me: failed program was
:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19237 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19238 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19239 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19240 cat >>confdefs.h <<_ACEOF
19241 #define HAVE_LIBK5CRYPTO 1
19244 LIBS="-lk5crypto $LIBS"
19249 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19250 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19251 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19252 echo $ECHO_N "(cached
) $ECHO_C" >&6
19254 ac_check_lib_save_LIBS=$LIBS
19255 LIBS="-lcrypto $LIBS"
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19269 char mit_des_cbc_encrypt ();
19273 return mit_des_cbc_encrypt ();
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19291 (exit $ac_status); } && {
19292 test -z "$ac_c_werror_flag" ||
19293 test ! -s conftest.err
19294 } && test -s conftest$ac_exeext &&
19295 $as_test_x conftest$ac_exeext; then
19296 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19298 echo "$as_me: failed program was
:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19305 conftest$ac_exeext conftest.$ac_ext
19306 LIBS=$ac_check_lib_save_LIBS
19308 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19309 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19310 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19311 cat >>confdefs.h <<_ACEOF
19312 #define HAVE_LIBCRYPTO 1
19315 LIBS="-lcrypto $LIBS"
19320 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19321 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19322 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19323 echo $ECHO_N "(cached
) $ECHO_C" >&6
19325 ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lkrb5 $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19334 /* Override any GCC internal prototype to avoid an error.
19335 Use char because int might match the return type of a GCC
19336 builtin and then its argument prototype would still apply. */
19340 char krb5_init_context ();
19344 return krb5_init_context ();
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (ac_try="$ac_link"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_link") 2>conftest.er1
19358 grep -v '^ *+' conftest.er1 >conftest.err
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest$ac_exeext &&
19366 $as_test_x conftest$ac_exeext; then
19367 ac_cv_lib_krb5_krb5_init_context=yes
19369 echo "$as_me: failed program was
:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 ac_cv_lib_krb5_krb5_init_context=no
19375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19380 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19381 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_LIBKRB5 1
19386 LIBS="-lkrb5 $LIBS"
19390 if test "${with_kerberos5+set}" != set; then
19392 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19393 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19394 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19395 echo $ECHO_N "(cached
) $ECHO_C" >&6
19397 ac_check_lib_save_LIBS=$LIBS
19398 LIBS="-ldes425 $LIBS"
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19406 /* Override any GCC internal prototype to avoid an error.
19407 Use char because int might match the return type of a GCC
19408 builtin and then its argument prototype would still apply. */
19412 char des_cbc_encrypt ();
19416 return des_cbc_encrypt ();
19421 rm -f conftest.$ac_objext conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_link") 2>conftest.er1
19430 grep -v '^ *+' conftest.er1 >conftest.err
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest$ac_exeext &&
19438 $as_test_x conftest$ac_exeext; then
19439 ac_cv_lib_des425_des_cbc_encrypt=yes
19441 echo "$as_me: failed program was
:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 ac_cv_lib_des425_des_cbc_encrypt=no
19447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19448 conftest$ac_exeext conftest.$ac_ext
19449 LIBS=$ac_check_lib_save_LIBS
19451 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19452 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19453 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19454 cat >>confdefs.h <<_ACEOF
19455 #define HAVE_LIBDES425 1
19458 LIBS="-ldes425 $LIBS"
19462 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19463 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19464 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19465 echo $ECHO_N "(cached
) $ECHO_C" >&6
19467 ac_check_lib_save_LIBS=$LIBS
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19482 char des_cbc_encrypt ();
19486 return des_cbc_encrypt ();
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_link") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest$ac_exeext &&
19508 $as_test_x conftest$ac_exeext; then
19509 ac_cv_lib_des_des_cbc_encrypt=yes
19511 echo "$as_me: failed program was
:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 ac_cv_lib_des_des_cbc_encrypt=no
19517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19518 conftest$ac_exeext conftest.$ac_ext
19519 LIBS=$ac_check_lib_save_LIBS
19521 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19522 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19523 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_LIBDES 1
19535 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19536 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19537 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19538 echo $ECHO_N "(cached
) $ECHO_C" >&6
19540 ac_check_lib_save_LIBS=$LIBS
19541 LIBS="-lkrb4 $LIBS"
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19549 /* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19555 char krb_get_cred ();
19559 return krb_get_cred ();
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (ac_try="$ac_link"
19566 case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_link") 2>conftest.er1
19573 grep -v '^ *+' conftest.er1 >conftest.err
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19577 (exit $ac_status); } && {
19578 test -z "$ac_c_werror_flag" ||
19579 test ! -s conftest.err
19580 } && test -s conftest$ac_exeext &&
19581 $as_test_x conftest$ac_exeext; then
19582 ac_cv_lib_krb4_krb_get_cred=yes
19584 echo "$as_me: failed program was
:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_cv_lib_krb4_krb_get_cred=no
19590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19591 conftest$ac_exeext conftest.$ac_ext
19592 LIBS=$ac_check_lib_save_LIBS
19594 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19595 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19596 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19597 cat >>confdefs.h <<_ACEOF
19598 #define HAVE_LIBKRB4 1
19601 LIBS="-lkrb4 $LIBS"
19605 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19606 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19607 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19608 echo $ECHO_N "(cached
) $ECHO_C" >&6
19610 ac_check_lib_save_LIBS=$LIBS
19612 cat >conftest.$ac_ext <<_ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19619 /* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
19625 char krb_get_cred ();
19629 return krb_get_cred ();
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_link") 2>conftest.er1
19643 grep -v '^ *+' conftest.er1 >conftest.err
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest$ac_exeext &&
19651 $as_test_x conftest$ac_exeext; then
19652 ac_cv_lib_krb_krb_get_cred=yes
19654 echo "$as_me: failed program was
:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_cv_lib_krb_krb_get_cred=no
19660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19664 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19665 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19666 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define HAVE_LIBKRB 1
19679 if test "${with_kerberos5+set}" = set; then
19681 for ac_header in krb5.h
19683 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19684 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19685 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19686 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19687 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19688 echo $ECHO_N "(cached
) $ECHO_C" >&6
19690 ac_res=`eval echo '${'$as_ac_Header'}'`
19691 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19692 echo "${ECHO_T}$ac_res" >&6; }
19694 # Is the header compilable?
19695 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19696 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19697 cat >conftest.$ac_ext <<_ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 $ac_includes_default
19704 #include <$ac_header>
19706 rm -f conftest.$ac_objext
19707 if { (ac_try="$ac_compile"
19708 case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19719 (exit $ac_status); } && {
19720 test -z "$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19722 } && test -s conftest.$ac_objext; then
19723 ac_header_compiler=yes
19725 echo "$as_me: failed program was
:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_header_compiler=no
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19732 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19733 echo "${ECHO_T}$ac_header_compiler" >&6; }
19735 # Is the header present?
19736 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19737 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19738 cat >conftest.$ac_ext <<_ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19744 #include <$ac_header>
19746 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19754 grep -v '^ *+' conftest.er1 >conftest.err
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19758 (exit $ac_status); } >/dev/null && {
19759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19760 test ! -s conftest.err
19762 ac_header_preproc=yes
19764 echo "$as_me: failed program was
:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19767 ac_header_preproc=no
19770 rm -f conftest.err conftest.$ac_ext
19771 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19772 echo "${ECHO_T}$ac_header_preproc" >&6; }
19774 # So? What about this header?
19775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19777 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19778 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19779 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19781 ac_header_preproc=yes
19784 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19785 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19786 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19787 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19788 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19789 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19790 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19791 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19792 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19794 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19795 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19799 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19800 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19801 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19802 echo $ECHO_N "(cached
) $ECHO_C" >&6
19804 eval "$as_ac_Header=\
$ac_header_preproc"
19806 ac_res=`eval echo '${'$as_ac_Header'}'`
19807 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19808 echo "${ECHO_T}$ac_res" >&6; }
19811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19812 cat >>confdefs.h <<_ACEOF
19813 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19822 for ac_header in des.h
19824 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19826 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19827 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19829 echo $ECHO_N "(cached
) $ECHO_C" >&6
19831 ac_res=`eval echo '${'$as_ac_Header'}'`
19832 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19833 echo "${ECHO_T}$ac_res" >&6; }
19835 # Is the header compilable?
19836 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19837 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19845 #include <$ac_header>
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_compile") 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19860 (exit $ac_status); } && {
19861 test -z "$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 } && test -s conftest.$ac_objext; then
19864 ac_header_compiler=yes
19866 echo "$as_me: failed program was
:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 ac_header_compiler=no
19872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19873 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19874 echo "${ECHO_T}$ac_header_compiler" >&6; }
19876 # Is the header present?
19877 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19878 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19879 cat >conftest.$ac_ext <<_ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 #include <$ac_header>
19887 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19899 (exit $ac_status); } >/dev/null && {
19900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19903 ac_header_preproc=yes
19905 echo "$as_me: failed program was
:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ac_header_preproc=no
19911 rm -f conftest.err conftest.$ac_ext
19912 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19913 echo "${ECHO_T}$ac_header_preproc" >&6; }
19915 # So? What about this header?
19916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19918 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19919 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19922 ac_header_preproc=yes
19925 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19926 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19927 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19928 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19929 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19930 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19931 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19932 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19933 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19935 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19936 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19940 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19941 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19943 echo $ECHO_N "(cached
) $ECHO_C" >&6
19945 eval "$as_ac_Header=\
$ac_header_preproc"
19947 ac_res=`eval echo '${'$as_ac_Header'}'`
19948 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19949 echo "${ECHO_T}$ac_res" >&6; }
19952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19953 cat >>confdefs.h <<_ACEOF
19954 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19959 for ac_header in kerberosIV/des.h
19961 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19962 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19963 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19964 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19965 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19966 echo $ECHO_N "(cached
) $ECHO_C" >&6
19968 ac_res=`eval echo '${'$as_ac_Header'}'`
19969 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19970 echo "${ECHO_T}$ac_res" >&6; }
19972 # Is the header compilable?
19973 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19974 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19982 #include <$ac_header>
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_header_compiler=yes
20003 echo "$as_me: failed program was
:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_compiler=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20011 echo "${ECHO_T}$ac_header_compiler" >&6; }
20013 # Is the header present?
20014 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20015 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <$ac_header>
20024 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20036 (exit $ac_status); } >/dev/null && {
20037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20040 ac_header_preproc=yes
20042 echo "$as_me: failed program was
:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_header_preproc=no
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20052 # So? What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20055 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20056 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20057 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20059 ac_header_preproc=yes
20062 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20063 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20064 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20065 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20066 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20067 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20068 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20069 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20070 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20072 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20073 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20077 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20078 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached
) $ECHO_C" >&6
20082 eval "$as_ac_Header=\
$ac_header_preproc"
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20096 for ac_header in kerberos/des.h
20098 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20100 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20101 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20103 echo $ECHO_N "(cached
) $ECHO_C" >&6
20105 ac_res=`eval echo '${'$as_ac_Header'}'`
20106 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20107 echo "${ECHO_T}$ac_res" >&6; }
20109 # Is the header compilable?
20110 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20111 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20112 cat >conftest.$ac_ext <<_ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 $ac_includes_default
20119 #include <$ac_header>
20121 rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_compile") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest.$ac_objext; then
20138 ac_header_compiler=yes
20140 echo "$as_me: failed program was
:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 ac_header_compiler=no
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20148 echo "${ECHO_T}$ac_header_compiler" >&6; }
20150 # Is the header present?
20151 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20152 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 #include <$ac_header>
20161 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20162 case "(($ac_try" in
20163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164 *) ac_try_echo=$ac_try;;
20166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20167 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20169 grep -v '^ *+' conftest.er1 >conftest.err
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20173 (exit $ac_status); } >/dev/null && {
20174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20175 test ! -s conftest.err
20177 ac_header_preproc=yes
20179 echo "$as_me: failed program was
:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 ac_header_preproc=no
20185 rm -f conftest.err conftest.$ac_ext
20186 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20187 echo "${ECHO_T}$ac_header_preproc" >&6; }
20189 # So? What about this header?
20190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20192 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20193 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20194 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20196 ac_header_preproc=yes
20199 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20200 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20201 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20202 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20203 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20204 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20205 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20206 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20209 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20210 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20214 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20215 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20217 echo $ECHO_N "(cached
) $ECHO_C" >&6
20219 eval "$as_ac_Header=\
$ac_header_preproc"
20221 ac_res=`eval echo '${'$as_ac_Header'}'`
20222 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20223 echo "${ECHO_T}$ac_res" >&6; }
20226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20227 cat >>confdefs.h <<_ACEOF
20228 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20244 for ac_header in krb.h
20246 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20251 echo $ECHO_N "(cached
) $ECHO_C" >&6
20253 ac_res=`eval echo '${'$as_ac_Header'}'`
20254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20255 echo "${ECHO_T}$ac_res" >&6; }
20257 # Is the header compilable?
20258 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20259 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 $ac_includes_default
20267 #include <$ac_header>
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20278 grep -v '^ *+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_header_compiler=yes
20288 echo "$as_me: failed program was
:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_header_compiler=no
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20296 echo "${ECHO_T}$ac_header_compiler" >&6; }
20298 # Is the header present?
20299 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20300 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 #include <$ac_header>
20309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20321 (exit $ac_status); } >/dev/null && {
20322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20325 ac_header_preproc=yes
20327 echo "$as_me: failed program was
:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_header_preproc=no
20333 rm -f conftest.err conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20335 echo "${ECHO_T}$ac_header_preproc" >&6; }
20337 # So? What about this header?
20338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20340 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20341 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20344 ac_header_preproc=yes
20347 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20348 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20349 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20350 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20351 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20352 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20353 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20354 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20357 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20358 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20365 echo $ECHO_N "(cached
) $ECHO_C" >&6
20367 eval "$as_ac_Header=\
$ac_header_preproc"
20369 ac_res=`eval echo '${'$as_ac_Header'}'`
20370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20371 echo "${ECHO_T}$ac_res" >&6; }
20374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20375 cat >>confdefs.h <<_ACEOF
20376 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20381 for ac_header in kerberosIV/krb.h
20383 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20384 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20385 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20386 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20387 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20388 echo $ECHO_N "(cached
) $ECHO_C" >&6
20390 ac_res=`eval echo '${'$as_ac_Header'}'`
20391 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20392 echo "${ECHO_T}$ac_res" >&6; }
20394 # Is the header compilable?
20395 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20396 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 $ac_includes_default
20404 #include <$ac_header>
20406 rm -f conftest.$ac_objext
20407 if { (ac_try="$ac_compile"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_compile") 2>conftest.er1
20415 grep -v '^ *+' conftest.er1 >conftest.err
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20419 (exit $ac_status); } && {
20420 test -z "$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 } && test -s conftest.$ac_objext; then
20423 ac_header_compiler=yes
20425 echo "$as_me: failed program was
:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_header_compiler=no
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20433 echo "${ECHO_T}$ac_header_compiler" >&6; }
20435 # Is the header present?
20436 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20437 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20438 cat >conftest.$ac_ext <<_ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 #include <$ac_header>
20446 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20458 (exit $ac_status); } >/dev/null && {
20459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20462 ac_header_preproc=yes
20464 echo "$as_me: failed program was
:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_header_preproc=no
20470 rm -f conftest.err conftest.$ac_ext
20471 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20472 echo "${ECHO_T}$ac_header_preproc" >&6; }
20474 # So? What about this header?
20475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20477 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20478 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20479 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20481 ac_header_preproc=yes
20484 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20485 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20486 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20487 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20488 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20489 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20490 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20491 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20492 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20494 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20495 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20499 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20500 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20501 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20502 echo $ECHO_N "(cached
) $ECHO_C" >&6
20504 eval "$as_ac_Header=\
$ac_header_preproc"
20506 ac_res=`eval echo '${'$as_ac_Header'}'`
20507 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20508 echo "${ECHO_T}$ac_res" >&6; }
20511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20518 for ac_header in kerberos/krb.h
20520 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20522 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20523 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20525 echo $ECHO_N "(cached
) $ECHO_C" >&6
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20531 # Is the header compilable?
20532 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20533 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 $ac_includes_default
20541 #include <$ac_header>
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1 >conftest.err
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20560 ac_header_compiler=yes
20562 echo "$as_me: failed program was
:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_header_compiler=no
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6; }
20572 # Is the header present?
20573 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20574 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <$ac_header>
20583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20591 grep -v '^ *+' conftest.er1 >conftest.err
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20595 (exit $ac_status); } >/dev/null && {
20596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20599 ac_header_preproc=yes
20601 echo "$as_me: failed program was
:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_header_preproc=no
20607 rm -f conftest.err conftest.$ac_ext
20608 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20609 echo "${ECHO_T}$ac_header_preproc" >&6; }
20611 # So? What about this header?
20612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20614 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20615 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20616 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20618 ac_header_preproc=yes
20621 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20622 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20623 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20624 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20625 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20626 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20627 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20628 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20629 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20631 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20632 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20636 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20637 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20639 echo $ECHO_N "(cached
) $ECHO_C" >&6
20641 eval "$as_ac_Header=\
$ac_header_preproc"
20643 ac_res=`eval echo '${'$as_ac_Header'}'`
20644 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20645 echo "${ECHO_T}$ac_res" >&6; }
20648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20649 cat >>confdefs.h <<_ACEOF
20650 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20667 for ac_header in com_err.h
20669 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20671 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20672 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20673 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20674 echo $ECHO_N "(cached
) $ECHO_C" >&6
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20680 # Is the header compilable?
20681 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20682 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 $ac_includes_default
20690 #include <$ac_header>
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_header_compiler=yes
20711 echo "$as_me: failed program was
:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_header_compiler=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6; }
20721 # Is the header present?
20722 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20723 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <$ac_header>
20732 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20744 (exit $ac_status); } >/dev/null && {
20745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20748 ac_header_preproc=yes
20750 echo "$as_me: failed program was
:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_header_preproc=no
20756 rm -f conftest.err conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20758 echo "${ECHO_T}$ac_header_preproc" >&6; }
20760 # So? What about this header?
20761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20764 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20765 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20767 ac_header_preproc=yes
20770 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20771 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20772 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20773 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20774 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20775 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20776 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20777 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20778 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20781 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20785 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20786 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20788 echo $ECHO_N "(cached
) $ECHO_C" >&6
20790 eval "$as_ac_Header=\
$ac_header_preproc"
20792 ac_res=`eval echo '${'$as_ac_Header'}'`
20793 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20794 echo "${ECHO_T}$ac_res" >&6; }
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20808 # Solaris requires -lintl if you want strerror (which calls dgettext)
20809 # to return localized messages.
20811 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
20812 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
20813 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20814 echo $ECHO_N "(cached
) $ECHO_C" >&6
20816 ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lintl $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20835 return dgettext ();
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_link") 2>conftest.er1
20849 grep -v '^ *+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest$ac_exeext &&
20857 $as_test_x conftest$ac_exeext; then
20858 ac_cv_lib_intl_dgettext=yes
20860 echo "$as_me: failed program was
:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ac_cv_lib_intl_dgettext=no
20866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20867 conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20870 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
20871 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20872 if test $ac_cv_lib_intl_dgettext = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_LIBINTL 1
20877 LIBS="-lintl $LIBS"
20882 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
20883 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
20884 if test "${emacs_cv_localtime_cache+set}" = set; then
20885 echo $ECHO_N "(cached
) $ECHO_C" >&6
20887 if test x$ac_cv_func_tzset = xyes; then
20888 if test "$cross_compiling" = yes; then
20889 # If we have tzset, assume the worst when cross-compiling.
20890 emacs_cv_localtime_cache=yes
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20899 extern char **environ;
20903 for (to = from = environ; (*to = *from); from++)
20904 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20907 char TZ_GMT0[] = "TZ
=GMT0
";
20908 char TZ_PST8[] = "TZ
=PST8
";
20911 time_t now = time ((time_t *) 0);
20912 int hour_GMT0, hour_unset;
20913 if (putenv (TZ_GMT0) != 0)
20915 hour_GMT0 = localtime (&now)->tm_hour;
20917 hour_unset = localtime (&now)->tm_hour;
20918 if (putenv (TZ_PST8) != 0)
20920 if (localtime (&now)->tm_hour == hour_GMT0)
20923 if (localtime (&now)->tm_hour != hour_unset)
20928 rm -f conftest$ac_exeext
20929 if { (ac_try="$ac_link"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_link") 2>&5
20937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 emacs_cv_localtime_cache=no
20950 echo "$as_me: program exited with status
$ac_status" >&5
20951 echo "$as_me: failed program was
:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 ( exit $ac_status )
20955 emacs_cv_localtime_cache=yes
20957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20962 # If we lack tzset, report that localtime does not cache TZ,
20963 # since we can't invalidate the cache if we don't have tzset.
20964 emacs_cv_localtime_cache=no
20967 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
20968 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
20969 if test $emacs_cv_localtime_cache = yes; then
20971 cat >>confdefs.h <<\_ACEOF
20972 #define LOCALTIME_CACHE 1
20977 if test "x
$HAVE_TIMEVAL" = xyes; then
20979 for ac_func in gettimeofday
20981 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20982 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20983 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20984 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached
) $ECHO_C" >&6
20987 cat >conftest.$ac_ext <<_ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20995 #define $ac_func innocuous_$ac_func
20997 /* System header to define __stub macros and hopefully few prototypes,
20998 which can conflict with char $ac_func (); below.
20999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21000 <limits.h> exists even on freestanding compilers. */
21003 # include <limits.h>
21005 # include <assert.h>
21010 /* Override any GCC internal prototype to avoid an error.
21011 Use char because int might match the return type of a GCC
21012 builtin and then its argument prototype would still apply. */
21017 /* The GNU C library defines this for functions which it implements
21018 to always fail with ENOSYS. Some functions are actually named
21019 something starting with __ and the normal name is an alias. */
21020 #if defined __stub_$ac_func || defined __stub___$ac_func
21027 return $ac_func ();
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest$ac_exeext &&
21049 $as_test_x conftest$ac_exeext; then
21050 eval "$as_ac_var=yes"
21052 echo "$as_me: failed program was
:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 eval "$as_ac_var=no
"
21058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21059 conftest$ac_exeext conftest.$ac_ext
21061 ac_res=`eval echo '${'$as_ac_var'}'`
21062 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21063 echo "${ECHO_T}$ac_res" >&6; }
21064 if test `eval echo '${'$as_ac_var'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21072 if test $ac_cv_func_gettimeofday = yes; then
21073 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21074 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21075 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21076 echo $ECHO_N "(cached
) $ECHO_C" >&6
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21085 #ifdef TIME_WITH_SYS_TIME
21086 #include <sys/time.h>
21089 #ifdef HAVE_SYS_TIME_H
21090 #include <sys/time.h>
21098 struct timeval time;
21099 gettimeofday (&time, 0);
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest.$ac_objext; then
21121 emacs_cv_gettimeofday_two_arguments=yes
21123 echo "$as_me: failed program was
:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 emacs_cv_gettimeofday_two_arguments=no
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21132 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21133 if test $emacs_cv_gettimeofday_two_arguments = no; then
21135 cat >>confdefs.h <<\_ACEOF
21136 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21144 { echo "$as_me:$LINENO: checking
for socket
" >&5
21145 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21146 if test "${ac_cv_func_socket+set}" = set; then
21147 echo $ECHO_N "(cached
) $ECHO_C" >&6
21149 cat >conftest.$ac_ext <<_ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21155 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21157 #define socket innocuous_socket
21159 /* System header to define __stub macros and hopefully few prototypes,
21160 which can conflict with char socket (); below.
21161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21162 <limits.h> exists even on freestanding compilers. */
21165 # include <limits.h>
21167 # include <assert.h>
21172 /* Override any GCC internal prototype to avoid an error.
21173 Use char because int might match the return type of a GCC
21174 builtin and then its argument prototype would still apply. */
21179 /* The GNU C library defines this for functions which it implements
21180 to always fail with ENOSYS. Some functions are actually named
21181 something starting with __ and the normal name is an alias. */
21182 #if defined __stub_socket || defined __stub___socket
21194 rm -f conftest.$ac_objext conftest$ac_exeext
21195 if { (ac_try="$ac_link"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_link") 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21207 (exit $ac_status); } && {
21208 test -z "$ac_c_werror_flag" ||
21209 test ! -s conftest.err
21210 } && test -s conftest$ac_exeext &&
21211 $as_test_x conftest$ac_exeext; then
21212 ac_cv_func_socket=yes
21214 echo "$as_me: failed program was
:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_cv_func_socket=no
21220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21221 conftest$ac_exeext conftest.$ac_ext
21223 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21224 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21225 if test $ac_cv_func_socket = yes; then
21231 if test $ok_so_far = yes; then
21232 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21233 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21234 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21235 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21236 echo $ECHO_N "(cached
) $ECHO_C" >&6
21238 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21239 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21241 # Is the header compilable?
21242 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21243 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21244 cat >conftest.$ac_ext <<_ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 $ac_includes_default
21251 #include <netinet/in.h>
21253 rm -f conftest.$ac_objext
21254 if { (ac_try="$ac_compile"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_compile") 2>conftest.er1
21262 grep -v '^ *+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest.$ac_objext; then
21270 ac_header_compiler=yes
21272 echo "$as_me: failed program was
:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21275 ac_header_compiler=no
21278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21280 echo "${ECHO_T}$ac_header_compiler" >&6; }
21282 # Is the header present?
21283 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21284 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <netinet/in.h>
21293 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21294 case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21305 (exit $ac_status); } >/dev/null && {
21306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21309 ac_header_preproc=yes
21311 echo "$as_me: failed program was
:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 ac_header_preproc=no
21317 rm -f conftest.err conftest.$ac_ext
21318 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21319 echo "${ECHO_T}$ac_header_preproc" >&6; }
21321 # So? What about this header?
21322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21324 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21325 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21326 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21327 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21328 ac_header_preproc=yes
21331 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21332 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21333 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21334 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21335 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21336 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21337 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21338 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21339 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21340 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21341 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21342 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21346 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21347 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21348 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21349 echo $ECHO_N "(cached
) $ECHO_C" >&6
21351 ac_cv_header_netinet_in_h=$ac_header_preproc
21353 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21354 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21357 if test $ac_cv_header_netinet_in_h = yes; then
21365 if test $ok_so_far = yes; then
21366 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21367 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21368 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21369 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21370 echo $ECHO_N "(cached
) $ECHO_C" >&6
21372 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21373 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21375 # Is the header compilable?
21376 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21377 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21378 cat >conftest.$ac_ext <<_ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 $ac_includes_default
21385 #include <arpa/inet.h>
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_compile") 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest.$ac_objext; then
21404 ac_header_compiler=yes
21406 echo "$as_me: failed program was
:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 ac_header_compiler=no
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21414 echo "${ECHO_T}$ac_header_compiler" >&6; }
21416 # Is the header present?
21417 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21418 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 #include <arpa/inet.h>
21427 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21435 grep -v '^ *+' conftest.er1 >conftest.err
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21439 (exit $ac_status); } >/dev/null && {
21440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21443 ac_header_preproc=yes
21445 echo "$as_me: failed program was
:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_header_preproc=no
21451 rm -f conftest.err conftest.$ac_ext
21452 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21453 echo "${ECHO_T}$ac_header_preproc" >&6; }
21455 # So? What about this header?
21456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21458 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21459 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21460 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21461 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21462 ac_header_preproc=yes
21465 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21466 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21467 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21468 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21469 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21470 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21471 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21472 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21473 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21474 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21475 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21476 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21480 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21481 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21483 echo $ECHO_N "(cached
) $ECHO_C" >&6
21485 ac_cv_header_arpa_inet_h=$ac_header_preproc
21487 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21488 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21491 if test $ac_cv_header_arpa_inet_h = yes; then
21499 if test $ok_so_far = yes; then
21501 cat >>confdefs.h <<\_ACEOF
21502 #define HAVE_INET_SOCKETS 1
21508 for ac_header in sys/ioctl.h
21510 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21511 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21512 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21513 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached
) $ECHO_C" >&6
21517 ac_res=`eval echo '${'$as_ac_Header'}'`
21518 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21519 echo "${ECHO_T}$ac_res" >&6; }
21521 # Is the header compilable?
21522 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21523 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21524 cat >conftest.$ac_ext <<_ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 $ac_includes_default
21531 #include <$ac_header>
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_compile") 2>conftest.er1
21542 grep -v '^ *+' conftest.er1 >conftest.err
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest.$ac_objext; then
21550 ac_header_compiler=yes
21552 echo "$as_me: failed program was
:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 ac_header_compiler=no
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21560 echo "${ECHO_T}$ac_header_compiler" >&6; }
21562 # Is the header present?
21563 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21564 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 #include <$ac_header>
21573 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21585 (exit $ac_status); } >/dev/null && {
21586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21589 ac_header_preproc=yes
21591 echo "$as_me: failed program was
:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_header_preproc=no
21597 rm -f conftest.err conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21599 echo "${ECHO_T}$ac_header_preproc" >&6; }
21601 # So? What about this header?
21602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21604 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21605 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21606 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21608 ac_header_preproc=yes
21611 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21612 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21613 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21614 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21615 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21616 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21617 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21618 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21619 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21621 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21622 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21626 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21627 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21628 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21629 echo $ECHO_N "(cached
) $ECHO_C" >&6
21631 eval "$as_ac_Header=\
$ac_header_preproc"
21633 ac_res=`eval echo '${'$as_ac_Header'}'`
21634 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21639 cat >>confdefs.h <<_ACEOF
21640 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21648 if test -f /usr/lpp/X11/bin/smt.exp; then
21650 cat >>confdefs.h <<\_ACEOF
21651 #define HAVE_AIX_SMT_EXP 1
21656 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21657 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21658 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21659 { echo "$as_me:$LINENO: result
: yes" >&5
21660 echo "${ECHO_T}yes" >&6; }
21662 cat >>confdefs.h <<\_ACEOF
21663 #define HAVE_DEV_PTMX 1
21667 { echo "$as_me:$LINENO: result
: no
" >&5
21668 echo "${ECHO_T}no
" >&6; }
21671 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21672 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21673 if test "${ac_cv_type_pid_t+set}" = set; then
21674 echo $ECHO_N "(cached
) $ECHO_C" >&6
21676 cat >conftest.$ac_ext <<_ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21683 typedef pid_t ac__type_new_;
21687 if ((ac__type_new_ *) 0)
21689 if (sizeof (ac__type_new_))
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_compile") 2>conftest.er1
21704 grep -v '^ *+' conftest.er1 >conftest.err
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21708 (exit $ac_status); } && {
21709 test -z "$ac_c_werror_flag" ||
21710 test ! -s conftest.err
21711 } && test -s conftest.$ac_objext; then
21712 ac_cv_type_pid_t=yes
21714 echo "$as_me: failed program was
:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 ac_cv_type_pid_t=no
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
21723 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21724 if test $ac_cv_type_pid_t = yes; then
21728 cat >>confdefs.h <<_ACEOF
21735 for ac_header in vfork.h
21737 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21739 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21740 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21741 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21742 echo $ECHO_N "(cached
) $ECHO_C" >&6
21744 ac_res=`eval echo '${'$as_ac_Header'}'`
21745 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21746 echo "${ECHO_T}$ac_res" >&6; }
21748 # Is the header compilable?
21749 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21750 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21758 #include <$ac_header>
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_compile") 2>conftest.er1
21769 grep -v '^ *+' conftest.er1 >conftest.err
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest.$ac_objext; then
21777 ac_header_compiler=yes
21779 echo "$as_me: failed program was
:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_header_compiler=no
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21787 echo "${ECHO_T}$ac_header_compiler" >&6; }
21789 # Is the header present?
21790 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21791 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <$ac_header>
21800 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21812 (exit $ac_status); } >/dev/null && {
21813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21816 ac_header_preproc=yes
21818 echo "$as_me: failed program was
:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_preproc=no
21824 rm -f conftest.err conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21826 echo "${ECHO_T}$ac_header_preproc" >&6; }
21828 # So? What about this header?
21829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21831 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21832 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21833 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21835 ac_header_preproc=yes
21838 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21839 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21840 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21841 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21842 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21843 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21844 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21845 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21846 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21848 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21849 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21853 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21854 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21855 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21856 echo $ECHO_N "(cached
) $ECHO_C" >&6
21858 eval "$as_ac_Header=\
$ac_header_preproc"
21860 ac_res=`eval echo '${'$as_ac_Header'}'`
21861 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21862 echo "${ECHO_T}$ac_res" >&6; }
21865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21866 cat >>confdefs.h <<_ACEOF
21867 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21876 for ac_func in fork vfork
21878 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21879 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21880 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21881 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21882 echo $ECHO_N "(cached
) $ECHO_C" >&6
21884 cat >conftest.$ac_ext <<_ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21892 #define $ac_func innocuous_$ac_func
21894 /* System header to define __stub macros and hopefully few prototypes,
21895 which can conflict with char $ac_func (); below.
21896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21897 <limits.h> exists even on freestanding compilers. */
21900 # include <limits.h>
21902 # include <assert.h>
21907 /* Override any GCC internal prototype to avoid an error.
21908 Use char because int might match the return type of a GCC
21909 builtin and then its argument prototype would still apply. */
21914 /* The GNU C library defines this for functions which it implements
21915 to always fail with ENOSYS. Some functions are actually named
21916 something starting with __ and the normal name is an alias. */
21917 #if defined __stub_$ac_func || defined __stub___$ac_func
21924 return $ac_func ();
21929 rm -f conftest.$ac_objext conftest$ac_exeext
21930 if { (ac_try="$ac_link"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_link") 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21942 (exit $ac_status); } && {
21943 test -z "$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21945 } && test -s conftest$ac_exeext &&
21946 $as_test_x conftest$ac_exeext; then
21947 eval "$as_ac_var=yes"
21949 echo "$as_me: failed program was
:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 eval "$as_ac_var=no
"
21955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21956 conftest$ac_exeext conftest.$ac_ext
21958 ac_res=`eval echo '${'$as_ac_var'}'`
21959 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21960 echo "${ECHO_T}$ac_res" >&6; }
21961 if test `eval echo '${'$as_ac_var'}'` = yes; then
21962 cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21969 if test "x
$ac_cv_func_fork" = xyes; then
21970 { echo "$as_me:$LINENO: checking
for working fork
" >&5
21971 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
21972 if test "${ac_cv_func_fork_works+set}" = set; then
21973 echo $ECHO_N "(cached
) $ECHO_C" >&6
21975 if test "$cross_compiling" = yes; then
21976 ac_cv_func_fork_works=cross
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21989 /* By Ruediger Kuhlmann. */
21990 return fork () < 0;
21996 rm -f conftest$ac_exeext
21997 if { (ac_try="$ac_link"
21998 case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_link") 2>&5
22005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22007 { (case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_try") 2>&5
22014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_cv_func_fork_works=yes
22018 echo "$as_me: program exited with status
$ac_status" >&5
22019 echo "$as_me: failed program was
:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22022 ( exit $ac_status )
22023 ac_cv_func_fork_works=no
22025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22031 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22034 ac_cv_func_fork_works=$ac_cv_func_fork
22036 if test "x
$ac_cv_func_fork_works" = xcross; then
22038 *-*-amigaos* | *-*-msdosdjgpp*)
22039 # Override, as these systems have only a dummy fork() stub
22040 ac_cv_func_fork_works=no
22043 ac_cv_func_fork_works=yes
22046 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22047 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22049 ac_cv_func_vfork_works=$ac_cv_func_vfork
22050 if test "x
$ac_cv_func_vfork" = xyes; then
22051 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22052 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22053 if test "${ac_cv_func_vfork_works+set}" = set; then
22054 echo $ECHO_N "(cached
) $ECHO_C" >&6
22056 if test "$cross_compiling" = yes; then
22057 ac_cv_func_vfork_works=cross
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 /* Thanks to Paul Eggert for this test. */
22066 $ac_includes_default
22067 #include <sys/wait.h>
22068 #ifdef HAVE_VFORK_H
22069 # include <vfork.h>
22071 /* On some sparc systems, changes by the child to local and incoming
22072 argument registers are propagated back to the parent. The compiler
22073 is told about this with #include <vfork.h>, but some compilers
22074 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22075 static variable whose address is put into a register that is
22076 clobbered by the vfork. */
22079 sparc_address_test (int arg)
22081 sparc_address_test (arg) int arg;
22084 static pid_t child;
22102 pid_t parent = getpid ();
22105 sparc_address_test (0);
22110 /* Here is another test for sparc vfork register problems. This
22111 test uses lots of local variables, at least as many local
22112 variables as main has allocated so far including compiler
22113 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22114 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22115 reuse the register of parent for one of the local variables,
22116 since it will think that parent can't possibly be used any more
22117 in this routine. Assigning to the local variable will thus
22118 munge parent in the parent process. */
22120 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22121 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22122 /* Convince the compiler that p..p7 are live; otherwise, it might
22123 use the same hardware register for all 8 local variables. */
22124 if (p != p1 || p != p2 || p != p3 || p != p4
22125 || p != p5 || p != p6 || p != p7)
22128 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22129 from child file descriptors. If the child closes a descriptor
22130 before it execs or exits, this munges the parent's descriptor
22131 as well. Test for this by closing stdout in the child. */
22132 _exit(close(fileno(stdout)) != 0);
22137 while (wait(&status) != child)
22140 /* Was there some problem with vforking? */
22143 /* Did the child fail? (This shouldn't happen.) */
22146 /* Did the vfork/compiler bug occur? */
22147 || parent != getpid()
22149 /* Did the file descriptor bug occur? */
22150 || fstat(fileno(stdout), &st) != 0
22155 rm -f conftest$ac_exeext
22156 if { (ac_try="$ac_link"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_link") 2>&5
22164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22166 { (case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_try") 2>&5
22173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_func_vfork_works=yes
22177 echo "$as_me: program exited with status
$ac_status" >&5
22178 echo "$as_me: failed program was
:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ( exit $ac_status )
22182 ac_cv_func_vfork_works=no
22184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22189 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22190 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22193 if test "x
$ac_cv_func_fork_works" = xcross; then
22194 ac_cv_func_vfork_works=$ac_cv_func_vfork
22195 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22196 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22199 if test "x
$ac_cv_func_vfork_works" = xyes; then
22201 cat >>confdefs.h <<\_ACEOF
22202 #define HAVE_WORKING_VFORK 1
22207 cat >>confdefs.h <<\_ACEOF
22212 if test "x
$ac_cv_func_fork_works" = xyes; then
22214 cat >>confdefs.h <<\_ACEOF
22215 #define HAVE_WORKING_FORK 1
22221 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22222 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22223 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22224 echo $ECHO_N "(cached
) $ECHO_C" >&6
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 #include <langinfo.h>
22236 char* cs = nl_langinfo(CODESET);
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22250 grep -v '^ *+' conftest.er1 >conftest.err
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest$ac_exeext &&
22258 $as_test_x conftest$ac_exeext; then
22259 emacs_cv_langinfo_codeset=yes
22261 echo "$as_me: failed program was
:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 emacs_cv_langinfo_codeset=no
22267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22268 conftest$ac_exeext conftest.$ac_ext
22271 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22272 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22273 if test $emacs_cv_langinfo_codeset = yes; then
22275 cat >>confdefs.h <<\_ACEOF
22276 #define HAVE_LANGINFO_CODESET 1
22281 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22282 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22283 if test "${ac_cv_type_size_t+set}" = set; then
22284 echo $ECHO_N "(cached
) $ECHO_C" >&6
22286 cat >conftest.$ac_ext <<_ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 $ac_includes_default
22293 typedef size_t ac__type_new_;
22297 if ((ac__type_new_ *) 0)
22299 if (sizeof (ac__type_new_))
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1 >conftest.err
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.$ac_objext; then
22322 ac_cv_type_size_t=yes
22324 echo "$as_me: failed program was
:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_cv_type_size_t=no
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22332 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22333 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22334 if test $ac_cv_type_size_t = yes; then
22336 cat >>confdefs.h <<_ACEOF
22337 #define HAVE_SIZE_T 1
22344 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22345 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22346 if test "${ac_cv_type_mbstate_t+set}" = set; then
22347 echo $ECHO_N "(cached
) $ECHO_C" >&6
22349 cat >conftest.$ac_ext <<_ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 $ac_includes_default
22356 # include <wchar.h>
22360 mbstate_t x; return sizeof x;
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_compile") 2>conftest.er1
22374 grep -v '^ *+' conftest.er1 >conftest.err
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22378 (exit $ac_status); } && {
22379 test -z "$ac_c_werror_flag" ||
22380 test ! -s conftest.err
22381 } && test -s conftest.$ac_objext; then
22382 ac_cv_type_mbstate_t=yes
22384 echo "$as_me: failed program was
:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ac_cv_type_mbstate_t=no
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22393 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22394 if test $ac_cv_type_mbstate_t = yes; then
22396 cat >>confdefs.h <<\_ACEOF
22397 #define HAVE_MBSTATE_T 1
22402 cat >>confdefs.h <<\_ACEOF
22403 #define mbstate_t int
22408 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22409 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22410 if test "${emacs_cv_c_restrict+set}" = set; then
22411 echo $ECHO_N "(cached
) $ECHO_C" >&6
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 void fred (int *restrict x);
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 emacs_cv_c_restrict=yes
22447 echo "$as_me: failed program was
:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 cat >conftest.$ac_ext <<_ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 void fred (int *__restrict x);
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 emacs_cv_c_restrict=__restrict
22484 echo "$as_me: failed program was
:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 emacs_cv_c_restrict=no
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22496 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22497 case "$emacs_cv_c_restrict" in
22498 yes) emacs_restrict=restrict;;
22499 no) emacs_restrict="";;
22500 *) emacs_restrict="$emacs_cv_c_restrict";;
22502 if test "$emacs_restrict" != __restrict; then
22504 cat >>confdefs.h <<_ACEOF
22505 #define __restrict $emacs_restrict
22510 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22511 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22512 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22513 echo $ECHO_N "(cached
) $ECHO_C" >&6
22515 cat >conftest.$ac_ext <<_ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 void fred (int x[__restrict]);
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_compile") 2>conftest.er1
22539 grep -v '^ *+' conftest.er1 >conftest.err
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22543 (exit $ac_status); } && {
22544 test -z "$ac_c_werror_flag" ||
22545 test ! -s conftest.err
22546 } && test -s conftest.$ac_objext; then
22547 emacs_cv_c_restrict_arr=yes
22549 echo "$as_me: failed program was
:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22552 emacs_cv_c_restrict_arr=no
22555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22558 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22559 if test "$emacs_cv_c_restrict_arr" = yes; then
22561 cat >>confdefs.h <<\_ACEOF
22562 #define __restrict_arr __restrict
22569 # Set up the CFLAGS for real compilation, so we can substitute it.
22570 CFLAGS="$REAL_CFLAGS"
22571 CPPFLAGS="$REAL_CPPFLAGS"
22573 #### Find out which version of Emacs this is.
22574 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22575 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22576 if test x"${version}" = x; then
22577 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22578 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22579 { (exit 1); exit 1; }; }
22582 ### Specify what sort of things we'll be editing into Makefile and config.h.
22583 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22619 cat >>confdefs.h <<_ACEOF
22620 #define EMACS_CONFIGURATION "${canonical}"
22624 cat >>confdefs.h <<_ACEOF
22625 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22629 cat >>confdefs.h <<_ACEOF
22630 #define config_machfile "${machfile}"
22634 cat >>confdefs.h <<_ACEOF
22635 #define config_opsysfile "${opsysfile}"
22639 cat >>confdefs.h <<_ACEOF
22640 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22644 cat >>confdefs.h <<_ACEOF
22645 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22649 cat >>confdefs.h <<_ACEOF
22650 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22654 cat >>confdefs.h <<_ACEOF
22655 #define UNEXEC_SRC ${UNEXEC_SRC}
22659 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22661 cat >>confdefs.h <<\_ACEOF
22662 #define HAVE_X_WINDOWS 1
22666 if test "${USE_X_TOOLKIT}" != "none
" ; then
22668 cat >>confdefs.h <<\_ACEOF
22669 #define USE_X_TOOLKIT 1
22673 if test "${HAVE_X11}" = "yes" ; then
22675 cat >>confdefs.h <<\_ACEOF
22680 if test "${HAVE_XFREE386}" = "yes" ; then
22682 cat >>confdefs.h <<\_ACEOF
22683 #define HAVE_XFREE386 1
22687 if test "${HAVE_MENUS}" = "yes" ; then
22689 cat >>confdefs.h <<\_ACEOF
22690 #define HAVE_MENUS 1
22694 if test "${GNU_MALLOC}" = "yes" ; then
22696 cat >>confdefs.h <<\_ACEOF
22697 #define GNU_MALLOC 1
22701 if test "${REL_ALLOC}" = "yes" ; then
22703 cat >>confdefs.h <<\_ACEOF
22704 #define REL_ALLOC 1
22713 #### Report on what we decided to do.
22714 #### Report GTK as a toolkit, even if it doesn't use Xt.
22715 #### It makes printing result more understandable as using GTK sets
22716 #### toolkit_scroll_bars to yes by default.
22717 if test "${HAVE_GTK}" = "yes"; then
22722 Configured
for \
`${canonical}'.
22724 Where should the build process find the source code? ${srcdir}
22725 What operating system and machine description files should Emacs use?
22726 \`${opsysfile}' and \`${machfile}'
22727 What compiler should emacs be built with?
${CC} ${CFLAGS}
22728 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
22729 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
22730 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
22731 What window system should Emacs use?
${window_system}
22732 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
22734 if test -n "${x_includes}"; then
22735 echo " Where
do we
find X Windows header files?
${x_includes}"
22737 echo " Where
do we
find X Windows header files? Standard
dirs"
22739 if test -n "${x_libraries}"; then
22740 echo " Where
do we
find X Windows libraries?
${x_libraries}"
22742 echo " Where
do we
find X Windows libraries? Standard
dirs"
22745 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
22746 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
22747 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
22748 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
22749 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
22750 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
22751 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
22754 if test $USE_XASSERTS = yes; then
22755 echo " Compiling with asserts turned on.
"
22756 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22762 # Remove any trailing slashes in these variables.
22763 test "${prefix}" != NONE &&
22764 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22765 test "${exec_prefix}" != NONE &&
22766 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22768 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22769 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22770 ## from Makefile.c can correctly provide the arg `-traditional' to the
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22781 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22782 $EGREP "yes..
yes" >/dev/null 2>&1; then
22783 CPP_NEED_TRADITIONAL=no
22785 CPP_NEED_TRADITIONAL=yes
22790 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
"
22792 ac_config_commands="$ac_config_commands default
"
22794 cat >confcache <<\_ACEOF
22795 # This file is a shell script that caches the results of configure
22796 # tests run on this system so they can be shared between configure
22797 # scripts and configure runs, see configure's option --config-cache.
22798 # It is not useful on other systems. If it contains results you don't
22799 # want to keep, you may remove or edit it.
22801 # config.status only pays attention to the cache file if you give it
22802 # the --recheck option to rerun configure.
22804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22806 # following values.
22810 # The following way of writing the cache mishandles newlines in values,
22811 # but we know of no workaround that is simple, portable, and efficient.
22812 # So, we kill variables containing newlines.
22813 # Ultrix sh set writes to stderr and can't be redirected directly,
22814 # and sets the high bit in the cache file unless we assign to the vars.
22816 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22817 eval ac_val=\$$ac_var
22821 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
22822 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
22825 _ | IFS | as_nl) ;; #(
22826 *) $as_unset $ac_var ;;
22832 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22833 *${as_nl}ac_space=\ *)
22834 # `set' does not quote correctly, so add quotes (double-quote
22835 # substitution turns \\\\ into \\, and sed turns \\ into \).
22838 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
22841 # `set' quotes correctly as required by POSIX, so do not add quotes.
22842 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
22851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22853 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22855 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22856 if test -w "$cache_file"; then
22857 test "x
$cache_file" != "x
/dev
/null
" &&
22858 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
22859 echo "$as_me: updating cache
$cache_file" >&6;}
22860 cat confcache >$cache_file
22862 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
22863 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
22868 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
22869 # Let make expand exec_prefix.
22870 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
22872 DEFS=-DHAVE_CONFIG_H
22876 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
22877 # 1. Remove the extension, and $U if already installed.
22878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22879 ac_i=`echo "$ac_i" | sed "$ac_script"`
22880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22881 # will be set to the directory where LIBOBJS objects are built.
22882 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
22883 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
22885 LIBOBJS=$ac_libobjs
22887 LTLIBOBJS=$ac_ltlibobjs
22891 : ${CONFIG_STATUS=./config.status}
22892 ac_clean_files_save=$ac_clean_files
22893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22894 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
22895 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
22896 cat >$CONFIG_STATUS <<_ACEOF
22898 # Generated by $as_me.
22899 # Run this file to recreate the current configuration.
22900 # Compiler output produced by configure, useful for debugging
22901 # configure, is in config.log if it exists.
22904 ac_cs_recheck=false
22906 SHELL=\${CONFIG_SHELL-$SHELL}
22909 cat >>$CONFIG_STATUS <<\_ACEOF
22910 ## --------------------- ##
22911 ## M4sh Initialization. ##
22912 ## --------------------- ##
22914 # Be more Bourne compatible
22915 DUALCASE=1; export DUALCASE # for MKS sh
22916 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22919 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22920 # is contrary to our usage. Disable this feature.
22921 alias -g '${1+"$@"}'='"$@
"'
22922 setopt NO_GLOB_SUBST
22924 case `(set -o) 2>/dev/null` in
22925 *posix*) set -o posix ;;
22934 # Avoid depending upon Character Ranges.
22935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22938 as_cr_digits='0123456789'
22939 as_cr_alnum=$as_cr_Letters$as_cr_digits
22941 # The user is always right.
22942 if test "${PATH_SEPARATOR+set}" != set; then
22943 echo "#! /bin/sh" >conf$$.sh
22944 echo "exit 0" >>conf$$.sh
22946 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22954 # Support unset when possible.
22955 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22963 # We need space, tab and new line, in precisely that order. Quoting is
22964 # there to prevent editors from complaining about space-tab.
22965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22966 # splitting by setting IFS to empty value.)
22971 # Find who we are. Look in the path if we contain no directory separator.
22973 *[\\/]* ) as_myself
=$0 ;;
22974 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22975 for as_dir
in $PATH
22978 test -z "$as_dir" && as_dir
=.
22979 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22985 # We did not find ourselves, most probably we were run as `sh COMMAND'
22986 # in which case we are not to be found in the path.
22987 if test "x$as_myself" = x
; then
22990 if test ! -f "$as_myself"; then
22991 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22992 { (exit 1); exit 1; }
22995 # Work around bugs in pre-3.0 UWIN ksh.
22996 for as_var
in ENV MAIL MAILPATH
22997 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23005 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23006 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23007 LC_TELEPHONE LC_TIME
23009 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23010 eval $as_var=C
; export $as_var
23012 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23016 # Required to use basename.
23017 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23018 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23024 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23025 as_basename
=basename
23031 # Name of the executable.
23032 as_me
=`$as_basename -- "$0" ||
23033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23034 X"$0" : 'X\(//\)$' \| \
23035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23037 sed '/^.*\/\([^/][^/]*\)\/*$/{
23056 as_lineno_1
=$LINENO
23057 as_lineno_2
=$LINENO
23058 test "x$as_lineno_1" != "x$as_lineno_2" &&
23059 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23061 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23062 # uniformly replaced by the line number. The first 'sed' inserts a
23063 # line-number line after each line using $LINENO; the second 'sed'
23064 # does the real work. The second script uses 'N' to pair each
23065 # line-number line with the line containing $LINENO, and appends
23066 # trailing '-' during substitution so that $LINENO is not a special
23067 # case at line end.
23068 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23069 # scripts with optimization help from Paolo Bonzini. Blame Lee
23070 # E. McMahon (1931-1989) for sed's syntax. :-)
23082 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23085 ' >$as_me.lineno
&&
23086 chmod +x
"$as_me.lineno" ||
23087 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23088 { (exit 1); exit 1; }; }
23090 # Don't try to exec as it changes $[0], causing all sort of problems
23091 # (the dirname of $[0] is not the place where we might find the
23092 # original and so on. Autoconf is especially sensitive to this).
23093 .
"./$as_me.lineno"
23094 # Exit status is that of the last command.
23099 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23105 ECHO_C
= ECHO_N
= ECHO_T
=
23106 case `echo -n x` in
23108 case `echo 'x\c'` in
23109 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23123 rm -f conf$$ conf$$.exe conf$$.
file
23124 if test -d conf$$.dir
; then
23125 rm -f conf$$.dir
/conf$$.
file
23131 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23133 # ... but there are two gotchas:
23134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23136 # In both cases, we have to default to `cp -p'.
23137 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23139 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23144 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23145 rmdir conf$$.dir
2>/dev
/null
23147 if mkdir
-p .
2>/dev
/null
; then
23150 test -d .
/-p && rmdir .
/-p
23154 if test -x / >/dev
/null
2>&1; then
23155 as_test_x
='test -x'
23157 if ls -dL / >/dev
/null
2>&1; then
23164 if test -d "$1"; then
23170 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23171 ???[sx]*):;;*)false;;esac;fi
23175 as_executable_p
=$as_test_x
23177 # Sed expression to map a string onto a valid CPP name.
23178 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23180 # Sed expression to map a string onto a valid variable name.
23181 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23186 # Save the log message, to keep $[0] and so on meaningful, and to
23187 # report actual input values of CONFIG_FILES etc. instead of their
23188 # values after options handling.
23190 This file was extended by $as_me, which was
23191 generated by GNU Autoconf 2.61. Invocation command line was
23193 CONFIG_FILES = $CONFIG_FILES
23194 CONFIG_HEADERS = $CONFIG_HEADERS
23195 CONFIG_LINKS = $CONFIG_LINKS
23196 CONFIG_COMMANDS = $CONFIG_COMMANDS
23199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23204 cat >>$CONFIG_STATUS <<_ACEOF
23205 # Files that config.status was made for.
23206 config_files="$ac_config_files"
23207 config_headers="$ac_config_headers"
23208 config_commands="$ac_config_commands"
23212 cat >>$CONFIG_STATUS <<\_ACEOF
23214 \`$as_me' instantiates files from templates according to the
23215 current configuration.
23217 Usage: $0 [OPTIONS] [FILE]...
23219 -h, --help print this help, then exit
23220 -V, --version print version number and configuration settings, then exit
23221 -q, --quiet do not print progress messages
23222 -d, --debug don't remove temporary files
23223 --recheck update $as_me by reconfiguring in the same conditions
23224 --file=FILE[:TEMPLATE]
23225 instantiate the configuration file FILE
23226 --header=FILE[:TEMPLATE]
23227 instantiate the configuration header FILE
23229 Configuration files:
23232 Configuration headers:
23235 Configuration commands:
23238 Report bugs to <bug-autoconf@gnu.org>."
23241 cat >>$CONFIG_STATUS <<_ACEOF
23244 configured by $0, generated by GNU Autoconf 2.61,
23245 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23247 Copyright (C) 2006 Free Software Foundation, Inc.
23248 This config.status script is free software; the Free Software Foundation
23249 gives unlimited permission to copy, distribute and modify it."
23256 cat >>$CONFIG_STATUS <<\_ACEOF
23257 # If no file are specified by the user, then we need to provide default
23258 # value. By we need to know if files were specified by the user.
23264 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23265 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23276 # Handling of the options.
23277 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23279 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23280 echo "$ac_cs_version"; exit ;;
23281 --debug |
--debu |
--deb |
--de |
--d |
-d )
23283 --file |
--fil |
--fi |
--f )
23285 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23286 ac_need_defaults
=false
;;
23287 --header |
--heade |
--head |
--hea )
23289 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23290 ac_need_defaults
=false
;;
23292 # Conflict between --help and --header
23293 { echo "$as_me: error: ambiguous option: $1
23294 Try \`$0 --help' for more information." >&2
23295 { (exit 1); exit 1; }; };;
23296 --help |
--hel |
-h )
23297 echo "$ac_cs_usage"; exit ;;
23298 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23299 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23302 # This is an error.
23303 -*) { echo "$as_me: error: unrecognized option: $1
23304 Try \`$0 --help' for more information." >&2
23305 { (exit 1); exit 1; }; } ;;
23307 *) ac_config_targets
="$ac_config_targets $1"
23308 ac_need_defaults
=false
;;
23314 ac_configure_extra_args
=
23316 if $ac_cs_silent; then
23318 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23322 cat >>$CONFIG_STATUS <<_ACEOF
23323 if \$ac_cs_recheck; then
23324 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23325 CONFIG_SHELL=$SHELL
23326 export CONFIG_SHELL
23327 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23331 cat >>$CONFIG_STATUS <<\_ACEOF
23335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23336 ## Running $as_me. ##
23342 cat >>$CONFIG_STATUS <<_ACEOF
23346 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23350 cat >>$CONFIG_STATUS <<\_ACEOF
23352 # Handling of arguments.
23353 for ac_config_target
in $ac_config_targets
23355 case $ac_config_target in
23356 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23357 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23358 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23359 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23360 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23361 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23362 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23363 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23364 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23365 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23366 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23367 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23369 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23370 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23371 { (exit 1); exit 1; }; };;
23376 # If the user did not use the arguments to specify the items to instantiate,
23377 # then the envvar interface is used. Set only those that are not.
23378 # We use the long form for the default assignment because of an extremely
23379 # bizarre bug on SunOS 4.1.3.
23380 if $ac_need_defaults; then
23381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23383 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23386 # Have a temporary directory for convenience. Make it in the build tree
23387 # simply because there is no reason against having it here, and in addition,
23388 # creating and moving files from /tmp can sometimes cause problems.
23389 # Hook for its removal unless debugging.
23390 # Note that there is a small window in which the directory will not be cleaned:
23391 # after its creation but before its name has been assigned to `$tmp'.
23395 trap 'exit_status=$?
23396 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23398 trap '{ (exit 1); exit 1; }' 1 2 13 15
23400 # Create a (secure) tmp directory for tmp files.
23403 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23404 test -n "$tmp" && test -d "$tmp"
23407 tmp
=.
/conf$$
-$RANDOM
23408 (umask 077 && mkdir
"$tmp")
23411 echo "$me: cannot create a temporary directory in ." >&2
23412 { (exit 1); exit 1; }
23416 # Set up the sed scripts for CONFIG_FILES section.
23419 # No need to generate the scripts if there are no CONFIG_FILES.
23420 # This happens for instance when ./config.status config.h
23421 if test -n "$CONFIG_FILES"; then
23428 for ac_last_try
in false false false false false
:; do
23429 cat >conf$
$subs.
sed <<_ACEOF
23430 SHELL!$SHELL$ac_delim
23431 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23432 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23433 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23434 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23435 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23436 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23437 exec_prefix!$exec_prefix$ac_delim
23438 prefix!$prefix$ac_delim
23439 program_transform_name!$program_transform_name$ac_delim
23440 bindir!$bindir$ac_delim
23441 sbindir!$sbindir$ac_delim
23442 libexecdir!$libexecdir$ac_delim
23443 datarootdir!$datarootdir$ac_delim
23444 datadir!$datadir$ac_delim
23445 sysconfdir!$sysconfdir$ac_delim
23446 sharedstatedir!$sharedstatedir$ac_delim
23447 localstatedir!$localstatedir$ac_delim
23448 includedir!$includedir$ac_delim
23449 oldincludedir!$oldincludedir$ac_delim
23450 docdir!$docdir$ac_delim
23451 infodir!$infodir$ac_delim
23452 htmldir!$htmldir$ac_delim
23453 dvidir!$dvidir$ac_delim
23454 pdfdir!$pdfdir$ac_delim
23455 psdir!$psdir$ac_delim
23456 libdir!$libdir$ac_delim
23457 localedir!$localedir$ac_delim
23458 mandir!$mandir$ac_delim
23459 DEFS!$DEFS$ac_delim
23460 ECHO_C!$ECHO_C$ac_delim
23461 ECHO_N!$ECHO_N$ac_delim
23462 ECHO_T!$ECHO_T$ac_delim
23463 LIBS!$LIBS$ac_delim
23464 build_alias!$build_alias$ac_delim
23465 host_alias!$host_alias$ac_delim
23466 target_alias!$target_alias$ac_delim
23467 MAINT!$MAINT$ac_delim
23468 build!$build$ac_delim
23469 build_cpu!$build_cpu$ac_delim
23470 build_vendor!$build_vendor$ac_delim
23471 build_os!$build_os$ac_delim
23472 host!$host$ac_delim
23473 host_cpu!$host_cpu$ac_delim
23474 host_vendor!$host_vendor$ac_delim
23475 host_os!$host_os$ac_delim
23477 CFLAGS!$CFLAGS$ac_delim
23478 LDFLAGS!$LDFLAGS$ac_delim
23479 CPPFLAGS!$CPPFLAGS$ac_delim
23480 ac_ct_CC!$ac_ct_CC$ac_delim
23481 EXEEXT!$EXEEXT$ac_delim
23482 OBJEXT!$OBJEXT$ac_delim
23484 GREP!$GREP$ac_delim
23485 EGREP!$EGREP$ac_delim
23486 LN_S!$LN_S$ac_delim
23487 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23488 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23489 INSTALL_DATA!$INSTALL_DATA$ac_delim
23490 RANLIB!$RANLIB$ac_delim
23491 INSTALL_INFO!$INSTALL_INFO$ac_delim
23492 GZIP_PROG!$GZIP_PROG$ac_delim
23493 LIBSOUND!$LIBSOUND$ac_delim
23494 PKG_CONFIG!$PKG_CONFIG$ac_delim
23495 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23496 ALSA_LIBS!$ALSA_LIBS$ac_delim
23497 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23498 SET_MAKE!$SET_MAKE$ac_delim
23499 XMKMF!$XMKMF$ac_delim
23500 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23501 GTK_LIBS!$GTK_LIBS$ac_delim
23502 ALLOCA!$ALLOCA$ac_delim
23503 liblockfile!$liblockfile$ac_delim
23504 LIBOBJS!$LIBOBJS$ac_delim
23505 NEED_SETGID!$NEED_SETGID$ac_delim
23506 KMEM_GROUP!$KMEM_GROUP$ac_delim
23507 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23508 GETOPT_H!$GETOPT_H$ac_delim
23509 GETOPTOBJS!$GETOPTOBJS$ac_delim
23510 version!$version$ac_delim
23511 configuration!$configuration$ac_delim
23512 canonical!$canonical$ac_delim
23513 srcdir!$srcdir$ac_delim
23514 lispdir!$lispdir$ac_delim
23515 locallisppath!$locallisppath$ac_delim
23516 lisppath!$lisppath$ac_delim
23517 x_default_search_path!$x_default_search_path$ac_delim
23518 etcdir!$etcdir$ac_delim
23519 archlibdir!$archlibdir$ac_delim
23520 bitmapdir!$bitmapdir$ac_delim
23521 gamedir!$gamedir$ac_delim
23522 gameuser!$gameuser$ac_delim
23523 c_switch_system!$c_switch_system$ac_delim
23524 c_switch_machine!$c_switch_machine$ac_delim
23525 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23526 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23529 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23531 elif $ac_last_try; then
23532 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23533 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23534 { (exit 1); exit 1; }; }
23536 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23540 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23541 if test -n "$ac_eof"; then
23542 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23543 ac_eof
=`expr $ac_eof + 1`
23546 cat >>$CONFIG_STATUS <<_ACEOF
23547 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23551 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23552 s/^/s,@/; s/!/@,|#_!!_#|/
23555 s/'"$ac_delim"'$/,g/; t
23557 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23558 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23559 rm -f conf$
$subs.
sed
23560 cat >>$CONFIG_STATUS <<_ACEOF
23566 for ac_last_try
in false false false false false
:; do
23567 cat >conf$
$subs.
sed <<_ACEOF
23568 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23569 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23570 machfile!$machfile$ac_delim
23571 opsysfile!$opsysfile$ac_delim
23572 carbon_appdir!$carbon_appdir$ac_delim
23573 LTLIBOBJS!$LTLIBOBJS$ac_delim
23576 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23578 elif $ac_last_try; then
23579 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23580 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23581 { (exit 1); exit 1; }; }
23583 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23587 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23588 if test -n "$ac_eof"; then
23589 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23590 ac_eof
=`expr $ac_eof + 1`
23593 cat >>$CONFIG_STATUS <<_ACEOF
23594 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23598 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23599 s/^/s,@/; s/!/@,|#_!!_#|/
23602 s/'"$ac_delim"'$/,g/; t
23604 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23605 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23606 rm -f conf$
$subs.
sed
23607 cat >>$CONFIG_STATUS <<_ACEOF
23614 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23615 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23616 # trailing colons and then remove the whole line if VPATH becomes empty
23617 # (actually we leave an empty line to preserve line numbers).
23618 if test "x$srcdir" = x.
; then
23619 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23620 s/:*\$(srcdir):*/:/
23621 s/:*\${srcdir}:*/:/
23623 s/^\([^=]*=[ ]*\):*/\1/
23629 cat >>$CONFIG_STATUS <<\_ACEOF
23630 fi # test -n "$CONFIG_FILES"
23633 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23636 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23638 case $ac_mode$ac_tag in
23640 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23641 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23642 { (exit 1); exit 1; }; };;
23643 :[FH
]-) ac_tag
=-:-;;
23644 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23661 -) ac_f
="$tmp/stdin";;
23662 *) # Look for the file first in the build tree, then in the source tree
23663 # (if the path is not absolute). The absolute path cannot be DOS-style,
23664 # because $ac_f cannot contain `:'.
23668 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23670 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23671 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23672 { (exit 1); exit 1; }; };;
23674 ac_file_inputs
="$ac_file_inputs $ac_f"
23677 # Let's still pretend it is `configure' which instantiates (i.e., don't
23678 # use $as_me), people would be surprised to read:
23679 # /* config.h. Generated by config.status. */
23680 configure_input
="Generated from "`IFS=:
23681 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23682 if test x
"$ac_file" != x-
; then
23683 configure_input
="$ac_file. $configure_input"
23684 { echo "$as_me:$LINENO: creating $ac_file" >&5
23685 echo "$as_me: creating $ac_file" >&6;}
23689 *:-:* |
*:-) cat >"$tmp/stdin";;
23694 ac_dir
=`$as_dirname -- "$ac_file" ||
23695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23696 X"$ac_file" : 'X\(//\)[^/]' \| \
23697 X"$ac_file" : 'X\(//\)$' \| \
23698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23704 /^X\(\/\/\)[^/].*/{
23719 -*) as_dir
=.
/$as_dir;;
23721 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23725 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23726 *) as_qdir
=$as_dir;;
23728 as_dirs
="'$as_qdir' $as_dirs"
23729 as_dir
=`$as_dirname -- "$as_dir" ||
23730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23731 X"$as_dir" : 'X\(//\)[^/]' \| \
23732 X"$as_dir" : 'X\(//\)$' \| \
23733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23739 /^X\(\/\/\)[^/].*/{
23752 test -d "$as_dir" && break
23754 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23755 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23756 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23757 { (exit 1); exit 1; }; }; }
23761 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23763 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23764 # A ".." for each directory in $ac_dir_suffix.
23765 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23766 case $ac_top_builddir_sub in
23767 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23768 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23771 ac_abs_top_builddir
=$ac_pwd
23772 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23773 # for backward compatibility:
23774 ac_top_builddir
=$ac_top_build_prefix
23777 .
) # We are building in place.
23779 ac_top_srcdir
=$ac_top_builddir_sub
23780 ac_abs_top_srcdir
=$ac_pwd ;;
23781 [\\/]* | ?
:[\\/]* ) # Absolute name.
23782 ac_srcdir
=$srcdir$ac_dir_suffix;
23783 ac_top_srcdir
=$srcdir
23784 ac_abs_top_srcdir
=$srcdir ;;
23785 *) # Relative name.
23786 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23787 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23788 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23790 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23800 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23801 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23805 cat >>$CONFIG_STATUS <<\_ACEOF
23806 # If the template does not know about datarootdir, expand it.
23807 # FIXME: This hack should be removed a few years after 2.60.
23808 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23810 case `sed -n '/datarootdir/ {
23819 ' $ac_file_inputs` in
23820 *datarootdir
*) ac_datarootdir_seen
=yes;;
23821 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23822 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23823 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23825 cat >>$CONFIG_STATUS <<_ACEOF
23826 ac_datarootdir_hack='
23827 s&@datadir@&$datadir&g
23828 s&@docdir@&$docdir&g
23829 s&@infodir@&$infodir&g
23830 s&@localedir@&$localedir&g
23831 s&@mandir@&$mandir&g
23832 s&\\\${datarootdir}&$datarootdir&g' ;;
23836 # Neutralize VPATH when `$srcdir' = `.'.
23837 # Shell code in configure.ac might set extrasub.
23838 # FIXME: do we really want to maintain this feature?
23839 cat >>$CONFIG_STATUS <<_ACEOF
23843 cat >>$CONFIG_STATUS <<\_ACEOF
23845 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23846 s
&@configure_input@
&$configure_input&;t t
23847 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23848 s
&@srcdir@
&$ac_srcdir&;t t
23849 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23850 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23851 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23852 s
&@builddir@
&$ac_builddir&;t t
23853 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23854 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23855 s
&@INSTALL@
&$ac_INSTALL&;t t
23856 $ac_datarootdir_hack
23857 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
23859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23860 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23862 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23863 which seems to be undefined. Please make sure it is defined." >&5
23864 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23865 which seems to be undefined. Please make sure it is defined." >&2;}
23869 -) cat "$tmp/out"; rm -f "$tmp/out";;
23870 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23879 # Transform confdefs.h into a sed script `conftest.defines', that
23880 # substitutes the proper values into config.h.in to produce config.h.
23881 rm -f conftest.defines conftest.
tail
23882 # First, append a space to every undef/define line, to ease matching.
23883 echo 's/$/ /' >conftest.defines
23884 # Then, protect against being on the right side of a sed subst, or in
23885 # an unquoted here document, in config.status. If some macros were
23886 # called several times there might be several #defines for the same
23887 # symbol, which is useless. But do not sort them, since the last
23888 # AC_DEFINE must be honored.
23889 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23890 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23891 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23892 # PARAMS is the parameter list in the macro definition--in most cases, it's
23893 # just an empty string.
23894 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23895 ac_dB
='\\)[ (].*,\\1define\\2'
23903 s/^[ ]*#[ ]*define[ ][ ]*//
23908 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23909 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23910 ' >>conftest.defines
23912 # Remove the space that was appended to ease matching.
23913 # Then replace #undef with comments. This is necessary, for
23914 # example, in the case of _POSIX_SOURCE, which is predefined and required
23915 # on some systems where configure will not decide to define it.
23916 # (The regexp can be short, since the line contains either #define or #undef.)
23918 s,^[ #]*u.*,/* & */,' >>conftest.defines
23920 # Break up conftest.defines:
23921 ac_max_sed_lines
=50
23923 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23924 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23925 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23927 ac_in
='$ac_file_inputs'
23928 ac_out
='"$tmp/out1"'
23929 ac_nxt
='"$tmp/out2"'
23933 # Write a here document:
23934 cat >>$CONFIG_STATUS <<_ACEOF
23935 # First, check the format of the line:
23936 cat >"\$tmp/defines.sed" <<\\CEOF
23937 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23938 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23942 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23944 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23945 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23946 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23947 grep . conftest.
tail >/dev
/null ||
break
23948 rm -f conftest.defines
23949 mv conftest.
tail conftest.defines
23951 rm -f conftest.defines conftest.
tail
23953 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23954 cat >>$CONFIG_STATUS <<\_ACEOF
23955 if test x
"$ac_file" != x-
; then
23956 echo "/* $configure_input */" >"$tmp/config.h"
23957 cat "$ac_result" >>"$tmp/config.h"
23958 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23959 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23960 echo "$as_me: $ac_file is unchanged" >&6;}
23963 mv "$tmp/config.h" $ac_file
23966 echo "/* $configure_input */"
23972 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23973 echo "$as_me: executing $ac_file commands" >&6;}
23978 case $ac_file$ac_mode in
23981 ### Make the necessary directories, if they don't exist.
23982 for dir
in etc lisp
; do
23983 test -d ${dir} || mkdir
${dir}
23986 # Build src/Makefile from ${srcdir}/src/Makefile.c
23987 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23988 # This must be done after src/config.h is built, since we rely on that file.
23990 # Now get this: Some word that is part of the ${srcdir} directory name
23991 # or the ${configuration} value might, just might, happen to be an
23992 # identifier like `sun4' or `i386' or something, and be predefined by
23993 # the C preprocessor to some helpful value like 1, or maybe the empty
23994 # string. Needless to say consequent macro substitutions are less
23995 # than conducive to the makefile finding the correct directory.
23996 undefs
="`echo $top_srcdir $configuration $canonical |
23997 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23998 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24001 echo creating src
/epaths.h
24002 ${MAKE-make} epaths-force
24004 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24005 # `..' to `. .' unless invoked with -traditional
24007 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24008 CPPFLAGS
="$CPPFLAGS -traditional"
24011 echo creating lib-src
/Makefile
24013 rm -f junk.c junk1.c junk2.c
24014 sed -e '/start of cpp stuff/q' \
24015 < Makefile.c
> junk1.c
24016 sed -e '1,/start of cpp stuff/d'\
24017 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24018 < Makefile.c
> junk.c
24019 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24020 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24021 cat junk1.c junk2.c
> Makefile.new
24022 rm -f junk.c junk1.c junk2.c
24023 chmod 444 Makefile.new
24024 mv -f Makefile.new Makefile
24027 echo creating src
/Makefile
24029 rm -f junk.c junk1.c junk2.c
24030 sed -e '/start of cpp stuff/q' \
24031 < Makefile.c
> junk1.c
24032 sed -e '1,/start of cpp stuff/d'\
24033 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24034 < Makefile.c
> junk.c
24035 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24036 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24037 cat junk1.c junk2.c
> Makefile.new
24038 rm -f junk.c junk1.c junk2.c
24039 chmod 444 Makefile.new
24040 mv -f Makefile.new Makefile
24043 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24044 echo creating src
/.gdbinit
24045 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24048 # This is how we know whether to re-run configure in certain cases.
24049 touch src
/config.stamp
24057 { (exit 0); exit 0; }
24059 chmod +x
$CONFIG_STATUS
24060 ac_clean_files
=$ac_clean_files_save
24063 # configure is writing to config.log, and then calls config.status.
24064 # config.status does its own redirection, appending to config.log.
24065 # Unfortunately, on DOS this fails, as config.log is still kept open
24066 # by configure, so config.status won't be able to write to it; its
24067 # output is simply discarded. So we exec the FD to /dev/null,
24068 # effectively closing config.log, so it can be properly (re)opened and
24069 # appended to by config.status. When coming back to configure, we
24070 # need to make the FD available again.
24071 if test "$no_create" != yes; then
24073 ac_config_status_args
=
24074 test "$silent" = yes &&
24075 ac_config_status_args
="$ac_config_status_args --quiet"
24077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24080 # would make configure fail if this is the last instruction.
24081 $ac_cs_success ||
{ (exit 1); exit 1; }