2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
24 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
25 DUALCASE
=1; export DUALCASE
# for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits
='0123456789'
34 as_cr_alnum
=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
49 # Support unset when possible.
50 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself
=$0 ;;
69 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir
=.
74 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x
; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var
in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C
; export $as_var
107 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
119 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me
=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x
; then
151 if (eval ":") 2>/dev
/null
; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev
/null
; then
217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
224 for as_base
in sh bash ksh sh5
; do
225 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
232 for as_shell
in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
247 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
248 DUALCASE
=1; export DUALCASE
# for MKS sh
253 CONFIG_SHELL
=$as_shell
255 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
267 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
268 DUALCASE
=1; export DUALCASE
# for MKS sh
280 as_func_ret_success
() {
283 as_func_ret_failure
() {
288 if as_func_success
; then
292 echo as_func_success failed.
295 if as_func_failure
; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success
; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure
; then
309 echo as_func_ret_failure succeeded.
312 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) ||
{ (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x
; then
337 for as_var
in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no
; then
346 echo This
script requires a shell
more modern than all the
347 echo shells that I found on your system. Please
install a
348 echo modern shell
, or manually run the
script under such a
349 echo shell
if you
do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") ||
{
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system
,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
466 ECHO_C
= ECHO_N
= ECHO_T
=
470 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
477 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
484 rm -f conf$$ conf$$.exe conf$$.
file
485 if test -d conf$$.dir
; then
486 rm -f conf$$.dir
/conf$$.
file
492 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
500 elif ln conf$$.
file conf$$
2>/dev
/null
; then
505 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
506 rmdir conf$$.dir
2>/dev
/null
508 if mkdir
-p .
2>/dev
/null
; then
511 test -d .
/-p && rmdir .
/-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.
file <<_ASEOF
522 if test -x conf$$.
file >/dev
/null
2>&1; then
523 as_executable_p
="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
555 SHELL
=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file
="src/lisp.h"
565 ac_config_libobj_dir
=src
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
570 # include <sys/types.h>
573 # include <sys/stat.h>
584 # if !STDC_HEADERS && HAVE_MEMORY_H
590 # include <strings.h>
593 # include <inttypes.h>
611 program_transform_name
690 x_default_search_path
707 ac_precious_vars
='build_alias
718 # Initialize some variables set by options.
720 ac_init_version
=false
721 # The variables have the same names as the options, with
722 # dashes changed to underlines.
730 program_transform_name
=s
,x
,x
,
738 # Installation directory options.
739 # These are left unexpanded so users can "make install exec_prefix=/foo"
740 # and all the variables that are supposed to be based on exec_prefix
741 # by default will actually change.
742 # Use braces instead of parens because sh, perl, etc. also accept them.
743 # (The list follows the same order as the GNU Coding Standards.)
744 bindir
='${exec_prefix}/bin'
745 sbindir
='${exec_prefix}/sbin'
746 libexecdir
='${exec_prefix}/libexec'
747 datarootdir
='${prefix}/share'
748 datadir
='${datarootdir}'
749 sysconfdir
='${prefix}/etc'
750 sharedstatedir
='${prefix}/com'
751 localstatedir
='${prefix}/var'
752 includedir
='${prefix}/include'
753 oldincludedir
='/usr/include'
754 docdir
='${datarootdir}/doc/${PACKAGE}'
755 infodir
='${datarootdir}/info'
760 libdir
='${exec_prefix}/lib'
761 localedir
='${datarootdir}/locale'
762 mandir
='${datarootdir}/man'
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
770 eval $ac_prev=\
$ac_option
776 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 # Accept the important Cygnus configure options, so we can diagnose typos.
782 case $ac_dashdash$ac_option in
786 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
788 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
791 -build |
--build |
--buil |
--bui |
--bu)
792 ac_prev
=build_alias
;;
793 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
794 build_alias
=$ac_optarg ;;
796 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
797 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
798 ac_prev
=cache_file
;;
799 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
800 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
801 cache_file
=$ac_optarg ;;
804 cache_file
=config.cache
;;
806 -datadir |
--datadir |
--datadi |
--datad)
808 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
809 datadir
=$ac_optarg ;;
811 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
812 |
--dataroo |
--dataro |
--datar)
813 ac_prev
=datarootdir
;;
814 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
815 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
816 datarootdir
=$ac_optarg ;;
818 -disable-* |
--disable-*)
819 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
824 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
825 eval enable_
$ac_feature=no
;;
827 -docdir |
--docdir |
--docdi |
--doc |
--do)
829 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
832 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
834 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
837 -enable-* |
--enable-*)
838 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
844 eval enable_
$ac_feature=\
$ac_optarg ;;
846 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
847 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
848 |
--exec |
--exe |
--ex)
849 ac_prev
=exec_prefix
;;
850 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
851 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
852 |
--exec=* |
--exe=* |
--ex=*)
853 exec_prefix
=$ac_optarg ;;
855 -gas |
--gas |
--ga |
--g)
856 # Obsolete; use --with-gas.
859 -help |
--help |
--hel |
--he |
-h)
861 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
862 ac_init_help
=recursive
;;
863 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
864 ac_init_help
=short
;;
866 -host |
--host |
--hos |
--ho)
867 ac_prev
=host_alias
;;
868 -host=* |
--host=* |
--hos=* |
--ho=*)
869 host_alias
=$ac_optarg ;;
871 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
873 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
875 htmldir
=$ac_optarg ;;
877 -includedir |
--includedir |
--includedi |
--included |
--include \
878 |
--includ |
--inclu |
--incl |
--inc)
879 ac_prev
=includedir
;;
880 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
881 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
882 includedir
=$ac_optarg ;;
884 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
886 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
887 infodir
=$ac_optarg ;;
889 -libdir |
--libdir |
--libdi |
--libd)
891 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
894 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
895 |
--libexe |
--libex |
--libe)
896 ac_prev
=libexecdir
;;
897 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
898 |
--libexe=* |
--libex=* |
--libe=*)
899 libexecdir
=$ac_optarg ;;
901 -localedir |
--localedir |
--localedi |
--localed |
--locale)
903 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
904 localedir
=$ac_optarg ;;
906 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
907 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
908 ac_prev
=localstatedir
;;
909 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
910 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
911 localstatedir
=$ac_optarg ;;
913 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
915 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
919 # Obsolete; use --without-fp.
922 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
923 |
--no-cr |
--no-c |
-n)
926 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
927 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
930 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
931 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
932 |
--oldin |
--oldi |
--old |
--ol |
--o)
933 ac_prev
=oldincludedir
;;
934 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
935 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
936 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
937 oldincludedir
=$ac_optarg ;;
939 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
941 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
944 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
945 |
--program-pre |
--program-pr |
--program-p)
946 ac_prev
=program_prefix
;;
947 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
948 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
949 program_prefix
=$ac_optarg ;;
951 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
952 |
--program-suf |
--program-su |
--program-s)
953 ac_prev
=program_suffix
;;
954 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
955 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
956 program_suffix
=$ac_optarg ;;
958 -program-transform-name |
--program-transform-name \
959 |
--program-transform-nam |
--program-transform-na \
960 |
--program-transform-n |
--program-transform- \
961 |
--program-transform |
--program-transfor \
962 |
--program-transfo |
--program-transf \
963 |
--program-trans |
--program-tran \
964 |
--progr-tra |
--program-tr |
--program-t)
965 ac_prev
=program_transform_name
;;
966 -program-transform-name=* |
--program-transform-name=* \
967 |
--program-transform-nam=* |
--program-transform-na=* \
968 |
--program-transform-n=* |
--program-transform-=* \
969 |
--program-transform=* |
--program-transfor=* \
970 |
--program-transfo=* |
--program-transf=* \
971 |
--program-trans=* |
--program-tran=* \
972 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
973 program_transform_name
=$ac_optarg ;;
975 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
977 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
980 -psdir |
--psdir |
--psdi |
--psd |
--ps)
982 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
985 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
986 |
-silent |
--silent |
--silen |
--sile |
--sil)
989 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
991 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
993 sbindir
=$ac_optarg ;;
995 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
996 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
997 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
999 ac_prev
=sharedstatedir
;;
1000 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1001 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1002 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1004 sharedstatedir
=$ac_optarg ;;
1006 -site |
--site |
--sit)
1008 -site=* |
--site=* |
--sit=*)
1011 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1013 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1014 srcdir
=$ac_optarg ;;
1016 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1017 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1018 ac_prev
=sysconfdir
;;
1019 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1020 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1021 sysconfdir
=$ac_optarg ;;
1023 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1024 ac_prev
=target_alias
;;
1025 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1026 target_alias
=$ac_optarg ;;
1028 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1031 -version |
--version |
--versio |
--versi |
--vers |
-V)
1032 ac_init_version
=: ;;
1035 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1038 { echo "$as_me: error: invalid package name: $ac_package" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1041 eval with_
$ac_package=\
$ac_optarg ;;
1043 -without-* |
--without-*)
1044 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1050 eval with_
$ac_package=no
;;
1053 # Obsolete; use --with-x.
1056 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1057 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1058 ac_prev
=x_includes
;;
1059 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1060 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1061 x_includes
=$ac_optarg ;;
1063 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1064 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1065 ac_prev
=x_libraries
;;
1066 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1067 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1068 x_libraries
=$ac_optarg ;;
1070 -*) { echo "$as_me: error: unrecognized option: $ac_option
1071 Try \`$0 --help' for more information." >&2
1072 { (exit 1); exit 1; }; }
1076 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1080 { (exit 1); exit 1; }; }
1081 eval $ac_envvar=\
$ac_optarg
1082 export $ac_envvar ;;
1085 # FIXME: should be removed in autoconf 3.0.
1086 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1088 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1095 if test -n "$ac_prev"; then
1096 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1097 { echo "$as_me: error: missing argument to $ac_option" >&2
1098 { (exit 1); exit 1; }; }
1101 # Be sure to have absolute directory names.
1102 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103 datadir sysconfdir sharedstatedir localstatedir includedir \
1104 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105 libdir localedir mandir
1107 eval ac_val
=\$
$ac_var
1109 [\\/$
]* | ?
:[\\/]* ) continue;;
1110 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1112 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113 { (exit 1); exit 1; }; }
1116 # There might be people who depend on the old broken behavior: `$host'
1117 # used to hold the argument of --host etc.
1118 # FIXME: To remove some day.
1121 target
=$target_alias
1123 # FIXME: To remove some day.
1124 if test "x$host_alias" != x
; then
1125 if test "x$build_alias" = x
; then
1126 cross_compiling
=maybe
1127 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128 If a cross compiler is detected then cross compile mode will be used." >&2
1129 elif test "x$build_alias" != "x$host_alias"; then
1135 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1137 test "$silent" = yes && exec 6>/dev
/null
1140 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1141 ac_ls_di
=`ls -di .` &&
1142 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1143 { echo "$as_me: error: Working directory cannot be determined" >&2
1144 { (exit 1); exit 1; }; }
1145 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146 { echo "$as_me: error: pwd does not report name of working directory" >&2
1147 { (exit 1); exit 1; }; }
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted
=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir
=`$as_dirname -- "$0" ||
1155 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$0" : 'X\(//\)[^/]' \| \
1157 X"$0" : 'X\(//\)$' \| \
1158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1182 ac_srcdir_defaulted
=no
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1186 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1187 { (exit 1); exit 1; }; }
1189 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1192 { (exit 1); exit 1; }; }
1194 # When building in place, set srcdir=.
1195 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 # Remove unnecessary trailing slashes from srcdir.
1199 # Double slashes in file names in object file debugging info
1200 # mess up M-x gdb in Emacs.
1202 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204 for ac_var
in $ac_precious_vars; do
1205 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1207 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1212 # Report the --help message.
1214 if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
1218 \`configure' configures this package to adapt to many kinds of systems.
1220 Usage: $0 [OPTION]... [VAR=VALUE]...
1222 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223 VAR=VALUE. See below for descriptions of some of the useful variables.
1225 Defaults for the options are specified in brackets.
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1238 Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
1240 [$ac_default_prefix]
1241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 By default, \`make install' will install all the files in
1245 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247 for instance \`--prefix=\$HOME'.
1249 For better control, use the options below.
1251 Fine tuning of the installation directories:
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
1255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
1276 --program-prefix=PREFIX prepend PREFIX to installed program names
1277 --program-suffix=SUFFIX append SUFFIX to installed program names
1278 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1281 --x-includes=DIR X include files are
in DIR
1282 --x-libraries=DIR X library files are
in DIR
1285 --build=BUILD configure
for building on BUILD
[guessed
]
1286 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1290 if test -n "$ac_init_help"; then
1295 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1296 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1297 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1298 specify
install directory
for Emacs.app on Mac OS X
1299 --enable-asserts compile code with asserts enabled
1300 --enable-maintainer-mode enable make rules and dependencies not useful
1301 (and sometimes confusing
) to the casual installer
1302 --enable-locallisppath=PATH
1303 directories Emacs should search
for lisp files
1304 specific to this site
1305 --disable-largefile omit support
for large files
1308 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1309 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1310 --without-gcc don
't use GCC to compile Emacs if GCC is found
1311 --without-pop don't support POP
mail retrieval with movemail
1312 --with-kerberos support Kerberos-authenticated POP
1313 --with-kerberos5 support Kerberos version
5 authenticated POP
1314 --with-hesiod support Hesiod to get the POP server
host
1315 --without-sound don
't compile with sound support
1316 --with-x-toolkit=KIT use an X toolkit
1317 (KIT = yes/lucid/athena/motif/gtk/no)
1318 --with-xpm use -lXpm for displaying XPM images
1319 --with-jpeg use -ljpeg for displaying JPEG images
1320 --with-tiff use -ltiff for displaying TIFF images
1321 --with-gif use -lungif for displaying GIF images
1322 --with-png use -lpng for displaying PNG images
1323 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1324 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1325 --without-toolkit-scroll-bars
1326 don't use Motif or Xaw3d scroll bars
1327 --without-xim don
't use X11 XIM
1328 --without-carbon don't use Carbon GUI on Mac OS X
1329 --with-x use the X Window System
1331 Some influential environment variables
:
1332 CC C compiler
command
1333 CFLAGS C compiler flags
1334 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1335 nonstandard directory
<lib dir
>
1336 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1337 you have headers
in a nonstandard directory
<include dir
>
1339 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1341 Use these variables to override the choices made by
`configure' or to help
1342 it to find libraries and programs with nonstandard names/locations.
1348 if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
1350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351 test -d "$ac_dir" || continue
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1371 .) # We are building in place.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1395 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1405 generated by GNU Autoconf 2.60
1407 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1408 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1409 This configure script is free software; the Free Software Foundation
1410 gives unlimited permission to copy, distribute and modify it.
1414 cat >config.log <<_ACEOF
1415 This file contains any messages produced by compilers while
1416 running configure, to aid debugging if configure makes a mistake.
1418 It was created by $as_me, which was
1419 generated by GNU Autoconf 2.60. Invocation command line was
1431 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1432 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1433 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1434 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1435 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1437 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1438 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1440 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1441 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1442 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1443 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1444 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1445 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1446 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 test -z "$as_dir" && as_dir=.
1455 echo "PATH: $as_dir"
1471 # Keep a trace of the command line.
1472 # Strip out --no-create and --no-recursion so they do not pile up.
1473 # Strip out --silent because we don't want to record it for future runs.
1474 # Also quote any args containing shell meta-characters.
1475 # Make two passes to allow for proper duplicate-argument suppression.
1479 ac_must_keep_next=false
1485 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1487 | -silent | --silent | --silen | --sile | --sil)
1490 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1493 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1495 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1496 if test $ac_must_keep_next = true; then
1497 ac_must_keep_next=false # Got value, back to normal.
1500 *=* | --config-cache | -C | -disable-* | --disable-* \
1501 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1502 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1503 | -with-* | --with-* | -without-* | --without-* | --x)
1504 case "$ac_configure_args0 " in
1505 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1508 -* ) ac_must_keep_next=true ;;
1511 ac_configure_args="$ac_configure_args '$ac_arg'"
1516 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1517 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1519 # When interrupted or exit'd, cleanup temporary files, and complete
1520 # config.log. We remove comments because anyway the quotes in there
1521 # would cause problems or look ugly.
1522 # WARNING: Use '\'' to represent an apostrophe within the trap.
1523 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1524 trap 'exit_status=$?
1525 # Save into config.log some information that might help in debugging.
1530 ## ---------------- ##
1531 ## Cache variables. ##
1532 ## ---------------- ##
1535 # The following way of writing the cache mishandles newlines in values,
1537 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1538 eval ac_val=\$$ac_var
1542 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1543 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1546 _ | IFS | as_nl) ;; #(
1547 *) $as_unset $ac_var ;;
1552 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1553 *${as_nl}ac_space=\ *)
1555 "s/'\''/'\''\\\\'\'''\''/g;
1556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1567 ## ----------------- ##
1568 ## Output variables. ##
1569 ## ----------------- ##
1572 for ac_var in $ac_subst_vars
1574 eval ac_val=\$$ac_var
1576 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578 echo "$ac_var='\''$ac_val'\''"
1582 if test -n "$ac_subst_files"; then
1584 ## ------------------- ##
1585 ## File substitutions. ##
1586 ## ------------------- ##
1589 for ac_var in $ac_subst_files
1591 eval ac_val=\$$ac_var
1593 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1595 echo "$ac_var='\''$ac_val'\''"
1600 if test -s confdefs.h; then
1610 test "$ac_signal" != 0 &&
1611 echo "$as_me: caught signal $ac_signal"
1612 echo "$as_me: exit $exit_status"
1614 rm -f core *.core core.conftest.* &&
1615 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1618 for ac_signal in 1 2 13 15; do
1619 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1623 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1624 rm -f -r conftest* confdefs.h
1626 # Predefined preprocessor variables.
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_NAME "$PACKAGE_NAME"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_STRING "$PACKAGE_STRING"
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1653 # Let the site file select an alternate cache file if it wants to.
1654 # Prefer explicitly selected file to automatically selected ones.
1655 if test -n "$CONFIG_SITE"; then
1656 set x "$CONFIG_SITE"
1657 elif test "x$prefix" != xNONE; then
1658 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1660 set x "$ac_default_prefix/share/config.site" \
1661 "$ac_default_prefix/etc/config.site"
1666 if test -r "$ac_site_file"; then
1667 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1668 echo "$as_me: loading site script $ac_site_file" >&6;}
1669 sed 's/^/| /' "$ac_site_file" >&5
1674 if test -r "$cache_file"; then
1675 # Some versions of bash will fail to source /dev/null (special
1676 # files actually), so we avoid doing that.
1677 if test -f "$cache_file"; then
1678 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1679 echo "$as_me: loading cache $cache_file" >&6;}
1681 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1682 *) . "./$cache_file";;
1686 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1687 echo "$as_me: creating cache $cache_file" >&6;}
1691 # Check that the precious variables saved in the cache have kept the same
1693 ac_cache_corrupted=false
1694 for ac_var in $ac_precious_vars; do
1695 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1696 eval ac_new_set=\$ac_env_${ac_var}_set
1697 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1698 eval ac_new_val=\$ac_env_${ac_var}_value
1699 case $ac_old_set,$ac_new_set in
1701 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1702 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1703 ac_cache_corrupted=: ;;
1705 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1706 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1707 ac_cache_corrupted=: ;;
1710 if test "x$ac_old_val" != "x$ac_new_val"; then
1711 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1712 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1713 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1714 echo "$as_me: former value
: $ac_old_val" >&2;}
1715 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1716 echo "$as_me: current value
: $ac_new_val" >&2;}
1717 ac_cache_corrupted=:
1720 # Pass precious variables to config.status.
1721 if test "$ac_new_set" = set; then
1723 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1724 *) ac_arg=$ac_var=$ac_new_val ;;
1726 case " $ac_configure_args " in
1727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1728 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1732 if $ac_cache_corrupted; then
1733 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1734 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1735 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1736 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1737 { (exit 1); exit 1; }; }
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1763 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1766 test "$program_prefix" != NONE &&
1767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1768 # Use a double $ so make ignores it.
1769 test "$program_suffix" != NONE &&
1770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1771 # Double any \ or $. echo might interpret backslashes.
1772 # By default was `s
,x
,x
', remove it if useless.
1773 cat <<\_ACEOF >conftest.sed
1774 s/[\\$]/&&/g;s/;s,x,x,$//
1776 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1780 lispdir='${datadir}/emacs
/${version}/lisp
'
1781 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1782 '${datadir}/emacs
/site-lisp
'
1783 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1784 etcdir='${datadir}/emacs
/${version}/etc
'
1785 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1786 docdir='${datadir}/emacs
/${version}/etc
'
1787 gamedir='${localstatedir}/games
/emacs
'
1792 # Check whether --with-gcc was given.
1793 if test "${with_gcc+set}" = set; then
1798 # Check whether --with-pop was given.
1799 if test "${with_pop+set}" = set; then
1800 withval=$with_pop; if test "$withval" = yes; then
1801 cat >>confdefs.h <<\_ACEOF
1802 #define MAIL_USE_POP 1
1808 cat >>confdefs.h <<\_ACEOF
1809 #define MAIL_USE_POP 1
1816 # Check whether --with-kerberos was given.
1817 if test "${with_kerberos+set}" = set; then
1818 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1826 # Check whether --with-kerberos5 was given.
1827 if test "${with_kerberos5+set}" = set; then
1828 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1829 if test "${with_kerberos+set}" != set; then
1831 cat >>confdefs.h <<\_ACEOF
1838 cat >>confdefs.h <<\_ACEOF
1845 # Check whether --with-hesiod was given.
1846 if test "${with_hesiod+set}" = set; then
1847 withval=$with_hesiod;
1848 cat >>confdefs.h <<\_ACEOF
1856 # Check whether --with-sound was given.
1857 if test "${with_sound+set}" = set; then
1858 withval=$with_sound;
1863 # Check whether --with-x-toolkit was given.
1864 if test "${with_x_toolkit+set}" = set; then
1865 withval=$with_x_toolkit; case "${withval}" in
1866 y | ye | yes ) val=athena ;;
1868 l | lu | luc | luci | lucid ) val=lucid ;;
1869 a | at | ath | athe | athen | athena ) val=athena ;;
1870 m | mo | mot | moti | motif ) val=motif ;;
1871 g | gt | gtk ) val=gtk ;;
1873 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1874 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1875 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1876 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1877 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1878 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1879 { (exit 1); exit 1; }; }
1887 # Check whether --with-xpm was given.
1888 if test "${with_xpm+set}" = set; then
1893 # Check whether --with-jpeg was given.
1894 if test "${with_jpeg+set}" = set; then
1899 # Check whether --with-tiff was given.
1900 if test "${with_tiff+set}" = set; then
1905 # Check whether --with-gif was given.
1906 if test "${with_gif+set}" = set; then
1911 # Check whether --with-png was given.
1912 if test "${with_png+set}" = set; then
1917 # Check whether --with-gtk was given.
1918 if test "${with_gtk+set}" = set; then
1923 # Check whether --with-pkg-config-prog was given.
1924 if test "${with_pkg_config_prog+set}" = set; then
1925 withval=$with_pkg_config_prog;
1929 # Check whether --with-toolkit-scroll-bars was given.
1930 if test "${with_toolkit_scroll_bars+set}" = set; then
1931 withval=$with_toolkit_scroll_bars;
1935 # Check whether --with-xim was given.
1936 if test "${with_xim+set}" = set; then
1941 # Check whether --with-carbon was given.
1942 if test "${with_carbon+set}" = set; then
1943 withval=$with_carbon;
1946 # Check whether --enable-carbon-app was given.
1947 if test "${enable_carbon_app+set}" = set; then
1948 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1952 # Check whether --enable-asserts was given.
1953 if test "${enable_asserts+set}" = set; then
1954 enableval=$enable_asserts; USE_XASSERTS=$enableval
1960 # Check whether --enable-maintainer-mode was given.
1961 if test "${enable_maintainer_mode+set}" = set; then
1962 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1964 USE_MAINTAINER_MODE=no
1967 if test $USE_MAINTAINER_MODE = yes; then
1974 # Check whether --enable-locallisppath was given.
1975 if test "${enable_locallisppath+set}" = set; then
1976 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1978 elif test "${enableval}" != "yes"; then
1979 locallisppath=${enableval}
1984 #### Make srcdir absolute, if it isn't already. It
's important to
1985 #### avoid running the path through pwd unnecessarily, since pwd can
1986 #### give you automounter prefixes, which can go away. We do all this
1987 #### so Emacs can find its files when run uninstalled.
1988 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1993 ## We may be able to use the $PWD environment variable to make this
1994 ## absolute. But sometimes PWD is inaccurate.
1995 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1996 ## but that tested only for a well-formed and valid PWD,
1997 ## it did not object when PWD was well-formed and valid but just wrong.
1998 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2002 srcdir
="`(cd ${srcdir}; pwd)`"
2005 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2008 #### Check if the source directory already has a configured system in it.
2009 if test `pwd` != `(cd ${srcdir} && pwd)` \
2010 && test -f "${srcdir}/src/config.h" ; then
2011 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2012 as a build directory right now; it has been configured in its own
2013 right. To configure in another directory as well, you MUST
2014 use GNU make. If you do not have GNU make, then you must
2015 now do \`make distclean' in ${srcdir},
2016 and then run $0 again." >&5
2017 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2018 as a build directory right now; it has been configured in its own
2019 right. To configure in another directory as well, you MUST
2020 use GNU make. If you do not have GNU make, then you must
2021 now do \`make distclean' in ${srcdir},
2022 and then run $0 again." >&2;}
2025 #### Given the configuration name, set machfile and opsysfile to the
2026 #### names of the m/*.h and s/*.h files we should use.
2028 ### Canonicalize the configuration name.
2031 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2032 if test -f "$ac_dir/install-sh"; then
2034 ac_install_sh
="$ac_aux_dir/install-sh -c"
2036 elif test -f "$ac_dir/install.sh"; then
2038 ac_install_sh
="$ac_aux_dir/install.sh -c"
2040 elif test -f "$ac_dir/shtool"; then
2042 ac_install_sh
="$ac_aux_dir/shtool install -c"
2046 if test -z "$ac_aux_dir"; then
2047 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2048 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2049 { (exit 1); exit 1; }; }
2052 # These three variables are undocumented and unsupported,
2053 # and are intended to be withdrawn in a future Autoconf release.
2054 # They can cause serious problems if a builder's source tree is in a directory
2055 # whose full name contains unusual characters.
2056 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2057 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2058 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2063 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065 { (exit 1); exit 1; }; }
2067 { echo "$as_me:$LINENO: checking build system type" >&5
2068 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 ac_build_alias
=$build_alias
2073 test "x$ac_build_alias" = x
&&
2074 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x
&&
2076 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078 { (exit 1); exit 1; }; }
2079 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082 { (exit 1); exit 1; }; }
2085 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 echo "${ECHO_T}$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2089 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 echo "$as_me: error: invalid value of canonical build" >&2;}
2091 { (exit 1); exit 1; }; };;
2094 ac_save_IFS
=$IFS; IFS
='-'
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2104 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107 { echo "$as_me:$LINENO: checking host system type" >&5
2108 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 if test "x$host_alias" = x
; then
2113 ac_cv_host
=$ac_cv_build
2115 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118 { (exit 1); exit 1; }; }
2122 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 echo "${ECHO_T}$ac_cv_host" >&6; }
2126 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 echo "$as_me: error: invalid value of canonical host" >&2;}
2128 { (exit 1); exit 1; }; };;
2131 ac_save_IFS
=$IFS; IFS
='-'
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2141 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 configuration
=${host_alias-$host}
2149 ### If you add support for a new configuration, add code to this
2150 ### switch statement to recognize your configuration name and select
2151 ### the appropriate operating system and machine description files.
2153 ### You would hope that you could choose an m/*.h file pretty much
2154 ### based on the machine portion of the configuration name, and an s-
2155 ### file based on the operating system portion. However, it turns out
2156 ### that each m/*.h file is pretty manufacturer-specific - for
2157 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2158 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2159 ### machines. So we basically have to have a special case for each
2160 ### configuration name.
2162 ### As far as handling version numbers on operating systems is
2163 ### concerned, make sure things will fail in a fixable way. If
2164 ### /etc/MACHINES doesn't say anything about version numbers, be
2165 ### prepared to handle anything reasonably. If version numbers
2166 ### matter, be sure /etc/MACHINES says something about it.
2168 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2169 ### "System V Release 4"; he writes, "The old convention encouraged
2170 ### confusion between `system' and `release' levels'."
2172 machine
='' opsys
='' unported
=no
2173 case "${canonical}" in
2178 case "${canonical}" in
2179 alpha
*-*-freebsd*) machine
=alpha
;;
2180 ia64-
*-freebsd*) machine
=ia64
;;
2181 sparc64-
*-freebsd*) machine
=sparc
;;
2182 powerpc-
*-freebsd*) machine
=macppc
;;
2183 i
[3456]86-*-freebsd*) machine
=intel386
;;
2184 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2191 if test -f /usr
/lib
/crti.o
; then
2193 cat >>confdefs.h
<<\_ACEOF
2199 case "${canonical}" in
2200 alpha
*-*-netbsd*) machine
=alpha
;;
2201 i
[3456]86-*-netbsd*) machine
=intel386
;;
2203 # This is somewhat bogus.
2204 machine
=hp9000s300
;;
2205 powerpc-apple-netbsd
*) machine
=macppc
;;
2206 mips-
*-netbsd*) machine
=pmax
;;
2207 mipsel-
*-netbsd*) machine
=pmax
;;
2208 mipseb-
*-netbsd*) machine
=pmax
;;
2209 ns32k-
*-netbsd*) machine
=ns32000
;;
2210 powerpc-
*-netbsd*) machine
=macppc
;;
2211 sparc
*-*-netbsd*) machine
=sparc
;;
2212 vax-
*-netbsd*) machine
=vax
;;
2213 arm-
*-netbsd*) machine
=arm
;;
2220 case "${canonical}" in
2221 alpha
*-*-openbsd*) machine
=alpha
;;
2222 i386-
*-openbsd*) machine
=intel386
;;
2223 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2224 m68k-
*-openbsd*) machine
=hp9000s300
;;
2225 mipsel-
*-openbsd*) machine
=pmax
;;
2226 ns32k-
*-openbsd*) machine
=ns32000
;;
2227 sparc-
*-openbsd*) machine
=sparc
;;
2228 vax-
*-openbsd*) machine
=vax
;;
2235 case "${canonical}" in
2236 i
[3456]86-*-lynxos*) machine
=intel386
;;
2237 powerpc-
*-lynxos*) machine
=powerpc
;;
2242 arm-acorn-riscix1.1
* )
2243 machine
=acorn opsys
=riscix1-1
2245 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2246 ## This name is riscix12 instead of riscix1.2
2247 ## to avoid a file name conflict on MSDOS.
2248 machine
=acorn opsys
=riscix12
2254 case "${canonical}" in
2255 i
[345]86-*-bsdi*) machine
=intel386
;;
2256 sparc-
*-bsdi*) machine
=sparc
;;
2257 powerpc-
*-bsdi*) machine
=macppc
;;
2259 case "${canonical}" in
2260 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2261 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2262 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2263 *-*-bsdi3* ) opsys
=bsdos3
;;
2264 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2269 ## Strictly speaking, we need the version of the alliant operating
2270 ## system to choose the right machine file, but currently the
2271 ## configuration name doesn't tell us enough to choose the right
2272 ## one; we need to give alliants their own operating system name to
2273 ## do this right. When someone cares, they can help us.
2275 machine
=alliant4 opsys
=bsd4-2
2278 machine
=alliant-2800 opsys
=bsd4-3
2281 ## Alpha (DEC) machines.
2283 machine
=alpha opsys
=osf1
2284 # This is needed to find X11R6.1 libraries for certain tests.
2285 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2286 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2287 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2288 # due to non-traditional preprocessing with the current compiler
2289 # defaults. OSF 4 can also have that compiler version, and there
2290 # seems always to have been a usable /usr/bin/cpp.
2291 NON_GNU_CPP
=/usr
/bin
/cpp
2292 case "${canonical}" in
2293 alpha
*-dec-osf[5-9]*)
2298 alpha
*-*-linux-gnu* )
2299 machine
=alpha opsys
=gnu-linux
2303 machine
=arm opsys
=gnu-linux
2308 machine
=altos opsys
=usg5-2
2313 machine
=amdahl opsys
=usg5-2-2
2316 ## Apollo, Domain/OS
2318 machine
=apollo opsys
=bsd4-3
2321 ## AT&T 3b2, 3b5, 3b15, 3b20
2323 machine
=att3b opsys
=usg5-2-2
2326 ## AT&T 3b1 - The Mighty Unix PC!
2328 machine
=7300 opsys
=usg5-2-2
2333 machine
=ibmrs6000 opsys
=aix3-2
2338 machine
=dpx2 opsys
=usg5-3
2343 machine
=sps7 opsys
=usg5-2
2346 ## CCI 5/32, 6/32 -- see "Tahoe".
2349 ## I don't know what configuration name to use for this; config.sub
2350 ## doesn't seem to know anything about it. Hey, Celerity users, get
2351 ## in touch with us!
2352 celerity-celerity-bsd
* )
2353 machine
=celerity opsys
=bsd4-2
2357 ## What operating systems does this chip run that Emacs has been
2361 ## We'll use the catch-all code at the bottom to guess the
2362 ## operating system.
2366 mips-compaq-nonstopux
* )
2367 machine
=nonstopux opsys
=nonstopux
2371 *-convex-bsd* |
*-convex-convexos* )
2372 machine
=convex opsys
=bsd4-3
2373 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2374 NON_GNU_CPP
="cc -E -P"
2378 i
[3456]86-cubix-sysv* )
2379 machine
=intel386 opsys
=usg5-3
2383 cydra
*-cydrome-sysv* )
2384 machine
=cydra5 opsys
=usg5-3
2387 ## Data General AViiON Machines
2388 ## DG changed naming conventions with the release of 5.4.4.10, they
2389 ## dropped the initial 5.4 but left the intervening R. Because of the
2390 ## R this shouldn't conflict with older versions of the OS (which I
2391 ## think were named like dgux4.*). In addition, DG new AViiONs series
2392 ## uses either Motorola M88k or Intel Pentium CPUs.
2393 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2394 machine
=aviion opsys
=dgux4
2396 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2397 ## This name is dgux5-4-3 instead of dgux5-4r3
2398 ## to avoid a file name conflict on MSDOS.
2399 machine
=aviion opsys
=dgux5-4-3
2401 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2402 machine
=aviion opsys
=dgux5-4r2
2405 machine
=aviion opsys
=dgux
2408 ## Data General AViiON Intel (x86) Machines
2409 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2410 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2411 i
[345]86-dg-dguxR4* )
2412 machine
=aviion-intel opsys
=dgux4
2416 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2417 machine
=pmax opsys
=bsd4-2
2419 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2420 machine
=pmax opsys
=bsd4-3
2423 machine
=pmax opsys
=ultrix4-3
2426 machine
=pmax opsys
=osf1
2428 mips-dec-mach_bsd4.3
* )
2429 machine
=pmax opsys
=mach-bsd4-3
2432 ## Motorola Delta machines
2433 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2434 machine
=delta opsys
=usg5-3
2435 if test -z "`type gnucc | grep 'not found'`"
2437 if test -s /etc
/167config
2438 then CC
="gnucc -m68040"
2439 else CC
="gnucc -m68881"
2442 if test -z "`type gcc | grep 'not found'`"
2448 m88k-motorola-sysv4
* )
2449 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2450 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2451 # I hope there are not other 4.0 versions for this machine
2452 # which really need usg5-4 instead.
2453 machine
=delta88k opsys
=usg5-4-2
2455 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2456 machine
=delta88k opsys
=usg5-3
2461 machine
=dual opsys
=usg5-2
2463 m68
*-dual-uniplus* )
2464 machine
=dual opsys
=unipl5-2
2469 machine
=elxsi opsys
=usg5-2
2474 machine
=ns16000 opsys
=umax
2477 ## The GEC 63 - apparently, this port isn't really finished yet.
2478 # I'm sure we finished off the last of the machines, though. -- fx
2480 ## Gould Power Node and NP1
2482 machine
=gould opsys
=bsd4-2
2485 machine
=gould opsys
=bsd4-3
2488 machine
=gould-np1 opsys
=bsd4-3
2491 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2492 ## as far as Emacs is concerned).
2494 # Build needs to be different on 7.0 and later releases
2495 case "`uname -r`" in
2496 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2497 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2499 NON_GNU_CPP
="/lib/cpp"
2501 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2503 machine
=nh3000 opsys
=cxux
2505 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2506 powerpc-harris-powerunix
)
2507 machine
=nh6000 opsys
=powerunix
2508 NON_GNU_CPP
="cc -Xo -E -P"
2510 ## SR2001/SR2201 running HI-UX/MPP
2511 hppa1.1
-hitachi-hiuxmpp* )
2512 machine
=sr2k opsys
=hiuxmpp
2514 hppa1.1
-hitachi-hiuxwe2* )
2515 machine
=sr2k opsys
=hiuxwe2
2518 xps
*-honeywell-sysv* )
2519 machine
=xps100 opsys
=usg5-2
2522 ## HP 9000 series 200 or 300
2524 machine
=hp9000s300 opsys
=bsd4-3
2526 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2528 case "`uname -r`" in
2529 ## Someone's system reports A.B8.05 for this.
2530 ## I wonder what other possibilities there are.
2531 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2532 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2533 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2534 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2535 *) machine
=hp9000s300 opsys
=hpux
;;
2539 ## HP 9000 series 700 and 800, running HP/UX
2541 machine
=hp800 opsys
=hpux
2544 machine
=hp800 opsys
=hpux8
2546 hppa
*-hp-hpux9shr* )
2547 machine
=hp800 opsys
=hpux9shr
2550 machine
=hp800 opsys
=hpux9
2552 hppa
*-hp-hpux10.2
* )
2553 machine
=hp800 opsys
=hpux10-20
2556 machine
=hp800 opsys
=hpux10
2558 hppa
*-hp-hpux1[1-9]* )
2559 machine
=hp800 opsys
=hpux11
2560 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2563 hppa
*-*-linux-gnu* )
2564 machine
=hp800 opsys
=gnu-linux
2567 ## HP 9000 series 700 and 800, running HP/UX
2569 ## Cross-compilation? Nah!
2570 case "`uname -r`" in
2571 ## Someone's system reports A.B8.05 for this.
2572 ## I wonder what other possibilities there are.
2573 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2574 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2575 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2576 *) machine
=hp800 opsys
=hpux10
;;
2580 machine
=hp800 opsys
=nextstep
2585 machine
=orion opsys
=bsd4-2
2587 clipper-orion-bsd
* )
2588 machine
=orion105 opsys
=bsd4-2
2592 i
[3456]86-ibm-aix1.1
* )
2593 machine
=ibmps2-aix opsys
=usg5-2-2
2595 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2596 machine
=ibmps2-aix opsys
=usg5-3
2599 machine
=ibm370aix opsys
=usg5-3
2602 machine
=ibms390 opsys
=gnu-linux
2604 s390x-
*-linux-gnu* )
2605 machine
=ibms390x opsys
=gnu-linux
2607 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2608 machine
=ibmrs6000 opsys
=aix3-1
2610 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2611 machine
=ibmrs6000 opsys
=aix3-2-5
2613 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2614 machine
=ibmrs6000 opsys
=aix4-1
2616 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2617 machine
=ibmrs6000 opsys
=aix4-2
2619 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2620 machine
=ibmrs6000 opsys
=aix4-2
2622 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2623 machine
=ibmrs6000 opsys
=aix4
2625 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2626 machine
=ibmrs6000 opsys
=aix4-1
2628 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2629 machine
=ibmrs6000 opsys
=aix3-2
2632 machine
=ibmrt opsys
=bsd4-3
2635 machine
=ibmrt opsys
=bsd4-2
2638 machine
=ibmrt opsys
=bsd4-3
2641 machine
=ibmrt opsys
=bsd4-2
2644 machine
=ibmrt opsys
=bsd4-3
2647 machine
=ibmrt opsys
=bsd4-3
2650 machine
=ibmrt-aix opsys
=usg5-2-2
2653 ## Integrated Solutions `Optimum V'
2655 machine
=isi-ov opsys
=bsd4-2
2658 machine
=isi-ov opsys
=bsd4-3
2661 ## Intel 386 machines where we do care about the manufacturer
2662 i
[3456]86-intsys-sysv* )
2663 machine
=is386 opsys
=usg5-2-2
2667 i
[3456]86-prime-sysv* )
2668 machine
=i386 opsys
=usg5-3
2671 ## Sequent Symmetry running Dynix
2672 i
[3456]86-sequent-bsd* )
2673 machine
=symmetry opsys
=bsd4-3
2676 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2677 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2678 machine
=sequent-ptx opsys
=ptx4
2679 NON_GNU_CPP
=/lib
/cpp
2682 ## Sequent Symmetry running DYNIX/ptx
2683 ## Use the old cpp rather than the newer ANSI one.
2684 i
[3456]86-sequent-ptx* )
2685 machine
=sequent-ptx opsys
=ptx
2686 NON_GNU_CPP
="/lib/cpp"
2689 ## ncr machine running svr4.3.
2690 i
[3456]86-ncr-sysv4.3
)
2691 machine
=ncr386 opsys
=usg5-4-3
2694 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2695 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2696 i
[3456]86-ncr-sysv* )
2697 machine
=ncr386 opsys
=usg5-4-2
2700 ## Intel Paragon OSF/1
2702 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2707 machine
=i860 opsys
=usg5-4
2708 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2709 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2712 ## Macintosh PowerPC
2713 powerpc
*-*-linux-gnu* )
2714 machine
=macppc opsys
=gnu-linux
2717 ## Masscomp machines
2718 m68
*-masscomp-rtu* )
2719 machine
=masscomp opsys
=rtu
2722 ## Megatest machines
2723 m68
*-megatest-bsd* )
2724 machine
=mega68 opsys
=bsd4-2
2727 ## Workstations sold by MIPS
2728 ## This is not necessarily all workstations using the MIPS processor -
2729 ## Irises are produced by SGI, and DECstations by DEC.
2731 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2732 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2733 ## it gives for choosing between the alternatives seems to be "Use
2734 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2735 ## the BSD world." I'll assume that these are instructions for
2736 ## handling two odd situations, and that every other situation
2737 ## should use mips.h and usg5-2-2, they being listed first.
2740 ## Fall through to the general code at the bottom to decide on the OS.
2742 mips-mips-riscos4
* )
2743 machine
=mips4 opsys
=bsd4-3
2744 NON_GNU_CC
="cc -systype bsd43"
2745 NON_GNU_CPP
="cc -systype bsd43 -E"
2747 mips-mips-riscos5
* )
2748 machine
=mips4 opsys
=riscos5
2749 NON_GNU_CC
="cc -systype bsd43"
2750 NON_GNU_CPP
="cc -systype bsd43 -E"
2753 machine
=mips opsys
=bsd4-3
2756 machine
=mips opsys
=usg5-2-2
2760 m68
*-next-* | m68k-
*-nextstep* )
2761 machine
=m68k opsys
=nextstep
2764 ## The complete machine from National Semiconductor
2766 machine
=ns32000 opsys
=usg5-2
2770 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2771 machine
=tower32 opsys
=usg5-2-2
2773 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2774 machine
=tower32v3 opsys
=usg5-3
2779 machine
=ews4800 opsys
=ux4800
2782 ## Nixdorf Targon 31
2783 m68
*-nixdorf-sysv* )
2784 machine
=targon31 opsys
=usg5-2-2
2789 machine
=nu opsys
=usg5-2
2794 machine
=plexus opsys
=usg5-2
2798 ## I don't really have any idea what sort of processor the Pyramid has,
2799 ## so I'm assuming it is its own architecture.
2800 pyramid-pyramid-bsd
* )
2801 machine
=pyramid opsys
=bsd4-2
2805 ns32k-sequent-bsd4.2
* )
2806 machine
=sequent opsys
=bsd4-2
2808 ns32k-sequent-bsd4.3
* )
2809 machine
=sequent opsys
=bsd4-3
2813 mips-siemens-sysv
* | mips-sni-sysv
*)
2814 machine
=mips-siemens opsys
=usg5-4
2815 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2816 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2819 ## Silicon Graphics machines
2820 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2822 machine
=irist opsys
=iris3-5
2824 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2825 machine
=irist opsys
=iris3-6
2829 machine
=iris4d opsys
=irix3-3
2832 machine
=iris4d opsys
=irix4-0
2835 machine
=iris4d opsys
=irix6-5
2836 # Without defining _LANGUAGE_C, things get masked out in the headers
2837 # so that, for instance, grepping for `free' in stdlib.h fails and
2838 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2839 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2840 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2843 machine
=iris4d opsys
=irix6-0
2844 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2845 # but presumably it does no harm.
2846 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2847 # -32 probably isn't necessary in later v.6s -- anyone know which?
2848 NON_GCC_TEST_OPTIONS
=-32
2850 mips-sgi-irix5.
[01]* )
2851 machine
=iris4d opsys
=irix5-0
2853 mips-sgi-irix5
* | mips-sgi-irix
* )
2854 machine
=iris4d opsys
=irix5-2
2859 machine
=news opsys
=bsd4-2
2862 machine
=news opsys
=bsd4-3
2864 m68
*-sony-newsos3* | m68
*-sony-news3*)
2865 machine
=news opsys
=bsd4-3
2867 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2868 machine
=news-risc opsys
=bsd4-3
2870 mips-sony-newsos6
* )
2871 machine
=news-r6 opsys
=newsos6
2874 machine
=news-risc opsys
=newsos5
2879 machine
=stride opsys
=usg5-2
2883 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2884 machine
=sparc opsys
=gnu-linux
2887 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2888 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2889 | rs6000-
*-solaris2*)
2890 case "${canonical}" in
2891 m68
*-sunos1* ) machine
=sun1
;;
2892 m68
*-sunos2* ) machine
=sun2
;;
2893 m68
* ) machine
=sun3
;;
2894 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2895 i
[3456]86-*-* ) machine
=intel386
;;
2896 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2897 powerpcle
* ) machine
=powerpcle
;;
2898 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2899 sparc
* ) machine
=sparc
;;
2902 case "${canonical}" in
2903 ## The Sun386 didn't get past 4.0.
2904 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2905 *-sunos4.0
* ) opsys
=sunos4-0
;;
2906 *-sunos4.1.
[3-9]*noshare
)
2907 ## This name is sunos413 instead of sunos4-1-3
2908 ## to avoid a file name conflict on MSDOS.
2910 NON_GNU_CPP
=/usr
/lib
/cpp
2911 NON_GCC_TEST_OPTIONS
=-Bstatic
2912 GCC_TEST_OPTIONS
=-static
2914 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2916 NON_GNU_CPP
=/usr
/lib
/cpp
2918 *-sunos4* |
*-sunos )
2920 NON_GCC_TEST_OPTIONS
=-Bstatic
2921 GCC_TEST_OPTIONS
=-static
2923 *-sunos5.3
* |
*-solaris2.3
* )
2925 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2927 *-sunos5.4
* |
*-solaris2.4
* )
2929 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2932 *-sunos5.5
* |
*-solaris2.5
* )
2934 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2937 *-sunos5.6
* |
*-solaris2.6
* )
2939 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2942 *-sunos5* |
*-solaris* )
2944 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2948 ## Watch out for a compiler that we know will not work.
2949 case "${canonical}" in
2950 *-solaris* |
*-sunos5* )
2951 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2952 ## /usr/ucb/cc doesn't work;
2953 ## we should find some other compiler that does work.
2961 machine
=sparc opsys
=nextstep
2965 m68
*-tadpole-sysv* )
2966 machine
=tad68k opsys
=usg5-3
2970 tahoe-tahoe-bsd4.2
* )
2971 machine
=tahoe opsys
=bsd4-2
2973 tahoe-tahoe-bsd4.3
* )
2974 machine
=tahoe opsys
=bsd4-3
2977 ## Tandem Integrity S2
2979 machine
=tandem-s2 opsys
=usg5-3
2983 m88k-tektronix-sysv3
* )
2984 machine
=tekxd88 opsys
=usg5-3
2987 ## Tektronix 16000 box (6130?)
2988 ns16k-tektronix-bsd
* )
2989 machine
=ns16000 opsys
=bsd4-2
2992 ## src/m/tek4300.h hints that this is a m68k machine.
2993 m68
*-tektronix-bsd* )
2994 machine
=tek4300 opsys
=bsd4-3
2998 ## We seem to have lost the machine-description file titan.h!
3000 machine
=titan opsys
=usg5-3
3003 ## Ustation E30 (SS5E)
3004 m68
*-unisys-uniplus* )
3005 machine
=ustation opsystem
=unipl5-2
3011 case "${canonical}" in
3012 *-bsd4.1
* ) opsys
=bsd4-1
;;
3013 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3014 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3015 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3016 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3017 *-vms* ) opsys
=vms
;;
3023 ns16k-whitechapel-
* )
3025 ## We don't know what sort of OS runs on these; we'll let the
3026 ## operating system guessing code below try.
3031 machine
=wicat opsys
=usg5-2
3036 machine
=ia64 opsys
=gnu-linux
3039 ## Intel 386 machines where we don't care about the manufacturer
3042 case "${canonical}" in
3043 *-cygwin ) opsys
=cygwin
;;
3044 *-darwin* ) opsys
=darwin
3045 CPP
="${CC-cc} -E -no-cpp-precomp"
3047 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3048 *-isc2.2
* ) opsys
=isc2-2
;;
3049 *-isc4.0
* ) opsys
=isc4-0
;;
3050 *-isc4.
* ) opsys
=isc4-1
3051 GCC_TEST_OPTIONS
=-posix
3052 NON_GCC_TEST_OPTIONS
=-Xp
3054 *-isc* ) opsys
=isc3-0
;;
3055 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3056 *-esix* ) opsys
=esix
;;
3057 *-xenix* ) opsys
=xenix
;;
3058 *-linux-gnu* ) opsys
=gnu-linux
;;
3059 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3060 *-sco3.2v5
* ) opsys
=sco5
3061 NON_GNU_CPP
=/lib
/cpp
3062 # Prevent -belf from being passed to $CPP.
3063 # /lib/cpp does not accept it.
3064 OVERRIDE_CPPFLAGS
=" "
3066 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3067 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3068 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3069 *-386bsd* ) opsys
=386bsd
;;
3070 *-nextstep* ) opsys
=nextstep
;;
3071 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3075 ## m68k Linux-based GNU system
3077 machine
=m68k opsys
=gnu-linux
3080 ## Mips Linux-based GNU system
3081 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3082 machine
=mips opsys
=gnu-linux
3086 sparc-fujitsu-sysv4
* )
3087 machine
=sparc opsys
=uxpds
3088 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3093 f301-fujitsu-uxpv4.1
)
3094 machine
=f301 opsys
=uxpv
3097 ## Darwin / Mac OS X
3098 powerpc-apple-darwin
* )
3099 machine
=powermac opsys
=darwin
3100 # Define CPP as follows to make autoconf work correctly.
3101 CPP
="${CC-cc} -E -no-cpp-precomp"
3102 # Use fink packages if available.
3103 if test -d /sw
/include
&& test -d /sw
/lib
; then
3104 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3105 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3106 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3110 ## AMD x86-64 Linux-based GNU system
3111 x86_64-
*-linux-gnu* )
3112 machine
=amdx86-64 opsys
=gnu-linux
3120 ### If the code above didn't choose an operating system, just choose
3121 ### an operating system based on the configuration name. You really
3122 ### only want to use this when you have no idea what the right
3123 ### operating system is; if you know what operating systems a machine
3124 ### runs, it's cleaner to make it explicit in the case statement
3126 if test x
"${opsys}" = x
; then
3127 case "${canonical}" in
3128 *-gnu* ) opsys
=gnu
;;
3129 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3130 *-bsd4.2
) opsys
=bsd4-2
;;
3131 *-bsd4.3
) opsys
=bsd4-3
;;
3132 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3133 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3134 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3135 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3136 *-sysv4.2uw
* ) opsys
=unixware
;;
3137 *-sysv5uw* ) opsys
=unixware
;;
3138 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3139 *-sysv4.1
* |
*-sysvr4.1
* )
3140 NON_GNU_CPP
=/usr
/lib
/cpp
3142 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3143 if [ x
$NON_GNU_CPP = x
]; then
3144 if [ -f /usr
/ccs
/lib
/cpp
]; then
3145 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3147 NON_GNU_CPP
=/lib
/cpp
3151 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3160 if test $unported = yes; then
3161 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3162 Check \`etc/MACHINES' for recognized configuration names." >&5
3163 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3164 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3165 { (exit 1); exit 1; }; }
3168 machfile
="m/${machine}.h"
3169 opsysfile
="s/${opsys}.h"
3172 #### Choose a compiler.
3173 test -n "$CC" && cc_specified
=yes
3175 # Save the value of CFLAGS that the user specified.
3176 SPECIFIED_CFLAGS
="$CFLAGS"
3179 "yes" ) CC
="gcc" GCC
=yes ;;
3180 "no" ) : ${CC=cc} ;;
3184 ac_cpp
='$CPP $CPPFLAGS'
3185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3190 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_CC+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC
="$CC" # Let the user override the test.
3199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir
=.
3204 for ac_exec_ext
in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 if test -n "$CC"; then
3218 { echo "$as_me:$LINENO: result: $CC" >&5
3219 echo "${ECHO_T}$CC" >&6; }
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3227 if test -z "$ac_cv_prog_CC"; then
3229 # Extract the first word of "gcc", so it can be a program name with args.
3230 set dummy gcc
; ac_word
=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 if test -n "$ac_ct_CC"; then
3237 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3243 test -z "$as_dir" && as_dir
=.
3244 for ac_exec_ext
in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_ac_ct_CC
="gcc"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3259 echo "${ECHO_T}$ac_ct_CC" >&6; }
3261 { echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6; }
3265 if test "x$ac_ct_CC" = x
; then
3268 case $cross_compiling:$ac_tool_warned in
3270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3271 whose name does not start with the host triplet. If you think this
3272 configuration is useful to you, please write to autoconf@gnu.org." >&5
3273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3274 whose name does not start with the host triplet. If you think this
3275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3276 ac_tool_warned
=yes ;;
3284 if test -z "$CC"; then
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3287 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC
="$CC" # Let the user override the test.
3296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3300 test -z "$as_dir" && as_dir
=.
3301 for ac_exec_ext
in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 if test -n "$CC"; then
3315 { echo "$as_me:$LINENO: result: $CC" >&5
3316 echo "${ECHO_T}$CC" >&6; }
3318 { echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6; }
3325 if test -z "$CC"; then
3326 # Extract the first word of "cc", so it can be a program name with args.
3327 set dummy cc
; ac_word
=$2
3328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3330 if test "${ac_cv_prog_CC+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC
="$CC" # Let the user override the test.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3345 ac_prog_rejected
=yes
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test $ac_prog_rejected = yes; then
3357 # We found a bogon in the path, so make sure we never use it.
3358 set dummy
$ac_cv_prog_CC
3360 if test $# != 0; then
3361 # We chose a different compiler from the bogus one.
3362 # However, it has the same basename, so the bogon will be chosen
3363 # first if we set CC to just the basename; use the full file name.
3365 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3371 if test -n "$CC"; then
3372 { echo "$as_me:$LINENO: result: $CC" >&5
3373 echo "${ECHO_T}$CC" >&6; }
3375 { echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6; }
3381 if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 for ac_prog
in cl.exe
3385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC
="$CC" # Let the user override the test.
3395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir
=.
3400 for ac_exec_ext
in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 if test -n "$CC"; then
3414 { echo "$as_me:$LINENO: result: $CC" >&5
3415 echo "${ECHO_T}$CC" >&6; }
3417 { echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6; }
3422 test -n "$CC" && break
3425 if test -z "$CC"; then
3427 for ac_prog
in cl.exe
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy
$ac_prog; ac_word
=$2
3431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 if test -n "$ac_ct_CC"; then
3437 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir
=.
3444 for ac_exec_ext
in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_ac_ct_CC
="$ac_prog"
3447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3459 echo "${ECHO_T}$ac_ct_CC" >&6; }
3461 { echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6; }
3466 test -n "$ac_ct_CC" && break
3469 if test "x$ac_ct_CC" = x
; then
3472 case $cross_compiling:$ac_tool_warned in
3474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3475 whose name does not start with the host triplet. If you think this
3476 configuration is useful to you, please write to autoconf@gnu.org." >&5
3477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3478 whose name does not start with the host triplet. If you think this
3479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3480 ac_tool_warned
=yes ;;
3489 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: no acceptable C compiler found in \$PATH
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3495 # Provide some information about the compiler.
3496 echo "$as_me:$LINENO: checking for C compiler version" >&5
3497 ac_compiler
=`set X $ac_compile; echo $2`
3498 { (ac_try
="$ac_compiler --version >&5"
3500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compiler --version >&5") 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }
3508 { (ac_try="$ac_compiler -v >&5"
3510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3511 *) ac_try_echo
=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_compiler -v >&5") 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }
3518 { (ac_try
="$ac_compiler -V >&5"
3520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compiler -V >&5") 2>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3544 ac_clean_files_save=$ac_clean_files
3545 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3546 # Try to create an executable without -o first, disregard a.out.
3547 # It will help us diagnose broken compilers, and finding out an intuition
3549 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3550 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3551 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3553 # List of possible output files, starting from the most likely.
3554 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3555 # only as a last resort. b.out is created by i960 compilers.
3556 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3558 # The IRIX 6 linker writes into existing files which may not be
3559 # executable, retaining their permissions. Remove them first so a
3560 # subsequent execution test works.
3562 for ac_file in $ac_files
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3571 if { (ac_try="$ac_link_default"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_link_default") 2>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; then
3581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3584 # so that the user can short-circuit this test for compilers unknown to
3586 for ac_file
in $ac_files
3588 test -f "$ac_file" ||
continue
3590 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3593 # We found the default executable, but exeext='' is most
3597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3599 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 # We set ac_cv_exeext here because the later test for it is not
3602 # safe: cross compilers may not add the suffix if given an `-o'
3603 # argument, so we may need to know it at that point already.
3604 # Even if this section looks crufty: it has the advantage of
3611 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.
$ac_ext >&5
3617 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3618 See \`config.log' for more details." >&5
3619 echo "$as_me: error: C compiler cannot create executables
3620 See \`config.log' for more details." >&2;}
3621 { (exit 77); exit 77; }; }
3624 ac_exeext
=$ac_cv_exeext
3625 { echo "$as_me:$LINENO: result: $ac_file" >&5
3626 echo "${ECHO_T}$ac_file" >&6; }
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3631 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3632 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3633 # If not cross compiling, check that we can run a simple program.
3634 if test "$cross_compiling" != yes; then
3635 if { ac_try
='./$ac_file'
3636 { (case "(($ac_try" in
3637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_try") 2>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3647 if test "$cross_compiling" = maybe; then
3650 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details.
" >&5
3653 echo "$as_me: error
: cannot run C compiled programs.
3654 If you meant to cross compile
, use \
`--host'.
3655 See \`config.log
' for more details." >&2;}
3656 { (exit 1); exit 1; }; }
3660 { echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6; }
3663 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3664 ac_clean_files=$ac_clean_files_save
3665 # Check that the compiler produces executables we can run. If not, either
3666 # the compiler is broken, or we cross compile.
3667 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3668 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3669 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3670 echo "${ECHO_T}$cross_compiling" >&6; }
3672 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3673 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3674 if { (ac_try="$ac_link"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_link") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; then
3684 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3685 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3686 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3688 for ac_file
in conftest.exe conftest conftest.
*; do
3689 test -f "$ac_file" ||
continue
3691 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3692 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3699 See \`config.log' for more details." >&5
3700 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3701 See \`config.log' for more details." >&2;}
3702 { (exit 1); exit 1; }; }
3705 rm -f conftest
$ac_cv_exeext
3706 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3707 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3709 rm -f conftest.
$ac_ext
3710 EXEEXT
=$ac_cv_exeext
3712 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3713 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3714 if test "${ac_cv_objext+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 cat >conftest.
$ac_ext <<_ACEOF
3720 cat confdefs.h
>>conftest.
$ac_ext
3721 cat >>conftest.
$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3732 rm -f conftest.o conftest.obj
3733 if { (ac_try
="$ac_compile"
3735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_compile") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 for ac_file in conftest.o conftest.obj conftest.*; do
3744 test -f "$ac_file" || continue;
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3755 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3756 See \`config.log
' for more details." >&5
3757 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3758 See \`config.log' for more details.
" >&2;}
3759 { (exit 1); exit 1; }; }
3762 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3764 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3765 echo "${ECHO_T}$ac_cv_objext" >&6; }
3766 OBJEXT=$ac_cv_objext
3768 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3769 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3770 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3771 echo $ECHO_N "(cached
) $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3806 { (case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_try") 2>&5
3813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_try") 2>&5
3823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3824 (exit $ac_status); }; }; then
3827 echo "$as_me: failed program was
:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3837 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3838 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3839 GCC=`test $ac_compiler_gnu = yes && echo yes`
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3843 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3844 if test "${ac_cv_prog_cc_g+set}" = set; then
3845 echo $ECHO_N "(cached
) $ECHO_C" >&6
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881 { (case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_try") 2>&5
3888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3899 (exit $ac_status); }; }; then
3902 echo "$as_me: failed program was
:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3906 cat >conftest.$ac_ext <<_ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_compile") 2>conftest.er1
3930 grep -v '^ *+' conftest.er1 >conftest.err
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3936 { (case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_try") 2>&5
3943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_try") 2>&5
3953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3954 (exit $ac_status); }; }; then
3957 echo "$as_me: failed program was
:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 ac_c_werror_flag=$ac_save_c_werror_flag
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3992 { (case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_try") 2>&5
3999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_try") 2>&5
4009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4010 (exit $ac_status); }; }; then
4013 echo "$as_me: failed program was
:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4028 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4029 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4039 if test "$GCC" = yes; then
4045 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4046 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4047 if test "${ac_cv_prog_cc_c89+set}" = set; then
4048 echo $ECHO_N "(cached
) $ECHO_C" >&6
4050 ac_cv_prog_cc_c89=no
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4060 #include <sys/types.h>
4061 #include <sys/stat.h>
4062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4063 struct buf { int x; };
4064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065 static char *e (p, i)
4071 static char *f (char * (*g) (char **, int), char **p, ...)
4076 s = g (p, va_arg (v,int));
4081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4082 function prototypes and stuff, but not '\xHH' hex character constants.
4083 These don't provoke an error unfortunately, instead are silently treated
4084 as 'x'. The following induces an error, until -std is added to get
4085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4086 array size at least. It's necessary to write '\x00'==0 to get something
4087 that's true only with -std. */
4088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091 inside strings and character constants. */
4093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4095 int test (int i, double x);
4096 struct s1 {int (*f) (int a);};
4097 struct s2 {int (*f) (double a);};
4098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4112 CC="$ac_save_CC $ac_arg"
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_prog_cc_c89=$ac_arg
4149 echo "$as_me: failed program was
:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4155 rm -f core conftest.err conftest.$ac_objext
4156 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4158 rm -f conftest.$ac_ext
4163 case "x
$ac_cv_prog_cc_c89" in
4165 { echo "$as_me:$LINENO: result
: none needed
" >&5
4166 echo "${ECHO_T}none needed
" >&6; } ;;
4168 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4169 echo "${ECHO_T}unsupported
" >&6; } ;;
4171 CC="$CC $ac_cv_prog_cc_c89"
4172 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4173 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4189 #### Some systems specify a CPP to use unless we are using GCC.
4190 #### Now that we know whether we are using GCC, we can decide whether
4191 #### to use that one.
4192 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4197 #### Some systems specify a CC to use unless we are using GCC.
4198 #### Now that we know whether we are using GCC, we can decide whether
4199 #### to use that one.
4200 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4201 test x$cc_specified != xyes
4206 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4208 CC="$CC $GCC_TEST_OPTIONS"
4211 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4213 CC="$CC $NON_GCC_TEST_OPTIONS"
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4223 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4224 # On Suns, sometimes $CPP names a directory.
4225 if test -n "$CPP" && test -d "$CPP"; then
4228 if test -z "$CPP"; then
4229 if test "${ac_cv_prog_CPP+set}" = set; then
4230 echo $ECHO_N "(cached
) $ECHO_C" >&6
4232 # Double quotes because CPP needs to be expanded
4233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4236 for ac_c_preproc_warn_flag in '' yes
4238 # Use a header file that comes with gcc, so configuring glibc
4239 # with a fresh cross-compiler works.
4240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4241 # <limits.h> exists even on freestanding compilers.
4242 # On the NeXT, cc -E runs the code through the compiler's parser,
4243 # not just through cpp. "Syntax error
" is here to catch this case.
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 # include <limits.h>
4253 # include <assert.h>
4257 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4269 (exit $ac_status); } >/dev/null; then
4270 if test -s conftest.err; then
4271 ac_cpp_err=$ac_c_preproc_warn_flag
4272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4279 if test -z "$ac_cpp_err"; then
4282 echo "$as_me: failed program was
:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4285 # Broken: fails on valid input.
4289 rm -f conftest.err conftest.$ac_ext
4291 # OK, works on sane cases. Now check whether nonexistent headers
4292 # can be detected and how.
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 #include <ac_nonexistent.h>
4301 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4313 (exit $ac_status); } >/dev/null; then
4314 if test -s conftest.err; then
4315 ac_cpp_err=$ac_c_preproc_warn_flag
4316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4323 if test -z "$ac_cpp_err"; then
4324 # Broken: success on invalid input.
4327 echo "$as_me: failed program was
:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 # Passes both tests.
4335 rm -f conftest.err conftest.$ac_ext
4338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4339 rm -f conftest.err conftest.$ac_ext
4340 if $ac_preproc_ok; then
4352 { echo "$as_me:$LINENO: result
: $CPP" >&5
4353 echo "${ECHO_T}$CPP" >&6; }
4355 for ac_c_preproc_warn_flag in '' yes
4357 # Use a header file that comes with gcc, so configuring glibc
4358 # with a fresh cross-compiler works.
4359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4360 # <limits.h> exists even on freestanding compilers.
4361 # On the NeXT, cc -E runs the code through the compiler's parser,
4362 # not just through cpp. "Syntax error
" is here to catch this case.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 # include <limits.h>
4372 # include <assert.h>
4376 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4388 (exit $ac_status); } >/dev/null; then
4389 if test -s conftest.err; then
4390 ac_cpp_err=$ac_c_preproc_warn_flag
4391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4398 if test -z "$ac_cpp_err"; then
4401 echo "$as_me: failed program was
:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 # Broken: fails on valid input.
4408 rm -f conftest.err conftest.$ac_ext
4410 # OK, works on sane cases. Now check whether nonexistent headers
4411 # can be detected and how.
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <ac_nonexistent.h>
4420 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4432 (exit $ac_status); } >/dev/null; then
4433 if test -s conftest.err; then
4434 ac_cpp_err=$ac_c_preproc_warn_flag
4435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442 if test -z "$ac_cpp_err"; then
4443 # Broken: success on invalid input.
4446 echo "$as_me: failed program was
:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 # Passes both tests.
4454 rm -f conftest.err conftest.$ac_ext
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.$ac_ext
4459 if $ac_preproc_ok; then
4462 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4463 See \
`config.log' for more details." >&5
4464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4465 See \`config.log
' for more details." >&2;}
4466 { (exit 1); exit 1; }; }
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4472 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4477 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4478 if test "${ac_cv_path_GREP+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 # Extract the first word of "grep ggrep" to use in msg output
4482 if test -z "$GREP"; then
4483 set dummy grep ggrep; ac_prog_name=$2
4484 if test "${ac_cv_path_GREP+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 ac_path_GREP_found=false
4488 # Loop through the user's path and
test for each of PROGNAME-LIST
4489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4490 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4493 test -z "$as_dir" && as_dir
=.
4494 for ac_prog
in grep ggrep
; do
4495 for ac_exec_ext
in '' $ac_executable_extensions; do
4496 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4497 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
4498 # Check for GNU ac_path_GREP and select it if it is found.
4499 # Check for GNU $ac_path_GREP
4500 case `"$ac_path_GREP" --version 2>&1` in
4502 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4505 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4508 cat "conftest.in" "conftest.in" >"conftest.tmp"
4509 mv "conftest.tmp" "conftest.in"
4510 cp "conftest.in" "conftest.nl"
4511 echo 'GREP' >> "conftest.nl"
4512 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4513 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4514 ac_count
=`expr $ac_count + 1`
4515 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4516 # Best one so far, save it but keep looking for a better one
4517 ac_cv_path_GREP
="$ac_path_GREP"
4518 ac_path_GREP_max
=$ac_count
4520 # 10*(2^10) chars as input seems more than enough
4521 test $ac_count -gt 10 && break
4523 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4527 $ac_path_GREP_found && break 3
4537 GREP
="$ac_cv_path_GREP"
4538 if test -z "$GREP"; then
4539 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4540 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4541 { (exit 1); exit 1; }; }
4545 ac_cv_path_GREP
=$GREP
4550 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4551 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4552 GREP
="$ac_cv_path_GREP"
4555 { echo "$as_me:$LINENO: checking for egrep" >&5
4556 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4557 if test "${ac_cv_path_EGREP+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4561 then ac_cv_path_EGREP
="$GREP -E"
4563 # Extract the first word of "egrep" to use in msg output
4564 if test -z "$EGREP"; then
4565 set dummy
egrep; ac_prog_name
=$2
4566 if test "${ac_cv_path_EGREP+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 ac_path_EGREP_found
=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4572 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4575 test -z "$as_dir" && as_dir
=.
4576 for ac_prog
in egrep; do
4577 for ac_exec_ext
in '' $ac_executable_extensions; do
4578 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4579 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
4580 # Check for GNU ac_path_EGREP and select it if it is found.
4581 # Check for GNU $ac_path_EGREP
4582 case `"$ac_path_EGREP" --version 2>&1` in
4584 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4587 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 echo 'EGREP' >> "conftest.nl"
4594 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4595 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4596 ac_count
=`expr $ac_count + 1`
4597 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_EGREP
="$ac_path_EGREP"
4600 ac_path_EGREP_max
=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4605 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4609 $ac_path_EGREP_found && break 3
4619 EGREP
="$ac_cv_path_EGREP"
4620 if test -z "$EGREP"; then
4621 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4622 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4623 { (exit 1); exit 1; }; }
4627 ac_cv_path_EGREP
=$EGREP
4633 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4634 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4635 EGREP
="$ac_cv_path_EGREP"
4639 { echo "$as_me:$LINENO: checking for AIX" >&5
4640 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4641 cat >conftest.
$ac_ext <<_ACEOF
4644 cat confdefs.h
>>conftest.
$ac_ext
4645 cat >>conftest.
$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "yes" >/dev
/null
2>&1; then
4654 { echo "$as_me:$LINENO: result: yes" >&5
4655 echo "${ECHO_T}yes" >&6; }
4656 cat >>confdefs.h
<<\_ACEOF
4657 #define _ALL_SOURCE 1
4661 { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4668 cat >>confdefs.h
<<\_ACEOF
4669 #define _GNU_SOURCE 1
4674 ### Use -Wno-pointer-sign if the compiler supports it
4675 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4676 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4677 SAVE_CFLAGS
="$CFLAGS"
4678 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4679 cat >conftest.
$ac_ext <<_ACEOF
4682 cat confdefs.h
>>conftest.
$ac_ext
4683 cat >>conftest.
$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4694 rm -f conftest.
$ac_objext
4695 if { (ac_try
="$ac_compile"
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_compile") 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); } &&
4708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709 { (case "(($ac_try" in
4710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4711 *) ac_try_echo
=$ac_try;;
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_try") 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try
='test -s conftest.$ac_objext'
4719 { (case "(($ac_try" in
4720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_try") 2>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 if test $has_option = yes; then
4738 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4740 { echo "$as_me:$LINENO: result: $has_option" >&5
4741 echo "${ECHO_T}$has_option" >&6; }
4742 CFLAGS="$SAVE_CFLAGS"
4746 #### Some other nice autoconf tests.
4748 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4749 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4751 if test "$LN_S" = "ln -s"; then
4752 { echo "$as_me:$LINENO: result: yes" >&5
4753 echo "${ECHO_T}yes" >&6; }
4755 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4756 echo "${ECHO_T}no, using $LN_S" >&6; }
4760 ac_cpp='$CPP $CPPFLAGS'
4761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4765 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4766 # On Suns, sometimes $CPP names a directory.
4767 if test -n "$CPP" && test -d "$CPP"; then
4770 if test -z "$CPP"; then
4771 if test "${ac_cv_prog_CPP+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 # Double quotes because CPP needs to be expanded
4775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4778 for ac_c_preproc_warn_flag in '' yes
4780 # Use a header file that comes with gcc, so configuring glibc
4781 # with a fresh cross-compiler works.
4782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783 # <limits.h> exists even on freestanding compilers.
4784 # On the NeXT, cc -E runs the code through the compiler's parser,
4785 # not just through cpp. "Syntax error" is here to catch this case.
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4793 # include <limits.h>
4795 # include <assert.h>
4799 if { (ac_try="$ac_cpp conftest.$ac_ext"
4801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4802 *) ac_try_echo
=$ac_try;;
4804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4807 grep -v '^ *+' conftest.er1
>conftest.err
4809 cat conftest.err
>&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev
/null
; then
4812 if test -s conftest.err
; then
4813 ac_cpp_err
=$ac_c_preproc_warn_flag
4814 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4821 if test -z "$ac_cpp_err"; then
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.
$ac_ext >&5
4827 # Broken: fails on valid input.
4831 rm -f conftest.err conftest.
$ac_ext
4833 # OK, works on sane cases. Now check whether nonexistent headers
4834 # can be detected and how.
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <ac_nonexistent.h>
4843 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851 grep -v '^ *+' conftest.er1 >conftest.err
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null; then
4856 if test -s conftest.err; then
4857 ac_cpp_err=$ac_c_preproc_warn_flag
4858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4865 if test -z "$ac_cpp_err"; then
4866 # Broken: success on invalid input.
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 # Passes both tests.
4877 rm -f conftest.err conftest.$ac_ext
4880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4881 rm -f conftest.err conftest.
$ac_ext
4882 if $ac_preproc_ok; then
4894 { echo "$as_me:$LINENO: result: $CPP" >&5
4895 echo "${ECHO_T}$CPP" >&6; }
4897 for ac_c_preproc_warn_flag
in '' yes
4899 # Use a header file that comes with gcc, so configuring glibc
4900 # with a fresh cross-compiler works.
4901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4902 # <limits.h> exists even on freestanding compilers.
4903 # On the NeXT, cc -E runs the code through the compiler's parser,
4904 # not just through cpp. "Syntax error" is here to catch this case.
4905 cat >conftest.
$ac_ext <<_ACEOF
4908 cat confdefs.h
>>conftest.
$ac_ext
4909 cat >>conftest.
$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4912 # include <limits.h>
4914 # include <assert.h>
4918 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } >/dev/null; then
4931 if test -s conftest.err; then
4932 ac_cpp_err=$ac_c_preproc_warn_flag
4933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4940 if test -z "$ac_cpp_err"; then
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 # Broken: fails on valid input.
4950 rm -f conftest.err conftest.$ac_ext
4952 # OK, works on sane cases. Now check whether nonexistent headers
4953 # can be detected and how.
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <ac_nonexistent.h>
4962 if { (ac_try="$ac_cpp conftest.$ac_ext"
4964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4965 *) ac_try_echo
=$ac_try;;
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1
>conftest.err
4972 cat conftest.err
>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } >/dev
/null
; then
4975 if test -s conftest.err
; then
4976 ac_cpp_err
=$ac_c_preproc_warn_flag
4977 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4984 if test -z "$ac_cpp_err"; then
4985 # Broken: success on invalid input.
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.
$ac_ext >&5
4991 # Passes both tests.
4996 rm -f conftest.err conftest.
$ac_ext
4999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5000 rm -f conftest.err conftest.
$ac_ext
5001 if $ac_preproc_ok; then
5004 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5005 See \`config.log' for more details." >&5
5006 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5007 See \`config.log' for more details." >&2;}
5008 { (exit 1); exit 1; }; }
5012 ac_cpp
='$CPP $CPPFLAGS'
5013 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5017 # Find a good install program. We prefer a C program (faster),
5018 # so one script is as good as another. But avoid the broken or
5019 # incompatible versions:
5020 # SysV /etc/install, /usr/sbin/install
5021 # SunOS /usr/etc/install
5022 # IRIX /sbin/install
5024 # AmigaOS /C/install, which installs bootblocks on floppy discs
5025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5028 # OS/2's system install, which has a completely different semantic
5029 # ./install, which can be erroneously created by make from ./install.sh.
5030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5032 if test -z "$INSTALL"; then
5033 if test "${ac_cv_path_install+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir
=.
5041 # Account for people who put trailing slashes in PATH elements.
5043 .
/ | .
// |
/cC
/* | \
5044 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5045 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5048 # OSF1 and SCO ODT 3.0 have their own names for install.
5049 # Don't use installbsd from OSF since it installs stuff as root
5051 for ac_prog
in ginstall scoinst
install; do
5052 for ac_exec_ext
in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5054 if test $ac_prog = install &&
5055 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5056 # AIX install. It has an incompatible calling convention.
5058 elif test $ac_prog = install &&
5059 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5060 # program-specific install script used by HP pwplus--don't use.
5063 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5076 if test "${ac_cv_path_install+set}" = set; then
5077 INSTALL
=$ac_cv_path_install
5079 # As a last resort, use the slow shell script. Don't cache a
5080 # value for INSTALL within a source directory, because that will
5081 # break other packages using the cache if that directory is
5082 # removed, or if the value is a relative name.
5083 INSTALL
=$ac_install_sh
5086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5087 echo "${ECHO_T}$INSTALL" >&6; }
5089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5090 # It thinks the first close brace ends the variable substitution.
5091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5095 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5097 if test "x$RANLIB" = x
; then
5098 if test -n "$ac_tool_prefix"; then
5099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5100 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103 if test "${ac_cv_prog_RANLIB+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 if test -n "$RANLIB"; then
5107 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_exec_ext
in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 RANLIB
=$ac_cv_prog_RANLIB
5127 if test -n "$RANLIB"; then
5128 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5129 echo "${ECHO_T}$RANLIB" >&6; }
5131 { echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6; }
5137 if test -z "$ac_cv_prog_RANLIB"; then
5138 ac_ct_RANLIB
=$RANLIB
5139 # Extract the first word of "ranlib", so it can be a program name with args.
5140 set dummy ranlib
; ac_word
=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 if test -n "$ac_ct_RANLIB"; then
5147 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir
=.
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5167 if test -n "$ac_ct_RANLIB"; then
5168 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5169 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5175 if test "x$ac_ct_RANLIB" = x
; then
5178 case $cross_compiling:$ac_tool_warned in
5180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5181 whose name does not start with the host triplet. If you think this
5182 configuration is useful to you, please write to autoconf@gnu.org." >&5
5183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5184 whose name does not start with the host triplet. If you think this
5185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5186 ac_tool_warned
=yes ;;
5188 RANLIB
=$ac_ct_RANLIB
5191 RANLIB
="$ac_cv_prog_RANLIB"
5195 # Extract the first word of "install-info", so it can be a program name with args.
5196 set dummy install-info
; ac_word
=$2
5197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5199 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 case $INSTALL_INFO in
5204 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir
=.
5212 for ac_exec_ext
in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5226 if test -n "$INSTALL_INFO"; then
5227 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5228 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5230 { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5235 # Extract the first word of "install-info", so it can be a program name with args.
5236 set dummy install-info
; ac_word
=$2
5237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5239 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 case $INSTALL_INFO in
5244 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5248 for as_dir
in /usr
/sbin
5251 test -z "$as_dir" && as_dir
=.
5252 for ac_exec_ext
in '' $ac_executable_extensions; do
5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5254 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5266 if test -n "$INSTALL_INFO"; then
5267 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5268 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5275 # Extract the first word of "install-info", so it can be a program name with args.
5276 set dummy install-info
; ac_word
=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 case $INSTALL_INFO in
5284 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir
=.
5292 for ac_exec_ext
in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5306 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5307 if test -n "$INSTALL_INFO"; then
5308 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5309 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5311 { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5316 # Extract the first word of "gzip", so it can be a program name with args.
5317 set dummy
gzip; ac_word
=$2
5318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir
=.
5333 for ac_exec_ext
in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5347 if test -n "$GZIP_PROG"; then
5348 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5349 echo "${ECHO_T}$GZIP_PROG" >&6; }
5351 { echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6; }
5358 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5360 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5363 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5365 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5369 late_LDFLAGS
=$LDFLAGS
5370 if test "$GCC" = yes; then
5371 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5373 LDFLAGS
="$LDFLAGS -znocombreloc"
5376 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5377 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 rm -f conftest.
$ac_objext conftest
$ac_exeext
5382 if { (ac_try
="$ac_link"
5384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_link") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5396 { (case "(($ac_try" in
5397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5398 *) ac_try_echo
=$ac_try;;
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_try") 2>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try
='test -s conftest$ac_exeext'
5406 { (case "(($ac_try" in
5407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_try") 2>&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 { echo "$as_me:$LINENO: result: yes" >&5
5416 echo "${ECHO_T}yes" >&6; }
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5421 LDFLAGS=$late_LDFLAGS
5422 { echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6; }
5426 rm -f core conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5429 #### Extract some information from the operating system and machine files.
5431 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5432 - which libraries the lib-src programs will want, and
5433 - whether the GNU malloc routines are usable..." >&5
5434 echo "$as_me: checking the machine- and system-dependent files to find out
5435 - which libraries the lib-src programs will want, and
5436 - whether the GNU malloc routines are usable..." >&6;}
5438 ### First figure out CFLAGS (which we use for running the compiler here)
5439 ### and REAL_CFLAGS (which we use for real compilation).
5440 ### The two are the same except on a few systems, where they are made
5441 ### different to work around various lossages. For example,
5442 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5443 ### as implying static linking.
5445 ### If the CFLAGS env var is specified, we use that value
5446 ### instead of the default.
5448 ### It's not important that this name contain the PID; you can't run
5449 ### two configures in the same directory and have anything work
5451 tempcname="conftest.c"
5454 #include "'${srcdir}'/src/'${opsysfile}'"
5455 #include "'${srcdir}'/src/'${machfile}'"
5456 #ifndef LIBS_MACHINE
5457 #define LIBS_MACHINE
5462 #ifndef C_SWITCH_SYSTEM
5463 #define C_SWITCH_SYSTEM
5465 #ifndef C_SWITCH_MACHINE
5466 #define C_SWITCH_MACHINE
5468 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5469 configure___ c_switch_system=C_SWITCH_SYSTEM
5470 configure___ c_switch_machine=C_SWITCH_MACHINE
5473 #define LIB_X11_LIB -lX11
5476 #ifndef LIBX11_MACHINE
5477 #define LIBX11_MACHINE
5480 #ifndef LIBX11_SYSTEM
5481 #define LIBX11_SYSTEM
5483 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5486 configure___ unexec=UNEXEC
5488 configure___ unexec=unexec.o
5491 #ifdef SYSTEM_MALLOC
5492 configure___ system_malloc=yes
5494 configure___ system_malloc=no
5497 #ifdef USE_MMAP_FOR_BUFFERS
5498 configure___ use_mmap_for_buffers=yes
5500 configure___ use_mmap_for_buffers=no
5503 #ifndef C_DEBUG_SWITCH
5504 #define C_DEBUG_SWITCH -g
5507 #ifndef C_OPTIMIZE_SWITCH
5509 #define C_OPTIMIZE_SWITCH -O2
5511 #define C_OPTIMIZE_SWITCH -O
5515 #ifndef C_WARNINGS_SWITCH
5516 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5519 #ifndef LD_SWITCH_MACHINE
5520 #define LD_SWITCH_MACHINE
5523 #ifndef LD_SWITCH_SYSTEM
5524 #define LD_SWITCH_SYSTEM
5527 #ifndef LD_SWITCH_X_SITE_AUX
5528 #define LD_SWITCH_X_SITE_AUX
5531 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5532 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5534 #ifdef THIS_IS_CONFIGURE
5536 /* Get the CFLAGS for tests in configure. */
5538 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5540 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5543 #else /* not THIS_IS_CONFIGURE */
5545 /* Get the CFLAGS for real compilation. */
5547 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5549 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5552 #endif /* not THIS_IS_CONFIGURE */
5555 # The value of CPP is a quoted variable reference, so we need to do this
5556 # to get its actual value...
5557 CPP=`eval "echo $CPP"`
5558 eval `${CPP} -Isrc ${tempcname} \
5559 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5560 if test "x$SPECIFIED_CFLAGS" = x; then
5561 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5562 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5564 REAL_CFLAGS="$CFLAGS"
5568 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5570 ### Make sure subsequent tests use flags consistent with the build flags.
5572 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5573 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5575 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5580 # Check whether --enable-largefile was given.
5581 if test "${enable_largefile+set}" = set; then
5582 enableval=$enable_largefile;
5585 if test "$enable_largefile" != no; then
5587 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5588 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5589 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 ac_cv_sys_largefile_CC=no
5593 if test "$GCC" != yes; then
5596 # IRIX 6.2 and later do not support large files by default,
5597 # so use the C compiler's -n32 option if that helps.
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <sys/types.h>
5605 /* Check that off_t can represent 2**63 - 1 correctly.
5606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5607 since some C++ compilers masquerading as C compilers
5608 incorrectly reject 9223372036854775807. */
5609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5611 && LARGE_OFF_T % 2147483647 == 1)
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5625 *) ac_try_echo
=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5630 grep -v '^ *+' conftest.er1
>conftest.err
5632 cat conftest.err
>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (case "(($ac_try" in
5647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5648 *) ac_try_echo
=$ac_try;;
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.
$ac_ext >&5
5663 rm -f core conftest.err conftest.
$ac_objext
5665 rm -f conftest.
$ac_objext
5666 if { (ac_try
="$ac_compile"
5668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5674 grep -v '^ *+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5682 *) ac_try_echo
=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try
='test -s conftest.$ac_objext'
5690 { (case "(($ac_try" in
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_try") 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_sys_largefile_CC=' -n32'; break
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5707 rm -f core conftest.err conftest.$ac_objext
5711 rm -f conftest.$ac_ext
5714 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5715 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5716 if test "$ac_cv_sys_largefile_CC" != no; then
5717 CC=$CC$ac_cv_sys_largefile_CC
5720 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5721 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 ac_cv_sys_file_offset_bits=no
5727 cat >conftest.$ac_ext <<_ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 /* Check that off_t can represent 2**63 - 1 correctly.
5735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5736 since some C++ compilers masquerading as C compilers
5737 incorrectly reject 9223372036854775807. */
5738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5740 && LARGE_OFF_T % 2147483647 == 1)
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5754 *) ac_try_echo
=$ac_try;;
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_compile") 2>conftest.er1
5759 grep -v '^ *+' conftest.er1
>conftest.err
5761 cat conftest.err
>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5765 { (case "(($ac_try" in
5766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_try") 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (case "(($ac_try" in
5776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5777 *) ac_try_echo
=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_try") 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.
$ac_ext >&5
5792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5793 cat >conftest.
$ac_ext <<_ACEOF
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #define _FILE_OFFSET_BITS 64
5800 #include <sys/types.h>
5801 /* Check that off_t can represent 2**63 - 1 correctly.
5802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5803 since some C++ compilers masquerading as C compilers
5804 incorrectly reject 9223372036854775807. */
5805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5807 && LARGE_OFF_T % 2147483647 == 1)
5817 rm -f conftest.
$ac_objext
5818 if { (ac_try
="$ac_compile"
5820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5826 grep -v '^ *+' conftest.er1 >conftest.err
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5832 { (case "(($ac_try" in
5833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5834 *) ac_try_echo
=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_try") 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try
='test -s conftest.$ac_objext'
5842 { (case "(($ac_try" in
5843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_try") 2>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_sys_file_offset_bits=64; break
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5864 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5865 if test "$ac_cv_sys_file_offset_bits" != no; then
5867 cat >>confdefs.h <<_ACEOF
5868 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5873 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5874 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5875 if test "${ac_cv_sys_large_files+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_cv_sys_large_files=no
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <sys/types.h>
5887 /* Check that off_t can represent 2**63 - 1 correctly.
5888 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5889 since some C++ compilers masquerading as C compilers
5890 incorrectly reject 9223372036854775807. */
5891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5892 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5893 && LARGE_OFF_T % 2147483647 == 1)
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5907 *) ac_try_echo
=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1
>conftest.err
5914 cat conftest.err
>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5930 *) ac_try_echo
=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5946 cat >conftest.
$ac_ext <<_ACEOF
5949 cat confdefs.h
>>conftest.
$ac_ext
5950 cat >>conftest.
$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #define _LARGE_FILES 1
5953 #include <sys/types.h>
5954 /* Check that off_t can represent 2**63 - 1 correctly.
5955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5956 since some C++ compilers masquerading as C compilers
5957 incorrectly reject 9223372036854775807. */
5958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5960 && LARGE_OFF_T % 2147483647 == 1)
5970 rm -f conftest.
$ac_objext
5971 if { (ac_try
="$ac_compile"
5973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5987 *) ac_try_echo
=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try
='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_sys_large_files=1; break
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6017 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6018 if test "$ac_cv_sys_large_files" != no; then
6020 cat >>confdefs.h <<_ACEOF
6021 #define _LARGE_FILES $ac_cv_sys_large_files
6030 ### The standard library on x86-64 GNU/Linux distributions can
6031 ### be located in either /usr/lib64 or /usr/lib.
6032 case "${canonical}" in
6033 x86_64-*-linux-gnu* )
6034 if test -d /usr/lib64; then
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_X86_64_LIB64_DIR 1
6046 if test "${with_sound}" != "no"; then
6047 # Sound support for GNU/Linux and the free BSDs.
6048 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6049 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6050 if test "${ac_cv_header_stdc+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 cat >conftest.$ac_ext <<_ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6076 *) ac_try_echo
=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1
>conftest.err
6083 cat conftest.err
>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6087 { (case "(($ac_try" in
6088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_try") 2>&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (case "(($ac_try" in
6098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6099 *) ac_try_echo
=$ac_try;;
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_try") 2>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_header_stdc
=yes
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.
$ac_ext >&5
6111 ac_cv_header_stdc
=no
6114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6116 if test $ac_cv_header_stdc = yes; then
6117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6118 cat >conftest.
$ac_ext <<_ACEOF
6121 cat confdefs.h
>>conftest.
$ac_ext
6122 cat >>conftest.
$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 $EGREP "memchr" >/dev
/null
2>&1; then
6131 ac_cv_header_stdc
=no
6137 if test $ac_cv_header_stdc = yes; then
6138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6139 cat >conftest.
$ac_ext <<_ACEOF
6142 cat confdefs.h
>>conftest.
$ac_ext
6143 cat >>conftest.
$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149 $EGREP "free" >/dev
/null
2>&1; then
6152 ac_cv_header_stdc
=no
6158 if test $ac_cv_header_stdc = yes; then
6159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6160 if test "$cross_compiling" = yes; then
6163 cat >conftest.
$ac_ext <<_ACEOF
6166 cat confdefs.h
>>conftest.
$ac_ext
6167 cat >>conftest.
$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6171 #if ((' ' & 0x0FF) == 0x020)
6172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6175 # define ISLOWER(c) \
6176 (('a' <= (c) && (c) <= 'i') \
6177 || ('j' <= (c) && (c) <= 'r') \
6178 || ('s' <= (c) && (c) <= 'z'))
6179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6187 for (i = 0; i < 256; i++)
6188 if (XOR (islower (i), ISLOWER (i))
6189 || toupper (i) != TOUPPER (i))
6194 rm -f conftest
$ac_exeext
6195 if { (ac_try
="$ac_link"
6197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6205 { (case "(($ac_try" in
6206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6207 *) ac_try_echo
=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_try") 2>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6216 echo "$as_me: program exited with status $ac_status" >&5
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.
$ac_ext >&5
6221 ac_cv_header_stdc
=no
6223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6229 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6230 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6231 if test $ac_cv_header_stdc = yes; then
6233 cat >>confdefs.h
<<\_ACEOF
6234 #define STDC_HEADERS 1
6239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6249 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6250 inttypes.h stdint.h unistd.h
6252 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6255 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 cat >conftest.
$ac_ext <<_ACEOF
6261 cat confdefs.h
>>conftest.
$ac_ext
6262 cat >>conftest.
$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 $ac_includes_default
6266 #include <$ac_header>
6268 rm -f conftest.
$ac_objext
6269 if { (ac_try
="$ac_compile"
6271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_compile") 2>conftest.er1
6277 grep -v '^ *+' conftest.er1 >conftest.err
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (case "(($ac_try" in
6284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6285 *) ac_try_echo
=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_try") 2>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try
='test -s conftest.$ac_objext'
6293 { (case "(($ac_try" in
6294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_try") 2>&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 eval "$as_ac_Header=yes"
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 eval "$as_ac_Header=no"
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_res=`eval echo '${'$as_ac_Header'}'`
6313 { echo "$as_me:$LINENO: result: $ac_res" >&5
6314 echo "${ECHO_T}$ac_res" >&6; }
6315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6316 cat >>confdefs.h <<_ACEOF
6317 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6328 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6330 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 ac_res=`eval echo '${'$as_ac_Header'}'`
6338 { echo "$as_me:$LINENO: result: $ac_res" >&5
6339 echo "${ECHO_T}$ac_res" >&6; }
6341 # Is the header compilable?
6342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 $ac_includes_default
6351 #include <$ac_header>
6353 rm -f conftest.$ac_objext
6354 if { (ac_try="$ac_compile"
6356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6357 *) ac_try_echo
=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1
>conftest.err
6364 cat conftest.err
>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6368 { (case "(($ac_try" in
6369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try='test -s conftest.$ac_objext'
6378 { (case "(($ac_try" in
6379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6380 *) ac_try_echo
=$ac_try;;
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_try") 2>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_header_compiler
=yes
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.
$ac_ext >&5
6392 ac_header_compiler
=no
6395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6397 echo "${ECHO_T}$ac_header_compiler" >&6; }
6399 # Is the header present?
6400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6402 cat >conftest.
$ac_ext <<_ACEOF
6405 cat confdefs.h
>>conftest.
$ac_ext
6406 cat >>conftest.
$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <$ac_header>
6410 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null; then
6423 if test -s conftest.err; then
6424 ac_cpp_err=$ac_c_preproc_warn_flag
6425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6432 if test -z "$ac_cpp_err"; then
6433 ac_header_preproc=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_header_preproc=no
6441 rm -f conftest.err conftest.$ac_ext
6442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6443 echo "${ECHO_T}$ac_header_preproc" >&6; }
6445 # So? What about this header?
6446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6452 ac_header_preproc=yes
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 eval "$as_ac_Header=\$ac_header_preproc"
6477 ac_res=`eval echo '${'$as_ac_Header'}'`
6478 { echo "$as_me:$LINENO: result: $ac_res" >&5
6479 echo "${ECHO_T}$ac_res" >&6; }
6482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483 cat >>confdefs.h <<_ACEOF
6484 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6491 # Emulation library used on NetBSD.
6492 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6493 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6494 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 ac_check_lib_save_LIBS=$LIBS
6498 LIBS="-lossaudio $LIBS"
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6506 /* Override any GCC internal prototype to avoid an error.
6507 Use char because int might match the return type of a GCC
6508 builtin and then its argument prototype would still apply. */
6516 return _oss_ioctl ();
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (ac_try="$ac_link"
6524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6525 *) ac_try_echo
=$ac_try;;
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_link") 2>conftest.er1
6530 grep -v '^ *+' conftest.er1
>conftest.err
6532 cat conftest.err
>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
6535 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6536 { (case "(($ac_try" in
6537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_try") 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (case "(($ac_try" in
6547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6548 *) ac_try_echo
=$ac_try;;
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_try") 2>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 ac_cv_lib_ossaudio__oss_ioctl
=yes
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.
$ac_ext >&5
6560 ac_cv_lib_ossaudio__oss_ioctl
=no
6563 rm -f core conftest.err conftest.
$ac_objext \
6564 conftest
$ac_exeext conftest.
$ac_ext
6565 LIBS
=$ac_check_lib_save_LIBS
6567 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6568 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6569 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6578 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6579 if test "X${with_pkg_config_prog}" != X
; then
6580 PKG_CONFIG
="${with_pkg_config_prog}"
6585 if test -z "$PKG_CONFIG"; then
6586 # Extract the first word of "pkg-config", so it can be a program name with args.
6587 set dummy pkg-config
; ac_word
=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6602 test -z "$as_dir" && as_dir
=.
6603 for ac_exec_ext
in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6617 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6618 if test -n "$PKG_CONFIG"; then
6619 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6620 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6629 if test "$PKG_CONFIG" = "no" ; then
6632 PKG_CONFIG_MIN_VERSION
=0.9.0
6633 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6634 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6635 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6637 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6638 { echo "$as_me:$LINENO: result: yes" >&5
6639 echo "${ECHO_T}yes" >&6; }
6642 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6643 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6644 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6645 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6646 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6648 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6649 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6650 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6651 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6652 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6658 ## If we have a custom action on failure, don't print errors, but
6659 ## do set a variable so people can do so.
6660 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6667 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6668 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6672 if test $succeeded = yes; then
6678 if test $HAVE_ALSA = yes; then
6679 SAVE_CFLAGS
="$CFLAGS"
6680 SAVE_LDFLAGS
="$LDFLAGS"
6681 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6682 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6683 cat >conftest.
$ac_ext <<_ACEOF
6686 cat confdefs.h
>>conftest.
$ac_ext
6687 cat >>conftest.
$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <asoundlib.h>
6693 snd_lib_error_set_handler (0);
6698 rm -f conftest.
$ac_objext
6699 if { (ac_try
="$ac_compile"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (case "(($ac_try" in
6714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6715 *) ac_try_echo
=$ac_try;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_try") 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; } &&
6722 { ac_try
='test -s conftest.$ac_objext'
6723 { (case "(($ac_try" in
6724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_try") 2>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 emacs_alsa_normal=yes
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 emacs_alsa_normal=no
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 if test "$emacs_alsa_normal" != yes; then
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <alsa/asoundlib.h>
6752 snd_lib_error_set_handler (0);
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6761 *) ac_try_echo
=$ac_try;;
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6766 grep -v '^ *+' conftest.er1
>conftest.err
6768 cat conftest.err
>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6772 { (case "(($ac_try" in
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_try") 2>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (case "(($ac_try" in
6783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6784 *) ac_try_echo
=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_try") 2>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 emacs_alsa_subdir
=yes
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.
$ac_ext >&5
6796 emacs_alsa_subdir
=no
6799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6800 if test "$emacs_alsa_subdir" != yes; then
6801 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6802 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6803 { (exit 1); exit 1; }; }
6805 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6808 CFLAGS
="$SAVE_CFLAGS"
6809 LDFLAGS
="$SAVE_LDFLAGS"
6810 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6811 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6813 cat >>confdefs.h
<<\_ACEOF
6847 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6848 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6849 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6850 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6853 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_res
=`eval echo '${'$as_ac_Header'}'`
6861 { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6864 # Is the header compilable?
6865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6867 cat >conftest.
$ac_ext <<_ACEOF
6870 cat confdefs.h
>>conftest.
$ac_ext
6871 cat >>conftest.
$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6874 #include <$ac_header>
6876 rm -f conftest.
$ac_objext
6877 if { (ac_try
="$ac_compile"
6879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6891 { (case "(($ac_try" in
6892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6893 *) ac_try_echo
=$ac_try;;
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896 (eval "$ac_try") 2>&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try
='test -s conftest.$ac_objext'
6901 { (case "(($ac_try" in
6902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_try") 2>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_header_compiler=yes
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6915 ac_header_compiler=no
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6920 echo "${ECHO_T}$ac_header_compiler" >&6; }
6922 # Is the header present?
6923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6924 echo $ECHO_N "checking $ac_header presence... $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 <$ac_header>
6933 if { (ac_try="$ac_cpp conftest.$ac_ext"
6935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6936 *) ac_try_echo
=$ac_try;;
6938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6941 grep -v '^ *+' conftest.er1
>conftest.err
6943 cat conftest.err
>&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } >/dev
/null
; then
6946 if test -s conftest.err
; then
6947 ac_cpp_err
=$ac_c_preproc_warn_flag
6948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6955 if test -z "$ac_cpp_err"; then
6956 ac_header_preproc
=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.
$ac_ext >&5
6961 ac_header_preproc
=no
6964 rm -f conftest.err conftest.
$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966 echo "${ECHO_T}$ac_header_preproc" >&6; }
6968 # So? What about this header?
6969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6975 ac_header_preproc
=yes
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 eval "$as_ac_Header=\$ac_header_preproc"
7000 ac_res
=`eval echo '${'$as_ac_Header'}'`
7001 { echo "$as_me:$LINENO: result: $ac_res" >&5
7002 echo "${ECHO_T}$ac_res" >&6; }
7005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7006 cat >>confdefs.h
<<_ACEOF
7007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7015 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7016 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
7017 cat >conftest.
$ac_ext <<_ACEOF
7020 cat confdefs.h
>>conftest.
$ac_ext
7021 cat >>conftest.
$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 #include <sys/personality.h>
7027 personality (PER_LINUX32)
7032 rm -f conftest.
$ac_objext
7033 if { (ac_try
="$ac_compile"
7035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_compile") 2>conftest.er1
7041 grep -v '^ *+' conftest.er1 >conftest.err
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7047 { (case "(($ac_try" in
7048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7049 *) ac_try_echo
=$ac_try;;
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_try") 2>&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try
='test -s conftest.$ac_objext'
7057 { (case "(($ac_try" in
7058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_try") 2>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 emacs_cv_personality_linux32=yes
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 emacs_cv_personality_linux32=no
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7076 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
7078 if test $emacs_cv_personality_linux32 = yes; then
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_PERSONALITY_LINUX32 1
7087 for ac_header in term.h
7089 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 #include <$ac_header>
7103 if { (ac_try="$ac_cpp conftest.$ac_ext"
7105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7106 *) ac_try_echo
=$ac_try;;
7108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7111 grep -v '^ *+' conftest.er1
>conftest.err
7113 cat conftest.err
>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } >/dev
/null
; then
7116 if test -s conftest.err
; then
7117 ac_cpp_err
=$ac_c_preproc_warn_flag
7118 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7125 if test -z "$ac_cpp_err"; then
7126 eval "$as_ac_Header=yes"
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.
$ac_ext >&5
7131 eval "$as_ac_Header=no"
7134 rm -f conftest.err conftest.
$ac_ext
7136 ac_res
=`eval echo '${'$as_ac_Header'}'`
7137 { echo "$as_me:$LINENO: result: $ac_res" >&5
7138 echo "${ECHO_T}$ac_res" >&6; }
7139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7140 cat >>confdefs.h
<<_ACEOF
7141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7148 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7150 if test "${ac_cv_header_stdc+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7172 rm -f conftest.
$ac_objext
7173 if { (ac_try
="$ac_compile"
7175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7181 grep -v '^ *+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7187 { (case "(($ac_try" in
7188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7189 *) ac_try_echo
=$ac_try;;
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_try") 2>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try
='test -s conftest.$ac_objext'
7197 { (case "(($ac_try" in
7198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_try") 2>&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 ac_cv_header_stdc=yes
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_cv_header_stdc=no
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 if test $ac_cv_header_stdc = yes; then
7217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7218 cat >conftest.$ac_ext <<_ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228 $EGREP "memchr" >/dev/null 2>&1; then
7231 ac_cv_header_stdc=no
7237 if test $ac_cv_header_stdc = yes; then
7238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7249 $EGREP "free" >/dev/null 2>&1; then
7252 ac_cv_header_stdc=no
7258 if test $ac_cv_header_stdc = yes; then
7259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7260 if test "$cross_compiling" = yes; then
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7271 #if ((' ' & 0x0FF) == 0x020)
7272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7275 # define ISLOWER(c) \
7276 (('a' <= (c) && (c) <= 'i') \
7277 || ('j' <= (c) && (c) <= 'r') \
7278 || ('s' <= (c) && (c) <= 'z'))
7279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7287 for (i = 0; i < 256; i++)
7288 if (XOR (islower (i), ISLOWER (i))
7289 || toupper (i) != TOUPPER (i))
7294 rm -f conftest$ac_exeext
7295 if { (ac_try="$ac_link"
7297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7298 *) ac_try_echo
=$ac_try;;
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301 (eval "$ac_link") 2>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7305 { (case "(($ac_try" in
7306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_try") 2>&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7316 echo "$as_me: program exited with status $ac_status" >&5
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7321 ac_cv_header_stdc=no
7323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7329 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7330 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7331 if test $ac_cv_header_stdc = yes; then
7333 cat >>confdefs.h <<\_ACEOF
7334 #define STDC_HEADERS 1
7339 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7340 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7341 if test "${ac_cv_header_time+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <sys/types.h>
7351 #include <sys/time.h>
7357 if ((struct tm *) 0)
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7367 *) ac_try_echo
=$ac_try;;
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7372 grep -v '^ *+' conftest.er1
>conftest.err
7374 cat conftest.err
>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7378 { (case "(($ac_try" in
7379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_try") 2>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest.$ac_objext'
7388 { (case "(($ac_try" in
7389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7390 *) ac_try_echo
=$ac_try;;
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_try") 2>&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_header_time
=yes
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.
$ac_ext >&5
7402 ac_cv_header_time
=no
7405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7408 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7409 if test $ac_cv_header_time = yes; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define TIME_WITH_SYS_TIME 1
7417 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7418 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7419 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 cat >conftest.
$ac_ext <<_ACEOF
7425 cat confdefs.h
>>conftest.
$ac_ext
7426 cat >>conftest.
$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7433 char *p = (char *) sys_siglist;
7441 rm -f conftest.
$ac_objext
7442 if { (ac_try
="$ac_compile"
7444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448 (eval "$ac_compile") 2>conftest.er1
7450 grep -v '^ *+' conftest.er1 >conftest.err
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7456 { (case "(($ac_try" in
7457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7458 *) ac_try_echo
=$ac_try;;
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_try") 2>&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; } &&
7465 { ac_try
='test -s conftest.$ac_objext'
7466 { (case "(($ac_try" in
7467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_try") 2>&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 ac_cv_have_decl_sys_siglist=yes
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7480 ac_cv_have_decl_sys_siglist=no
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7486 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7487 if test $ac_cv_have_decl_sys_siglist = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define HAVE_DECL_SYS_SIGLIST 1
7495 cat >>confdefs.h <<_ACEOF
7496 #define HAVE_DECL_SYS_SIGLIST 0
7503 if test $ac_cv_have_decl_sys_siglist != yes; then
7504 # For Tru64, at least:
7505 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7506 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7507 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7520 #ifndef __sys_siglist
7521 char *p = (char *) __sys_siglist;
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7533 *) ac_try_echo
=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1
>conftest.err
7540 cat conftest.err
>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7544 { (case "(($ac_try" in
7545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_try") 2>&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest.$ac_objext'
7554 { (case "(($ac_try" in
7555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7556 *) ac_try_echo
=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_try") 2>&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_cv_have_decl___sys_siglist
=yes
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.
$ac_ext >&5
7568 ac_cv_have_decl___sys_siglist
=no
7571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7574 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7575 if test $ac_cv_have_decl___sys_siglist = yes; then
7577 cat >>confdefs.h
<<_ACEOF
7578 #define HAVE_DECL___SYS_SIGLIST 1
7583 cat >>confdefs.h
<<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 0
7591 if test $ac_cv_have_decl___sys_siglist = yes; then
7593 cat >>confdefs.h
<<\_ACEOF
7594 #define sys_siglist __sys_siglist
7599 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7600 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7601 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 cat >conftest.
$ac_ext <<_ACEOF
7607 cat confdefs.h
>>conftest.
$ac_ext
7608 cat >>conftest.
$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <sys/types.h>
7611 #include <sys/wait.h>
7613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7629 rm -f conftest.
$ac_objext
7630 if { (ac_try
="$ac_compile"
7632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7644 { (case "(($ac_try" in
7645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7646 *) ac_try_echo
=$ac_try;;
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_try") 2>&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try
='test -s conftest.$ac_objext'
7654 { (case "(($ac_try" in
7655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_try") 2>&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 ac_cv_header_sys_wait_h=yes
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_cv_header_sys_wait_h=no
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7674 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7675 if test $ac_cv_header_sys_wait_h = yes; then
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_SYS_WAIT_H 1
7684 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7685 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7686 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #ifdef TIME_WITH_SYS_TIME
7696 #include <sys/time.h>
7699 #ifdef HAVE_SYS_TIME_H
7700 #include <sys/time.h>
7711 static struct utimbuf x; x.actime = x.modtime;
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7720 *) ac_try_echo
=$ac_try;;
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7725 grep -v '^ *+' conftest.er1
>conftest.err
7727 cat conftest.err
>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7731 { (case "(($ac_try" in
7732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_try") 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; } &&
7740 { ac_try='test -s conftest.$ac_objext'
7741 { (case "(($ac_try" in
7742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7743 *) ac_try_echo
=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_try") 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 emacs_cv_struct_utimbuf
=yes
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.
$ac_ext >&5
7755 emacs_cv_struct_utimbuf
=no
7758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7760 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7761 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7762 if test $emacs_cv_struct_utimbuf = yes; then
7764 cat >>confdefs.h
<<\_ACEOF
7765 #define HAVE_STRUCT_UTIMBUF 1
7770 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7771 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7772 if test "${ac_cv_type_signal+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 cat >conftest.
$ac_ext <<_ACEOF
7778 cat confdefs.h
>>conftest.
$ac_ext
7779 cat >>conftest.
$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 #include <sys/types.h>
7787 return *(signal (0, 0)) (0) == 1;
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7807 { (case "(($ac_try" in
7808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7809 *) ac_try_echo
=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_try") 2>&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try
='test -s conftest.$ac_objext'
7817 { (case "(($ac_try" in
7818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_cv_type_signal=int
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_cv_type_signal=void
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7837 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7839 cat >>confdefs.h <<_ACEOF
7840 #define RETSIGTYPE $ac_cv_type_signal
7845 { echo "$as_me:$LINENO: checking for speed_t" >&5
7846 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7847 if test "${emacs_cv_speed_t+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7856 #include <termios.h>
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7869 *) ac_try_echo
=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_compile") 2>conftest.er1
7874 grep -v '^ *+' conftest.er1
>conftest.err
7876 cat conftest.err
>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7880 { (case "(($ac_try" in
7881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_try") 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest.$ac_objext'
7890 { (case "(($ac_try" in
7891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7892 *) ac_try_echo
=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_try") 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 emacs_cv_speed_t
=yes
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.
$ac_ext >&5
7907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7909 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7910 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7911 if test $emacs_cv_speed_t = yes; then
7913 cat >>confdefs.h
<<\_ACEOF
7914 #define HAVE_SPEED_T 1
7919 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7920 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7921 if test "${emacs_cv_struct_timeval+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 cat >conftest.
$ac_ext <<_ACEOF
7927 cat confdefs.h
>>conftest.
$ac_ext
7928 cat >>conftest.
$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 #ifdef TIME_WITH_SYS_TIME
7931 #include <sys/time.h>
7934 #ifdef HAVE_SYS_TIME_H
7935 #include <sys/time.h>
7943 static struct timeval x; x.tv_sec = x.tv_usec;
7948 rm -f conftest.
$ac_objext
7949 if { (ac_try
="$ac_compile"
7951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7963 { (case "(($ac_try" in
7964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7965 *) ac_try_echo
=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_try") 2>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try
='test -s conftest.$ac_objext'
7973 { (case "(($ac_try" in
7974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_try") 2>&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 emacs_cv_struct_timeval=yes
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 emacs_cv_struct_timeval=no
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7993 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7994 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7995 if test $emacs_cv_struct_timeval = yes; then
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_TIMEVAL 1
8003 { echo "$as_me:$LINENO: checking for struct exception" >&5
8004 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
8005 if test "${emacs_cv_struct_exception+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8018 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8023 rm -f conftest.$ac_objext
8024 if { (ac_try="$ac_compile"
8026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8027 *) ac_try_echo
=$ac_try;;
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_compile") 2>conftest.er1
8032 grep -v '^ *+' conftest.er1
>conftest.err
8034 cat conftest.err
>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8038 { (case "(($ac_try" in
8039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_try") 2>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (case "(($ac_try" in
8049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8050 *) ac_try_echo
=$ac_try;;
8052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8053 (eval "$ac_try") 2>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 emacs_cv_struct_exception
=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.
$ac_ext >&5
8062 emacs_cv_struct_exception
=no
8065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8067 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
8068 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
8069 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8070 if test $emacs_cv_struct_exception != yes; then
8072 cat >>confdefs.h
<<\_ACEOF
8073 #define NO_MATHERR 1
8079 for ac_header
in sys
/socket.h
8081 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8085 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 ac_res
=`eval echo '${'$as_ac_Header'}'`
8089 { echo "$as_me:$LINENO: result: $ac_res" >&5
8090 echo "${ECHO_T}$ac_res" >&6; }
8092 # Is the header compilable?
8093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #include <$ac_header>
8104 rm -f conftest.
$ac_objext
8105 if { (ac_try
="$ac_compile"
8107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8121 *) ac_try_echo
=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try
='test -s conftest.$ac_objext'
8129 { (case "(($ac_try" in
8130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_header_compiler=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_header_compiler=no
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8148 echo "${ECHO_T}$ac_header_compiler" >&6; }
8150 # Is the header present?
8151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8153 cat >conftest.$ac_ext <<_ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 #include <$ac_header>
8161 if { (ac_try="$ac_cpp conftest.$ac_ext"
8163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8164 *) ac_try_echo
=$ac_try;;
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8169 grep -v '^ *+' conftest.er1
>conftest.err
8171 cat conftest.err
>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev
/null
; then
8174 if test -s conftest.err
; then
8175 ac_cpp_err
=$ac_c_preproc_warn_flag
8176 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8183 if test -z "$ac_cpp_err"; then
8184 ac_header_preproc
=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.
$ac_ext >&5
8189 ac_header_preproc
=no
8192 rm -f conftest.err conftest.
$ac_ext
8193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8194 echo "${ECHO_T}$ac_header_preproc" >&6; }
8196 # So? What about this header?
8197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8203 ac_header_preproc
=yes
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8223 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 eval "$as_ac_Header=\$ac_header_preproc"
8228 ac_res
=`eval echo '${'$as_ac_Header'}'`
8229 { echo "$as_me:$LINENO: result: $ac_res" >&5
8230 echo "${ECHO_T}$ac_res" >&6; }
8233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8234 cat >>confdefs.h
<<_ACEOF
8235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8243 for ac_header
in net
/if.h
8245 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8248 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.
$ac_ext <<_ACEOF
8254 cat confdefs.h
>>conftest.
$ac_ext
8255 cat >>conftest.
$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 $ac_includes_default
8258 #if HAVE_SYS_SOCKET_H
8259 #include <sys/socket.h>
8262 #include <$ac_header>
8264 rm -f conftest.
$ac_objext
8265 if { (ac_try
="$ac_compile"
8267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8281 *) ac_try_echo
=$ac_try;;
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try
='test -s conftest.$ac_objext'
8289 { (case "(($ac_try" in
8290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 eval "$as_ac_Header=yes"
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 eval "$as_ac_Header=no"
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 ac_res=`eval echo '${'$as_ac_Header'}'`
8309 { echo "$as_me:$LINENO: result: $ac_res" >&5
8310 echo "${ECHO_T}$ac_res" >&6; }
8311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8312 cat >>confdefs.h <<_ACEOF
8313 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8321 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8322 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
8323 if test "${ac_cv_struct_tm+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 #include <sys/types.h>
8338 struct tm *tp; tp->tm_sec;
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8347 *) ac_try_echo
=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1
>conftest.err
8354 cat conftest.err
>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8370 *) ac_try_echo
=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_struct_tm
=time.h
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.
$ac_ext >&5
8382 ac_cv_struct_tm
=sys
/time.h
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8387 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8388 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8389 if test $ac_cv_struct_tm = sys
/time.h
; then
8391 cat >>confdefs.h
<<\_ACEOF
8392 #define TM_IN_SYS_TIME 1
8397 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8398 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
8399 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 cat >conftest.
$ac_ext <<_ACEOF
8405 cat confdefs.h
>>conftest.
$ac_ext
8406 cat >>conftest.
$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 #include <sys/types.h>
8409 #include <$ac_cv_struct_tm>
8415 static struct tm ac_aggr;
8416 if (ac_aggr.tm_zone)
8422 rm -f conftest.
$ac_objext
8423 if { (ac_try
="$ac_compile"
8425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8437 { (case "(($ac_try" in
8438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8439 *) ac_try_echo
=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_try") 2>&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try
='test -s conftest.$ac_objext'
8447 { (case "(($ac_try" in
8448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_member_struct_tm_tm_zone=yes
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <$ac_cv_struct_tm>
8474 static struct tm ac_aggr;
8475 if (sizeof ac_aggr.tm_zone)
8481 rm -f conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8485 *) ac_try_echo
=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compile") 2>conftest.er1
8490 grep -v '^ *+' conftest.er1
>conftest.err
8492 cat conftest.err
>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (case "(($ac_try" in
8497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_try") 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest.$ac_objext'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_cv_member_struct_tm_tm_zone
=yes
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.
$ac_ext >&5
8520 ac_cv_member_struct_tm_tm_zone
=no
8523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8528 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8529 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8530 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8532 cat >>confdefs.h
<<_ACEOF
8533 #define HAVE_STRUCT_TM_TM_ZONE 1
8539 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8541 cat >>confdefs.h
<<\_ACEOF
8542 #define HAVE_TM_ZONE 1
8546 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8547 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8548 if test "${ac_cv_have_decl_tzname+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 cat >conftest.
$ac_ext <<_ACEOF
8554 cat confdefs.h
>>conftest.
$ac_ext
8555 cat >>conftest.
$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8563 char *p = (char *) tzname;
8571 rm -f conftest.
$ac_objext
8572 if { (ac_try
="$ac_compile"
8574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8588 *) ac_try_echo
=$ac_try;;
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try
='test -s conftest.$ac_objext'
8596 { (case "(($ac_try" in
8597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_cv_have_decl_tzname=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_cv_have_decl_tzname=no
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8616 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8617 if test $ac_cv_have_decl_tzname = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620 #define HAVE_DECL_TZNAME 1
8625 cat >>confdefs.h <<_ACEOF
8626 #define HAVE_DECL_TZNAME 0
8633 { echo "$as_me:$LINENO: checking for tzname" >&5
8634 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8635 if test "${ac_cv_var_tzname+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8645 #if !HAVE_DECL_TZNAME
8646 extern char *tzname[];
8652 return tzname[0][0];
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (ac_try="$ac_link"
8660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8661 *) ac_try_echo
=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_link") 2>conftest.er1
8666 grep -v '^ *+' conftest.er1
>conftest.err
8668 cat conftest.err
>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8672 { (case "(($ac_try" in
8673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_try") 2>&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; } &&
8681 { ac_try='test -s conftest$ac_exeext'
8682 { (case "(($ac_try" in
8683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8684 *) ac_try_echo
=$ac_try;;
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_try") 2>&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 ac_cv_var_tzname
=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.
$ac_ext >&5
8699 rm -f core conftest.err conftest.
$ac_objext \
8700 conftest
$ac_exeext conftest.
$ac_ext
8702 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8703 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8704 if test $ac_cv_var_tzname = yes; then
8706 cat >>confdefs.h
<<\_ACEOF
8707 #define HAVE_TZNAME 1
8713 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8714 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8715 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 cat >conftest.
$ac_ext <<_ACEOF
8721 cat confdefs.h
>>conftest.
$ac_ext
8722 cat >>conftest.
$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8729 static struct tm ac_aggr;
8730 if (ac_aggr.tm_gmtoff)
8736 rm -f conftest.
$ac_objext
8737 if { (ac_try
="$ac_compile"
8739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_compile") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8753 *) ac_try_echo
=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_try") 2>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try
='test -s conftest.$ac_objext'
8761 { (case "(($ac_try" in
8762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_try") 2>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_member_struct_tm_tm_gmtoff=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8786 static struct tm ac_aggr;
8787 if (sizeof ac_aggr.tm_gmtoff)
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8797 *) ac_try_echo
=$ac_try;;
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1
>conftest.err
8804 cat conftest.err
>&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8808 { (case "(($ac_try" in
8809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_try") 2>&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (case "(($ac_try" in
8819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8820 *) ac_try_echo
=$ac_try;;
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_try") 2>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; }; then
8827 ac_cv_member_struct_tm_tm_gmtoff
=yes
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.
$ac_ext >&5
8832 ac_cv_member_struct_tm_tm_gmtoff
=no
8835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8840 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8841 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8842 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8844 cat >>confdefs.h
<<\_ACEOF
8845 #define HAVE_TM_GMTOFF 1
8850 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8851 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8852 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 cat >conftest.
$ac_ext <<_ACEOF
8858 cat confdefs.h
>>conftest.
$ac_ext
8859 cat >>conftest.
$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 $ac_includes_default
8862 #if HAVE_SYS_SOCKET_H
8863 #include <sys/socket.h>
8872 static struct ifreq ac_aggr;
8873 if (ac_aggr.ifr_flags)
8879 rm -f conftest.
$ac_objext
8880 if { (ac_try
="$ac_compile"
8882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8894 { (case "(($ac_try" in
8895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8896 *) ac_try_echo
=$ac_try;;
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_try") 2>&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; } &&
8903 { ac_try
='test -s conftest.$ac_objext'
8904 { (case "(($ac_try" in
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_try") 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_member_struct_ifreq_ifr_flags=yes
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8925 #if HAVE_SYS_SOCKET_H
8926 #include <sys/socket.h>
8935 static struct ifreq ac_aggr;
8936 if (sizeof ac_aggr.ifr_flags)
8942 rm -f conftest.$ac_objext
8943 if { (ac_try="$ac_compile"
8945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8946 *) ac_try_echo
=$ac_try;;
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8951 grep -v '^ *+' conftest.er1
>conftest.err
8953 cat conftest.err
>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8957 { (case "(($ac_try" in
8958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_try") 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest.$ac_objext'
8967 { (case "(($ac_try" in
8968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8969 *) ac_try_echo
=$ac_try;;
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_try") 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_cv_member_struct_ifreq_ifr_flags
=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.
$ac_ext >&5
8981 ac_cv_member_struct_ifreq_ifr_flags
=no
8984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8989 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8990 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8991 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8993 cat >>confdefs.h
<<_ACEOF
8994 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8999 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
9000 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
9001 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 cat >conftest.
$ac_ext <<_ACEOF
9007 cat confdefs.h
>>conftest.
$ac_ext
9008 cat >>conftest.
$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 #if HAVE_SYS_SOCKET_H
9012 #include <sys/socket.h>
9021 static struct ifreq ac_aggr;
9022 if (ac_aggr.ifr_hwaddr)
9028 rm -f conftest.
$ac_objext
9029 if { (ac_try
="$ac_compile"
9031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_compile") 2>conftest.er1
9037 grep -v '^ *+' conftest.er1 >conftest.err
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9045 *) ac_try_echo
=$ac_try;;
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try
='test -s conftest.$ac_objext'
9053 { (case "(($ac_try" in
9054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 $ac_includes_default
9074 #if HAVE_SYS_SOCKET_H
9075 #include <sys/socket.h>
9084 static struct ifreq ac_aggr;
9085 if (sizeof ac_aggr.ifr_hwaddr)
9091 rm -f conftest.$ac_objext
9092 if { (ac_try="$ac_compile"
9094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9095 *) ac_try_echo
=$ac_try;;
9097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_compile") 2>conftest.er1
9100 grep -v '^ *+' conftest.er1
>conftest.err
9102 cat conftest.err
>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9106 { (case "(($ac_try" in
9107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_try") 2>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest.$ac_objext'
9116 { (case "(($ac_try" in
9117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9118 *) ac_try_echo
=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_try") 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
9133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
9139 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
9140 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
9142 cat >>confdefs.h
<<_ACEOF
9143 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9148 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
9149 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
9150 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 cat >conftest.
$ac_ext <<_ACEOF
9156 cat confdefs.h
>>conftest.
$ac_ext
9157 cat >>conftest.
$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 #if HAVE_SYS_SOCKET_H
9161 #include <sys/socket.h>
9170 static struct ifreq ac_aggr;
9171 if (ac_aggr.ifr_netmask)
9177 rm -f conftest.
$ac_objext
9178 if { (ac_try
="$ac_compile"
9180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9194 *) ac_try_echo
=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try
='test -s conftest.$ac_objext'
9202 { (case "(($ac_try" in
9203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_member_struct_ifreq_ifr_netmask=yes
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 cat >conftest.$ac_ext <<_ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 $ac_includes_default
9223 #if HAVE_SYS_SOCKET_H
9224 #include <sys/socket.h>
9233 static struct ifreq ac_aggr;
9234 if (sizeof ac_aggr.ifr_netmask)
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9244 *) ac_try_echo
=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1
>conftest.err
9251 cat conftest.err
>&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255 { (case "(($ac_try" in
9256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_try") 2>&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest.$ac_objext'
9265 { (case "(($ac_try" in
9266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9267 *) ac_try_echo
=$ac_try;;
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_try") 2>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_member_struct_ifreq_ifr_netmask
=yes
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.
$ac_ext >&5
9279 ac_cv_member_struct_ifreq_ifr_netmask
=no
9282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9287 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
9288 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
9289 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
9291 cat >>confdefs.h
<<_ACEOF
9292 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9297 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
9298 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
9299 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 cat >conftest.
$ac_ext <<_ACEOF
9305 cat confdefs.h
>>conftest.
$ac_ext
9306 cat >>conftest.
$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 $ac_includes_default
9309 #if HAVE_SYS_SOCKET_H
9310 #include <sys/socket.h>
9319 static struct ifreq ac_aggr;
9320 if (ac_aggr.ifr_broadaddr)
9326 rm -f conftest.
$ac_objext
9327 if { (ac_try
="$ac_compile"
9329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333 (eval "$ac_compile") 2>conftest.er1
9335 grep -v '^ *+' conftest.er1 >conftest.err
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } &&
9340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9341 { (case "(($ac_try" in
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_try") 2>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try
='test -s conftest.$ac_objext'
9351 { (case "(($ac_try" in
9352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_try") 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 cat >conftest.$ac_ext <<_ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 $ac_includes_default
9372 #if HAVE_SYS_SOCKET_H
9373 #include <sys/socket.h>
9382 static struct ifreq ac_aggr;
9383 if (sizeof ac_aggr.ifr_broadaddr)
9389 rm -f conftest.$ac_objext
9390 if { (ac_try="$ac_compile"
9392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9393 *) ac_try_echo
=$ac_try;;
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_compile") 2>conftest.er1
9398 grep -v '^ *+' conftest.er1
>conftest.err
9400 cat conftest.err
>&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9404 { (case "(($ac_try" in
9405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_try") 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; } &&
9413 { ac_try='test -s conftest.$ac_objext'
9414 { (case "(($ac_try" in
9415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9416 *) ac_try_echo
=$ac_try;;
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_try") 2>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.
$ac_ext >&5
9428 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9436 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9437 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9438 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9440 cat >>confdefs.h
<<_ACEOF
9441 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9446 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9447 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
9448 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 cat >conftest.
$ac_ext <<_ACEOF
9454 cat confdefs.h
>>conftest.
$ac_ext
9455 cat >>conftest.
$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9457 $ac_includes_default
9458 #if HAVE_SYS_SOCKET_H
9459 #include <sys/socket.h>
9468 static struct ifreq ac_aggr;
9469 if (ac_aggr.ifr_addr)
9475 rm -f conftest.
$ac_objext
9476 if { (ac_try
="$ac_compile"
9478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_compile") 2>conftest.er1
9484 grep -v '^ *+' conftest.er1 >conftest.err
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9490 { (case "(($ac_try" in
9491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9492 *) ac_try_echo
=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_try") 2>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try
='test -s conftest.$ac_objext'
9500 { (case "(($ac_try" in
9501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_member_struct_ifreq_ifr_addr=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 $ac_includes_default
9521 #if HAVE_SYS_SOCKET_H
9522 #include <sys/socket.h>
9531 static struct ifreq ac_aggr;
9532 if (sizeof ac_aggr.ifr_addr)
9538 rm -f conftest.$ac_objext
9539 if { (ac_try="$ac_compile"
9541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9542 *) ac_try_echo
=$ac_try;;
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_compile") 2>conftest.er1
9547 grep -v '^ *+' conftest.er1
>conftest.err
9549 cat conftest.err
>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9553 { (case "(($ac_try" in
9554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_try") 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (case "(($ac_try" in
9564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9565 *) ac_try_echo
=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_try") 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_member_struct_ifreq_ifr_addr
=yes
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.
$ac_ext >&5
9577 ac_cv_member_struct_ifreq_ifr_addr
=no
9580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9585 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9586 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9587 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9589 cat >>confdefs.h
<<_ACEOF
9590 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9598 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9599 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9600 if test "$ac_cv_prog_cc_c89" != no
; then
9601 { echo "$as_me:$LINENO: result: yes" >&5
9602 echo "${ECHO_T}yes" >&6; }
9604 cat >>confdefs.h
<<\_ACEOF
9605 #define PROTOTYPES 1
9609 cat >>confdefs.h
<<\_ACEOF
9610 #define __PROTOTYPES 1
9614 { echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6; }
9618 { echo "$as_me:$LINENO: checking for working volatile" >&5
9619 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9620 if test "${ac_cv_c_volatile+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 cat >conftest.
$ac_ext <<_ACEOF
9626 cat confdefs.h
>>conftest.
$ac_ext
9627 cat >>conftest.
$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9635 int * volatile y = (int *) 0;
9641 rm -f conftest.
$ac_objext
9642 if { (ac_try
="$ac_compile"
9644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_compile") 2>conftest.er1
9650 grep -v '^ *+' conftest.er1 >conftest.err
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9658 *) ac_try_echo
=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try
='test -s conftest.$ac_objext'
9666 { (case "(($ac_try" in
9667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_try") 2>&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_c_volatile=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9686 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9687 if test $ac_cv_c_volatile = no; then
9689 cat >>confdefs.h <<\_ACEOF
9695 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9696 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9697 if test "${ac_cv_c_const+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9710 /* FIXME: Include the comments suggested by Paul. */
9712 /* Ultrix mips cc rejects this. */
9713 typedef int charset[2];
9715 /* SunOS 4.1.1 cc rejects this. */
9716 char const *const *ccp;
9718 /* NEC SVR4.0.2 mips cc rejects this. */
9719 struct point {int x, y;};
9720 static struct point const zero = {0,0};
9721 /* AIX XL C 1.02.0.0 rejects this.
9722 It does not let you subtract one const X* pointer from another in
9723 an arm of an if-expression whose if-part is not a constant
9725 const char *g = "string";
9726 ccp = &g + (g ? g-g : 0);
9727 /* HPUX 7.0 cc rejects these. */
9730 ccp = (char const *const *) p;
9731 { /* SCO 3.2v4 cc rejects this. */
9733 char const *s = 0 ? (char *) 0 : (char const *) 0;
9738 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9740 const int *foo = &x[0];
9743 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9744 typedef const int *iptr;
9748 { /* AIX XL C 1.02.0.0 rejects this saying
9749 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9750 struct s { int j; const int *ap[3]; };
9751 struct s *b; b->j = 5;
9753 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9757 return !x[0] && !zero.x;
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9768 *) ac_try_echo
=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1
>conftest.err
9775 cat conftest.err
>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 { (case "(($ac_try" in
9780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_try") 2>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest.$ac_objext'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9791 *) ac_try_echo
=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.
$ac_ext >&5
9806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9808 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9809 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9810 if test $ac_cv_c_const = no
; then
9812 cat >>confdefs.h
<<\_ACEOF
9818 { echo "$as_me:$LINENO: checking for void * support" >&5
9819 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9820 if test "${emacs_cv_void_star+set}" = set; then
9821 echo $ECHO_N "(cached) $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. */
9838 rm -f conftest.
$ac_objext
9839 if { (ac_try
="$ac_compile"
9841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_compile") 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (case "(($ac_try" in
9854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9855 *) ac_try_echo
=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_try") 2>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try
='test -s conftest.$ac_objext'
9863 { (case "(($ac_try" in
9864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 emacs_cv_void_star=yes
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 emacs_cv_void_star=no
9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9883 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9884 if test $emacs_cv_void_star = yes; then
9885 cat >>confdefs.h <<\_ACEOF
9886 #define POINTER_TYPE void
9890 cat >>confdefs.h <<\_ACEOF
9891 #define POINTER_TYPE char
9900 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9902 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9903 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 cat >conftest.make <<\_ACEOF
9909 @echo '@@@%%%=$(MAKE)=@@@%%%'
9911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9912 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9914 eval ac_cv_prog_make_${ac_make}_set=yes;;
9916 eval ac_cv_prog_make_${ac_make}_set=no;;
9920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9921 { echo "$as_me:$LINENO: result: yes" >&5
9922 echo "${ECHO_T}yes" >&6; }
9925 { echo "$as_me:$LINENO: result: no" >&5
9926 echo "${ECHO_T}no" >&6; }
9927 SET_MAKE="MAKE=${MAKE-make}"
9931 { echo "$as_me:$LINENO: checking for long file names" >&5
9932 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9933 if test "${ac_cv_sys_long_file_names+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 ac_cv_sys_long_file_names=yes
9937 # Test for long file names in all the places we know might matter:
9938 # . the current directory, where building will happen
9939 # $prefix/lib where we will be installing things
9940 # $exec_prefix/lib likewise
9941 # $TMPDIR if set, where it might want to write temporary files
9942 # /tmp where it might want to write temporary files
9945 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9946 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9947 # in the usual case where exec_prefix is '${prefix}'.
9949 . | /* | ?:[\\/]*) ;; #(
9952 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9953 ac_xdir=$ac_dir/cf$$
9954 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9955 ac_tf1=$ac_xdir/conftest9012345
9956 ac_tf2=$ac_xdir/conftest9012346
9957 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9958 ac_cv_sys_long_file_names=no
9959 rm -f -r "$ac_xdir" 2>/dev/null
9960 test $ac_cv_sys_long_file_names = no && break
9963 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9964 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9965 if test $ac_cv_sys_long_file_names = yes; then
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_LONG_FILE_NAMES 1
9974 #### Choose a window system.
9976 { echo "$as_me:$LINENO: checking for X" >&5
9977 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9980 # Check whether --with-x was given.
9981 if test "${with_x+set}" = set; then
9985 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9986 if test "x$with_x" = xno; then
9987 # The user explicitly disabled X.
9990 case $x_includes,$x_libraries in #(
9991 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9992 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9993 { (exit 1); exit 1; }; };; #(
9994 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 # One or both of the vars are not set, and there is no cached value.
9998 ac_x_includes=no ac_x_libraries=no
9999 rm -f -r conftest.dir
10000 if mkdir conftest.dir; then
10002 cat >Imakefile <<'_ACEOF'
10004 @echo incroot='${INCROOT}'
10006 @echo usrlibdir='${USRLIBDIR}'
10008 @echo libdir='${LIBDIR}'
10010 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10012 for ac_var in incroot usrlibdir libdir; do
10013 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
10015 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10016 for ac_extension in a so sl; do
10017 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10018 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10019 ac_im_usrlibdir=$ac_im_libdir; break
10022 # Screen out bogus values from the imake configuration. They are
10023 # bogus both because they are the default anyway, and because
10024 # using them would break gcc on systems where it needs fixed includes.
10025 case $ac_im_incroot in
10026 /usr/include) ac_x_includes= ;;
10027 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10029 case $ac_im_usrlibdir in
10030 /usr/lib | /lib) ;;
10031 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10035 rm -f -r conftest.dir
10038 # Standard set of common directories for X headers.
10039 # Check X11 before X11Rn because it is often a symlink to the current release.
10051 /usr/local/X11/include
10052 /usr/local/X11R6/include
10053 /usr/local/X11R5/include
10054 /usr/local/X11R4/include
10056 /usr/local/include/X11
10057 /usr/local/include/X11R6
10058 /usr/local/include/X11R5
10059 /usr/local/include/X11R4
10063 /usr/XFree86/include/X11
10067 /usr/unsupported/include
10068 /usr/athena/include
10069 /usr/local/x11r5/include
10070 /usr/lpp/Xamples/include
10072 /usr/openwin/include
10073 /usr/openwin/share/include'
10075 if test "$ac_x_includes" = no; then
10076 # Guess where to find include files, by looking for Xlib.h.
10077 # First, try using that file with no special directory specified.
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 #include <X11/Xlib.h>
10086 if { (ac_try="$ac_cpp conftest.$ac_ext"
10087 case "(($ac_try" in
10088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10089 *) ac_try_echo
=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1
>conftest.err
10096 cat conftest.err
>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev
/null
; then
10099 if test -s conftest.err
; then
10100 ac_cpp_err
=$ac_c_preproc_warn_flag
10101 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10108 if test -z "$ac_cpp_err"; then
10109 # We can compile using X headers with no special include directory.
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.
$ac_ext >&5
10115 for ac_dir
in $ac_x_header_dirs; do
10116 if test -r "$ac_dir/X11/Xlib.h"; then
10117 ac_x_includes
=$ac_dir
10123 rm -f conftest.err conftest.
$ac_ext
10124 fi # $ac_x_includes = no
10126 if test "$ac_x_libraries" = no
; then
10127 # Check for the libraries.
10128 # See if we find them without any special options.
10129 # Don't add to $LIBS permanently.
10132 cat >conftest.
$ac_ext <<_ACEOF
10135 cat confdefs.h
>>conftest.
$ac_ext
10136 cat >>conftest.
$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <X11/Xlib.h>
10147 rm -f conftest.
$ac_objext conftest
$ac_exeext
10148 if { (ac_try
="$ac_link"
10149 case "(($ac_try" in
10150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_link") 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10164 *) ac_try_echo
=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try
='test -s conftest$ac_exeext'
10172 { (case "(($ac_try" in
10173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_try") 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10182 # We can link X programs with no special library path.
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10189 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
10191 # Don't even attempt the hair of trying to link an X program!
10192 for ac_extension in a so sl; do
10193 if test -r "$ac_dir/libXt.$ac_extension"; then
10194 ac_x_libraries=$ac_dir
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 fi # $ac_x_libraries = no
10205 case $ac_x_includes,$ac_x_libraries in #(
10206 no,* | *,no | *\'*)
10207 # Didn't find X, or a directory has "'" in its name.
10208 ac_cv_have_x="have_x=no";; #(
10210 # Record where we found X for the cache.
10211 ac_cv_have_x="have_x=yes\
10212 ac_x_includes='$ac_x_includes'\
10213 ac_x_libraries='$ac_x_libraries'"
10219 eval "$ac_cv_have_x"
10222 if test "$have_x" != yes; then
10223 { echo "$as_me:$LINENO: result: $have_x" >&5
10224 echo "${ECHO_T}$have_x" >&6; }
10227 # If each of the values was on the command line, it overrides each guess.
10228 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10229 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10230 # Update the cache value to reflect the command line values.
10231 ac_cv_have_x="have_x=yes\
10232 ac_x_includes='$x_includes'\
10233 ac_x_libraries='$x_libraries'"
10234 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10235 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10238 if test "$no_x" = yes; then
10244 if test "${x_libraries}" != NONE; then
10245 if test -n "${x_libraries}"; then
10246 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
10247 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
10249 x_default_search_path=""
10250 x_search_path=${x_libraries}
10251 if test -z "${x_search_path}"; then
10252 x_search_path=/usr/lib
10254 for x_library in `echo ${x_search_path}: | \
10255 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
10257 ${x_library}/X11/%L/%T/%N%C%S:\
10258 ${x_library}/X11/%l/%T/%N%C%S:\
10259 ${x_library}/X11/%T/%N%C%S:\
10260 ${x_library}/X11/%L/%T/%N%S:\
10261 ${x_library}/X11/%l/%T/%N%S:\
10262 ${x_library}/X11/%T/%N%S"
10263 if test x"${x_default_search_path}" = x; then
10264 x_default_search_path=${x_search_path}
10266 x_default_search_path="${x_search_path}:${x_default_search_path}"
10270 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10271 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
10274 if test x"${x_includes}" = x; then
10275 bitmapdir=/usr/include/X11/bitmaps
10277 # accumulate include directories that have X11 bitmap subdirectories
10279 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
10280 if test -d "${bmd}/X11/bitmaps"; then
10281 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10283 if test -d "${bmd}/bitmaps"; then
10284 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10287 if test ${bmd_acc} != "dummyval"; then
10288 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
10293 if test "${with_carbon}" != no; then
10294 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10295 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10296 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10297 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10301 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10303 # Is the header compilable?
10304 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10305 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
10306 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 $ac_includes_default
10313 #include <Carbon/Carbon.h>
10315 rm -f conftest.$ac_objext
10316 if { (ac_try="$ac_compile"
10317 case "(($ac_try" in
10318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10319 *) ac_try_echo
=$ac_try;;
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_compile") 2>conftest.er1
10324 grep -v '^ *+' conftest.er1
>conftest.err
10326 cat conftest.err
>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10330 { (case "(($ac_try" in
10331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest.$ac_objext'
10340 { (case "(($ac_try" in
10341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10342 *) ac_try_echo
=$ac_try;;
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_try") 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_header_compiler
=yes
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.
$ac_ext >&5
10354 ac_header_compiler
=no
10357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10359 echo "${ECHO_T}$ac_header_compiler" >&6; }
10361 # Is the header present?
10362 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10363 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 #include <Carbon/Carbon.h>
10372 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10373 case "(($ac_try" in
10374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } >/dev/null; then
10385 if test -s conftest.err; then
10386 ac_cpp_err=$ac_c_preproc_warn_flag
10387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10394 if test -z "$ac_cpp_err"; then
10395 ac_header_preproc=yes
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_header_preproc=no
10403 rm -f conftest.err conftest.$ac_ext
10404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10405 echo "${ECHO_T}$ac_header_preproc" >&6; }
10407 # So? What about this header?
10408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10410 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10411 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10413 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10414 ac_header_preproc=yes
10417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10418 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10420 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
10422 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
10424 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
10428 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10432 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10433 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10434 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10439 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10440 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10443 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10449 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
10450 if test "${with_carbon+set}" != set \
10451 && test "${carbon_appdir_x+set}" != set; then
10452 for var in with_x with_x_toolkit with_gtk with_xim \
10453 with_xpm with_jpeg with_tiff with_gif with_png; do
10454 if eval test \"\${$var+set}\" = set; then
10461 if test "${HAVE_CARBON}" = yes; then
10465 case "${window_system}" in
10469 case "${with_x_toolkit}" in
10470 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10471 motif ) USE_X_TOOLKIT=MOTIF ;;
10473 USE_X_TOOLKIT=none ;;
10474 no ) USE_X_TOOLKIT=none ;;
10475 * ) USE_X_TOOLKIT=maybe ;;
10485 ### If we're using X11, we should use the X menu package.
10487 case ${HAVE_X11} in
10488 yes ) HAVE_MENUS=yes ;;
10491 if test "${opsys}" = "hpux9"; then
10492 case "${x_libraries}" in
10494 opsysfile="s/hpux9-x11r4.h"
10499 if test "${opsys}" = "hpux9shr"; then
10500 case "${x_libraries}" in
10502 opsysfile="s/hpux9shxr4.h"
10507 ### Compute the unexec source name from the object name.
10508 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
10510 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10511 # Assume not, until told otherwise.
10513 doug_lea_malloc=yes
10514 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10515 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
10516 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 cat >conftest.$ac_ext <<_ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10527 #define malloc_get_state innocuous_malloc_get_state
10529 /* System header to define __stub macros and hopefully few prototypes,
10530 which can conflict with char malloc_get_state (); below.
10531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10532 <limits.h> exists even on freestanding compilers. */
10535 # include <limits.h>
10537 # include <assert.h>
10540 #undef malloc_get_state
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10548 char malloc_get_state ();
10549 /* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10559 return malloc_get_state ();
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10568 *) ac_try_echo
=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1
>conftest.err
10575 cat conftest.err
>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10579 { (case "(($ac_try" in
10580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest$ac_exeext'
10589 { (case "(($ac_try" in
10590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10591 *) ac_try_echo
=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_try") 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_cv_func_malloc_get_state
=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.
$ac_ext >&5
10603 ac_cv_func_malloc_get_state
=no
10606 rm -f core conftest.err conftest.
$ac_objext \
10607 conftest
$ac_exeext conftest.
$ac_ext
10609 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10610 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
10611 if test $ac_cv_func_malloc_get_state = yes; then
10617 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10618 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
10619 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 cat >conftest.
$ac_ext <<_ACEOF
10625 cat confdefs.h
>>conftest.
$ac_ext
10626 cat >>conftest.
$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10630 #define malloc_set_state innocuous_malloc_set_state
10632 /* System header to define __stub macros and hopefully few prototypes,
10633 which can conflict with char malloc_set_state (); below.
10634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10635 <limits.h> exists even on freestanding compilers. */
10638 # include <limits.h>
10640 # include <assert.h>
10643 #undef malloc_set_state
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10651 char malloc_set_state ();
10652 /* The GNU C library defines this for functions which it implements
10653 to always fail with ENOSYS. Some functions are actually named
10654 something starting with __ and the normal name is an alias. */
10655 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10662 return malloc_set_state ();
10667 rm -f conftest.
$ac_objext conftest
$ac_exeext
10668 if { (ac_try
="$ac_link"
10669 case "(($ac_try" in
10670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1 >conftest.err
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682 { (case "(($ac_try" in
10683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10684 *) ac_try_echo
=$ac_try;;
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_try") 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; } &&
10691 { ac_try
='test -s conftest$ac_exeext'
10692 { (case "(($ac_try" in
10693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_func_malloc_set_state=yes
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_cv_func_malloc_set_state=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10713 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
10714 if test $ac_cv_func_malloc_set_state = yes; then
10720 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10721 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
10722 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 extern void (* __after_morecore_hook)();
10735 __after_morecore_hook = 0
10740 rm -f conftest.$ac_objext conftest$ac_exeext
10741 if { (ac_try="$ac_link"
10742 case "(($ac_try" in
10743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10744 *) ac_try_echo
=$ac_try;;
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_link") 2>conftest.er1
10749 grep -v '^ *+' conftest.er1
>conftest.err
10751 cat conftest.err
>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10755 { (case "(($ac_try" in
10756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10767 *) ac_try_echo
=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 emacs_cv_var___after_morecore_hook
=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.
$ac_ext >&5
10779 emacs_cv_var___after_morecore_hook
=no
10782 rm -f core conftest.err conftest.
$ac_objext \
10783 conftest
$ac_exeext conftest.
$ac_ext
10785 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10786 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10787 if test $emacs_cv_var___after_morecore_hook = no
; then
10790 if test "${system_malloc}" = "yes"; then
10792 GNU_MALLOC_reason
="
10793 (The GNU allocators don't work with this system configuration.)"
10795 if test "$doug_lea_malloc" = "yes" ; then
10796 if test "$GNU_MALLOC" = yes ; then
10797 GNU_MALLOC_reason
="
10798 (Using Doug Lea's new malloc from the GNU C Library.)"
10801 cat >>confdefs.h
<<\_ACEOF
10802 #define DOUG_LEA_MALLOC 1
10807 if test x
"${REL_ALLOC}" = x
; then
10808 REL_ALLOC
=${GNU_MALLOC}
10814 for ac_header
in stdlib.h unistd.h
10816 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10820 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 ac_res
=`eval echo '${'$as_ac_Header'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10827 # Is the header compilable?
10828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10830 cat >conftest.
$ac_ext <<_ACEOF
10833 cat confdefs.h
>>conftest.
$ac_ext
10834 cat >>conftest.
$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 #include <$ac_header>
10839 rm -f conftest.
$ac_objext
10840 if { (ac_try
="$ac_compile"
10841 case "(($ac_try" in
10842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_compile") 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10856 *) ac_try_echo
=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try
='test -s conftest.$ac_objext'
10864 { (case "(($ac_try" in
10865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 ac_header_compiler=yes
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 ac_header_compiler=no
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10883 echo "${ECHO_T}$ac_header_compiler" >&6; }
10885 # Is the header present?
10886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10888 cat >conftest.$ac_ext <<_ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 #include <$ac_header>
10896 if { (ac_try="$ac_cpp conftest.$ac_ext"
10897 case "(($ac_try" in
10898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10899 *) ac_try_echo
=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10904 grep -v '^ *+' conftest.er1
>conftest.err
10906 cat conftest.err
>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } >/dev
/null
; then
10909 if test -s conftest.err
; then
10910 ac_cpp_err
=$ac_c_preproc_warn_flag
10911 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10918 if test -z "$ac_cpp_err"; then
10919 ac_header_preproc
=yes
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.
$ac_ext >&5
10924 ac_header_preproc
=no
10927 rm -f conftest.err conftest.
$ac_ext
10928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10929 echo "${ECHO_T}$ac_header_preproc" >&6; }
10931 # So? What about this header?
10932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10938 ac_header_preproc
=yes
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 eval "$as_ac_Header=\$ac_header_preproc"
10963 ac_res
=`eval echo '${'$as_ac_Header'}'`
10964 { echo "$as_me:$LINENO: result: $ac_res" >&5
10965 echo "${ECHO_T}$ac_res" >&6; }
10968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10969 cat >>confdefs.h
<<_ACEOF
10970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10978 for ac_func
in getpagesize
10980 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10983 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 cat >conftest.
$ac_ext <<_ACEOF
10989 cat confdefs.h
>>conftest.
$ac_ext
10990 cat >>conftest.
$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10994 #define $ac_func innocuous_$ac_func
10996 /* System header to define __stub macros and hopefully few prototypes,
10997 which can conflict with char $ac_func (); below.
10998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10999 <limits.h> exists even on freestanding compilers. */
11002 # include <limits.h>
11004 # include <assert.h>
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11016 /* The GNU C library defines this for functions which it implements
11017 to always fail with ENOSYS. Some functions are actually named
11018 something starting with __ and the normal name is an alias. */
11019 #if defined __stub_$ac_func || defined __stub___$ac_func
11026 return $ac_func ();
11031 rm -f conftest.
$ac_objext conftest
$ac_exeext
11032 if { (ac_try
="$ac_link"
11033 case "(($ac_try" in
11034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_link") 2>conftest.er1
11040 grep -v '^ *+' conftest.er1 >conftest.err
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11048 *) ac_try_echo
=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try
='test -s conftest$ac_exeext'
11056 { (case "(($ac_try" in
11057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_try") 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 eval "$as_ac_var=yes"
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 eval "$as_ac_var=no"
11073 rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11076 ac_res=`eval echo '${'$as_ac_var'}'`
11077 { echo "$as_me:$LINENO: result: $ac_res" >&5
11078 echo "${ECHO_T}$ac_res" >&6; }
11079 if test `eval echo '${'$as_ac_var'}'` = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11087 { echo "$as_me:$LINENO: checking for working mmap" >&5
11088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 if test "$cross_compiling" = yes; then
11093 ac_cv_func_mmap_fixed_mapped=no
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11102 /* malloc might have been renamed as rpl_malloc. */
11105 /* Thanks to Mike Haertel and Jim Avera for this test.
11106 Here is a matrix of mmap possibilities:
11107 mmap private not fixed
11108 mmap private fixed at somewhere currently unmapped
11109 mmap private fixed at somewhere already mapped
11110 mmap shared not fixed
11111 mmap shared fixed at somewhere currently unmapped
11112 mmap shared fixed at somewhere already mapped
11113 For private mappings, we should verify that changes cannot be read()
11114 back from the file, nor mmap's back from the file at a different
11115 address. (There have been systems where private was not correctly
11116 implemented like the infamous i386 svr4.0, and systems where the
11117 VM page cache was not coherent with the file system buffer cache
11118 like early versions of FreeBSD and possibly contemporary NetBSD.)
11119 For shared mappings, we should conversely verify that changes get
11120 propagated back to all the places they're supposed to be.
11122 Grep wants private fixed already mapped.
11123 The main things grep needs to know about mmap are:
11124 * does it exist and is it safe to write into the mmap'd area
11125 * how to use it (BSD variants) */
11128 #include <sys/mman.h>
11130 #if !STDC_HEADERS && !HAVE_STDLIB_H
11134 /* This mess was copied from the GNU getpagesize.h. */
11135 #if !HAVE_GETPAGESIZE
11136 /* Assume that all systems that can run configure have sys/param.h. */
11137 # if !HAVE_SYS_PARAM_H
11138 # define HAVE_SYS_PARAM_H 1
11141 # ifdef _SC_PAGESIZE
11142 # define getpagesize() sysconf(_SC_PAGESIZE)
11143 # else /* no _SC_PAGESIZE */
11144 # if HAVE_SYS_PARAM_H
11145 # include <sys/param.h>
11146 # ifdef EXEC_PAGESIZE
11147 # define getpagesize() EXEC_PAGESIZE
11148 # else /* no EXEC_PAGESIZE */
11150 # define getpagesize() NBPG * CLSIZE
11153 # endif /* no CLSIZE */
11154 # else /* no NBPG */
11156 # define getpagesize() NBPC
11157 # else /* no NBPC */
11159 # define getpagesize() PAGESIZE
11160 # endif /* PAGESIZE */
11161 # endif /* no NBPC */
11162 # endif /* no NBPG */
11163 # endif /* no EXEC_PAGESIZE */
11164 # else /* no HAVE_SYS_PARAM_H */
11165 # define getpagesize() 8192 /* punt totally */
11166 # endif /* no HAVE_SYS_PARAM_H */
11167 # endif /* no _SC_PAGESIZE */
11169 #endif /* no HAVE_GETPAGESIZE */
11174 char *data, *data2, *data3;
11178 pagesize = getpagesize ();
11180 /* First, make a file with some known garbage in it. */
11181 data = (char *) malloc (pagesize);
11184 for (i = 0; i < pagesize; ++i)
11185 *(data + i) = rand ();
11187 fd = creat ("conftest.mmap", 0600);
11190 if (write (fd, data, pagesize) != pagesize)
11194 /* Next, try to mmap the file at a fixed address which already has
11195 something else allocated at it. If we can, also make sure that
11196 we see the same garbage. */
11197 fd = open ("conftest.mmap", O_RDWR);
11200 data2 = (char *) malloc (2 * pagesize);
11203 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11207 for (i = 0; i < pagesize; ++i)
11208 if (*(data + i) != *(data2 + i))
11211 /* Finally, make sure that changes to the mapped area do not
11212 percolate back to the file as seen by read(). (This is a bug on
11213 some variants of i386 svr4.0.) */
11214 for (i = 0; i < pagesize; ++i)
11215 *(data2 + i) = *(data2 + i) + 1;
11216 data3 = (char *) malloc (pagesize);
11219 if (read (fd, data3, pagesize) != pagesize)
11221 for (i = 0; i < pagesize; ++i)
11222 if (*(data + i) != *(data3 + i))
11228 rm -f conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11232 *) ac_try_echo
=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_link") 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11239 { (case "(($ac_try" in
11240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_func_mmap_fixed_mapped=yes
11250 echo "$as_me: program exited with status $ac_status" >&5
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 ( exit $ac_status )
11255 ac_cv_func_mmap_fixed_mapped=no
11257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11263 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11264 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_MMAP 1
11271 rm -f conftest.mmap
11273 if test $use_mmap_for_buffers = yes; then
11277 LIBS="$libsrc_libs $LIBS"
11280 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11281 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
11282 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-ldnet $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11304 return dnet_ntoa ();
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (ac_try="$ac_link"
11311 case "(($ac_try" in
11312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11313 *) ac_try_echo
=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_link") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1
>conftest.err
11320 cat conftest.err
>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (case "(($ac_try" in
11325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_try") 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest$ac_exeext'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11336 *) ac_try_echo
=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_lib_dnet_dnet_ntoa
=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.
$ac_ext >&5
11348 ac_cv_lib_dnet_dnet_ntoa
=no
11351 rm -f core conftest.err conftest.
$ac_objext \
11352 conftest
$ac_exeext conftest.
$ac_ext
11353 LIBS
=$ac_check_lib_save_LIBS
11355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11356 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11357 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11358 cat >>confdefs.h
<<_ACEOF
11359 #define HAVE_LIBDNET 1
11362 LIBS
="-ldnet $LIBS"
11367 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11368 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
11369 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 ac_check_lib_save_LIBS
=$LIBS
11373 LIBS
="-lXbsd $LIBS"
11374 cat >conftest.
$ac_ext <<_ACEOF
11377 cat confdefs.h
>>conftest.
$ac_ext
11378 cat >>conftest.
$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11390 rm -f conftest.
$ac_objext conftest
$ac_exeext
11391 if { (ac_try
="$ac_link"
11392 case "(($ac_try" in
11393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_link") 2>conftest.er1
11399 grep -v '^ *+' conftest.er1 >conftest.err
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11405 { (case "(($ac_try" in
11406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11407 *) ac_try_echo
=$ac_try;;
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_try") 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try
='test -s conftest$ac_exeext'
11415 { (case "(($ac_try" in
11416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_lib_Xbsd_main=yes
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11429 ac_cv_lib_Xbsd_main=no
11432 rm -f core conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11436 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11437 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
11438 if test $ac_cv_lib_Xbsd_main = yes; then
11439 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11444 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11445 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
11446 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-lpthreads $LIBS"
11451 cat >conftest.$ac_ext <<_ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11468 return cma_open ();
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (ac_try="$ac_link"
11475 case "(($ac_try" in
11476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11477 *) ac_try_echo
=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_link") 2>conftest.er1
11482 grep -v '^ *+' conftest.er1
>conftest.err
11484 cat conftest.err
>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (case "(($ac_try" in
11489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11500 *) ac_try_echo
=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_lib_pthreads_cma_open
=yes
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.
$ac_ext >&5
11512 ac_cv_lib_pthreads_cma_open
=no
11515 rm -f core conftest.err conftest.
$ac_objext \
11516 conftest
$ac_exeext conftest.
$ac_ext
11517 LIBS
=$ac_check_lib_save_LIBS
11519 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11520 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
11521 if test $ac_cv_lib_pthreads_cma_open = yes; then
11522 cat >>confdefs.h
<<_ACEOF
11523 #define HAVE_LIBPTHREADS 1
11526 LIBS
="-lpthreads $LIBS"
11531 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
11532 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
11533 if test -d /usr
/X386
/include
; then
11535 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
11539 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
11540 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
11545 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11546 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
11547 if test "${gdb_cv_bigtoc+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11553 *) gdb_cv_bigtoc
=-bbigtoc ;;
11556 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11557 cat >conftest.
$ac_ext <<_ACEOF
11560 cat confdefs.h
>>conftest.
$ac_ext
11561 cat >>conftest.
$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11572 rm -f conftest.
$ac_objext conftest
$ac_exeext
11573 if { (ac_try
="$ac_link"
11574 case "(($ac_try" in
11575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_link") 2>conftest.er1
11581 grep -v '^ *+' conftest.er1 >conftest.err
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11589 *) ac_try_echo
=$ac_try;;
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try
='test -s conftest$ac_exeext'
11597 { (case "(($ac_try" in
11598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_try") 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11618 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11619 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
11623 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11624 # used for the tests that follow. We set them back to REAL_CFLAGS and
11625 # REAL_CPPFLAGS later on.
11627 REAL_CPPFLAGS="$CPPFLAGS"
11629 if test "${HAVE_X11}" = "yes"; then
11630 DEFS="$C_SWITCH_X_SITE $DEFS"
11631 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11633 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11634 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11636 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11637 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11638 # but it's more convenient here to set LD_RUN_PATH
11639 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11640 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11641 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11645 if test "${opsys}" = "gnu-linux"; then
11646 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11647 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11658 XOpenDisplay ("foo");
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11667 *) ac_try_echo
=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1
>conftest.err
11674 cat conftest.err
>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11678 { (case "(($ac_try" in
11679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try='test -s conftest$ac_exeext'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11690 *) ac_try_echo
=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 xlinux_first_failure
=no
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.
$ac_ext >&5
11702 xlinux_first_failure
=yes
11705 rm -f core conftest.err conftest.
$ac_objext \
11706 conftest
$ac_exeext conftest.
$ac_ext
11707 if test "${xlinux_first_failure}" = "yes"; then
11708 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11709 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11710 OLD_CPPFLAGS
="$CPPFLAGS"
11712 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11713 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11714 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11715 LIBS
="$LIBS -b i486-linuxaout"
11716 cat >conftest.
$ac_ext <<_ACEOF
11719 cat confdefs.h
>>conftest.
$ac_ext
11720 cat >>conftest.
$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11726 XOpenDisplay ("foo");
11731 rm -f conftest.
$ac_objext conftest
$ac_exeext
11732 if { (ac_try
="$ac_link"
11733 case "(($ac_try" in
11734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11748 *) ac_try_echo
=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try
='test -s conftest$ac_exeext'
11756 { (case "(($ac_try" in
11757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 xlinux_second_failure=no
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 xlinux_second_failure=yes
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 if test "${xlinux_second_failure}" = "yes"; then
11776 # If we get the same failure with -b, there is no use adding -b.
11777 # So take it out. This plays safe.
11778 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11779 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11780 CPPFLAGS="$OLD_CPPFLAGS"
11782 { echo "$as_me:$LINENO: result: no" >&5
11783 echo "${ECHO_T}no" >&6; }
11785 { echo "$as_me:$LINENO: result: yes" >&5
11786 echo "${ECHO_T}yes" >&6; }
11789 { echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6; }
11794 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11795 # header files included from there.
11796 { echo "$as_me:$LINENO: checking for Xkb" >&5
11797 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 #include <X11/Xlib.h>
11805 #include <X11/XKBlib.h>
11809 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (ac_try="$ac_link"
11816 case "(($ac_try" in
11817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11818 *) ac_try_echo
=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_link") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1
>conftest.err
11825 cat conftest.err
>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (case "(($ac_try" in
11830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11841 *) ac_try_echo
=$ac_try;;
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.
$ac_ext >&5
11856 rm -f core conftest.err conftest.
$ac_objext \
11857 conftest
$ac_exeext conftest.
$ac_ext
11858 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11859 echo "${ECHO_T}$emacs_xkb" >&6; }
11860 if test $emacs_xkb = yes; then
11862 cat >>confdefs.h
<<\_ACEOF
11863 #define HAVE_XKBGETKEYBOARD 1
11872 for ac_func
in XrmSetDatabase XScreenResourceString \
11873 XScreenNumberOfScreen XSetWMProtocols
11875 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11878 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 cat >conftest.
$ac_ext <<_ACEOF
11884 cat confdefs.h
>>conftest.
$ac_ext
11885 cat >>conftest.
$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11897 # include <limits.h>
11899 # include <assert.h>
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11921 return $ac_func ();
11926 rm -f conftest.
$ac_objext conftest
$ac_exeext
11927 if { (ac_try
="$ac_link"
11928 case "(($ac_try" in
11929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
11935 grep -v '^ *+' conftest.er1 >conftest.err
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (case "(($ac_try" in
11942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11943 *) ac_try_echo
=$ac_try;;
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_try") 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try
='test -s conftest$ac_exeext'
11951 { (case "(($ac_try" in
11952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_try") 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 eval "$as_ac_var=yes"
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 eval "$as_ac_var=no"
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11971 ac_res=`eval echo '${'$as_ac_var'}'`
11972 { echo "$as_me:$LINENO: result: $ac_res" >&5
11973 echo "${ECHO_T}$ac_res" >&6; }
11974 if test `eval echo '${'$as_ac_var'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11984 if test "${window_system}" = "x11"; then
11985 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11986 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11987 if test "${emacs_cv_x11_version_6+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 cat >conftest.$ac_ext <<_ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 #include <X11/Xlib.h>
12000 #if XlibSpecificationRelease < 6
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12012 *) ac_try_echo
=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1
>conftest.err
12019 cat conftest.err
>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12035 *) ac_try_echo
=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 emacs_cv_x11_version_6
=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.
$ac_ext >&5
12047 emacs_cv_x11_version_6
=no
12050 rm -f core conftest.err conftest.
$ac_objext \
12051 conftest
$ac_exeext conftest.
$ac_ext
12054 if test $emacs_cv_x11_version_6 = yes; then
12055 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12056 echo "${ECHO_T}6 or newer" >&6; }
12058 cat >>confdefs.h
<<\_ACEOF
12059 #define HAVE_X11R6 1
12063 { echo "$as_me:$LINENO: result: before 6" >&5
12064 echo "${ECHO_T}before 6" >&6; }
12068 if test "${window_system}" = "x11"; then
12069 { echo "$as_me:$LINENO: checking X11 version 5" >&5
12070 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
12071 if test "${emacs_cv_x11_version_5+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 cat >conftest.
$ac_ext <<_ACEOF
12077 cat confdefs.h
>>conftest.
$ac_ext
12078 cat >>conftest.
$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 #include <X11/Xlib.h>
12084 #if XlibSpecificationRelease < 5
12092 rm -f conftest.
$ac_objext conftest
$ac_exeext
12093 if { (ac_try
="$ac_link"
12094 case "(($ac_try" in
12095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_link") 2>conftest.er1
12101 grep -v '^ *+' conftest.er1 >conftest.err
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107 { (case "(($ac_try" in
12108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12109 *) ac_try_echo
=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_try") 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try
='test -s conftest$ac_exeext'
12117 { (case "(($ac_try" in
12118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 emacs_cv_x11_version_5=yes
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 emacs_cv_x11_version_5=no
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12138 if test $emacs_cv_x11_version_5 = yes; then
12139 { echo "$as_me:$LINENO: result: 5 or newer" >&5
12140 echo "${ECHO_T}5 or newer" >&6; }
12143 cat >>confdefs.h <<\_ACEOF
12144 #define HAVE_X11R5 1
12149 { echo "$as_me:$LINENO: result: before 5" >&5
12150 echo "${ECHO_T}before 5" >&6; }
12155 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
12158 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
12159 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
12160 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
12161 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
12162 { (exit 1); exit 1; }; };
12166 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
12168 if test "X${with_pkg_config_prog}" != X; then
12169 PKG_CONFIG="${with_pkg_config_prog}"
12174 if test -z "$PKG_CONFIG"; then
12175 # Extract the first word of "pkg-config", so it can be a program name with args.
12176 set dummy pkg-config; ac_word=$2
12177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12179 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 case $PKG_CONFIG in
12184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12207 if test -n "$PKG_CONFIG"; then
12208 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12209 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12211 { echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6; }
12218 if test "$PKG_CONFIG" = "no" ; then
12219 { { echo "$as_me:$LINENO: error:
12220 *** 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
12221 echo "$as_me: error:
12222 *** 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;}
12223 { (exit 1); exit 1; }; }
12225 PKG_CONFIG_MIN_VERSION=0.9.0
12226 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12227 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
12228 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
12230 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
12231 { echo "$as_me:$LINENO: result: yes" >&5
12232 echo "${ECHO_T}yes" >&6; }
12235 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12236 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
12237 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
12238 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12239 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
12241 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12242 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
12243 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
12244 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12245 echo "${ECHO_T}$GTK_LIBS" >&6; }
12247 { echo "$as_me:$LINENO: result: no" >&5
12248 echo "${ECHO_T}no" >&6; }
12251 ## If we have a custom action on failure, don't print errors, but
12252 ## do set a variable so people can do so.
12253 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
12254 echo $GTK_PKG_ERRORS
12260 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12261 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12265 if test $succeeded = yes; then
12268 { { 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
12269 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;}
12270 { (exit 1); exit 1; }; }
12275 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
12276 CFLAGS="$CFLAGS $GTK_CFLAGS"
12277 LIBS="$GTK_LIBS $LIBS"
12280 for ac_func in gtk_main
12282 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12296 #define $ac_func innocuous_$ac_func
12298 /* System header to define __stub macros and hopefully few prototypes,
12299 which can conflict with char $ac_func (); below.
12300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12301 <limits.h> exists even on freestanding compilers. */
12304 # include <limits.h>
12306 # include <assert.h>
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12318 /* The GNU C library defines this for functions which it implements
12319 to always fail with ENOSYS. Some functions are actually named
12320 something starting with __ and the normal name is an alias. */
12321 #if defined __stub_$ac_func || defined __stub___$ac_func
12328 return $ac_func ();
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12337 *) ac_try_echo
=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1
>conftest.err
12344 cat conftest.err
>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348 { (case "(($ac_try" in
12349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12360 *) ac_try_echo
=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 eval "$as_ac_var=yes"
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.
$ac_ext >&5
12372 eval "$as_ac_var=no"
12375 rm -f core conftest.err conftest.
$ac_objext \
12376 conftest
$ac_exeext conftest.
$ac_ext
12378 ac_res
=`eval echo '${'$as_ac_var'}'`
12379 { echo "$as_me:$LINENO: result: $ac_res" >&5
12380 echo "${ECHO_T}$ac_res" >&6; }
12381 if test `eval echo '${'$as_ac_var'}'` = yes; then
12382 cat >>confdefs.h
<<_ACEOF
12383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12389 if test "${GTK_COMPILES}" != "yes"; then
12390 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12391 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12392 { (exit 1); exit 1; }; };
12397 cat >>confdefs.h
<<\_ACEOF
12403 if test "$with_toolkit_scroll_bars" != no
; then
12404 with_toolkit_scroll_bars
=yes
12407 HAVE_GTK_MULTIDISPLAY
=no
12409 for ac_func
in gdk_display_open
12411 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12414 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 cat >conftest.
$ac_ext <<_ACEOF
12420 cat confdefs.h
>>conftest.
$ac_ext
12421 cat >>conftest.
$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12425 #define $ac_func innocuous_$ac_func
12427 /* System header to define __stub macros and hopefully few prototypes,
12428 which can conflict with char $ac_func (); below.
12429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430 <limits.h> exists even on freestanding compilers. */
12433 # include <limits.h>
12435 # include <assert.h>
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12447 /* The GNU C library defines this for functions which it implements
12448 to always fail with ENOSYS. Some functions are actually named
12449 something starting with __ and the normal name is an alias. */
12450 #if defined __stub_$ac_func || defined __stub___$ac_func
12457 return $ac_func ();
12462 rm -f conftest.
$ac_objext conftest
$ac_exeext
12463 if { (ac_try
="$ac_link"
12464 case "(($ac_try" in
12465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_link") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12479 *) ac_try_echo
=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try
='test -s conftest$ac_exeext'
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_try") 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 eval "$as_ac_var=yes"
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 eval "$as_ac_var=no"
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12507 ac_res=`eval echo '${'$as_ac_var'}'`
12508 { echo "$as_me:$LINENO: result: $ac_res" >&5
12509 echo "${ECHO_T}$ac_res" >&6; }
12510 if test `eval echo '${'$as_ac_var'}'` = yes; then
12511 cat >>confdefs.h <<_ACEOF
12512 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12514 HAVE_GTK_MULTIDISPLAY=yes
12518 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12520 cat >>confdefs.h <<\_ACEOF
12521 #define HAVE_GTK_MULTIDISPLAY 1
12525 HAVE_GTK_FILE_SELECTION=no
12527 for ac_func in gtk_file_selection_new
12529 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 cat >conftest.$ac_ext <<_ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12543 #define $ac_func innocuous_$ac_func
12545 /* System header to define __stub macros and hopefully few prototypes,
12546 which can conflict with char $ac_func (); below.
12547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12548 <limits.h> exists even on freestanding compilers. */
12551 # include <limits.h>
12553 # include <assert.h>
12558 /* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12565 /* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568 #if defined __stub_$ac_func || defined __stub___$ac_func
12575 return $ac_func ();
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (ac_try="$ac_link"
12582 case "(($ac_try" in
12583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12584 *) ac_try_echo
=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_link") 2>conftest.er1
12589 grep -v '^ *+' conftest.er1
>conftest.err
12591 cat conftest.err
>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12595 { (case "(($ac_try" in
12596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12607 *) ac_try_echo
=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 eval "$as_ac_var=yes"
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.
$ac_ext >&5
12619 eval "$as_ac_var=no"
12622 rm -f core conftest.err conftest.
$ac_objext \
12623 conftest
$ac_exeext conftest.
$ac_ext
12625 ac_res
=`eval echo '${'$as_ac_var'}'`
12626 { echo "$as_me:$LINENO: result: $ac_res" >&5
12627 echo "${ECHO_T}$ac_res" >&6; }
12628 if test `eval echo '${'$as_ac_var'}'` = yes; then
12629 cat >>confdefs.h
<<_ACEOF
12630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632 HAVE_GTK_FILE_SELECTION
=yes
12637 HAVE_GTK_FILE_CHOOSER
=no
12639 for ac_func
in gtk_file_chooser_dialog_new
12641 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12644 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 cat >conftest.
$ac_ext <<_ACEOF
12650 cat confdefs.h
>>conftest.
$ac_ext
12651 cat >>conftest.
$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12655 #define $ac_func innocuous_$ac_func
12657 /* System header to define __stub macros and hopefully few prototypes,
12658 which can conflict with char $ac_func (); below.
12659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12660 <limits.h> exists even on freestanding compilers. */
12663 # include <limits.h>
12665 # include <assert.h>
12670 /* Override any GCC internal prototype to avoid an error.
12671 Use char because int might match the return type of a GCC
12672 builtin and then its argument prototype would still apply. */
12677 /* The GNU C library defines this for functions which it implements
12678 to always fail with ENOSYS. Some functions are actually named
12679 something starting with __ and the normal name is an alias. */
12680 #if defined __stub_$ac_func || defined __stub___$ac_func
12687 return $ac_func ();
12692 rm -f conftest.
$ac_objext conftest
$ac_exeext
12693 if { (ac_try
="$ac_link"
12694 case "(($ac_try" in
12695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_link") 2>conftest.er1
12701 grep -v '^ *+' conftest.er1 >conftest.err
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12709 *) ac_try_echo
=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try
='test -s conftest$ac_exeext'
12717 { (case "(($ac_try" in
12718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_try") 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 eval "$as_ac_var=yes"
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 eval "$as_ac_var=no"
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12737 ac_res=`eval echo '${'$as_ac_var'}'`
12738 { echo "$as_me:$LINENO: result: $ac_res" >&5
12739 echo "${ECHO_T}$ac_res" >&6; }
12740 if test `eval echo '${'$as_ac_var'}'` = yes; then
12741 cat >>confdefs.h <<_ACEOF
12742 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12744 HAVE_GTK_FILE_CHOOSER=yes
12749 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12750 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_GTK_FILE_BOTH 1
12758 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12759 HAVE_GTK_AND_PTHREAD=no
12761 for ac_header in pthread.h
12763 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 ac_res=`eval echo '${'$as_ac_Header'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772 echo "${ECHO_T}$ac_res" >&6; }
12774 # Is the header compilable?
12775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 #include <$ac_header>
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12790 *) ac_try_echo
=$ac_try;;
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_compile") 2>conftest.er1
12795 grep -v '^ *+' conftest.er1
>conftest.err
12797 cat conftest.err
>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12801 { (case "(($ac_try" in
12802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; } &&
12810 { ac_try='test -s conftest.$ac_objext'
12811 { (case "(($ac_try" in
12812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12813 *) ac_try_echo
=$ac_try;;
12815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12816 (eval "$ac_try") 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_header_compiler
=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.
$ac_ext >&5
12825 ac_header_compiler
=no
12828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830 echo "${ECHO_T}$ac_header_compiler" >&6; }
12832 # Is the header present?
12833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12835 cat >conftest.
$ac_ext <<_ACEOF
12838 cat confdefs.h
>>conftest.
$ac_ext
12839 cat >>conftest.
$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <$ac_header>
12843 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12844 case "(($ac_try" in
12845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } >/dev/null; then
12856 if test -s conftest.err; then
12857 ac_cpp_err=$ac_c_preproc_warn_flag
12858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12865 if test -z "$ac_cpp_err"; then
12866 ac_header_preproc=yes
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 ac_header_preproc=no
12874 rm -f conftest.err conftest.$ac_ext
12875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12876 echo "${ECHO_T}$ac_header_preproc" >&6; }
12878 # So? What about this header?
12879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12885 ac_header_preproc=yes
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 eval "$as_ac_Header=\$ac_header_preproc"
12910 ac_res=`eval echo '${'$as_ac_Header'}'`
12911 { echo "$as_me:$LINENO: result: $ac_res" >&5
12912 echo "${ECHO_T}$ac_res" >&6; }
12915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12924 if test "$ac_cv_header_pthread_h"; then
12925 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12926 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
12927 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 ac_check_lib_save_LIBS=$LIBS
12931 LIBS="-lpthread $LIBS"
12932 cat >conftest.$ac_ext <<_ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12939 /* Override any GCC internal prototype to avoid an error.
12940 Use char because int might match the return type of a GCC
12941 builtin and then its argument prototype would still apply. */
12945 char pthread_self ();
12949 return pthread_self ();
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (ac_try="$ac_link"
12956 case "(($ac_try" in
12957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12958 *) ac_try_echo
=$ac_try;;
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_link") 2>conftest.er1
12963 grep -v '^ *+' conftest.er1
>conftest.err
12965 cat conftest.err
>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12969 { (case "(($ac_try" in
12970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (case "(($ac_try" in
12980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12981 *) ac_try_echo
=$ac_try;;
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_try") 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_cv_lib_pthread_pthread_self
=yes
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.
$ac_ext >&5
12993 ac_cv_lib_pthread_pthread_self
=no
12996 rm -f core conftest.err conftest.
$ac_objext \
12997 conftest
$ac_exeext conftest.
$ac_ext
12998 LIBS
=$ac_check_lib_save_LIBS
13000 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
13001 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
13002 if test $ac_cv_lib_pthread_pthread_self = yes; then
13003 HAVE_GTK_AND_PTHREAD
=yes
13007 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
13008 GTK_LIBS
="$GTK_LIBS -lpthread"
13010 cat >>confdefs.h
<<\_ACEOF
13011 #define HAVE_GTK_AND_PTHREAD 1
13018 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
13019 if test x
"${HAVE_X11R5}" = xyes
; then
13020 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
13021 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
13022 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 cat >conftest.
$ac_ext <<_ACEOF
13028 cat confdefs.h
>>conftest.
$ac_ext
13029 cat >>conftest.
$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13032 #include <X11/Intrinsic.h>
13033 #include <X11/Xaw/Simple.h>
13042 rm -f conftest.
$ac_objext conftest
$ac_exeext
13043 if { (ac_try
="$ac_link"
13044 case "(($ac_try" in
13045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_link") 2>conftest.er1
13051 grep -v '^ *+' conftest.er1 >conftest.err
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13057 { (case "(($ac_try" in
13058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13059 *) ac_try_echo
=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_try") 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try
='test -s conftest$ac_exeext'
13067 { (case "(($ac_try" in
13068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_try") 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 emacs_cv_x11_version_5_with_xaw=yes
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 emacs_cv_x11_version_5_with_xaw=no
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13088 if test $emacs_cv_x11_version_5_with_xaw = yes; then
13089 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
13090 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
13091 USE_X_TOOLKIT=LUCID
13093 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
13094 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
13102 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13104 if test "${USE_X_TOOLKIT}" != "none"; then
13105 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13106 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
13107 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 cat >conftest.$ac_ext <<_ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13116 #include <X11/Intrinsic.h>
13120 #if XtSpecificationRelease < 6
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13132 *) ac_try_echo
=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13137 grep -v '^ *+' conftest.er1
>conftest.err
13139 cat conftest.err
>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13155 *) ac_try_echo
=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 emacs_cv_x11_toolkit_version_6
=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.
$ac_ext >&5
13167 emacs_cv_x11_toolkit_version_6
=no
13170 rm -f core conftest.err conftest.
$ac_objext \
13171 conftest
$ac_exeext conftest.
$ac_ext
13174 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13175 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13176 { echo "$as_me:$LINENO: result: 6 or newer" >&5
13177 echo "${ECHO_T}6 or newer" >&6; }
13179 cat >>confdefs.h
<<\_ACEOF
13180 #define HAVE_X11XTR6 1
13184 { echo "$as_me:$LINENO: result: before 6" >&5
13185 echo "${ECHO_T}before 6" >&6; }
13189 if test x
$HAVE_X11XTR6 = xyes
; then
13190 LIBS
="-lXt -lSM -lICE $LIBS"
13195 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13196 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
13197 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_check_lib_save_LIBS
=$LIBS
13202 cat >conftest.
$ac_ext <<_ACEOF
13205 cat confdefs.h
>>conftest.
$ac_ext
13206 cat >>conftest.
$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13215 char XmuConvertStandardSelection ();
13219 return XmuConvertStandardSelection ();
13224 rm -f conftest.
$ac_objext conftest
$ac_exeext
13225 if { (ac_try
="$ac_link"
13226 case "(($ac_try" in
13227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13239 { (case "(($ac_try" in
13240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13241 *) ac_try_echo
=$ac_try;;
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_try") 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try
='test -s conftest$ac_exeext'
13249 { (case "(($ac_try" in
13250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13271 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13272 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_LIBXMU 1
13281 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13284 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13285 if test "${HAVE_X11}" = "yes"; then
13286 if test "${USE_X_TOOLKIT}" != "none"; then
13288 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13289 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
13290 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_check_lib_save_LIBS=$LIBS
13294 LIBS="-lXext $LIBS"
13295 cat >conftest.$ac_ext <<_ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13308 char XShapeQueryExtension ();
13312 return XShapeQueryExtension ();
13317 rm -f conftest.$ac_objext conftest$ac_exeext
13318 if { (ac_try="$ac_link"
13319 case "(($ac_try" in
13320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13321 *) ac_try_echo
=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_link") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1
>conftest.err
13328 cat conftest.err
>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332 { (case "(($ac_try" in
13333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest$ac_exeext'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13344 *) ac_try_echo
=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.
$ac_ext >&5
13356 ac_cv_lib_Xext_XShapeQueryExtension
=no
13359 rm -f core conftest.err conftest.
$ac_objext \
13360 conftest
$ac_exeext conftest.
$ac_ext
13361 LIBS
=$ac_check_lib_save_LIBS
13363 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13364 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13365 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13366 cat >>confdefs.h
<<_ACEOF
13367 #define HAVE_LIBXEXT 1
13370 LIBS
="-lXext $LIBS"
13377 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13378 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13379 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
13380 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 cat >conftest.
$ac_ext <<_ACEOF
13386 cat confdefs.h
>>conftest.
$ac_ext
13387 cat >>conftest.
$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13393 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13396 Motif version prior to 2.1.
13402 rm -f conftest.
$ac_objext
13403 if { (ac_try
="$ac_compile"
13404 case "(($ac_try" in
13405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_compile") 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13419 *) ac_try_echo
=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try
='test -s conftest.$ac_objext'
13427 { (case "(($ac_try" in
13428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 emacs_cv_motif_version_2_1=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 emacs_cv_motif_version_2_1=no
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13447 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
13448 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13449 if test $emacs_cv_motif_version_2_1 = yes; then
13452 cat >>confdefs.h <<\_ACEOF
13453 #define HAVE_MOTIF_2_1 1
13456 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13457 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
13458 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 ac_check_lib_save_LIBS=$LIBS
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13470 /* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13476 char XpCreateContext ();
13480 return XpCreateContext ();
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13489 *) ac_try_echo
=$ac_try;;
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13494 grep -v '^ *+' conftest.er1
>conftest.err
13496 cat conftest.err
>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13500 { (case "(($ac_try" in
13501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest$ac_exeext'
13510 { (case "(($ac_try" in
13511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13512 *) ac_try_echo
=$ac_try;;
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_try") 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_cv_lib_Xp_XpCreateContext
=yes
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.
$ac_ext >&5
13524 ac_cv_lib_Xp_XpCreateContext
=no
13527 rm -f core conftest.err conftest.
$ac_objext \
13528 conftest
$ac_exeext conftest.
$ac_ext
13529 LIBS
=$ac_check_lib_save_LIBS
13531 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13532 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
13533 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13537 if test ${HAVE_LIBXP} = yes; then
13539 cat >>confdefs.h
<<\_ACEOF
13540 #define HAVE_LIBXP 1
13545 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13546 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
13547 if test "${emacs_cv_lesstif+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 # We put this in CFLAGS temporarily to precede other -I options
13551 # that might be in CFLAGS temporarily.
13552 # We put this in CPPFLAGS where it precedes the other -I options.
13553 OLD_CPPFLAGS
=$CPPFLAGS
13555 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13556 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13557 cat >conftest.
$ac_ext <<_ACEOF
13560 cat confdefs.h
>>conftest.
$ac_ext
13561 cat >>conftest.
$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13572 rm -f conftest.
$ac_objext
13573 if { (ac_try
="$ac_compile"
13574 case "(($ac_try" in
13575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13587 { (case "(($ac_try" in
13588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13589 *) ac_try_echo
=$ac_try;;
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_try") 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; } &&
13596 { ac_try
='test -s conftest.$ac_objext'
13597 { (case "(($ac_try" in
13598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13606 emacs_cv_lesstif=yes
13608 echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13611 emacs_cv_lesstif=no
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13617 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
13618 if test $emacs_cv_lesstif = yes; then
13619 # Make sure this -I option remains in CPPFLAGS after it is set
13620 # back to REAL_CPPFLAGS.
13621 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13622 # have those other -I options anyway. Ultimately, having this
13623 # directory ultimately in CPPFLAGS will be enough.
13624 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13625 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13628 CPPFLAGS=$OLD_CPPFLAGS
13633 ### Is -lXaw3d available?
13635 if test "${HAVE_X11}" = "yes"; then
13636 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
13637 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
13638 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
13639 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <X11/Xaw3d/Scrollbar.h>
13650 if { (ac_try="$ac_cpp conftest.$ac_ext"
13651 case "(($ac_try" in
13652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13653 *) ac_try_echo
=$ac_try;;
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13658 grep -v '^ *+' conftest.er1
>conftest.err
13660 cat conftest.err
>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } >/dev
/null
; then
13663 if test -s conftest.err
; then
13664 ac_cpp_err
=$ac_c_preproc_warn_flag
13665 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13672 if test -z "$ac_cpp_err"; then
13673 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.
$ac_ext >&5
13678 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
13681 rm -f conftest.err conftest.
$ac_ext
13683 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
13684 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
13685 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
13686 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
13687 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
13688 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13691 ac_check_lib_save_LIBS
=$LIBS
13692 LIBS
="-lXaw3d $LIBS"
13693 cat >conftest.
$ac_ext <<_ACEOF
13696 cat confdefs.h
>>conftest.
$ac_ext
13697 cat >>conftest.
$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13700 /* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13706 char XawScrollbarSetThumb ();
13710 return XawScrollbarSetThumb ();
13715 rm -f conftest.
$ac_objext conftest
$ac_exeext
13716 if { (ac_try
="$ac_link"
13717 case "(($ac_try" in
13718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (case "(($ac_try" in
13731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13732 *) ac_try_echo
=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_try") 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try
='test -s conftest$ac_exeext'
13740 { (case "(($ac_try" in
13741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13754 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
13757 rm -f core conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 LIBS=$ac_check_lib_save_LIBS
13761 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
13762 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
13763 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
13770 if test "${HAVE_XAW3D}" = "yes"; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_XAW3D 1
13782 USE_TOOLKIT_SCROLL_BARS=no
13783 if test "${with_toolkit_scroll_bars}" != "no"; then
13784 if test "${USE_X_TOOLKIT}" != "none"; then
13785 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13786 cat >>confdefs.h <<\_ACEOF
13787 #define USE_TOOLKIT_SCROLL_BARS 1
13791 USE_TOOLKIT_SCROLL_BARS=yes
13792 elif test "${HAVE_XAW3D}" = "yes"; then
13793 cat >>confdefs.h <<\_ACEOF
13794 #define USE_TOOLKIT_SCROLL_BARS 1
13797 USE_TOOLKIT_SCROLL_BARS=yes
13799 elif test "${HAVE_GTK}" = "yes"; then
13800 cat >>confdefs.h <<\_ACEOF
13801 #define USE_TOOLKIT_SCROLL_BARS 1
13804 USE_TOOLKIT_SCROLL_BARS=yes
13805 elif test "${HAVE_CARBON}" = "yes"; then
13806 cat >>confdefs.h <<\_ACEOF
13807 #define USE_TOOLKIT_SCROLL_BARS 1
13810 USE_TOOLKIT_SCROLL_BARS=yes
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13821 #include <X11/Xlib.h>
13822 #include <X11/Xresource.h>
13831 rm -f conftest.$ac_objext
13832 if { (ac_try="$ac_compile"
13833 case "(($ac_try" in
13834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13835 *) ac_try_echo
=$ac_try;;
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_compile") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1
>conftest.err
13842 cat conftest.err
>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13846 { (case "(($ac_try" in
13847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13858 *) ac_try_echo
=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13867 cat >>confdefs.h
<<\_ACEOF
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.
$ac_ext >&5
13878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13881 if test "${with_xim}" != "no"; then
13883 cat >>confdefs.h
<<\_ACEOF
13890 if test "${HAVE_XIM}" != "no"; then
13891 late_CFLAGS
=$CFLAGS
13892 if test "$GCC" = yes; then
13893 CFLAGS
="$CFLAGS --pedantic-errors"
13895 cat >conftest.
$ac_ext <<_ACEOF
13898 cat confdefs.h
>>conftest.
$ac_ext
13899 cat >>conftest.
$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13902 #include <X11/Xlib.h>
13903 #include <X11/Xresource.h>
13912 XPointer *client_data;
13914 /* If we're not using GCC, it's probably not XFree86, and this is
13915 probably right, but we can't use something like --pedantic-errors. */
13916 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13917 char*, XIMProc, XPointer*);
13919 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13925 rm -f conftest.
$ac_objext
13926 if { (ac_try
="$ac_compile"
13927 case "(($ac_try" in
13928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_compile") 2>conftest.er1
13934 grep -v '^ *+' conftest.er1 >conftest.err
13936 cat conftest.err >&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13940 { (case "(($ac_try" in
13941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13942 *) ac_try_echo
=$ac_try;;
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_try") 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; } &&
13949 { ac_try
='test -s conftest.$ac_objext'
13950 { (case "(($ac_try" in
13951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_try") 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 emacs_cv_arg6_star=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969 if test "$emacs_cv_arg6_star" = yes; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13975 cat >>confdefs.h <<\_ACEOF
13976 #define XRegisterIMInstantiateCallback_arg6 XPointer
13980 CFLAGS=$late_CFLAGS
13983 ### Use -lXpm if available, unless `--with-xpm=no
'.
13985 if test "${HAVE_X11}" = "yes"; then
13986 if test "${with_xpm}" != "no"; then
13987 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13988 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13989 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13990 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13994 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13996 # Is the header compilable?
13997 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13998 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 $ac_includes_default
14006 #include <X11/xpm.h>
14008 rm -f conftest.$ac_objext
14009 if { (ac_try="$ac_compile"
14010 case "(($ac_try" in
14011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_compile") 2>conftest.er1
14017 grep -v '^
*+' conftest.er1 >conftest.err
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; } &&
14032 { ac_try='test -s conftest.
$ac_objext'
14033 { (case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_try") 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_header_compiler=yes
14044 echo "$as_me: failed program was:" >&5
14045 sed 's
/^
/|
/' conftest.$ac_ext >&5
14047 ac_header_compiler=no
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14052 echo "${ECHO_T}$ac_header_compiler" >&6; }
14054 # Is the header present?
14055 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14056 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <X11/xpm.h>
14065 if { (ac_try="$ac_cpp conftest.$ac_ext"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14073 grep -v '^
*+' conftest.er1 >conftest.err
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null; then
14078 if test -s conftest.err; then
14079 ac_cpp_err=$ac_c_preproc_warn_flag
14080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14087 if test -z "$ac_cpp_err"; then
14088 ac_header_preproc=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's
/^
/|
/' conftest.$ac_ext >&5
14093 ac_header_preproc=no
14096 rm -f conftest.err conftest.$ac_ext
14097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6; }
14100 # So? What about this header?
14101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14103 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14106 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14107 ac_header_preproc=yes
14110 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14111 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14113 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14115 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14117 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14119 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14121 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14125 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14126 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
14127 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 ac_cv_header_X11_xpm_h=$ac_header_preproc
14132 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14133 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
14136 if test $ac_cv_header_X11_xpm_h = yes; then
14137 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14138 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
14139 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 ac_check_lib_save_LIBS=$LIBS
14143 LIBS="-lXpm -lX11 $LIBS"
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14151 /* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
14157 char XpmReadFileToPixmap ();
14161 return XpmReadFileToPixmap ();
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (ac_try="$ac_link"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_link") 2>conftest.er1
14175 grep -v '^
*+' conftest.er1 >conftest.err
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest
$ac_exeext'
14191 { (case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_try") 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14202 echo "$as_me: failed program was:" >&5
14203 sed 's
/^
/|
/' conftest.$ac_ext >&5
14205 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14208 rm -f core conftest.err conftest.$ac_objext \
14209 conftest$ac_exeext conftest.$ac_ext
14210 LIBS=$ac_check_lib_save_LIBS
14212 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14213 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14214 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14221 if test "${HAVE_XPM}" = "yes"; then
14222 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14223 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
14224 cat >conftest.$ac_ext <<_ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 #include "X11/xpm.h"
14231 #ifndef XpmReturnAllocPixels
14232 no_return_alloc_pixels
14236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14237 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14245 if test "${HAVE_XPM}" = "yes"; then
14246 { echo "$as_me:$LINENO: result: yes" >&5
14247 echo "${ECHO_T}yes" >&6; }
14249 { echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6; }
14255 if test "${HAVE_XPM}" = "yes"; then
14257 cat >>confdefs.h <<\_ACEOF
14264 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14266 if test "${HAVE_X11}" = "yes"; then
14267 if test "${with_jpeg}" != "no"; then
14268 if test "${ac_cv_header_jerror_h+set}" = set; then
14269 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14270 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14271 if test "${ac_cv_header_jerror_h+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14275 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14277 # Is the header compilable?
14278 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
14279 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
14280 cat >conftest.
$ac_ext <<_ACEOF
14283 cat confdefs.h
>>conftest.
$ac_ext
14284 cat >>conftest.
$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 $ac_includes_default
14287 #include <jerror.h>
14289 rm -f conftest.
$ac_objext
14290 if { (ac_try
="$ac_compile"
14291 case "(($ac_try" in
14292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_compile") 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14304 { (case "(($ac_try" in
14305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14306 *) ac_try_echo
=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_try") 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try
='test -s conftest.$ac_objext'
14314 { (case "(($ac_try" in
14315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_try") 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_header_compiler=yes
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_header_compiler=no
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14333 echo "${ECHO_T}$ac_header_compiler" >&6; }
14335 # Is the header present?
14336 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
14337 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <jerror.h>
14346 if { (ac_try="$ac_cpp conftest.$ac_ext"
14347 case "(($ac_try" in
14348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14349 *) ac_try_echo
=$ac_try;;
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14354 grep -v '^ *+' conftest.er1
>conftest.err
14356 cat conftest.err
>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } >/dev
/null
; then
14359 if test -s conftest.err
; then
14360 ac_cpp_err
=$ac_c_preproc_warn_flag
14361 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14368 if test -z "$ac_cpp_err"; then
14369 ac_header_preproc
=yes
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.
$ac_ext >&5
14374 ac_header_preproc
=no
14377 rm -f conftest.err conftest.
$ac_ext
14378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14379 echo "${ECHO_T}$ac_header_preproc" >&6; }
14381 # So? What about this header?
14382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14384 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14385 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14387 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14388 ac_header_preproc
=yes
14391 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14392 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14394 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14396 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14398 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14400 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14402 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14406 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14407 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14408 if test "${ac_cv_header_jerror_h+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 ac_cv_header_jerror_h
=$ac_header_preproc
14413 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14414 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14417 if test $ac_cv_header_jerror_h = yes; then
14418 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14419 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
14420 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 ac_check_lib_save_LIBS
=$LIBS
14424 LIBS
="-ljpeg $LIBS"
14425 cat >conftest.
$ac_ext <<_ACEOF
14428 cat confdefs.h
>>conftest.
$ac_ext
14429 cat >>conftest.
$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14432 /* Override any GCC internal prototype to avoid an error.
14433 Use char because int might match the return type of a GCC
14434 builtin and then its argument prototype would still apply. */
14438 char jpeg_destroy_compress ();
14442 return jpeg_destroy_compress ();
14447 rm -f conftest.
$ac_objext conftest
$ac_exeext
14448 if { (ac_try
="$ac_link"
14449 case "(($ac_try" in
14450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_link") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14464 *) ac_try_echo
=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; } &&
14471 { ac_try
='test -s conftest$ac_exeext'
14472 { (case "(($ac_try" in
14473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14489 rm -f core conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 LIBS=$ac_check_lib_save_LIBS
14493 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14494 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14495 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14505 if test "${HAVE_JPEG}" = "yes"; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_JPEG 1
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <jpeglib.h>
14517 version=JPEG_LIB_VERSION
14520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14521 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_JPEG 1
14527 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14528 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14536 ### Use -lpng if available, unless `--with-png=no
'.
14538 if test "${HAVE_X11}" = "yes"; then
14539 if test "${with_png}" != "no"; then
14540 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14541 # in /usr/include/libpng.
14544 for ac_header in png.h libpng/png.h
14546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 ac_res=`eval echo '${'$as_ac_Header'}'`
14554 { echo "$as_me:$LINENO: result: $ac_res" >&5
14555 echo "${ECHO_T}$ac_res" >&6; }
14557 # Is the header compilable?
14558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 $ac_includes_default
14567 #include <$ac_header>
14569 rm -f conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_compile") 2>conftest.er1
14578 grep -v '^
*+' conftest.er1 >conftest.err
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14584 { (case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_try") 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try='test -s conftest.
$ac_objext'
14594 { (case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_try") 2>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_header_compiler=yes
14605 echo "$as_me: failed program was:" >&5
14606 sed 's
/^
/|
/' conftest.$ac_ext >&5
14608 ac_header_compiler=no
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14613 echo "${ECHO_T}$ac_header_compiler" >&6; }
14615 # Is the header present?
14616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14618 cat >conftest.$ac_ext <<_ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 #include <$ac_header>
14626 if { (ac_try="$ac_cpp conftest.$ac_ext"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14634 grep -v '^
*+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } >/dev/null; then
14639 if test -s conftest.err; then
14640 ac_cpp_err=$ac_c_preproc_warn_flag
14641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14648 if test -z "$ac_cpp_err"; then
14649 ac_header_preproc=yes
14651 echo "$as_me: failed program was:" >&5
14652 sed 's
/^
/|
/' conftest.$ac_ext >&5
14654 ac_header_preproc=no
14657 rm -f conftest.err conftest.$ac_ext
14658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14659 echo "${ECHO_T}$ac_header_preproc" >&6; }
14661 # So? What about this header?
14662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14667 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14668 ac_header_preproc=yes
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14680 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 eval "$as_ac_Header=\$ac_header_preproc"
14693 ac_res=`eval echo '${'$as_ac_Header'}'`
14694 { echo "$as_me:$LINENO: result: $ac_res" >&5
14695 echo "${ECHO_T}$ac_res" >&6; }
14698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14699 cat >>confdefs.h <<_ACEOF
14700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14707 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14708 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14709 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14710 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 ac_check_lib_save_LIBS=$LIBS
14714 LIBS="-lpng -lz -lm $LIBS"
14715 cat >conftest.$ac_ext <<_ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14722 /* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14728 char png_get_channels ();
14732 return png_get_channels ();
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (ac_try="$ac_link"
14739 case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_link") 2>conftest.er1
14746 grep -v '^
*+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest
$ac_exeext'
14762 { (case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_try") 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_cv_lib_png_png_get_channels=yes
14773 echo "$as_me: failed program was:" >&5
14774 sed 's
/^
/|
/' conftest.$ac_ext >&5
14776 ac_cv_lib_png_png_get_channels=no
14779 rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14781 LIBS=$ac_check_lib_save_LIBS
14783 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14784 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14785 if test $ac_cv_lib_png_png_get_channels = yes; then
14792 if test "${HAVE_PNG}" = "yes"; then
14794 cat >>confdefs.h <<\_ACEOF
14801 ### Use -ltiff if available, unless `--with-tiff=no'.
14803 if test "${HAVE_X11}" = "yes"; then
14804 if test "${with_tiff}" != "no"; then
14805 if test "${ac_cv_header_tiffio_h+set}" = set; then
14806 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14807 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14808 if test "${ac_cv_header_tiffio_h+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14812 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14814 # Is the header compilable?
14815 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14816 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14817 cat >conftest.
$ac_ext <<_ACEOF
14820 cat confdefs.h
>>conftest.
$ac_ext
14821 cat >>conftest.
$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 $ac_includes_default
14824 #include <tiffio.h>
14826 rm -f conftest.
$ac_objext
14827 if { (ac_try
="$ac_compile"
14828 case "(($ac_try" in
14829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_compile") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
14840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14841 { (case "(($ac_try" in
14842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14843 *) ac_try_echo
=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_try") 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try
='test -s conftest.$ac_objext'
14851 { (case "(($ac_try" in
14852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_try") 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_header_compiler=yes
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_header_compiler=no
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14870 echo "${ECHO_T}$ac_header_compiler" >&6; }
14872 # Is the header present?
14873 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14874 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14875 cat >conftest.$ac_ext <<_ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 #include <tiffio.h>
14883 if { (ac_try="$ac_cpp conftest.$ac_ext"
14884 case "(($ac_try" in
14885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14886 *) ac_try_echo
=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } >/dev
/null
; then
14896 if test -s conftest.err
; then
14897 ac_cpp_err
=$ac_c_preproc_warn_flag
14898 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14905 if test -z "$ac_cpp_err"; then
14906 ac_header_preproc
=yes
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.
$ac_ext >&5
14911 ac_header_preproc
=no
14914 rm -f conftest.err conftest.
$ac_ext
14915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14916 echo "${ECHO_T}$ac_header_preproc" >&6; }
14918 # So? What about this header?
14919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14921 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14922 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14924 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14925 ac_header_preproc
=yes
14928 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14929 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14931 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14933 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14935 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14937 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14939 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14943 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14944 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14945 if test "${ac_cv_header_tiffio_h+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_cv_header_tiffio_h
=$ac_header_preproc
14950 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14951 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14954 if test $ac_cv_header_tiffio_h = yes; then
14956 # At least one tiff package requires the jpeg library.
14957 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14958 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14959 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14960 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 ac_check_lib_save_LIBS
=$LIBS
14964 LIBS
="-ltiff $tifflibs $LIBS"
14965 cat >conftest.
$ac_ext <<_ACEOF
14968 cat confdefs.h
>>conftest.
$ac_ext
14969 cat >>conftest.
$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14978 char TIFFGetVersion ();
14982 return TIFFGetVersion ();
14987 rm -f conftest.
$ac_objext conftest
$ac_exeext
14988 if { (ac_try
="$ac_link"
14989 case "(($ac_try" in
14990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_link") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15004 *) ac_try_echo
=$ac_try;;
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try
='test -s conftest$ac_exeext'
15012 { (case "(($ac_try" in
15013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_try") 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_cv_lib_tiff_TIFFGetVersion=yes
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 ac_cv_lib_tiff_TIFFGetVersion=no
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15031 LIBS=$ac_check_lib_save_LIBS
15033 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15034 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15035 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15044 if test "${HAVE_TIFF}" = "yes"; then
15046 cat >>confdefs.h <<\_ACEOF
15047 #define HAVE_TIFF 1
15053 ### Use -lgif if available, unless `--with-gif=no
'.
15055 if test "${HAVE_X11}" = "yes"; then
15056 if test "${with_gif}" != "no"; then
15057 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15058 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15059 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
15060 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15064 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
15066 # Is the header compilable?
15067 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15068 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 $ac_includes_default
15076 #include <gif_lib.h>
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_compile") 2>conftest.er1
15087 grep -v '^
*+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.
$ac_objext'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_header_compiler=yes
15114 echo "$as_me: failed program was:" >&5
15115 sed 's
/^
/|
/' conftest.$ac_ext >&5
15117 ac_header_compiler=no
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122 echo "${ECHO_T}$ac_header_compiler" >&6; }
15124 # Is the header present?
15125 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15126 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
15127 cat >conftest.$ac_ext <<_ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <gif_lib.h>
15135 if { (ac_try="$ac_cpp conftest.$ac_ext"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15143 grep -v '^
*+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } >/dev/null; then
15148 if test -s conftest.err; then
15149 ac_cpp_err=$ac_c_preproc_warn_flag
15150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15157 if test -z "$ac_cpp_err"; then
15158 ac_header_preproc=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's
/^
/|
/' conftest.$ac_ext >&5
15163 ac_header_preproc=no
15166 rm -f conftest.err conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15168 echo "${ECHO_T}$ac_header_preproc" >&6; }
15170 # So? What about this header?
15171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15174 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15176 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15177 ac_header_preproc=yes
15180 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15181 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15183 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15185 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15187 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15189 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15191 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15195 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15196 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
15197 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_cv_header_gif_lib_h=$ac_header_preproc
15202 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15203 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
15206 if test $ac_cv_header_gif_lib_h = yes; then
15207 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15208 # Earlier versions can crash Emacs.
15209 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15210 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
15211 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 ac_check_lib_save_LIBS=$LIBS
15215 LIBS="-lungif $LIBS"
15216 cat >conftest.$ac_ext <<_ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15223 /* Override any GCC internal prototype to avoid an error.
15224 Use char because int might match the return type of a GCC
15225 builtin and then its argument prototype would still apply. */
15229 char EGifPutExtensionLast ();
15233 return EGifPutExtensionLast ();
15238 rm -f conftest.$ac_objext conftest$ac_exeext
15239 if { (ac_try="$ac_link"
15240 case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_link") 2>conftest.er1
15247 grep -v '^
*+' conftest.er1 >conftest.err
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15253 { (case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_try") 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest
$ac_exeext'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's
/^
/|
/' conftest.$ac_ext >&5
15277 ac_cv_lib_ungif_EGifPutExtensionLast=no
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 LIBS=$ac_check_lib_save_LIBS
15284 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15285 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15286 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15295 if test "${HAVE_GIF}" = "yes"; then
15297 cat >>confdefs.h <<\_ACEOF
15304 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15305 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15306 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15307 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15311 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15313 # Is the header compilable?
15314 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15315 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
15316 cat >conftest.$ac_ext <<_ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 $ac_includes_default
15323 #include <malloc/malloc.h>
15325 rm -f conftest.$ac_objext
15326 if { (ac_try="$ac_compile"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_compile") 2>conftest.er1
15334 grep -v '^
*+' conftest.er1 >conftest.err
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest.
$ac_objext'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_header_compiler=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's
/^
/|
/' conftest.$ac_ext >&5
15364 ac_header_compiler=no
15367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15369 echo "${ECHO_T}$ac_header_compiler" >&6; }
15371 # Is the header present?
15372 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15373 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 #include <malloc/malloc.h>
15382 if { (ac_try="$ac_cpp conftest.$ac_ext"
15383 case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15390 grep -v '^
*+' conftest.er1 >conftest.err
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } >/dev/null; then
15395 if test -s conftest.err; then
15396 ac_cpp_err=$ac_c_preproc_warn_flag
15397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15404 if test -z "$ac_cpp_err"; then
15405 ac_header_preproc=yes
15407 echo "$as_me: failed program was:" >&5
15408 sed 's
/^
/|
/' conftest.$ac_ext >&5
15410 ac_header_preproc=no
15413 rm -f conftest.err conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 echo "${ECHO_T}$ac_header_preproc" >&6; }
15417 # So? What about this header?
15418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15420 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15421 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
15423 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
15424 ac_header_preproc=yes
15427 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15428 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15430 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15432 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15434 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
15436 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15438 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15442 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15443 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15444 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15449 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15450 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15453 if test $ac_cv_header_malloc_malloc_h = yes; then
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_MALLOC_MALLOC_H 1
15463 ### Use Mac OS X Carbon API to implement GUI.
15464 if test "${HAVE_CARBON}" = "yes"; then
15466 cat >>confdefs.h <<\_ACEOF
15467 #define HAVE_CARBON 1
15470 ## Specify the install directory
15472 if test "${carbon_appdir_x}" != ""; then
15473 case ${carbon_appdir_x} in
15474 y | ye | yes) carbon_appdir=/Applications ;;
15475 * ) carbon_appdir=${carbon_appdir_x} ;;
15478 # We also have mouse menus.
15482 ### Use session management (-lSM -lICE) if available
15484 if test "${HAVE_X11}" = "yes"; then
15485 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15486 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15487 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15488 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15492 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15494 # Is the header compilable?
15495 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15496 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 #include <X11/SM/SMlib.h>
15506 rm -f conftest.$ac_objext
15507 if { (ac_try="$ac_compile"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_compile") 2>conftest.er1
15515 grep -v '^
*+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15521 { (case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_try") 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest.
$ac_objext'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 ac_header_compiler=yes
15542 echo "$as_me: failed program was:" >&5
15543 sed 's
/^
/|
/' conftest.$ac_ext >&5
15545 ac_header_compiler=no
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15550 echo "${ECHO_T}$ac_header_compiler" >&6; }
15552 # Is the header present?
15553 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15554 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15555 cat >conftest.$ac_ext <<_ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 #include <X11/SM/SMlib.h>
15563 if { (ac_try="$ac_cpp conftest.$ac_ext"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15571 grep -v '^
*+' conftest.er1 >conftest.err
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } >/dev/null; then
15576 if test -s conftest.err; then
15577 ac_cpp_err=$ac_c_preproc_warn_flag
15578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15585 if test -z "$ac_cpp_err"; then
15586 ac_header_preproc=yes
15588 echo "$as_me: failed program was:" >&5
15589 sed 's
/^
/|
/' conftest.$ac_ext >&5
15591 ac_header_preproc=no
15594 rm -f conftest.err conftest.$ac_ext
15595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15596 echo "${ECHO_T}$ac_header_preproc" >&6; }
15598 # So? What about this header?
15599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15601 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15602 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
15604 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
15605 ac_header_preproc=yes
15608 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15609 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15611 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15613 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15615 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
15617 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15619 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15623 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15624 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15625 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15630 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15631 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15634 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15635 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15636 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15637 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 ac_check_lib_save_LIBS=$LIBS
15641 LIBS="-lSM -lICE $LIBS"
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15649 /* Override any GCC internal prototype to avoid an error.
15650 Use char because int might match the return type of a GCC
15651 builtin and then its argument prototype would still apply. */
15655 char SmcOpenConnection ();
15659 return SmcOpenConnection ();
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (ac_try="$ac_link"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_link") 2>conftest.er1
15673 grep -v '^
*+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest
$ac_exeext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_lib_SM_SmcOpenConnection=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's
/^
/|
/' conftest.$ac_ext >&5
15703 ac_cv_lib_SM_SmcOpenConnection=no
15706 rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15710 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15711 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15712 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15720 if test "${HAVE_X_SM}" = "yes"; then
15722 cat >>confdefs.h <<\_ACEOF
15723 #define HAVE_X_SM 1
15728 *) LIBS="-lSM -lICE $LIBS" ;;
15733 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
15734 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15735 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15736 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 cat >conftest.
$ac_ext <<_ACEOF
15742 cat confdefs.h
>>conftest.
$ac_ext
15743 cat >>conftest.
$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15754 rm -f conftest.
$ac_objext conftest
$ac_exeext
15755 if { (ac_try
="$ac_link"
15756 case "(($ac_try" in
15757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_link") 2>conftest.er1
15763 grep -v '^ *+' conftest.er1 >conftest.err
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15771 *) ac_try_echo
=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try
='test -s conftest$ac_exeext'
15779 { (case "(($ac_try" in
15780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 emacs_cv_netdb_declares_h_errno=yes
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 emacs_cv_netdb_declares_h_errno=no
15796 rm -f core conftest.err conftest.$ac_objext \
15797 conftest$ac_exeext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15800 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15801 if test $emacs_cv_netdb_declares_h_errno = yes; then
15803 cat >>confdefs.h <<\_ACEOF
15804 #define HAVE_H_ERRNO 1
15809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15810 # for constant arguments. Useless!
15811 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15812 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15813 if test "${ac_cv_working_alloca_h+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #include <alloca.h>
15826 char *p = (char *) alloca (2 * sizeof (int));
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (ac_try="$ac_link"
15834 case "(($ac_try" in
15835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15836 *) ac_try_echo
=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_link") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1
>conftest.err
15843 cat conftest.err
>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847 { (case "(($ac_try" in
15848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_working_alloca_h
=yes
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.
$ac_ext >&5
15871 ac_cv_working_alloca_h
=no
15874 rm -f core conftest.err conftest.
$ac_objext \
15875 conftest
$ac_exeext conftest.
$ac_ext
15877 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15878 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15879 if test $ac_cv_working_alloca_h = yes; then
15881 cat >>confdefs.h
<<\_ACEOF
15882 #define HAVE_ALLOCA_H 1
15887 { echo "$as_me:$LINENO: checking for alloca" >&5
15888 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15889 if test "${ac_cv_func_alloca_works+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 cat >conftest.
$ac_ext <<_ACEOF
15895 cat confdefs.h
>>conftest.
$ac_ext
15896 cat >>conftest.
$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15899 # define alloca __builtin_alloca
15902 # include <malloc.h>
15903 # define alloca _alloca
15906 # include <alloca.h>
15911 # ifndef alloca /* predefined by HP cc +Olibcalls */
15922 char *p = (char *) alloca (1);
15928 rm -f conftest.
$ac_objext conftest
$ac_exeext
15929 if { (ac_try
="$ac_link"
15930 case "(($ac_try" in
15931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_link") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (case "(($ac_try" in
15944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15945 *) ac_try_echo
=$ac_try;;
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_try") 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try
='test -s conftest$ac_exeext'
15953 { (case "(($ac_try" in
15954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_try") 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_func_alloca_works=yes
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ac_cv_func_alloca_works=no
15970 rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15973 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15974 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15976 if test $ac_cv_func_alloca_works = yes; then
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE_ALLOCA 1
15983 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15984 # that cause trouble. Some versions do not even contain alloca or
15985 # contain a buggy version. If you still want to use their alloca,
15986 # use ar to extract alloca.o from them instead of compiling alloca.c.
15988 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15990 cat >>confdefs.h <<\_ACEOF
15995 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15996 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15997 if test "${ac_cv_os_cray+set}" = set; then
15998 echo $ECHO_N "(cached
) $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #if defined CRAY && ! defined CRAY2
16013 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16014 $EGREP "webecray
" >/dev/null 2>&1; then
16022 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16023 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
16024 if test $ac_cv_os_cray = yes; then
16025 for ac_func in _getb67 GETB67 getb67; do
16026 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16027 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16028 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16029 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached
) $ECHO_C" >&6
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16040 #define $ac_func innocuous_$ac_func
16042 /* System header to define __stub macros and hopefully few prototypes,
16043 which can conflict with char $ac_func (); below.
16044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16045 <limits.h> exists even on freestanding compilers. */
16048 # include <limits.h>
16050 # include <assert.h>
16055 /* Override any GCC internal prototype to avoid an error.
16056 Use char because int might match the return type of a GCC
16057 builtin and then its argument prototype would still apply. */
16062 /* The GNU C library defines this for functions which it implements
16063 to always fail with ENOSYS. Some functions are actually named
16064 something starting with __ and the normal name is an alias. */
16065 #if defined __stub_$ac_func || defined __stub___$ac_func
16072 return $ac_func ();
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (ac_try="$ac_link"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_link") 2>conftest.er1
16086 grep -v '^ *+' conftest.er1 >conftest.err
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest$ac_exeext'
16102 { (case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_try") 2>&5
16109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 eval "$as_ac_var=yes"
16113 echo "$as_me: failed program was
:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 eval "$as_ac_var=no
"
16119 rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16122 ac_res=`eval echo '${'$as_ac_var'}'`
16123 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16124 echo "${ECHO_T}$ac_res" >&6; }
16125 if test `eval echo '${'$as_ac_var'}'` = yes; then
16127 cat >>confdefs.h <<_ACEOF
16128 #define CRAY_STACKSEG_END $ac_func
16137 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16138 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
16139 if test "${ac_cv_c_stack_direction+set}" = set; then
16140 echo $ECHO_N "(cached
) $ECHO_C" >&6
16142 if test "$cross_compiling" = yes; then
16143 ac_cv_c_stack_direction=0
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 $ac_includes_default
16153 find_stack_direction ()
16155 static char *addr = 0;
16160 return find_stack_direction ();
16163 return (&dummy > addr) ? 1 : -1;
16169 return find_stack_direction () < 0;
16172 rm -f conftest$ac_exeext
16173 if { (ac_try="$ac_link"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_link") 2>&5
16181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16183 { (case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_try") 2>&5
16190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16191 (exit $ac_status); }; }; then
16192 ac_cv_c_stack_direction=1
16194 echo "$as_me: program exited with status
$ac_status" >&5
16195 echo "$as_me: failed program was
:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ( exit $ac_status )
16199 ac_cv_c_stack_direction=-1
16201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16206 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16207 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16209 cat >>confdefs.h <<_ACEOF
16210 #define STACK_DIRECTION $ac_cv_c_stack_direction
16217 # fmod, logb, and frexp are found in -lm on most systems.
16218 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16220 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16221 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
16222 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16223 echo $ECHO_N "(cached
) $ECHO_C" >&6
16225 ac_check_lib_save_LIBS=$LIBS
16227 cat >conftest.$ac_ext <<_ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16234 /* Override any GCC internal prototype to avoid an error.
16235 Use char because int might match the return type of a GCC
16236 builtin and then its argument prototype would still apply. */
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_link") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_try") 2>&5
16271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_lib_m_sqrt=yes
16285 echo "$as_me: failed program was
:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_lib_m_sqrt=no
16291 rm -f core conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16295 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16296 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
16297 if test $ac_cv_lib_m_sqrt = yes; then
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE_LIBM 1
16307 # Check for mail-locking functions in a "mail" library. Probably this should
16308 # have the same check as for liblockfile below.
16310 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16311 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
16312 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16313 echo $ECHO_N "(cached
) $ECHO_C" >&6
16315 ac_check_lib_save_LIBS=$LIBS
16316 LIBS="-lmail $LIBS"
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16324 /* Override any GCC internal prototype to avoid an error.
16325 Use char because int might match the return type of a GCC
16326 builtin and then its argument prototype would still apply. */
16334 return maillock ();
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (ac_try="$ac_link"
16341 case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_link") 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest$ac_exeext'
16364 { (case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_try") 2>&5
16371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ac_cv_lib_mail_maillock=yes
16375 echo "$as_me: failed program was
:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_cv_lib_mail_maillock=no
16381 rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16385 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16386 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
16387 if test $ac_cv_lib_mail_maillock = yes; then
16388 cat >>confdefs.h <<_ACEOF
16389 #define HAVE_LIBMAIL 1
16392 LIBS="-lmail $LIBS"
16397 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16398 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
16399 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16400 echo $ECHO_N "(cached
) $ECHO_C" >&6
16402 ac_check_lib_save_LIBS=$LIBS
16403 LIBS="-llockfile $LIBS"
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16421 return maillock ();
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_try") 2>&5
16448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_lib_lockfile_maillock=yes
16462 echo "$as_me: failed program was
:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ac_cv_lib_lockfile_maillock=no
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16470 LIBS=$ac_check_lib_save_LIBS
16472 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16473 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16474 if test $ac_cv_lib_lockfile_maillock = yes; then
16475 cat >>confdefs.h <<_ACEOF
16476 #define HAVE_LIBLOCKFILE 1
16479 LIBS="-llockfile $LIBS"
16483 # If we have the shared liblockfile, assume we must use it for mail
16484 # locking (e.g. Debian). If we couldn't link against liblockfile
16485 # (no liblockfile.a installed), ensure that we don't need to.
16486 if test "$ac_cv_lib_lockfile_maillock" = no; then
16487 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16488 set dummy liblockfile.so; ac_word=$2
16489 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
16490 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
16491 if test "${ac_cv_prog_liblockfile+set}" = set; then
16492 echo $ECHO_N "(cached
) $ECHO_C" >&6
16494 if test -n "$liblockfile"; then
16495 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16499 for as_dir in $as_dummy
16502 test -z "$as_dir" && as_dir=.
16503 for ac_exec_ext in '' $ac_executable_extensions; do
16504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16505 ac_cv_prog_liblockfile="yes"
16506 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16513 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16516 liblockfile=$ac_cv_prog_liblockfile
16517 if test -n "$liblockfile"; then
16518 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
16519 echo "${ECHO_T}$liblockfile" >&6; }
16521 { echo "$as_me:$LINENO: result
: no
" >&5
16522 echo "${ECHO_T}no
" >&6; }
16526 if test $ac_cv_prog_liblockfile = yes; then
16527 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16528 This probably means that movemail could lose mail.
16529 There may be a \`development' package to
install containing liblockfile.
" >&5
16530 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16531 This probably means that movemail could lose mail.
16532 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16533 { (exit 1); exit 1; }; }
16538 for ac_func in touchlock
16540 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16541 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16542 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16543 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16544 echo $ECHO_N "(cached
) $ECHO_C" >&6
16546 cat >conftest.$ac_ext <<_ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16554 #define $ac_func innocuous_$ac_func
16556 /* System header to define __stub macros and hopefully few prototypes,
16557 which can conflict with char $ac_func (); below.
16558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16559 <limits.h> exists even on freestanding compilers. */
16562 # include <limits.h>
16564 # include <assert.h>
16569 /* Override any GCC internal prototype to avoid an error.
16570 Use char because int might match the return type of a GCC
16571 builtin and then its argument prototype would still apply. */
16576 /* The GNU C library defines this for functions which it implements
16577 to always fail with ENOSYS. Some functions are actually named
16578 something starting with __ and the normal name is an alias. */
16579 #if defined __stub_$ac_func || defined __stub___$ac_func
16586 return $ac_func ();
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (ac_try="$ac_link"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
16600 grep -v '^ *+' conftest.er1 >conftest.err
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest$ac_exeext'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 eval "$as_ac_var=yes"
16627 echo "$as_me: failed program was
:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 eval "$as_ac_var=no
"
16633 rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16636 ac_res=`eval echo '${'$as_ac_var'}'`
16637 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16638 echo "${ECHO_T}$ac_res" >&6; }
16639 if test `eval echo '${'$as_ac_var'}'` = yes; then
16640 cat >>confdefs.h <<_ACEOF
16641 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16648 for ac_header in maillock.h
16650 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16651 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16652 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16653 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16654 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16655 echo $ECHO_N "(cached
) $ECHO_C" >&6
16657 ac_res=`eval echo '${'$as_ac_Header'}'`
16658 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16659 echo "${ECHO_T}$ac_res" >&6; }
16661 # Is the header compilable?
16662 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16663 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16664 cat >conftest.$ac_ext <<_ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 #include <$ac_header>
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16688 { (case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_try") 2>&5
16695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_header_compiler=yes
16709 echo "$as_me: failed program was
:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16712 ac_header_compiler=no
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16717 echo "${ECHO_T}$ac_header_compiler" >&6; }
16719 # Is the header present?
16720 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16721 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <$ac_header>
16730 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16738 grep -v '^ *+' conftest.er1 >conftest.err
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16742 (exit $ac_status); } >/dev/null; then
16743 if test -s conftest.err; then
16744 ac_cpp_err=$ac_c_preproc_warn_flag
16745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16752 if test -z "$ac_cpp_err"; then
16753 ac_header_preproc=yes
16755 echo "$as_me: failed program was
:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_preproc=no
16761 rm -f conftest.err conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16763 echo "${ECHO_T}$ac_header_preproc" >&6; }
16765 # So? What about this header?
16766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16768 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16769 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16770 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16772 ac_header_preproc=yes
16775 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16776 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16777 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16778 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16779 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16780 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16781 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16782 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16783 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16785 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16786 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16790 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16791 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16792 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16793 echo $ECHO_N "(cached
) $ECHO_C" >&6
16795 eval "$as_ac_Header=\
$ac_header_preproc"
16797 ac_res=`eval echo '${'$as_ac_Header'}'`
16798 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16799 echo "${ECHO_T}$ac_res" >&6; }
16802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16881 for ac_func in gethostname getdomainname dup2 \
16882 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16883 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
16884 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16885 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16886 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16887 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16888 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16889 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16891 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16892 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16893 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16894 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16895 echo $ECHO_N "(cached
) $ECHO_C" >&6
16897 cat >conftest.$ac_ext <<_ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16905 #define $ac_func innocuous_$ac_func
16907 /* System header to define __stub macros and hopefully few prototypes,
16908 which can conflict with char $ac_func (); below.
16909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16910 <limits.h> exists even on freestanding compilers. */
16913 # include <limits.h>
16915 # include <assert.h>
16920 /* Override any GCC internal prototype to avoid an error.
16921 Use char because int might match the return type of a GCC
16922 builtin and then its argument prototype would still apply. */
16927 /* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930 #if defined __stub_$ac_func || defined __stub___$ac_func
16937 return $ac_func ();
16942 rm -f conftest.$ac_objext conftest$ac_exeext
16943 if { (ac_try="$ac_link"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_link") 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16957 { (case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_try") 2>&5
16964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16965 (exit $ac_status); }; } &&
16966 { ac_try='test -s conftest$ac_exeext'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_var=yes"
16978 echo "$as_me: failed program was
:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 eval "$as_ac_var=no
"
16984 rm -f core conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16987 ac_res=`eval echo '${'$as_ac_var'}'`
16988 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16989 echo "${ECHO_T}$ac_res" >&6; }
16990 if test `eval echo '${'$as_ac_var'}'` = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17000 for ac_header in sys/un.h
17002 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17007 echo $ECHO_N "(cached
) $ECHO_C" >&6
17009 ac_res=`eval echo '${'$as_ac_Header'}'`
17010 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17011 echo "${ECHO_T}$ac_res" >&6; }
17013 # Is the header compilable?
17014 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17015 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17016 cat >conftest.$ac_ext <<_ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 $ac_includes_default
17023 #include <$ac_header>
17025 rm -f conftest.$ac_objext
17026 if { (ac_try="$ac_compile"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest.$ac_objext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_header_compiler=yes
17061 echo "$as_me: failed program was
:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 ac_header_compiler=no
17067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17069 echo "${ECHO_T}$ac_header_compiler" >&6; }
17071 # Is the header present?
17072 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17073 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 #include <$ac_header>
17082 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17094 (exit $ac_status); } >/dev/null; then
17095 if test -s conftest.err; then
17096 ac_cpp_err=$ac_c_preproc_warn_flag
17097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17104 if test -z "$ac_cpp_err"; then
17105 ac_header_preproc=yes
17107 echo "$as_me: failed program was
:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_header_preproc=no
17113 rm -f conftest.err conftest.$ac_ext
17114 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17115 echo "${ECHO_T}$ac_header_preproc" >&6; }
17117 # So? What about this header?
17118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17120 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17121 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17122 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17124 ac_header_preproc=yes
17127 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17128 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17129 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17130 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17131 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17132 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17133 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17134 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17135 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17137 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17138 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17142 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17143 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17145 echo $ECHO_N "(cached
) $ECHO_C" >&6
17147 eval "$as_ac_Header=\
$ac_header_preproc"
17149 ac_res=`eval echo '${'$as_ac_Header'}'`
17150 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17151 echo "${ECHO_T}$ac_res" >&6; }
17154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17167 for ac_header in stdlib.h sys/time.h unistd.h
17169 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17170 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17171 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17172 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17173 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17174 echo $ECHO_N "(cached
) $ECHO_C" >&6
17176 ac_res=`eval echo '${'$as_ac_Header'}'`
17177 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17178 echo "${ECHO_T}$ac_res" >&6; }
17180 # Is the header compilable?
17181 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17182 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 $ac_includes_default
17190 #include <$ac_header>
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_header_compiler=yes
17228 echo "$as_me: failed program was
:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_header_compiler=no
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17236 echo "${ECHO_T}$ac_header_compiler" >&6; }
17238 # Is the header present?
17239 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17240 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <$ac_header>
17249 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17261 (exit $ac_status); } >/dev/null; then
17262 if test -s conftest.err; then
17263 ac_cpp_err=$ac_c_preproc_warn_flag
17264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17271 if test -z "$ac_cpp_err"; then
17272 ac_header_preproc=yes
17274 echo "$as_me: failed program was
:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ac_header_preproc=no
17280 rm -f conftest.err conftest.$ac_ext
17281 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17282 echo "${ECHO_T}$ac_header_preproc" >&6; }
17284 # So? What about this header?
17285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17287 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17288 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17289 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17291 ac_header_preproc=yes
17294 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17295 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17296 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17297 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17298 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17299 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17300 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17301 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17302 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17304 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17305 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17309 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17310 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17312 echo $ECHO_N "(cached
) $ECHO_C" >&6
17314 eval "$as_ac_Header=\
$ac_header_preproc"
17316 ac_res=`eval echo '${'$as_ac_Header'}'`
17317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17331 for ac_func in alarm
17333 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17335 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached
) $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347 #define $ac_func innocuous_$ac_func
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17355 # include <limits.h>
17357 # include <assert.h>
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17379 return $ac_func ();
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399 { (case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_try") 2>&5
17406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_try") 2>&5
17416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 eval "$as_ac_var=yes"
17420 echo "$as_me: failed program was
:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 eval "$as_ac_var=no
"
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433 cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17440 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
17441 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
17442 if test "${ac_cv_func_working_mktime+set}" = set; then
17443 echo $ECHO_N "(cached
) $ECHO_C" >&6
17445 if test "$cross_compiling" = yes; then
17446 ac_cv_func_working_mktime=no
17448 cat >conftest.$ac_ext <<_ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 /* Test program from Paul Eggert and Tony Leneis. */
17455 #if TIME_WITH_SYS_TIME
17456 # include <sys/time.h>
17459 # if HAVE_SYS_TIME_H
17460 # include <sys/time.h>
17467 # include <stdlib.h>
17471 # include <unistd.h>
17475 # define alarm(X) /* empty */
17478 /* Work around redefinition to rpl_putenv by other config tests. */
17481 static time_t time_t_max;
17482 static time_t time_t_min;
17484 /* Values we'll use to set the TZ environment variable. */
17485 static char *tz_strings[] = {
17486 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17487 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17489 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17491 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17492 Based on a problem report from Andreas Jaeger. */
17494 spring_forward_gap ()
17496 /* glibc (up to about 1998-10-07) failed this test. */
17499 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17500 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17501 on systems that don't support the Olson extension, or don't have the
17502 full zoneinfo tables installed. */
17503 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17512 return mktime (&tm) != (time_t) -1;
17520 return ! (lt = localtime (&now)) || mktime (lt) == now;
17527 return (mktime_test1 (now)
17528 && mktime_test1 ((time_t) (time_t_max - now))
17529 && mktime_test1 ((time_t) (time_t_min + now)));
17535 /* Based on code from Ariel Faigon. */
17545 return tm.tm_mon == 2 && tm.tm_mday == 31;
17554 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17555 now = mktime (&tm);
17556 if (now != (time_t) -1)
17558 struct tm *lt = localtime (&now);
17560 && lt->tm_year == tm.tm_year
17561 && lt->tm_mon == tm.tm_mon
17562 && lt->tm_mday == tm.tm_mday
17563 && lt->tm_hour == tm.tm_hour
17564 && lt->tm_min == tm.tm_min
17565 && lt->tm_sec == tm.tm_sec
17566 && lt->tm_yday == tm.tm_yday
17567 && lt->tm_wday == tm.tm_wday
17568 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17569 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17581 /* This test makes some buggy mktime implementations loop.
17582 Give up after 60 seconds; a mktime slower than that
17583 isn't worth using anyway. */
17586 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17589 if ((time_t) -1 < 0)
17590 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17592 delta = time_t_max / 997; /* a suitable prime number */
17593 for (i = 0; i < N_STRINGS; i++)
17596 putenv (tz_strings[i]);
17598 for (t = 0; t <= time_t_max - delta; t += delta)
17599 if (! mktime_test (t))
17601 if (! (mktime_test ((time_t) 1)
17602 && mktime_test ((time_t) (60 * 60))
17603 && mktime_test ((time_t) (60 * 60 * 24))))
17606 for (j = 1; 0 < j; j *= 2)
17607 if (! bigtime_test (j))
17609 if (! bigtime_test (j - 1))
17612 return ! (irix_6_4_bug () && spring_forward_gap ());
17615 rm -f conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>&5
17624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 ac_cv_func_working_mktime=yes
17637 echo "$as_me: program exited with status
$ac_status" >&5
17638 echo "$as_me: failed program was
:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ( exit $ac_status )
17642 ac_cv_func_working_mktime=no
17644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17650 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17651 if test $ac_cv_func_working_mktime = no; then
17652 case " $LIBOBJS " in
17653 *" mktime.
$ac_objext "* ) ;;
17654 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17660 if test "$ac_cv_func_working_mktime" = no; then
17662 cat >>confdefs.h <<\_ACEOF
17663 #define BROKEN_MKTIME 1
17668 ac_have_func=no # yes means we've found a way to get the load average.
17670 # Make sure getloadavg.c is where it belongs, at configure-time.
17671 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17672 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17673 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17674 { (exit 1); exit 1; }; }
17678 # Check for getloadavg, but be sure not to touch the cache variable.
17679 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17680 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17681 if test "${ac_cv_func_getloadavg+set}" = set; then
17682 echo $ECHO_N "(cached
) $ECHO_C" >&6
17684 cat >conftest.$ac_ext <<_ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692 #define getloadavg innocuous_getloadavg
17694 /* System header to define __stub macros and hopefully few prototypes,
17695 which can conflict with char getloadavg (); below.
17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697 <limits.h> exists even on freestanding compilers. */
17700 # include <limits.h>
17702 # include <assert.h>
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17713 char getloadavg ();
17714 /* The GNU C library defines this for functions which it implements
17715 to always fail with ENOSYS. Some functions are actually named
17716 something starting with __ and the normal name is an alias. */
17717 #if defined __stub_getloadavg || defined __stub___getloadavg
17724 return getloadavg ();
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (ac_try="$ac_link"
17731 case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_link") 2>conftest.er1
17738 grep -v '^ *+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17744 { (case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_try") 2>&5
17751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
17754 { (case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_try") 2>&5
17761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_func_getloadavg=yes
17765 echo "$as_me: failed program was
:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 ac_cv_func_getloadavg=no
17771 rm -f core conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17775 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17776 if test $ac_cv_func_getloadavg = yes; then
17781 ) && ac_have_func=yes
17783 # On HPUX9, an unprivileged user can get load averages through this function.
17785 for ac_func in pstat_getdynamic
17787 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17788 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17789 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17790 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17791 echo $ECHO_N "(cached
) $ECHO_C" >&6
17793 cat >conftest.$ac_ext <<_ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17801 #define $ac_func innocuous_$ac_func
17803 /* System header to define __stub macros and hopefully few prototypes,
17804 which can conflict with char $ac_func (); below.
17805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17806 <limits.h> exists even on freestanding compilers. */
17809 # include <limits.h>
17811 # include <assert.h>
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17823 /* The GNU C library defines this for functions which it implements
17824 to always fail with ENOSYS. Some functions are actually named
17825 something starting with __ and the normal name is an alias. */
17826 #if defined __stub_$ac_func || defined __stub___$ac_func
17833 return $ac_func ();
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (ac_try="$ac_link"
17840 case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_link") 2>conftest.er1
17847 grep -v '^ *+' conftest.er1 >conftest.err
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17853 { (case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_try") 2>&5
17860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest$ac_exeext'
17863 { (case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_try") 2>&5
17870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 eval "$as_ac_var=yes"
17874 echo "$as_me: failed program was
:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 eval "$as_ac_var=no
"
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17883 ac_res=`eval echo '${'$as_ac_var'}'`
17884 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17885 echo "${ECHO_T}$ac_res" >&6; }
17886 if test `eval echo '${'$as_ac_var'}'` = yes; then
17887 cat >>confdefs.h <<_ACEOF
17888 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17895 # Solaris has libkstat which does not require root.
17897 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17898 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17899 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17900 echo $ECHO_N "(cached
) $ECHO_C" >&6
17902 ac_check_lib_save_LIBS=$LIBS
17903 LIBS="-lkstat $LIBS"
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17911 /* Override any GCC internal prototype to avoid an error.
17912 Use char because int might match the return type of a GCC
17913 builtin and then its argument prototype would still apply. */
17917 char kstat_open ();
17921 return kstat_open ();
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (ac_try="$ac_link"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_link") 2>conftest.er1
17935 grep -v '^ *+' conftest.er1 >conftest.err
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_lib_kstat_kstat_open=yes
17962 echo "$as_me: failed program was
:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ac_cv_lib_kstat_kstat_open=no
17968 rm -f core conftest.err conftest.$ac_objext \
17969 conftest$ac_exeext conftest.$ac_ext
17970 LIBS=$ac_check_lib_save_LIBS
17972 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17973 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17974 if test $ac_cv_lib_kstat_kstat_open = yes; then
17975 cat >>confdefs.h <<_ACEOF
17976 #define HAVE_LIBKSTAT 1
17979 LIBS="-lkstat $LIBS"
17983 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17985 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17986 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17987 # to get the right answer into the cache.
17988 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17989 if test $ac_have_func = no; then
17990 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17991 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17992 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17993 echo $ECHO_N "(cached
) $ECHO_C" >&6
17995 ac_check_lib_save_LIBS=$LIBS
17997 cat >conftest.$ac_ext <<_ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18014 return elf_begin ();
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_link") 2>conftest.er1
18028 grep -v '^ *+' conftest.er1 >conftest.err
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_try") 2>&5
18051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_lib_elf_elf_begin=yes
18055 echo "$as_me: failed program was
:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_cv_lib_elf_elf_begin=no
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 LIBS=$ac_check_lib_save_LIBS
18065 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18066 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
18067 if test $ac_cv_lib_elf_elf_begin = yes; then
18072 if test $ac_have_func = no; then
18073 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18074 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
18075 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18076 echo $ECHO_N "(cached
) $ECHO_C" >&6
18078 ac_check_lib_save_LIBS=$LIBS
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18097 return kvm_open ();
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (ac_try="$ac_link"
18104 case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_link") 2>conftest.er1
18111 grep -v '^ *+' conftest.er1 >conftest.err
18113 cat conftest.err >&5
18114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest$ac_exeext'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_lib_kvm_kvm_open=yes
18138 echo "$as_me: failed program was
:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 ac_cv_lib_kvm_kvm_open=no
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18148 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18149 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
18150 if test $ac_cv_lib_kvm_kvm_open = yes; then
18154 # Check for the 4.4BSD definition of getloadavg.
18155 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18156 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
18157 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18158 echo $ECHO_N "(cached
) $ECHO_C" >&6
18160 ac_check_lib_save_LIBS=$LIBS
18161 LIBS="-lutil $LIBS"
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18175 char getloadavg ();
18179 return getloadavg ();
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (ac_try="$ac_link"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_link") 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_util_getloadavg=yes
18220 echo "$as_me: failed program was
:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_cv_lib_util_getloadavg=no
18226 rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18230 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18231 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
18232 if test $ac_cv_lib_util_getloadavg = yes; then
18233 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18238 if test $ac_have_func = no; then
18239 # There is a commonly available library for RS/6000 AIX.
18240 # Since it is not a standard part of AIX, it might be installed locally.
18241 ac_getloadavg_LIBS=$LIBS
18242 LIBS="-L/usr
/local
/lib
$LIBS"
18243 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18244 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
18245 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18246 echo $ECHO_N "(cached
) $ECHO_C" >&6
18248 ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-lgetloadavg $LIBS"
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18257 /* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
18263 char getloadavg ();
18267 return getloadavg ();
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_getloadavg_getloadavg=yes
18308 echo "$as_me: failed program was
:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_lib_getloadavg_getloadavg=no
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 LIBS=$ac_check_lib_save_LIBS
18318 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18319 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
18320 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18321 LIBS="-lgetloadavg $LIBS"
18323 LIBS=$ac_getloadavg_LIBS
18328 # Make sure it is really in the library, if we think we found it,
18329 # otherwise set up the replacement function.
18331 for ac_func in getloadavg
18333 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18334 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18335 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18336 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18337 echo $ECHO_N "(cached
) $ECHO_C" >&6
18339 cat >conftest.$ac_ext <<_ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18347 #define $ac_func innocuous_$ac_func
18349 /* System header to define __stub macros and hopefully few prototypes,
18350 which can conflict with char $ac_func (); below.
18351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18352 <limits.h> exists even on freestanding compilers. */
18355 # include <limits.h>
18357 # include <assert.h>
18362 /* Override any GCC internal prototype to avoid an error.
18363 Use char because int might match the return type of a GCC
18364 builtin and then its argument prototype would still apply. */
18369 /* The GNU C library defines this for functions which it implements
18370 to always fail with ENOSYS. Some functions are actually named
18371 something starting with __ and the normal name is an alias. */
18372 #if defined __stub_$ac_func || defined __stub___$ac_func
18379 return $ac_func ();
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_try") 2>&5
18416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 eval "$as_ac_var=yes"
18420 echo "$as_me: failed program was
:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 eval "$as_ac_var=no
"
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18429 ac_res=`eval echo '${'$as_ac_var'}'`
18430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18432 if test `eval echo '${'$as_ac_var'}'` = yes; then
18433 cat >>confdefs.h <<_ACEOF
18434 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18438 case " $LIBOBJS " in
18439 *" getloadavg.
$ac_objext "* ) ;;
18440 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18445 cat >>confdefs.h <<\_ACEOF
18446 #define C_GETLOADAVG 1
18449 # Figure out what our getloadavg.c needs.
18451 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18452 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18453 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
18454 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18455 echo $ECHO_N "(cached
) $ECHO_C" >&6
18457 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18458 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18460 # Is the header compilable?
18461 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18462 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
18463 cat >conftest.$ac_ext <<_ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 $ac_includes_default
18470 #include <sys/dg_sys_info.h>
18472 rm -f conftest.$ac_objext
18473 if { (ac_try="$ac_compile"
18474 case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_compile") 2>conftest.er1
18481 grep -v '^ *+' conftest.er1 >conftest.err
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest.$ac_objext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_header_compiler=yes
18508 echo "$as_me: failed program was
:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_header_compiler=no
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18516 echo "${ECHO_T}$ac_header_compiler" >&6; }
18518 # Is the header present?
18519 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18520 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
18521 cat >conftest.$ac_ext <<_ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 #include <sys/dg_sys_info.h>
18529 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18541 (exit $ac_status); } >/dev/null; then
18542 if test -s conftest.err; then
18543 ac_cpp_err=$ac_c_preproc_warn_flag
18544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18551 if test -z "$ac_cpp_err"; then
18552 ac_header_preproc=yes
18554 echo "$as_me: failed program was
:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 ac_header_preproc=no
18560 rm -f conftest.err conftest.$ac_ext
18561 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18562 echo "${ECHO_T}$ac_header_preproc" >&6; }
18564 # So? What about this header?
18565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18567 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18568 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18569 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18570 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18571 ac_header_preproc=yes
18574 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18575 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18576 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18577 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18578 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18579 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18580 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18581 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18582 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18583 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18584 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18585 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18589 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18590 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
18591 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18592 echo $ECHO_N "(cached
) $ECHO_C" >&6
18594 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18596 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18597 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18600 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18603 cat >>confdefs.h <<\_ACEOF
18608 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18609 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
18610 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18611 echo $ECHO_N "(cached
) $ECHO_C" >&6
18613 ac_check_lib_save_LIBS=$LIBS
18615 cat >conftest.$ac_ext <<_ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h. */
18622 /* Override any GCC internal prototype to avoid an error.
18623 Use char because int might match the return type of a GCC
18624 builtin and then its argument prototype would still apply. */
18628 char dg_sys_info ();
18632 return dg_sys_info ();
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18650 (exit $ac_status); } &&
18651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18652 { (case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_try") 2>&5
18659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest$ac_exeext'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_cv_lib_dgc_dg_sys_info=yes
18673 echo "$as_me: failed program was
:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_cv_lib_dgc_dg_sys_info=no
18679 rm -f core conftest.err conftest.$ac_objext \
18680 conftest$ac_exeext conftest.$ac_ext
18681 LIBS=$ac_check_lib_save_LIBS
18683 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18684 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18685 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18686 cat >>confdefs.h <<_ACEOF
18687 #define HAVE_LIBDGC 1
18698 if test "${ac_cv_header_locale_h+set}" = set; then
18699 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18700 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18701 if test "${ac_cv_header_locale_h+set}" = set; then
18702 echo $ECHO_N "(cached
) $ECHO_C" >&6
18704 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18705 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18707 # Is the header compilable?
18708 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18709 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18716 $ac_includes_default
18717 #include <locale.h>
18719 rm -f conftest.$ac_objext
18720 if { (ac_try="$ac_compile"
18721 case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_compile") 2>conftest.er1
18728 grep -v '^ *+' conftest.er1 >conftest.err
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18734 { (case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_try") 2>&5
18741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18742 (exit $ac_status); }; } &&
18743 { ac_try='test -s conftest.$ac_objext'
18744 { (case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18749 (eval "$ac_try") 2>&5
18751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_header_compiler=yes
18755 echo "$as_me: failed program was
:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_header_compiler=no
18761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18762 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18763 echo "${ECHO_T}$ac_header_compiler" >&6; }
18765 # Is the header present?
18766 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18767 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18768 cat >conftest.$ac_ext <<_ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 #include <locale.h>
18776 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18784 grep -v '^ *+' conftest.er1 >conftest.err
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18788 (exit $ac_status); } >/dev/null; then
18789 if test -s conftest.err; then
18790 ac_cpp_err=$ac_c_preproc_warn_flag
18791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18798 if test -z "$ac_cpp_err"; then
18799 ac_header_preproc=yes
18801 echo "$as_me: failed program was
:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_header_preproc=no
18807 rm -f conftest.err conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18809 echo "${ECHO_T}$ac_header_preproc" >&6; }
18811 # So? What about this header?
18812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18814 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18815 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18816 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18817 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18818 ac_header_preproc=yes
18821 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18822 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18823 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18824 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18825 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18826 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18827 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18828 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18829 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18830 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18831 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18832 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18836 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18837 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18838 if test "${ac_cv_header_locale_h+set}" = set; then
18839 echo $ECHO_N "(cached
) $ECHO_C" >&6
18841 ac_cv_header_locale_h=$ac_header_preproc
18843 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18844 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18850 for ac_func in setlocale
18852 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18853 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18854 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18855 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18856 echo $ECHO_N "(cached
) $ECHO_C" >&6
18858 cat >conftest.$ac_ext <<_ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18866 #define $ac_func innocuous_$ac_func
18868 /* System header to define __stub macros and hopefully few prototypes,
18869 which can conflict with char $ac_func (); below.
18870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18871 <limits.h> exists even on freestanding compilers. */
18874 # include <limits.h>
18876 # include <assert.h>
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18888 /* The GNU C library defines this for functions which it implements
18889 to always fail with ENOSYS. Some functions are actually named
18890 something starting with __ and the normal name is an alias. */
18891 #if defined __stub_$ac_func || defined __stub___$ac_func
18898 return $ac_func ();
18903 rm -f conftest.$ac_objext conftest$ac_exeext
18904 if { (ac_try="$ac_link"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_link") 2>conftest.er1
18912 grep -v '^ *+' conftest.er1 >conftest.err
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18918 { (case "(($ac_try" in
18919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920 *) ac_try_echo=$ac_try;;
18922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18923 (eval "$ac_try") 2>&5
18925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18926 (exit $ac_status); }; } &&
18927 { ac_try='test -s conftest$ac_exeext'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 eval "$as_ac_var=yes"
18939 echo "$as_me: failed program was
:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 eval "$as_ac_var=no
"
18945 rm -f core conftest.err conftest.$ac_objext \
18946 conftest$ac_exeext conftest.$ac_ext
18948 ac_res=`eval echo '${'$as_ac_var'}'`
18949 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18950 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18960 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18961 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18962 # Irix 4.0.5F has the header but not the library.
18963 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18966 cat >>confdefs.h <<\_ACEOF
18972 if test $ac_have_func = no; then
18973 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18974 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18975 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18976 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18977 echo $ECHO_N "(cached
) $ECHO_C" >&6
18979 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18980 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18982 # Is the header compilable?
18983 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18984 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18985 cat >conftest.$ac_ext <<_ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 $ac_includes_default
18992 #include <inq_stats/cpustats.h>
18994 rm -f conftest.$ac_objext
18995 if { (ac_try="$ac_compile"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_compile") 2>conftest.er1
19003 grep -v '^ *+' conftest.er1 >conftest.err
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19009 { (case "(($ac_try" in
19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011 *) ac_try_echo=$ac_try;;
19013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19014 (eval "$ac_try") 2>&5
19016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19027 (exit $ac_status); }; }; then
19028 ac_header_compiler=yes
19030 echo "$as_me: failed program was
:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19033 ac_header_compiler=no
19036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19038 echo "${ECHO_T}$ac_header_compiler" >&6; }
19040 # Is the header present?
19041 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19042 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049 #include <inq_stats/cpustats.h>
19051 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19063 (exit $ac_status); } >/dev/null; then
19064 if test -s conftest.err; then
19065 ac_cpp_err=$ac_c_preproc_warn_flag
19066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19073 if test -z "$ac_cpp_err"; then
19074 ac_header_preproc=yes
19076 echo "$as_me: failed program was
:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_header_preproc=no
19082 rm -f conftest.err conftest.$ac_ext
19083 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19084 echo "${ECHO_T}$ac_header_preproc" >&6; }
19086 # So? What about this header?
19087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19089 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19090 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19091 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19092 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19093 ac_header_preproc=yes
19096 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19097 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19098 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19099 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19100 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19101 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19102 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19103 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19104 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19105 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19106 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19107 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19111 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19112 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
19113 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19114 echo $ECHO_N "(cached
) $ECHO_C" >&6
19116 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19118 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19119 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
19122 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19125 cat >>confdefs.h <<\_ACEOF
19130 cat >>confdefs.h <<\_ACEOF
19139 if test $ac_have_func = no; then
19140 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19141 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19142 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
19143 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19144 echo $ECHO_N "(cached
) $ECHO_C" >&6
19146 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19147 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19149 # Is the header compilable?
19150 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19151 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
19152 cat >conftest.$ac_ext <<_ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19158 $ac_includes_default
19159 #include <sys/cpustats.h>
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_compile") 2>conftest.er1
19170 grep -v '^ *+' conftest.er1 >conftest.err
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest.$ac_objext'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_header_compiler=yes
19197 echo "$as_me: failed program was
:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_header_compiler=no
19203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19205 echo "${ECHO_T}$ac_header_compiler" >&6; }
19207 # Is the header present?
19208 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19209 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
19210 cat >conftest.$ac_ext <<_ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19216 #include <sys/cpustats.h>
19218 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19230 (exit $ac_status); } >/dev/null; then
19231 if test -s conftest.err; then
19232 ac_cpp_err=$ac_c_preproc_warn_flag
19233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19240 if test -z "$ac_cpp_err"; then
19241 ac_header_preproc=yes
19243 echo "$as_me: failed program was
:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19246 ac_header_preproc=no
19249 rm -f conftest.err conftest.$ac_ext
19250 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19251 echo "${ECHO_T}$ac_header_preproc" >&6; }
19253 # So? What about this header?
19254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19256 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19257 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19258 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19259 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19260 ac_header_preproc=yes
19263 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19264 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19265 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19266 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19267 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19268 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19269 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19270 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19271 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19272 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19273 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19274 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19278 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19279 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
19280 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19281 echo $ECHO_N "(cached
) $ECHO_C" >&6
19283 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19285 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19286 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19289 if test $ac_cv_header_sys_cpustats_h = yes; then
19290 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19299 if test $ac_have_func = no; then
19301 for ac_header in mach/mach.h
19303 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19305 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19306 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19308 echo $ECHO_N "(cached
) $ECHO_C" >&6
19310 ac_res=`eval echo '${'$as_ac_Header'}'`
19311 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19312 echo "${ECHO_T}$ac_res" >&6; }
19314 # Is the header compilable?
19315 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19316 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19317 cat >conftest.$ac_ext <<_ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19323 $ac_includes_default
19324 #include <$ac_header>
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19335 grep -v '^ *+' conftest.er1 >conftest.err
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19359 (exit $ac_status); }; }; then
19360 ac_header_compiler=yes
19362 echo "$as_me: failed program was
:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 ac_header_compiler=no
19368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19369 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19370 echo "${ECHO_T}$ac_header_compiler" >&6; }
19372 # Is the header present?
19373 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19374 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19375 cat >conftest.$ac_ext <<_ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 #include <$ac_header>
19383 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19384 case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19391 grep -v '^ *+' conftest.er1 >conftest.err
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19395 (exit $ac_status); } >/dev/null; then
19396 if test -s conftest.err; then
19397 ac_cpp_err=$ac_c_preproc_warn_flag
19398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19405 if test -z "$ac_cpp_err"; then
19406 ac_header_preproc=yes
19408 echo "$as_me: failed program was
:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ac_header_preproc=no
19414 rm -f conftest.err conftest.$ac_ext
19415 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19416 echo "${ECHO_T}$ac_header_preproc" >&6; }
19418 # So? What about this header?
19419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19421 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19422 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19423 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19425 ac_header_preproc=yes
19428 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19429 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19430 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19431 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19432 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19433 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19434 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19435 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19436 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19438 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19439 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19443 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19444 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19445 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19446 echo $ECHO_N "(cached
) $ECHO_C" >&6
19448 eval "$as_ac_Header=\
$ac_header_preproc"
19450 ac_res=`eval echo '${'$as_ac_Header'}'`
19451 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19452 echo "${ECHO_T}$ac_res" >&6; }
19455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19467 for ac_header in nlist.h
19469 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19470 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19471 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19472 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19473 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19474 echo $ECHO_N "(cached
) $ECHO_C" >&6
19476 ac_res=`eval echo '${'$as_ac_Header'}'`
19477 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19478 echo "${ECHO_T}$ac_res" >&6; }
19480 # Is the header compilable?
19481 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19482 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 $ac_includes_default
19490 #include <$ac_header>
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compile") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest.$ac_objext'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_header_compiler=yes
19528 echo "$as_me: failed program was
:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_header_compiler=no
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19536 echo "${ECHO_T}$ac_header_compiler" >&6; }
19538 # Is the header present?
19539 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19540 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19541 cat >conftest.$ac_ext <<_ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <$ac_header>
19549 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19550 case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19557 grep -v '^ *+' conftest.er1 >conftest.err
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19561 (exit $ac_status); } >/dev/null; then
19562 if test -s conftest.err; then
19563 ac_cpp_err=$ac_c_preproc_warn_flag
19564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19571 if test -z "$ac_cpp_err"; then
19572 ac_header_preproc=yes
19574 echo "$as_me: failed program was
:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_header_preproc=no
19580 rm -f conftest.err conftest.$ac_ext
19581 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19582 echo "${ECHO_T}$ac_header_preproc" >&6; }
19584 # So? What about this header?
19585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19587 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19588 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19589 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19591 ac_header_preproc=yes
19594 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19595 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19596 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19597 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19598 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19599 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19600 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19601 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19602 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19604 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19605 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19609 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19610 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19612 echo $ECHO_N "(cached
) $ECHO_C" >&6
19614 eval "$as_ac_Header=\
$ac_header_preproc"
19616 ac_res=`eval echo '${'$as_ac_Header'}'`
19617 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19618 echo "${ECHO_T}$ac_res" >&6; }
19621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19622 cat >>confdefs.h <<_ACEOF
19623 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19625 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19626 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
19627 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19628 echo $ECHO_N "(cached
) $ECHO_C" >&6
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19641 static struct nlist ac_aggr;
19642 if (ac_aggr.n_un.n_name)
19648 rm -f conftest.$ac_objext
19649 if { (ac_try="$ac_compile"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_compile") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19663 { (case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_try") 2>&5
19670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19671 (exit $ac_status); }; } &&
19672 { ac_try='test -s conftest.$ac_objext'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_cv_member_struct_nlist_n_un_n_name=yes
19684 echo "$as_me: failed program was
:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19698 static struct nlist ac_aggr;
19699 if (sizeof ac_aggr.n_un.n_name)
19705 rm -f conftest.$ac_objext
19706 if { (ac_try="$ac_compile"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_compile") 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_try") 2>&5
19737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 ac_cv_member_struct_nlist_n_un_n_name=yes
19741 echo "$as_me: failed program was
:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_cv_member_struct_nlist_n_un_n_name=no
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19753 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19754 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19756 cat >>confdefs.h <<_ACEOF
19757 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19761 cat >>confdefs.h <<\_ACEOF
19762 #define NLIST_NAME_UNION 1
19776 # Some definitions of getloadavg require that the program be installed setgid.
19777 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19778 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
19779 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19780 echo $ECHO_N "(cached
) $ECHO_C" >&6
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19789 #ifdef LDAV_PRIVILEGED
19790 Yowza Am I SETGID yet
19793 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19794 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19795 ac_cv_func_getloadavg_setgid=yes
19797 ac_cv_func_getloadavg_setgid=no
19802 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19803 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
19804 if test $ac_cv_func_getloadavg_setgid = yes; then
19807 cat >>confdefs.h <<\_ACEOF
19808 #define GETLOADAVG_PRIVILEGED 1
19815 if test $ac_cv_func_getloadavg_setgid = yes; then
19816 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19817 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
19818 if test "${ac_cv_group_kmem+set}" = set; then
19819 echo $ECHO_N "(cached
) $ECHO_C" >&6
19821 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19822 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19823 # If we got an error (system does not support symlinks), try without -L.
19824 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19825 ac_cv_group_kmem=`echo $ac_ls_output \
19826 | sed -ne 's/[ ][ ]*/ /g;
19827 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19831 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19832 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
19833 KMEM_GROUP=$ac_cv_group_kmem
19835 if test "x
$ac_save_LIBS" = x; then
19836 GETLOADAVG_LIBS=$LIBS
19838 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
19844 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19845 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
19846 if test "${ac_cv_sys_largefile_source+set}" = set; then
19847 echo $ECHO_N "(cached
) $ECHO_C" >&6
19850 ac_cv_sys_largefile_source=no
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19866 rm -f conftest.$ac_objext
19867 if { (ac_try="$ac_compile"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_compile") 2>conftest.er1
19875 grep -v '^ *+' conftest.er1 >conftest.err
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19879 (exit $ac_status); } &&
19880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest.$ac_objext'
19891 { (case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19899 (exit $ac_status); }; }; then
19902 echo "$as_me: failed program was
:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 cat >conftest.$ac_ext <<_ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 #define _LARGEFILE_SOURCE 1
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_compile") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940 { (case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_try") 2>&5
19947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
19950 { (case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_try") 2>&5
19957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_cv_sys_largefile_source=1; break
19961 echo "$as_me: failed program was
:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19972 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19973 if test "$ac_cv_sys_largefile_source" != no; then
19975 cat >>confdefs.h <<_ACEOF
19976 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19982 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19983 # in glibc 2.1.3, but that breaks too many other things.
19984 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19985 { echo "$as_me:$LINENO: checking
for fseeko
" >&5
19986 echo $ECHO_N "checking
for fseeko...
$ECHO_C" >&6; }
19987 if test "${ac_cv_func_fseeko+set}" = set; then
19988 echo $ECHO_N "(cached
) $ECHO_C" >&6
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
20000 return fseeko && fseeko (stdin, 0, 0);
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (ac_try="$ac_link"
20007 case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_link") 2>conftest.er1
20014 grep -v '^ *+' conftest.er1 >conftest.err
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20020 { (case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_try") 2>&5
20027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest$ac_exeext'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_func_fseeko=yes
20041 echo "$as_me: failed program was
:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ac_cv_func_fseeko=no
20047 rm -f core conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20050 { echo "$as_me:$LINENO: result
: $ac_cv_func_fseeko" >&5
20051 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
20052 if test $ac_cv_func_fseeko = yes; then
20054 cat >>confdefs.h <<\_ACEOF
20055 #define HAVE_FSEEKO 1
20061 # Configure getopt.
20062 # getopt.m4 serial 10
20064 # The getopt module assume you want GNU getopt, with getopt_long etc,
20065 # rather than vanilla POSIX getopt. This means your your code should
20066 # always include <getopt.h> for the getopt prototypes.
20078 # Prerequisites of lib/getopt*.
20085 for ac_header in getopt.h
20087 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20088 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20089 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20090 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20091 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20092 echo $ECHO_N "(cached
) $ECHO_C" >&6
20094 ac_res=`eval echo '${'$as_ac_Header'}'`
20095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20096 echo "${ECHO_T}$ac_res" >&6; }
20098 # Is the header compilable?
20099 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20100 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20101 cat >conftest.$ac_ext <<_ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107 $ac_includes_default
20108 #include <$ac_header>
20110 rm -f conftest.$ac_objext
20111 if { (ac_try="$ac_compile"
20112 case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_compile") 2>conftest.er1
20119 grep -v '^ *+' conftest.er1 >conftest.err
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20123 (exit $ac_status); } &&
20124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20125 { (case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_try") 2>&5
20132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20133 (exit $ac_status); }; } &&
20134 { ac_try='test -s conftest.$ac_objext'
20135 { (case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_try") 2>&5
20142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20143 (exit $ac_status); }; }; then
20144 ac_header_compiler=yes
20146 echo "$as_me: failed program was
:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20149 ac_header_compiler=no
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20154 echo "${ECHO_T}$ac_header_compiler" >&6; }
20156 # Is the header present?
20157 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20158 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <$ac_header>
20167 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20175 grep -v '^ *+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20179 (exit $ac_status); } >/dev/null; then
20180 if test -s conftest.err; then
20181 ac_cpp_err=$ac_c_preproc_warn_flag
20182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20189 if test -z "$ac_cpp_err"; then
20190 ac_header_preproc=yes
20192 echo "$as_me: failed program was
:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_header_preproc=no
20198 rm -f conftest.err conftest.$ac_ext
20199 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20200 echo "${ECHO_T}$ac_header_preproc" >&6; }
20202 # So? What about this header?
20203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20205 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20206 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20209 ac_header_preproc=yes
20212 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20213 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20214 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20215 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20216 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20217 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20218 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20219 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20220 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20222 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20223 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20227 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20228 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20229 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20230 echo $ECHO_N "(cached
) $ECHO_C" >&6
20232 eval "$as_ac_Header=\
$ac_header_preproc"
20234 ac_res=`eval echo '${'$as_ac_Header'}'`
20235 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20236 echo "${ECHO_T}$ac_res" >&6; }
20239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20250 if test -z "$GETOPT_H"; then
20252 for ac_func in getopt_long_only
20254 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20255 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20256 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20257 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20258 echo $ECHO_N "(cached
) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20268 #define $ac_func innocuous_$ac_func
20270 /* System header to define __stub macros and hopefully few prototypes,
20271 which can conflict with char $ac_func (); below.
20272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20273 <limits.h> exists even on freestanding compilers. */
20276 # include <limits.h>
20278 # include <assert.h>
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20290 /* The GNU C library defines this for functions which it implements
20291 to always fail with ENOSYS. Some functions are actually named
20292 something starting with __ and the normal name is an alias. */
20293 #if defined __stub_$ac_func || defined __stub___$ac_func
20300 return $ac_func ();
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20314 grep -v '^ *+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest$ac_exeext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 eval "$as_ac_var=yes"
20341 echo "$as_me: failed program was
:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 eval "$as_ac_var=no
"
20347 rm -f core conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20350 ac_res=`eval echo '${'$as_ac_var'}'`
20351 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20352 echo "${ECHO_T}$ac_res" >&6; }
20353 if test `eval echo '${'$as_ac_var'}'` = yes; then
20354 cat >>confdefs.h <<_ACEOF
20355 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20365 if test -z "$GETOPT_H"; then
20366 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20367 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
20368 if test "${ac_cv_have_decl_optreset+set}" = set; then
20369 echo $ECHO_N "(cached
) $ECHO_C" >&6
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <getopt.h>
20383 char *p = (char *) optreset;
20391 rm -f conftest.$ac_objext
20392 if { (ac_try="$ac_compile"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20404 (exit $ac_status); } &&
20405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20406 { (case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_try") 2>&5
20413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest.$ac_objext'
20416 { (case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_try") 2>&5
20423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_cv_have_decl_optreset=yes
20427 echo "$as_me: failed program was
:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_cv_have_decl_optreset=no
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20436 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
20437 if test $ac_cv_have_decl_optreset = yes; then
20443 if test -z "$GETOPT_H"; then
20444 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20445 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
20446 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20447 echo $ECHO_N "(cached
) $ECHO_C" >&6
20449 if test "$cross_compiling" = yes; then
20450 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20451 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
20452 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20453 echo $ECHO_N "(cached
) $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <getopt.h>
20466 #ifndef getopt_clip
20467 char *p = (char *) getopt_clip;
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest.$ac_objext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_have_decl_getopt_clip=yes
20511 echo "$as_me: failed program was
:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_cv_have_decl_getopt_clip=no
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20519 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20520 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
20521 if test $ac_cv_have_decl_getopt_clip = yes; then
20522 gl_cv_func_gnu_getopt=no
20524 gl_cv_func_gnu_getopt=yes
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 #include <getopt.h>
20540 myargv[0] = "conftest
";
20543 return getopt (2, myargv, "+a
") != '?';
20549 rm -f conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_link") 2>&5
20558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20560 { (case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_try") 2>&5
20567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20568 (exit $ac_status); }; }; then
20569 gl_cv_func_gnu_getopt=yes
20571 echo "$as_me: program exited with status
$ac_status" >&5
20572 echo "$as_me: failed program was
:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ( exit $ac_status )
20576 gl_cv_func_gnu_getopt=no
20578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20583 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20584 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
20585 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20592 if test -n "$GETOPT_H"; then
20597 cat >>confdefs.h <<\_ACEOF
20598 #define __GETOPT_PREFIX rpl_
20604 GETOPTOBJS='getopt.o getopt1.o'
20611 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20612 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
20613 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20614 echo $ECHO_N "(cached
) $ECHO_C" >&6
20616 # Use it with a single arg.
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 $ac_includes_default
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20647 { (case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20655 (exit $ac_status); }; } &&
20656 { ac_try='test -s conftest.$ac_objext'
20657 { (case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_try") 2>&5
20664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_func_getpgrp_void=no
20668 echo "$as_me: failed program was
:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_func_getpgrp_void=yes
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20677 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20678 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20679 if test $ac_cv_func_getpgrp_void = yes; then
20681 cat >>confdefs.h <<\_ACEOF
20682 #define GETPGRP_VOID 1
20689 for ac_func in strftime
20691 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20692 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20693 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20694 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20695 echo $ECHO_N "(cached
) $ECHO_C" >&6
20697 cat >conftest.$ac_ext <<_ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20705 #define $ac_func innocuous_$ac_func
20707 /* System header to define __stub macros and hopefully few prototypes,
20708 which can conflict with char $ac_func (); below.
20709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20710 <limits.h> exists even on freestanding compilers. */
20713 # include <limits.h>
20715 # include <assert.h>
20720 /* Override any GCC internal prototype to avoid an error.
20721 Use char because int might match the return type of a GCC
20722 builtin and then its argument prototype would still apply. */
20727 /* The GNU C library defines this for functions which it implements
20728 to always fail with ENOSYS. Some functions are actually named
20729 something starting with __ and the normal name is an alias. */
20730 #if defined __stub_$ac_func || defined __stub___$ac_func
20737 return $ac_func ();
20742 rm -f conftest.$ac_objext conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_link") 2>conftest.er1
20751 grep -v '^ *+' conftest.er1 >conftest.err
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20755 (exit $ac_status); } &&
20756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20765 (exit $ac_status); }; } &&
20766 { ac_try='test -s conftest$ac_exeext'
20767 { (case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_try") 2>&5
20774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 eval "$as_ac_var=yes"
20778 echo "$as_me: failed program was
:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20781 eval "$as_ac_var=no
"
20784 rm -f core conftest.err conftest.$ac_objext \
20785 conftest$ac_exeext conftest.$ac_ext
20787 ac_res=`eval echo '${'$as_ac_var'}'`
20788 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20789 echo "${ECHO_T}$ac_res" >&6; }
20790 if test `eval echo '${'$as_ac_var'}'` = yes; then
20791 cat >>confdefs.h <<_ACEOF
20792 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20796 # strftime is in -lintl on SCO UNIX.
20797 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20798 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
20799 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20800 echo $ECHO_N "(cached
) $ECHO_C" >&6
20802 ac_check_lib_save_LIBS=$LIBS
20803 LIBS="-lintl $LIBS"
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20811 /* Override any GCC internal prototype to avoid an error.
20812 Use char because int might match the return type of a GCC
20813 builtin and then its argument prototype would still apply. */
20821 return strftime ();
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_link") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20839 (exit $ac_status); } &&
20840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest$ac_exeext'
20851 { (case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_try") 2>&5
20858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 ac_cv_lib_intl_strftime=yes
20862 echo "$as_me: failed program was
:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_cv_lib_intl_strftime=no
20868 rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20873 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20874 if test $ac_cv_lib_intl_strftime = yes; then
20875 cat >>confdefs.h <<\_ACEOF
20876 #define HAVE_STRFTIME 1
20879 LIBS="-lintl $LIBS"
20888 for ac_func in grantpt
20890 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20891 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20892 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20893 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20894 echo $ECHO_N "(cached
) $ECHO_C" >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20904 #define $ac_func innocuous_$ac_func
20906 /* System header to define __stub macros and hopefully few prototypes,
20907 which can conflict with char $ac_func (); below.
20908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909 <limits.h> exists even on freestanding compilers. */
20912 # include <limits.h>
20914 # include <assert.h>
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20926 /* The GNU C library defines this for functions which it implements
20927 to always fail with ENOSYS. Some functions are actually named
20928 something starting with __ and the normal name is an alias. */
20929 #if defined __stub_$ac_func || defined __stub___$ac_func
20936 return $ac_func ();
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_link") 2>conftest.er1
20950 grep -v '^ *+' conftest.er1 >conftest.err
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20954 (exit $ac_status); } &&
20955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20956 { (case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_try") 2>&5
20963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest$ac_exeext'
20966 { (case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_try") 2>&5
20973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20974 (exit $ac_status); }; }; then
20975 eval "$as_ac_var=yes"
20977 echo "$as_me: failed program was
:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 eval "$as_ac_var=no
"
20983 rm -f core conftest.err conftest.$ac_objext \
20984 conftest$ac_exeext conftest.$ac_ext
20986 ac_res=`eval echo '${'$as_ac_var'}'`
20987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20988 echo "${ECHO_T}$ac_res" >&6; }
20989 if test `eval echo '${'$as_ac_var'}'` = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20998 # PTY-related GNU extensions.
21000 for ac_func in getpt
21002 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21003 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21004 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21005 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21006 echo $ECHO_N "(cached
) $ECHO_C" >&6
21008 cat >conftest.$ac_ext <<_ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21016 #define $ac_func innocuous_$ac_func
21018 /* System header to define __stub macros and hopefully few prototypes,
21019 which can conflict with char $ac_func (); below.
21020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21021 <limits.h> exists even on freestanding compilers. */
21024 # include <limits.h>
21026 # include <assert.h>
21031 /* Override any GCC internal prototype to avoid an error.
21032 Use char because int might match the return type of a GCC
21033 builtin and then its argument prototype would still apply. */
21038 /* The GNU C library defines this for functions which it implements
21039 to always fail with ENOSYS. Some functions are actually named
21040 something starting with __ and the normal name is an alias. */
21041 #if defined __stub_$ac_func || defined __stub___$ac_func
21048 return $ac_func ();
21053 rm -f conftest.$ac_objext conftest$ac_exeext
21054 if { (ac_try="$ac_link"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21068 { (case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_try") 2>&5
21075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest$ac_exeext'
21078 { (case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_try") 2>&5
21085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 eval "$as_ac_var=yes"
21089 echo "$as_me: failed program was
:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092 eval "$as_ac_var=no
"
21095 rm -f core conftest.err conftest.$ac_objext \
21096 conftest$ac_exeext conftest.$ac_ext
21098 ac_res=`eval echo '${'$as_ac_var'}'`
21099 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21101 if test `eval echo '${'$as_ac_var'}'` = yes; then
21102 cat >>confdefs.h <<_ACEOF
21103 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21110 # Check this now, so that we will NOT find the above functions in ncurses.
21111 # That is because we have not set up to link ncurses in lib-src.
21112 # It's better to believe a function is not available
21113 # than to expect to find it in ncurses.
21115 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
21116 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
21117 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
21118 echo $ECHO_N "(cached
) $ECHO_C" >&6
21120 ac_check_lib_save_LIBS=$LIBS
21121 LIBS="-lncurses $LIBS"
21122 cat >conftest.$ac_ext <<_ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21129 /* Override any GCC internal prototype to avoid an error.
21130 Use char because int might match the return type of a GCC
21131 builtin and then its argument prototype would still apply. */
21144 rm -f conftest.$ac_objext conftest$ac_exeext
21145 if { (ac_try="$ac_link"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_link") 2>conftest.er1
21153 grep -v '^ *+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21157 (exit $ac_status); } &&
21158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21159 { (case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_try") 2>&5
21166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21167 (exit $ac_status); }; } &&
21168 { ac_try='test -s conftest$ac_exeext'
21169 { (case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_try") 2>&5
21176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 ac_cv_lib_ncurses_tparm=yes
21180 echo "$as_me: failed program was
:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_cv_lib_ncurses_tparm=no
21186 rm -f core conftest.err conftest.$ac_objext \
21187 conftest$ac_exeext conftest.$ac_ext
21188 LIBS=$ac_check_lib_save_LIBS
21190 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
21191 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
21192 if test $ac_cv_lib_ncurses_tparm = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define HAVE_LIBNCURSES 1
21197 LIBS="-lncurses $LIBS"
21202 # Do we need the Hesiod library to provide the support routines?
21203 if test "$with_hesiod" = yes ; then
21204 # Don't set $LIBS here -- see comments above.
21206 { echo "$as_me:$LINENO: checking
for res_send
" >&5
21207 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
21208 if test "${ac_cv_func_res_send+set}" = set; then
21209 echo $ECHO_N "(cached
) $ECHO_C" >&6
21211 cat >conftest.$ac_ext <<_ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21219 #define res_send innocuous_res_send
21221 /* System header to define __stub macros and hopefully few prototypes,
21222 which can conflict with char res_send (); below.
21223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21224 <limits.h> exists even on freestanding compilers. */
21227 # include <limits.h>
21229 # include <assert.h>
21234 /* Override any GCC internal prototype to avoid an error.
21235 Use char because int might match the return type of a GCC
21236 builtin and then its argument prototype would still apply. */
21241 /* The GNU C library defines this for functions which it implements
21242 to always fail with ENOSYS. Some functions are actually named
21243 something starting with __ and the normal name is an alias. */
21244 #if defined __stub_res_send || defined __stub___res_send
21251 return res_send ();
21256 rm -f conftest.$ac_objext conftest$ac_exeext
21257 if { (ac_try="$ac_link"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_link") 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21269 (exit $ac_status); } &&
21270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21271 { (case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_try") 2>&5
21278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21279 (exit $ac_status); }; } &&
21280 { ac_try='test -s conftest$ac_exeext'
21281 { (case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_try") 2>&5
21288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 ac_cv_func_res_send=yes
21292 echo "$as_me: failed program was
:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ac_cv_func_res_send=no
21298 rm -f core conftest.err conftest.$ac_objext \
21299 conftest$ac_exeext conftest.$ac_ext
21301 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21302 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
21303 if test $ac_cv_func_res_send = yes; then
21306 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
21307 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
21308 if test "${ac_cv_func___res_send+set}" = set; then
21309 echo $ECHO_N "(cached
) $ECHO_C" >&6
21311 cat >conftest.$ac_ext <<_ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21319 #define __res_send innocuous___res_send
21321 /* System header to define __stub macros and hopefully few prototypes,
21322 which can conflict with char __res_send (); below.
21323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21324 <limits.h> exists even on freestanding compilers. */
21327 # include <limits.h>
21329 # include <assert.h>
21334 /* Override any GCC internal prototype to avoid an error.
21335 Use char because int might match the return type of a GCC
21336 builtin and then its argument prototype would still apply. */
21340 char __res_send ();
21341 /* The GNU C library defines this for functions which it implements
21342 to always fail with ENOSYS. Some functions are actually named
21343 something starting with __ and the normal name is an alias. */
21344 #if defined __stub___res_send || defined __stub_____res_send
21351 return __res_send ();
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (ac_try="$ac_link"
21358 case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_link") 2>conftest.er1
21365 grep -v '^ *+' conftest.er1 >conftest.err
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21369 (exit $ac_status); } &&
21370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21371 { (case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_try") 2>&5
21378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try='test -s conftest$ac_exeext'
21381 { (case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21386 (eval "$ac_try") 2>&5
21388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_func___res_send=yes
21392 echo "$as_me: failed program was
:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ac_cv_func___res_send=no
21398 rm -f core conftest.err conftest.$ac_objext \
21399 conftest$ac_exeext conftest.$ac_ext
21401 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21402 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
21403 if test $ac_cv_func___res_send = yes; then
21406 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21407 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
21408 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21409 echo $ECHO_N "(cached
) $ECHO_C" >&6
21411 ac_check_lib_save_LIBS=$LIBS
21412 LIBS="-lresolv $LIBS"
21413 cat >conftest.$ac_ext <<_ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21420 /* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21430 return res_send ();
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_link") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21450 { (case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_try") 2>&5
21457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest$ac_exeext'
21460 { (case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_try") 2>&5
21467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_cv_lib_resolv_res_send=yes
21471 echo "$as_me: failed program was
:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_cv_lib_resolv_res_send=no
21477 rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext conftest.$ac_ext
21479 LIBS=$ac_check_lib_save_LIBS
21481 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21482 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
21483 if test $ac_cv_lib_resolv_res_send = yes; then
21486 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21487 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
21488 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21489 echo $ECHO_N "(cached
) $ECHO_C" >&6
21491 ac_check_lib_save_LIBS=$LIBS
21492 LIBS="-lresolv $LIBS"
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21500 /* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21506 char __res_send ();
21510 return __res_send ();
21515 rm -f conftest.$ac_objext conftest$ac_exeext
21516 if { (ac_try="$ac_link"
21517 case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_link") 2>conftest.er1
21524 grep -v '^ *+' conftest.er1 >conftest.err
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21528 (exit $ac_status); } &&
21529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21530 { (case "(($ac_try" in
21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21535 (eval "$ac_try") 2>&5
21537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest$ac_exeext'
21540 { (case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_try") 2>&5
21547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 ac_cv_lib_resolv___res_send=yes
21551 echo "$as_me: failed program was
:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21554 ac_cv_lib_resolv___res_send=no
21557 rm -f core conftest.err conftest.$ac_objext \
21558 conftest$ac_exeext conftest.$ac_ext
21559 LIBS=$ac_check_lib_save_LIBS
21561 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21562 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
21563 if test $ac_cv_lib_resolv___res_send = yes; then
21573 if test "$resolv" = yes ; then
21576 cat >>confdefs.h <<\_ACEOF
21577 #define HAVE_LIBRESOLV 1
21583 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21584 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
21585 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21586 echo $ECHO_N "(cached
) $ECHO_C" >&6
21588 cat >conftest.$ac_ext <<_ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21596 #define hes_getmailhost innocuous_hes_getmailhost
21598 /* System header to define __stub macros and hopefully few prototypes,
21599 which can conflict with char hes_getmailhost (); below.
21600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21601 <limits.h> exists even on freestanding compilers. */
21604 # include <limits.h>
21606 # include <assert.h>
21609 #undef hes_getmailhost
21611 /* Override any GCC internal prototype to avoid an error.
21612 Use char because int might match the return type of a GCC
21613 builtin and then its argument prototype would still apply. */
21617 char hes_getmailhost ();
21618 /* The GNU C library defines this for functions which it implements
21619 to always fail with ENOSYS. Some functions are actually named
21620 something starting with __ and the normal name is an alias. */
21621 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21628 return hes_getmailhost ();
21633 rm -f conftest.$ac_objext conftest$ac_exeext
21634 if { (ac_try="$ac_link"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_link") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21648 { (case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_try") 2>&5
21655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest$ac_exeext'
21658 { (case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_try") 2>&5
21665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_func_hes_getmailhost=yes
21669 echo "$as_me: failed program was
:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 ac_cv_func_hes_getmailhost=no
21675 rm -f core conftest.err conftest.$ac_objext \
21676 conftest$ac_exeext conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21679 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
21680 if test $ac_cv_func_hes_getmailhost = yes; then
21683 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21684 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
21685 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21686 echo $ECHO_N "(cached
) $ECHO_C" >&6
21688 ac_check_lib_save_LIBS=$LIBS
21689 LIBS="-lhesiod $RESOLVLIB $LIBS"
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21697 /* Override any GCC internal prototype to avoid an error.
21698 Use char because int might match the return type of a GCC
21699 builtin and then its argument prototype would still apply. */
21703 char hes_getmailhost ();
21707 return hes_getmailhost ();
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (ac_try="$ac_link"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_link") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21725 (exit $ac_status); } &&
21726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21727 { (case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_try") 2>&5
21734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21735 (exit $ac_status); }; } &&
21736 { ac_try='test -s conftest$ac_exeext'
21737 { (case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_try") 2>&5
21744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_lib_hesiod_hes_getmailhost=yes
21748 echo "$as_me: failed program was
:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21751 ac_cv_lib_hesiod_hes_getmailhost=no
21754 rm -f core conftest.err conftest.$ac_objext \
21755 conftest$ac_exeext conftest.$ac_ext
21756 LIBS=$ac_check_lib_save_LIBS
21758 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21759 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21760 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21762 cat >>confdefs.h <<\_ACEOF
21763 #define HAVE_LIBHESIOD 1
21774 # These tell us which Kerberos-related libraries to use.
21775 if test "${with_kerberos+set}" = set; then
21777 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21778 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
21779 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21780 echo $ECHO_N "(cached
) $ECHO_C" >&6
21782 ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lcom_err $LIBS"
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21815 grep -v '^ *+' conftest.er1 >conftest.err
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21821 { (case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_try") 2>&5
21828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21829 (exit $ac_status); }; } &&
21830 { ac_try='test -s conftest$ac_exeext'
21831 { (case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21836 (eval "$ac_try") 2>&5
21838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21839 (exit $ac_status); }; }; then
21840 ac_cv_lib_com_err_com_err=yes
21842 echo "$as_me: failed program was
:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21845 ac_cv_lib_com_err_com_err=no
21848 rm -f core conftest.err conftest.$ac_objext \
21849 conftest$ac_exeext conftest.$ac_ext
21850 LIBS=$ac_check_lib_save_LIBS
21852 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21853 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
21854 if test $ac_cv_lib_com_err_com_err = yes; then
21855 cat >>confdefs.h <<_ACEOF
21856 #define HAVE_LIBCOM_ERR 1
21859 LIBS="-lcom_err $LIBS"
21864 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21865 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
21866 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21867 echo $ECHO_N "(cached
) $ECHO_C" >&6
21869 ac_check_lib_save_LIBS=$LIBS
21870 LIBS="-lk5crypto $LIBS"
21871 cat >conftest.$ac_ext <<_ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h. */
21878 /* Override any GCC internal prototype to avoid an error.
21879 Use char because int might match the return type of a GCC
21880 builtin and then its argument prototype would still apply. */
21884 char mit_des_cbc_encrypt ();
21888 return mit_des_cbc_encrypt ();
21893 rm -f conftest.$ac_objext conftest$ac_exeext
21894 if { (ac_try="$ac_link"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_link") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21908 { (case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_try") 2>&5
21915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try='test -s conftest$ac_exeext'
21918 { (case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_try") 2>&5
21925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21926 (exit $ac_status); }; }; then
21927 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21929 echo "$as_me: failed program was
:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21932 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21935 rm -f core conftest.err conftest.$ac_objext \
21936 conftest$ac_exeext conftest.$ac_ext
21937 LIBS=$ac_check_lib_save_LIBS
21939 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21940 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21941 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21942 cat >>confdefs.h <<_ACEOF
21943 #define HAVE_LIBK5CRYPTO 1
21946 LIBS="-lk5crypto $LIBS"
21951 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21952 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
21953 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21954 echo $ECHO_N "(cached
) $ECHO_C" >&6
21956 ac_check_lib_save_LIBS=$LIBS
21957 LIBS="-lcrypto $LIBS"
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21965 /* Override any GCC internal prototype to avoid an error.
21966 Use char because int might match the return type of a GCC
21967 builtin and then its argument prototype would still apply. */
21971 char mit_des_cbc_encrypt ();
21975 return mit_des_cbc_encrypt ();
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
22005 { (case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_try") 2>&5
22012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22016 echo "$as_me: failed program was
:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22022 rm -f core conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22024 LIBS=$ac_check_lib_save_LIBS
22026 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22027 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22028 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_LIBCRYPTO 1
22033 LIBS="-lcrypto $LIBS"
22038 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22039 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
22040 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22041 echo $ECHO_N "(cached
) $ECHO_C" >&6
22043 ac_check_lib_save_LIBS=$LIBS
22044 LIBS="-lkrb5 $LIBS"
22045 cat >conftest.$ac_ext <<_ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22052 /* Override any GCC internal prototype to avoid an error.
22053 Use char because int might match the return type of a GCC
22054 builtin and then its argument prototype would still apply. */
22058 char krb5_init_context ();
22062 return krb5_init_context ();
22067 rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_link") 2>conftest.er1
22076 grep -v '^ *+' conftest.er1 >conftest.err
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22080 (exit $ac_status); } &&
22081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22082 { (case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_try") 2>&5
22089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22090 (exit $ac_status); }; } &&
22091 { ac_try='test -s conftest$ac_exeext'
22092 { (case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_try") 2>&5
22099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 ac_cv_lib_krb5_krb5_init_context=yes
22103 echo "$as_me: failed program was
:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_cv_lib_krb5_krb5_init_context=no
22109 rm -f core conftest.err conftest.$ac_objext \
22110 conftest$ac_exeext conftest.$ac_ext
22111 LIBS=$ac_check_lib_save_LIBS
22113 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22114 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
22115 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define HAVE_LIBKRB5 1
22120 LIBS="-lkrb5 $LIBS"
22124 if test "${with_kerberos5+set}" != set; then
22126 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22127 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
22128 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22129 echo $ECHO_N "(cached
) $ECHO_C" >&6
22131 ac_check_lib_save_LIBS=$LIBS
22132 LIBS="-ldes425 $LIBS"
22133 cat >conftest.$ac_ext <<_ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22140 /* Override any GCC internal prototype to avoid an error.
22141 Use char because int might match the return type of a GCC
22142 builtin and then its argument prototype would still apply. */
22146 char des_cbc_encrypt ();
22150 return des_cbc_encrypt ();
22155 rm -f conftest.$ac_objext 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>conftest.er1
22164 grep -v '^ *+' conftest.er1 >conftest.err
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22168 (exit $ac_status); } &&
22169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22170 { (case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_try") 2>&5
22177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22178 (exit $ac_status); }; } &&
22179 { ac_try='test -s conftest$ac_exeext'
22180 { (case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_try") 2>&5
22187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ac_cv_lib_des425_des_cbc_encrypt=yes
22191 echo "$as_me: failed program was
:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 ac_cv_lib_des425_des_cbc_encrypt=no
22197 rm -f core conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
22199 LIBS=$ac_check_lib_save_LIBS
22201 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22202 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22203 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22204 cat >>confdefs.h <<_ACEOF
22205 #define HAVE_LIBDES425 1
22208 LIBS="-ldes425 $LIBS"
22212 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22213 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
22214 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22215 echo $ECHO_N "(cached
) $ECHO_C" >&6
22217 ac_check_lib_save_LIBS=$LIBS
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22232 char des_cbc_encrypt ();
22236 return des_cbc_encrypt ();
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22256 { (case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_try") 2>&5
22263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22264 (exit $ac_status); }; } &&
22265 { ac_try='test -s conftest$ac_exeext'
22266 { (case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_try") 2>&5
22273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ac_cv_lib_des_des_cbc_encrypt=yes
22277 echo "$as_me: failed program was
:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ac_cv_lib_des_des_cbc_encrypt=no
22283 rm -f core conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22285 LIBS=$ac_check_lib_save_LIBS
22287 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22288 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22289 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define HAVE_LIBDES 1
22301 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22302 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
22303 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22304 echo $ECHO_N "(cached
) $ECHO_C" >&6
22306 ac_check_lib_save_LIBS=$LIBS
22307 LIBS="-lkrb4 $LIBS"
22308 cat >conftest.$ac_ext <<_ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22315 /* Override any GCC internal prototype to avoid an error.
22316 Use char because int might match the return type of a GCC
22317 builtin and then its argument prototype would still apply. */
22321 char krb_get_cred ();
22325 return krb_get_cred ();
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22343 (exit $ac_status); } &&
22344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22345 { (case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_try") 2>&5
22352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22353 (exit $ac_status); }; } &&
22354 { ac_try='test -s conftest$ac_exeext'
22355 { (case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_try") 2>&5
22362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22363 (exit $ac_status); }; }; then
22364 ac_cv_lib_krb4_krb_get_cred=yes
22366 echo "$as_me: failed program was
:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22369 ac_cv_lib_krb4_krb_get_cred=no
22372 rm -f core conftest.err conftest.$ac_objext \
22373 conftest$ac_exeext conftest.$ac_ext
22374 LIBS=$ac_check_lib_save_LIBS
22376 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22377 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
22378 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22379 cat >>confdefs.h <<_ACEOF
22380 #define HAVE_LIBKRB4 1
22383 LIBS="-lkrb4 $LIBS"
22387 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22388 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
22389 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22390 echo $ECHO_N "(cached
) $ECHO_C" >&6
22392 ac_check_lib_save_LIBS=$LIBS
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22401 /* Override any GCC internal prototype to avoid an error.
22402 Use char because int might match the return type of a GCC
22403 builtin and then its argument prototype would still apply. */
22407 char krb_get_cred ();
22411 return krb_get_cred ();
22416 rm -f conftest.$ac_objext conftest$ac_exeext
22417 if { (ac_try="$ac_link"
22418 case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_link") 2>conftest.er1
22425 grep -v '^ *+' conftest.er1 >conftest.err
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22429 (exit $ac_status); } &&
22430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22431 { (case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_try") 2>&5
22438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22439 (exit $ac_status); }; } &&
22440 { ac_try='test -s conftest$ac_exeext'
22441 { (case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_try") 2>&5
22448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22449 (exit $ac_status); }; }; then
22450 ac_cv_lib_krb_krb_get_cred=yes
22452 echo "$as_me: failed program was
:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 ac_cv_lib_krb_krb_get_cred=no
22458 rm -f core conftest.err conftest.$ac_objext \
22459 conftest$ac_exeext conftest.$ac_ext
22460 LIBS=$ac_check_lib_save_LIBS
22462 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22463 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
22464 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22465 cat >>confdefs.h <<_ACEOF
22466 #define HAVE_LIBKRB 1
22477 if test "${with_kerberos5+set}" = set; then
22479 for ac_header in krb5.h
22481 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22482 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22483 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22484 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22485 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22486 echo $ECHO_N "(cached
) $ECHO_C" >&6
22488 ac_res=`eval echo '${'$as_ac_Header'}'`
22489 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22490 echo "${ECHO_T}$ac_res" >&6; }
22492 # Is the header compilable?
22493 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22494 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22502 #include <$ac_header>
22504 rm -f conftest.$ac_objext
22505 if { (ac_try="$ac_compile"
22506 case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_compile") 2>conftest.er1
22513 grep -v '^ *+' conftest.er1 >conftest.err
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22517 (exit $ac_status); } &&
22518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22519 { (case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
22526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try='test -s conftest.$ac_objext'
22529 { (case "(($ac_try" in
22530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531 *) ac_try_echo=$ac_try;;
22533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22534 (eval "$ac_try") 2>&5
22536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_header_compiler=yes
22540 echo "$as_me: failed program was
:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 ac_header_compiler=no
22546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22548 echo "${ECHO_T}$ac_header_compiler" >&6; }
22550 # Is the header present?
22551 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22552 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <$ac_header>
22561 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22569 grep -v '^ *+' conftest.er1 >conftest.err
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22573 (exit $ac_status); } >/dev/null; then
22574 if test -s conftest.err; then
22575 ac_cpp_err=$ac_c_preproc_warn_flag
22576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22583 if test -z "$ac_cpp_err"; then
22584 ac_header_preproc=yes
22586 echo "$as_me: failed program was
:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ac_header_preproc=no
22592 rm -f conftest.err conftest.$ac_ext
22593 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22594 echo "${ECHO_T}$ac_header_preproc" >&6; }
22596 # So? What about this header?
22597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22599 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22600 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22601 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22603 ac_header_preproc=yes
22606 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22607 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22608 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22609 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22610 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22611 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22612 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22613 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22614 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22616 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22617 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22621 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22622 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22623 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22624 echo $ECHO_N "(cached
) $ECHO_C" >&6
22626 eval "$as_ac_Header=\
$ac_header_preproc"
22628 ac_res=`eval echo '${'$as_ac_Header'}'`
22629 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22630 echo "${ECHO_T}$ac_res" >&6; }
22633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22634 cat >>confdefs.h <<_ACEOF
22635 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22644 for ac_header in des.h
22646 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22647 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22648 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22649 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22650 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22651 echo $ECHO_N "(cached
) $ECHO_C" >&6
22653 ac_res=`eval echo '${'$as_ac_Header'}'`
22654 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22655 echo "${ECHO_T}$ac_res" >&6; }
22657 # Is the header compilable?
22658 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22659 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 $ac_includes_default
22667 #include <$ac_header>
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22676 (eval "$ac_compile") 2>conftest.er1
22678 grep -v '^ *+' conftest.er1 >conftest.err
22680 cat conftest.err >&5
22681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22682 (exit $ac_status); } &&
22683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22684 { (case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_try") 2>&5
22691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest.$ac_objext'
22694 { (case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_try") 2>&5
22701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22702 (exit $ac_status); }; }; then
22703 ac_header_compiler=yes
22705 echo "$as_me: failed program was
:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22708 ac_header_compiler=no
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22713 echo "${ECHO_T}$ac_header_compiler" >&6; }
22715 # Is the header present?
22716 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22717 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <$ac_header>
22726 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22738 (exit $ac_status); } >/dev/null; then
22739 if test -s conftest.err; then
22740 ac_cpp_err=$ac_c_preproc_warn_flag
22741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22748 if test -z "$ac_cpp_err"; then
22749 ac_header_preproc=yes
22751 echo "$as_me: failed program was
:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 ac_header_preproc=no
22757 rm -f conftest.err conftest.$ac_ext
22758 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22759 echo "${ECHO_T}$ac_header_preproc" >&6; }
22761 # So? What about this header?
22762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22764 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22765 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22766 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22768 ac_header_preproc=yes
22771 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22772 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22773 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22774 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22775 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22776 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22777 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22778 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22779 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22781 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22782 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22786 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22787 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22788 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22789 echo $ECHO_N "(cached
) $ECHO_C" >&6
22791 eval "$as_ac_Header=\
$ac_header_preproc"
22793 ac_res=`eval echo '${'$as_ac_Header'}'`
22794 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22795 echo "${ECHO_T}$ac_res" >&6; }
22798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22799 cat >>confdefs.h <<_ACEOF
22800 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22805 for ac_header in kerberosIV/des.h
22807 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22808 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22809 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22810 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22811 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22812 echo $ECHO_N "(cached
) $ECHO_C" >&6
22814 ac_res=`eval echo '${'$as_ac_Header'}'`
22815 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22816 echo "${ECHO_T}$ac_res" >&6; }
22818 # Is the header compilable?
22819 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22820 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22821 cat >conftest.$ac_ext <<_ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22827 $ac_includes_default
22828 #include <$ac_header>
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22843 (exit $ac_status); } &&
22844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22845 { (case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_try") 2>&5
22852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22853 (exit $ac_status); }; } &&
22854 { ac_try='test -s conftest.$ac_objext'
22855 { (case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_try") 2>&5
22862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 ac_header_compiler=yes
22866 echo "$as_me: failed program was
:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 ac_header_compiler=no
22872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22874 echo "${ECHO_T}$ac_header_compiler" >&6; }
22876 # Is the header present?
22877 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22878 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22879 cat >conftest.$ac_ext <<_ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22885 #include <$ac_header>
22887 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22895 grep -v '^ *+' conftest.er1 >conftest.err
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22899 (exit $ac_status); } >/dev/null; then
22900 if test -s conftest.err; then
22901 ac_cpp_err=$ac_c_preproc_warn_flag
22902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22909 if test -z "$ac_cpp_err"; then
22910 ac_header_preproc=yes
22912 echo "$as_me: failed program was
:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22915 ac_header_preproc=no
22918 rm -f conftest.err conftest.$ac_ext
22919 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22920 echo "${ECHO_T}$ac_header_preproc" >&6; }
22922 # So? What about this header?
22923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22925 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22926 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22927 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22929 ac_header_preproc=yes
22932 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22933 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22934 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22935 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22936 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22937 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22938 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22939 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22940 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22942 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22943 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22947 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22948 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22949 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22950 echo $ECHO_N "(cached
) $ECHO_C" >&6
22952 eval "$as_ac_Header=\
$ac_header_preproc"
22954 ac_res=`eval echo '${'$as_ac_Header'}'`
22955 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22956 echo "${ECHO_T}$ac_res" >&6; }
22959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22960 cat >>confdefs.h <<_ACEOF
22961 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22966 for ac_header in kerberos/des.h
22968 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22970 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22971 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22973 echo $ECHO_N "(cached
) $ECHO_C" >&6
22975 ac_res=`eval echo '${'$as_ac_Header'}'`
22976 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22977 echo "${ECHO_T}$ac_res" >&6; }
22979 # Is the header compilable?
22980 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22981 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 $ac_includes_default
22989 #include <$ac_header>
22991 rm -f conftest.$ac_objext
22992 if { (ac_try="$ac_compile"
22993 case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22998 (eval "$ac_compile") 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23004 (exit $ac_status); } &&
23005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23006 { (case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_try") 2>&5
23013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest.$ac_objext'
23016 { (case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_try") 2>&5
23023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_header_compiler=yes
23027 echo "$as_me: failed program was
:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_header_compiler=no
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23035 echo "${ECHO_T}$ac_header_compiler" >&6; }
23037 # Is the header present?
23038 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23039 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <$ac_header>
23048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23049 case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23056 grep -v '^ *+' conftest.er1 >conftest.err
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23060 (exit $ac_status); } >/dev/null; then
23061 if test -s conftest.err; then
23062 ac_cpp_err=$ac_c_preproc_warn_flag
23063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23070 if test -z "$ac_cpp_err"; then
23071 ac_header_preproc=yes
23073 echo "$as_me: failed program was
:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23076 ac_header_preproc=no
23079 rm -f conftest.err conftest.$ac_ext
23080 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23081 echo "${ECHO_T}$ac_header_preproc" >&6; }
23083 # So? What about this header?
23084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23086 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23087 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23088 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23090 ac_header_preproc=yes
23093 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23094 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23095 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23096 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23097 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23098 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23099 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23100 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23101 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23103 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23104 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23108 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23109 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23110 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23111 echo $ECHO_N "(cached
) $ECHO_C" >&6
23113 eval "$as_ac_Header=\
$ac_header_preproc"
23115 ac_res=`eval echo '${'$as_ac_Header'}'`
23116 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23117 echo "${ECHO_T}$ac_res" >&6; }
23120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23121 cat >>confdefs.h <<_ACEOF
23122 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23138 for ac_header in krb.h
23140 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23142 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23143 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23145 echo $ECHO_N "(cached
) $ECHO_C" >&6
23147 ac_res=`eval echo '${'$as_ac_Header'}'`
23148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23149 echo "${ECHO_T}$ac_res" >&6; }
23151 # Is the header compilable?
23152 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23153 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 $ac_includes_default
23161 #include <$ac_header>
23163 rm -f conftest.$ac_objext
23164 if { (ac_try="$ac_compile"
23165 case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_compile") 2>conftest.er1
23172 grep -v '^ *+' conftest.er1 >conftest.err
23174 cat conftest.err >&5
23175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23176 (exit $ac_status); } &&
23177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23178 { (case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23183 (eval "$ac_try") 2>&5
23185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest.$ac_objext'
23188 { (case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23193 (eval "$ac_try") 2>&5
23195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23196 (exit $ac_status); }; }; then
23197 ac_header_compiler=yes
23199 echo "$as_me: failed program was
:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23202 ac_header_compiler=no
23205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23207 echo "${ECHO_T}$ac_header_compiler" >&6; }
23209 # Is the header present?
23210 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23211 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23212 cat >conftest.$ac_ext <<_ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h. */
23218 #include <$ac_header>
23220 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23232 (exit $ac_status); } >/dev/null; then
23233 if test -s conftest.err; then
23234 ac_cpp_err=$ac_c_preproc_warn_flag
23235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23242 if test -z "$ac_cpp_err"; then
23243 ac_header_preproc=yes
23245 echo "$as_me: failed program was
:" >&5
23246 sed 's/^/| /' conftest.$ac_ext >&5
23248 ac_header_preproc=no
23251 rm -f conftest.err conftest.$ac_ext
23252 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23253 echo "${ECHO_T}$ac_header_preproc" >&6; }
23255 # So? What about this header?
23256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23258 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23259 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23260 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23262 ac_header_preproc=yes
23265 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23266 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23267 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23268 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23269 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23270 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23271 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23272 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23273 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23275 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23276 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23280 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23281 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23282 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23283 echo $ECHO_N "(cached
) $ECHO_C" >&6
23285 eval "$as_ac_Header=\
$ac_header_preproc"
23287 ac_res=`eval echo '${'$as_ac_Header'}'`
23288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23289 echo "${ECHO_T}$ac_res" >&6; }
23292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23293 cat >>confdefs.h <<_ACEOF
23294 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23299 for ac_header in kerberosIV/krb.h
23301 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23302 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23303 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23304 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23305 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23306 echo $ECHO_N "(cached
) $ECHO_C" >&6
23308 ac_res=`eval echo '${'$as_ac_Header'}'`
23309 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23310 echo "${ECHO_T}$ac_res" >&6; }
23312 # Is the header compilable?
23313 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23314 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 $ac_includes_default
23322 #include <$ac_header>
23324 rm -f conftest.$ac_objext
23325 if { (ac_try="$ac_compile"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_compile") 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23339 { (case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_try") 2>&5
23346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest.$ac_objext'
23349 { (case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_try") 2>&5
23356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ac_header_compiler=yes
23360 echo "$as_me: failed program was
:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ac_header_compiler=no
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23368 echo "${ECHO_T}$ac_header_compiler" >&6; }
23370 # Is the header present?
23371 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23372 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23373 cat >conftest.$ac_ext <<_ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include <$ac_header>
23381 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23382 case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23387 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23389 grep -v '^ *+' conftest.er1 >conftest.err
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23393 (exit $ac_status); } >/dev/null; then
23394 if test -s conftest.err; then
23395 ac_cpp_err=$ac_c_preproc_warn_flag
23396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23403 if test -z "$ac_cpp_err"; then
23404 ac_header_preproc=yes
23406 echo "$as_me: failed program was
:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_header_preproc=no
23412 rm -f conftest.err conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23414 echo "${ECHO_T}$ac_header_preproc" >&6; }
23416 # So? What about this header?
23417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23419 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23420 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23421 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23423 ac_header_preproc=yes
23426 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23427 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23428 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23429 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23430 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23431 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23432 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23433 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23434 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23436 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23437 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23441 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23442 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23443 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23444 echo $ECHO_N "(cached
) $ECHO_C" >&6
23446 eval "$as_ac_Header=\
$ac_header_preproc"
23448 ac_res=`eval echo '${'$as_ac_Header'}'`
23449 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23450 echo "${ECHO_T}$ac_res" >&6; }
23453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23454 cat >>confdefs.h <<_ACEOF
23455 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23460 for ac_header in kerberos/krb.h
23462 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23463 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23464 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23465 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23466 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23467 echo $ECHO_N "(cached
) $ECHO_C" >&6
23469 ac_res=`eval echo '${'$as_ac_Header'}'`
23470 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23471 echo "${ECHO_T}$ac_res" >&6; }
23473 # Is the header compilable?
23474 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23475 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23476 cat >conftest.$ac_ext <<_ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h. */
23482 $ac_includes_default
23483 #include <$ac_header>
23485 rm -f conftest.$ac_objext
23486 if { (ac_try="$ac_compile"
23487 case "(($ac_try" in
23488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23492 (eval "$ac_compile") 2>conftest.er1
23494 grep -v '^ *+' conftest.er1 >conftest.err
23496 cat conftest.err >&5
23497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23498 (exit $ac_status); } &&
23499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23500 { (case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_try") 2>&5
23507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23508 (exit $ac_status); }; } &&
23509 { ac_try='test -s conftest.$ac_objext'
23510 { (case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_try") 2>&5
23517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23518 (exit $ac_status); }; }; then
23519 ac_header_compiler=yes
23521 echo "$as_me: failed program was
:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23524 ac_header_compiler=no
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23529 echo "${ECHO_T}$ac_header_compiler" >&6; }
23531 # Is the header present?
23532 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23533 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 #include <$ac_header>
23542 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23543 case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23548 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23550 grep -v '^ *+' conftest.er1 >conftest.err
23552 cat conftest.err >&5
23553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23554 (exit $ac_status); } >/dev/null; then
23555 if test -s conftest.err; then
23556 ac_cpp_err=$ac_c_preproc_warn_flag
23557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23564 if test -z "$ac_cpp_err"; then
23565 ac_header_preproc=yes
23567 echo "$as_me: failed program was
:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 ac_header_preproc=no
23573 rm -f conftest.err conftest.$ac_ext
23574 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23575 echo "${ECHO_T}$ac_header_preproc" >&6; }
23577 # So? What about this header?
23578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23580 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23581 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23582 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23584 ac_header_preproc=yes
23587 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23588 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23589 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23590 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23591 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23592 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23593 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23594 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23595 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23597 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23598 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23602 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23603 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23604 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23605 echo $ECHO_N "(cached
) $ECHO_C" >&6
23607 eval "$as_ac_Header=\
$ac_header_preproc"
23609 ac_res=`eval echo '${'$as_ac_Header'}'`
23610 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23611 echo "${ECHO_T}$ac_res" >&6; }
23614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23615 cat >>confdefs.h <<_ACEOF
23616 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23633 for ac_header in com_err.h
23635 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23636 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23637 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23638 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23640 echo $ECHO_N "(cached
) $ECHO_C" >&6
23642 ac_res=`eval echo '${'$as_ac_Header'}'`
23643 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23644 echo "${ECHO_T}$ac_res" >&6; }
23646 # Is the header compilable?
23647 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23648 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23649 cat >conftest.$ac_ext <<_ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h. */
23655 $ac_includes_default
23656 #include <$ac_header>
23658 rm -f conftest.$ac_objext
23659 if { (ac_try="$ac_compile"
23660 case "(($ac_try" in
23661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662 *) ac_try_echo=$ac_try;;
23664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23665 (eval "$ac_compile") 2>conftest.er1
23667 grep -v '^ *+' conftest.er1 >conftest.err
23669 cat conftest.err >&5
23670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23671 (exit $ac_status); } &&
23672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23673 { (case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23678 (eval "$ac_try") 2>&5
23680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23681 (exit $ac_status); }; } &&
23682 { ac_try='test -s conftest.$ac_objext'
23683 { (case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_try") 2>&5
23690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23691 (exit $ac_status); }; }; then
23692 ac_header_compiler=yes
23694 echo "$as_me: failed program was
:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23697 ac_header_compiler=no
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23702 echo "${ECHO_T}$ac_header_compiler" >&6; }
23704 # Is the header present?
23705 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23706 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23707 cat >conftest.$ac_ext <<_ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23713 #include <$ac_header>
23715 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23727 (exit $ac_status); } >/dev/null; then
23728 if test -s conftest.err; then
23729 ac_cpp_err=$ac_c_preproc_warn_flag
23730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23737 if test -z "$ac_cpp_err"; then
23738 ac_header_preproc=yes
23740 echo "$as_me: failed program was
:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23743 ac_header_preproc=no
23746 rm -f conftest.err conftest.$ac_ext
23747 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23748 echo "${ECHO_T}$ac_header_preproc" >&6; }
23750 # So? What about this header?
23751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23753 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23754 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23755 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23757 ac_header_preproc=yes
23760 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23761 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23762 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23763 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23764 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23765 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23766 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23767 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23768 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23770 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23771 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23775 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23776 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23777 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23778 echo $ECHO_N "(cached
) $ECHO_C" >&6
23780 eval "$as_ac_Header=\
$ac_header_preproc"
23782 ac_res=`eval echo '${'$as_ac_Header'}'`
23783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23784 echo "${ECHO_T}$ac_res" >&6; }
23787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23788 cat >>confdefs.h <<_ACEOF
23789 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23798 # Solaris requires -lintl if you want strerror (which calls dgettext)
23799 # to return localized messages.
23801 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23802 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
23803 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23804 echo $ECHO_N "(cached
) $ECHO_C" >&6
23806 ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lintl $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 /* Override any GCC internal prototype to avoid an error.
23816 Use char because int might match the return type of a GCC
23817 builtin and then its argument prototype would still apply. */
23825 return dgettext ();
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23837 (eval "$ac_link") 2>conftest.er1
23839 grep -v '^ *+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23843 (exit $ac_status); } &&
23844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23845 { (case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23850 (eval "$ac_try") 2>&5
23852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23853 (exit $ac_status); }; } &&
23854 { ac_try='test -s conftest$ac_exeext'
23855 { (case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_try") 2>&5
23862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23863 (exit $ac_status); }; }; then
23864 ac_cv_lib_intl_dgettext=yes
23866 echo "$as_me: failed program was
:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23869 ac_cv_lib_intl_dgettext=no
23872 rm -f core conftest.err conftest.$ac_objext \
23873 conftest$ac_exeext conftest.$ac_ext
23874 LIBS=$ac_check_lib_save_LIBS
23876 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23877 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23878 if test $ac_cv_lib_intl_dgettext = yes; then
23879 cat >>confdefs.h <<_ACEOF
23880 #define HAVE_LIBINTL 1
23883 LIBS="-lintl $LIBS"
23888 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23889 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
23890 if test "${emacs_cv_localtime_cache+set}" = set; then
23891 echo $ECHO_N "(cached
) $ECHO_C" >&6
23893 if test x$ac_cv_func_tzset = xyes; then
23894 if test "$cross_compiling" = yes; then
23895 # If we have tzset, assume the worst when cross-compiling.
23896 emacs_cv_localtime_cache=yes
23898 cat >conftest.$ac_ext <<_ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23905 extern char **environ;
23909 for (to = from = environ; (*to = *from); from++)
23910 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23913 char TZ_GMT0[] = "TZ
=GMT0
";
23914 char TZ_PST8[] = "TZ
=PST8
";
23917 time_t now = time ((time_t *) 0);
23918 int hour_GMT0, hour_unset;
23919 if (putenv (TZ_GMT0) != 0)
23921 hour_GMT0 = localtime (&now)->tm_hour;
23923 hour_unset = localtime (&now)->tm_hour;
23924 if (putenv (TZ_PST8) != 0)
23926 if (localtime (&now)->tm_hour == hour_GMT0)
23929 if (localtime (&now)->tm_hour != hour_unset)
23934 rm -f conftest$ac_exeext
23935 if { (ac_try="$ac_link"
23936 case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23941 (eval "$ac_link") 2>&5
23943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23945 { (case "(($ac_try" in
23946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947 *) ac_try_echo=$ac_try;;
23949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_try") 2>&5
23952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23953 (exit $ac_status); }; }; then
23954 emacs_cv_localtime_cache=no
23956 echo "$as_me: program exited with status
$ac_status" >&5
23957 echo "$as_me: failed program was
:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23960 ( exit $ac_status )
23961 emacs_cv_localtime_cache=yes
23963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23968 # If we lack tzset, report that localtime does not cache TZ,
23969 # since we can't invalidate the cache if we don't have tzset.
23970 emacs_cv_localtime_cache=no
23973 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
23974 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
23975 if test $emacs_cv_localtime_cache = yes; then
23977 cat >>confdefs.h <<\_ACEOF
23978 #define LOCALTIME_CACHE 1
23983 if test "x
$HAVE_TIMEVAL" = xyes; then
23985 for ac_func in gettimeofday
23987 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23988 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23989 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23990 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23991 echo $ECHO_N "(cached
) $ECHO_C" >&6
23993 cat >conftest.$ac_ext <<_ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
23999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24001 #define $ac_func innocuous_$ac_func
24003 /* System header to define __stub macros and hopefully few prototypes,
24004 which can conflict with char $ac_func (); below.
24005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24006 <limits.h> exists even on freestanding compilers. */
24009 # include <limits.h>
24011 # include <assert.h>
24016 /* Override any GCC internal prototype to avoid an error.
24017 Use char because int might match the return type of a GCC
24018 builtin and then its argument prototype would still apply. */
24023 /* The GNU C library defines this for functions which it implements
24024 to always fail with ENOSYS. Some functions are actually named
24025 something starting with __ and the normal name is an alias. */
24026 #if defined __stub_$ac_func || defined __stub___$ac_func
24033 return $ac_func ();
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (ac_try="$ac_link"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_link") 2>conftest.er1
24047 grep -v '^ *+' conftest.er1 >conftest.err
24049 cat conftest.err >&5
24050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24051 (exit $ac_status); } &&
24052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24053 { (case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_try") 2>&5
24060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest$ac_exeext'
24063 { (case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24068 (eval "$ac_try") 2>&5
24070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24071 (exit $ac_status); }; }; then
24072 eval "$as_ac_var=yes"
24074 echo "$as_me: failed program was
:" >&5
24075 sed 's/^/| /' conftest.$ac_ext >&5
24077 eval "$as_ac_var=no
"
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24083 ac_res=`eval echo '${'$as_ac_var'}'`
24084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24085 echo "${ECHO_T}$ac_res" >&6; }
24086 if test `eval echo '${'$as_ac_var'}'` = yes; then
24087 cat >>confdefs.h <<_ACEOF
24088 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24094 if test $ac_cv_func_gettimeofday = yes; then
24095 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24096 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
24097 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24098 echo $ECHO_N "(cached
) $ECHO_C" >&6
24100 cat >conftest.$ac_ext <<_ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24107 #ifdef TIME_WITH_SYS_TIME
24108 #include <sys/time.h>
24111 #ifdef HAVE_SYS_TIME_H
24112 #include <sys/time.h>
24120 struct timeval time;
24121 gettimeofday (&time, 0);
24126 rm -f conftest.$ac_objext
24127 if { (ac_try="$ac_compile"
24128 case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24135 grep -v '^ *+' conftest.er1 >conftest.err
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24139 (exit $ac_status); } &&
24140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24141 { (case "(($ac_try" in
24142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143 *) ac_try_echo=$ac_try;;
24145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24146 (eval "$ac_try") 2>&5
24148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24149 (exit $ac_status); }; } &&
24150 { ac_try='test -s conftest.$ac_objext'
24151 { (case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_try") 2>&5
24158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 emacs_cv_gettimeofday_two_arguments=yes
24162 echo "$as_me: failed program was
:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24165 emacs_cv_gettimeofday_two_arguments=no
24168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24171 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
24172 if test $emacs_cv_gettimeofday_two_arguments = no; then
24174 cat >>confdefs.h <<\_ACEOF
24175 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24183 { echo "$as_me:$LINENO: checking
for socket
" >&5
24184 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
24185 if test "${ac_cv_func_socket+set}" = set; then
24186 echo $ECHO_N "(cached
) $ECHO_C" >&6
24188 cat >conftest.$ac_ext <<_ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24196 #define socket innocuous_socket
24198 /* System header to define __stub macros and hopefully few prototypes,
24199 which can conflict with char socket (); below.
24200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24201 <limits.h> exists even on freestanding compilers. */
24204 # include <limits.h>
24206 # include <assert.h>
24211 /* Override any GCC internal prototype to avoid an error.
24212 Use char because int might match the return type of a GCC
24213 builtin and then its argument prototype would still apply. */
24218 /* The GNU C library defines this for functions which it implements
24219 to always fail with ENOSYS. Some functions are actually named
24220 something starting with __ and the normal name is an alias. */
24221 #if defined __stub_socket || defined __stub___socket
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (ac_try="$ac_link"
24235 case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_link") 2>conftest.er1
24242 grep -v '^ *+' conftest.er1 >conftest.err
24244 cat conftest.err >&5
24245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24246 (exit $ac_status); } &&
24247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24248 { (case "(($ac_try" in
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24253 (eval "$ac_try") 2>&5
24255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24256 (exit $ac_status); }; } &&
24257 { ac_try='test -s conftest$ac_exeext'
24258 { (case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_try") 2>&5
24265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_cv_func_socket=yes
24269 echo "$as_me: failed program was
:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_cv_func_socket=no
24275 rm -f core conftest.err conftest.$ac_objext \
24276 conftest$ac_exeext conftest.$ac_ext
24278 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24279 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
24280 if test $ac_cv_func_socket = yes; then
24286 if test $ok_so_far = yes; then
24287 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24288 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24289 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
24290 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24291 echo $ECHO_N "(cached
) $ECHO_C" >&6
24293 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24294 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24296 # Is the header compilable?
24297 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24298 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
24299 cat >conftest.$ac_ext <<_ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24305 $ac_includes_default
24306 #include <netinet/in.h>
24308 rm -f conftest.$ac_objext
24309 if { (ac_try="$ac_compile"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_compile") 2>conftest.er1
24317 grep -v '^ *+' conftest.er1 >conftest.err
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24321 (exit $ac_status); } &&
24322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24323 { (case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24328 (eval "$ac_try") 2>&5
24330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest.$ac_objext'
24333 { (case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_try") 2>&5
24340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24341 (exit $ac_status); }; }; then
24342 ac_header_compiler=yes
24344 echo "$as_me: failed program was
:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24347 ac_header_compiler=no
24350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24352 echo "${ECHO_T}$ac_header_compiler" >&6; }
24354 # Is the header present?
24355 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24356 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
24357 cat >conftest.$ac_ext <<_ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 #include <netinet/in.h>
24365 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24373 grep -v '^ *+' conftest.er1 >conftest.err
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24377 (exit $ac_status); } >/dev/null; then
24378 if test -s conftest.err; then
24379 ac_cpp_err=$ac_c_preproc_warn_flag
24380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24387 if test -z "$ac_cpp_err"; then
24388 ac_header_preproc=yes
24390 echo "$as_me: failed program was
:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24393 ac_header_preproc=no
24396 rm -f conftest.err conftest.$ac_ext
24397 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24398 echo "${ECHO_T}$ac_header_preproc" >&6; }
24400 # So? What about this header?
24401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24403 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24404 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24405 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24406 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24407 ac_header_preproc=yes
24410 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24411 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24412 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24413 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24414 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24415 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24416 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24417 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24418 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24419 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24420 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24421 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24425 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24426 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
24427 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24428 echo $ECHO_N "(cached
) $ECHO_C" >&6
24430 ac_cv_header_netinet_in_h=$ac_header_preproc
24432 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24433 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24436 if test $ac_cv_header_netinet_in_h = yes; then
24444 if test $ok_so_far = yes; then
24445 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24446 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24447 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
24448 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24449 echo $ECHO_N "(cached
) $ECHO_C" >&6
24451 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24452 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24454 # Is the header compilable?
24455 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24456 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
24457 cat >conftest.$ac_ext <<_ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24463 $ac_includes_default
24464 #include <arpa/inet.h>
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24479 (exit $ac_status); } &&
24480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24481 { (case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24486 (eval "$ac_try") 2>&5
24488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24489 (exit $ac_status); }; } &&
24490 { ac_try='test -s conftest.$ac_objext'
24491 { (case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_try") 2>&5
24498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24499 (exit $ac_status); }; }; then
24500 ac_header_compiler=yes
24502 echo "$as_me: failed program was
:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24505 ac_header_compiler=no
24508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24509 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24510 echo "${ECHO_T}$ac_header_compiler" >&6; }
24512 # Is the header present?
24513 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24514 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 #include <arpa/inet.h>
24523 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24524 case "(($ac_try" in
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526 *) ac_try_echo=$ac_try;;
24528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24529 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24531 grep -v '^ *+' conftest.er1 >conftest.err
24533 cat conftest.err >&5
24534 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24535 (exit $ac_status); } >/dev/null; then
24536 if test -s conftest.err; then
24537 ac_cpp_err=$ac_c_preproc_warn_flag
24538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24545 if test -z "$ac_cpp_err"; then
24546 ac_header_preproc=yes
24548 echo "$as_me: failed program was
:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24551 ac_header_preproc=no
24554 rm -f conftest.err conftest.$ac_ext
24555 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24556 echo "${ECHO_T}$ac_header_preproc" >&6; }
24558 # So? What about this header?
24559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24561 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24562 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24563 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24564 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24565 ac_header_preproc=yes
24568 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24569 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24570 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24571 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24572 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24573 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24574 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24575 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24576 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24577 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24578 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24579 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24583 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24584 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
24585 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24586 echo $ECHO_N "(cached
) $ECHO_C" >&6
24588 ac_cv_header_arpa_inet_h=$ac_header_preproc
24590 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24591 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24594 if test $ac_cv_header_arpa_inet_h = yes; then
24602 if test $ok_so_far = yes; then
24604 cat >>confdefs.h <<\_ACEOF
24605 #define HAVE_INET_SOCKETS 1
24611 for ac_header in sys/ioctl.h
24613 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24614 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24615 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24616 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24617 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24618 echo $ECHO_N "(cached
) $ECHO_C" >&6
24620 ac_res=`eval echo '${'$as_ac_Header'}'`
24621 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24622 echo "${ECHO_T}$ac_res" >&6; }
24624 # Is the header compilable?
24625 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24626 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 $ac_includes_default
24634 #include <$ac_header>
24636 rm -f conftest.$ac_objext
24637 if { (ac_try="$ac_compile"
24638 case "(($ac_try" in
24639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640 *) ac_try_echo=$ac_try;;
24642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24643 (eval "$ac_compile") 2>conftest.er1
24645 grep -v '^ *+' conftest.er1 >conftest.err
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24651 { (case "(($ac_try" in
24652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653 *) ac_try_echo=$ac_try;;
24655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24656 (eval "$ac_try") 2>&5
24658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24659 (exit $ac_status); }; } &&
24660 { ac_try='test -s conftest.$ac_objext'
24661 { (case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_try") 2>&5
24668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 ac_header_compiler=yes
24672 echo "$as_me: failed program was
:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ac_header_compiler=no
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24680 echo "${ECHO_T}$ac_header_compiler" >&6; }
24682 # Is the header present?
24683 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24684 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <$ac_header>
24693 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24699 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24701 grep -v '^ *+' conftest.er1 >conftest.err
24703 cat conftest.err >&5
24704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24705 (exit $ac_status); } >/dev/null; then
24706 if test -s conftest.err; then
24707 ac_cpp_err=$ac_c_preproc_warn_flag
24708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24715 if test -z "$ac_cpp_err"; then
24716 ac_header_preproc=yes
24718 echo "$as_me: failed program was
:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24721 ac_header_preproc=no
24724 rm -f conftest.err conftest.$ac_ext
24725 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24726 echo "${ECHO_T}$ac_header_preproc" >&6; }
24728 # So? What about this header?
24729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24731 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24732 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24733 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24735 ac_header_preproc=yes
24738 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24739 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24740 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24741 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24742 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24743 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24744 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24745 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24746 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24748 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24749 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24753 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24754 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24755 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24756 echo $ECHO_N "(cached
) $ECHO_C" >&6
24758 eval "$as_ac_Header=\
$ac_header_preproc"
24760 ac_res=`eval echo '${'$as_ac_Header'}'`
24761 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24762 echo "${ECHO_T}$ac_res" >&6; }
24765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24766 cat >>confdefs.h <<_ACEOF
24767 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24775 if test -f /usr/lpp/X11/bin/smt.exp; then
24777 cat >>confdefs.h <<\_ACEOF
24778 #define HAVE_AIX_SMT_EXP 1
24783 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24784 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
24785 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24786 { echo "$as_me:$LINENO: result
: yes" >&5
24787 echo "${ECHO_T}yes" >&6; }
24789 cat >>confdefs.h <<\_ACEOF
24790 #define HAVE_DEV_PTMX 1
24794 { echo "$as_me:$LINENO: result
: no
" >&5
24795 echo "${ECHO_T}no
" >&6; }
24798 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
24799 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
24800 if test "${ac_cv_type_pid_t+set}" = set; then
24801 echo $ECHO_N "(cached
) $ECHO_C" >&6
24803 cat >conftest.$ac_ext <<_ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24809 $ac_includes_default
24810 typedef pid_t ac__type_new_;
24814 if ((ac__type_new_ *) 0)
24816 if (sizeof (ac__type_new_))
24822 rm -f conftest.$ac_objext
24823 if { (ac_try="$ac_compile"
24824 case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_compile") 2>conftest.er1
24831 grep -v '^ *+' conftest.er1 >conftest.err
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24835 (exit $ac_status); } &&
24836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24837 { (case "(($ac_try" in
24838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839 *) ac_try_echo=$ac_try;;
24841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24842 (eval "$ac_try") 2>&5
24844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24845 (exit $ac_status); }; } &&
24846 { ac_try='test -s conftest.$ac_objext'
24847 { (case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_try") 2>&5
24854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24855 (exit $ac_status); }; }; then
24856 ac_cv_type_pid_t=yes
24858 echo "$as_me: failed program was
:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24861 ac_cv_type_pid_t=no
24864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24866 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24868 if test $ac_cv_type_pid_t = yes; then
24872 cat >>confdefs.h <<_ACEOF
24879 for ac_header in vfork.h
24881 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24882 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24883 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24884 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24885 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24886 echo $ECHO_N "(cached
) $ECHO_C" >&6
24888 ac_res=`eval echo '${'$as_ac_Header'}'`
24889 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24890 echo "${ECHO_T}$ac_res" >&6; }
24892 # Is the header compilable?
24893 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24894 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 $ac_includes_default
24902 #include <$ac_header>
24904 rm -f conftest.$ac_objext
24905 if { (ac_try="$ac_compile"
24906 case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24911 (eval "$ac_compile") 2>conftest.er1
24913 grep -v '^ *+' conftest.er1 >conftest.err
24915 cat conftest.err >&5
24916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24917 (exit $ac_status); } &&
24918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24919 { (case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_try") 2>&5
24926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24927 (exit $ac_status); }; } &&
24928 { ac_try='test -s conftest.$ac_objext'
24929 { (case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24934 (eval "$ac_try") 2>&5
24936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_header_compiler=yes
24940 echo "$as_me: failed program was
:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_header_compiler=no
24946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24947 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24948 echo "${ECHO_T}$ac_header_compiler" >&6; }
24950 # Is the header present?
24951 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24952 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
24953 cat >conftest.$ac_ext <<_ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24959 #include <$ac_header>
24961 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24962 case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24967 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1 >conftest.err
24971 cat conftest.err >&5
24972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24973 (exit $ac_status); } >/dev/null; then
24974 if test -s conftest.err; then
24975 ac_cpp_err=$ac_c_preproc_warn_flag
24976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24983 if test -z "$ac_cpp_err"; then
24984 ac_header_preproc=yes
24986 echo "$as_me: failed program was
:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24989 ac_header_preproc=no
24992 rm -f conftest.err conftest.$ac_ext
24993 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24994 echo "${ECHO_T}$ac_header_preproc" >&6; }
24996 # So? What about this header?
24997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24999 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25000 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25001 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25003 ac_header_preproc=yes
25006 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25007 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25008 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25009 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25010 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25011 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25012 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25013 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25014 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25016 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25017 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25021 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
25022 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
25023 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25024 echo $ECHO_N "(cached
) $ECHO_C" >&6
25026 eval "$as_ac_Header=\
$ac_header_preproc"
25028 ac_res=`eval echo '${'$as_ac_Header'}'`
25029 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25030 echo "${ECHO_T}$ac_res" >&6; }
25033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25034 cat >>confdefs.h <<_ACEOF
25035 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25044 for ac_func in fork vfork
25046 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25047 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
25048 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
25049 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25050 echo $ECHO_N "(cached
) $ECHO_C" >&6
25052 cat >conftest.$ac_ext <<_ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25060 #define $ac_func innocuous_$ac_func
25062 /* System header to define __stub macros and hopefully few prototypes,
25063 which can conflict with char $ac_func (); below.
25064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25065 <limits.h> exists even on freestanding compilers. */
25068 # include <limits.h>
25070 # include <assert.h>
25075 /* Override any GCC internal prototype to avoid an error.
25076 Use char because int might match the return type of a GCC
25077 builtin and then its argument prototype would still apply. */
25082 /* The GNU C library defines this for functions which it implements
25083 to always fail with ENOSYS. Some functions are actually named
25084 something starting with __ and the normal name is an alias. */
25085 #if defined __stub_$ac_func || defined __stub___$ac_func
25092 return $ac_func ();
25097 rm -f conftest.$ac_objext conftest$ac_exeext
25098 if { (ac_try="$ac_link"
25099 case "(($ac_try" in
25100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101 *) ac_try_echo=$ac_try;;
25103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25104 (eval "$ac_link") 2>conftest.er1
25106 grep -v '^ *+' conftest.er1 >conftest.err
25108 cat conftest.err >&5
25109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25110 (exit $ac_status); } &&
25111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25112 { (case "(($ac_try" in
25113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114 *) ac_try_echo=$ac_try;;
25116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25117 (eval "$ac_try") 2>&5
25119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25120 (exit $ac_status); }; } &&
25121 { ac_try='test -s conftest$ac_exeext'
25122 { (case "(($ac_try" in
25123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_try") 2>&5
25129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 eval "$as_ac_var=yes"
25133 echo "$as_me: failed program was
:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25136 eval "$as_ac_var=no
"
25139 rm -f core conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25142 ac_res=`eval echo '${'$as_ac_var'}'`
25143 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25144 echo "${ECHO_T}$ac_res" >&6; }
25145 if test `eval echo '${'$as_ac_var'}'` = yes; then
25146 cat >>confdefs.h <<_ACEOF
25147 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25153 if test "x
$ac_cv_func_fork" = xyes; then
25154 { echo "$as_me:$LINENO: checking
for working fork
" >&5
25155 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
25156 if test "${ac_cv_func_fork_works+set}" = set; then
25157 echo $ECHO_N "(cached
) $ECHO_C" >&6
25159 if test "$cross_compiling" = yes; then
25160 ac_cv_func_fork_works=cross
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 $ac_includes_default
25173 /* By Ruediger Kuhlmann. */
25174 return fork () < 0;
25180 rm -f conftest$ac_exeext
25181 if { (ac_try="$ac_link"
25182 case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_link") 2>&5
25189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25191 { (case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25196 (eval "$ac_try") 2>&5
25198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25199 (exit $ac_status); }; }; then
25200 ac_cv_func_fork_works=yes
25202 echo "$as_me: program exited with status
$ac_status" >&5
25203 echo "$as_me: failed program was
:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25206 ( exit $ac_status )
25207 ac_cv_func_fork_works=no
25209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25214 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25215 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25218 ac_cv_func_fork_works=$ac_cv_func_fork
25220 if test "x
$ac_cv_func_fork_works" = xcross; then
25222 *-*-amigaos* | *-*-msdosdjgpp*)
25223 # Override, as these systems have only a dummy fork() stub
25224 ac_cv_func_fork_works=no
25227 ac_cv_func_fork_works=yes
25230 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25231 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25233 ac_cv_func_vfork_works=$ac_cv_func_vfork
25234 if test "x
$ac_cv_func_vfork" = xyes; then
25235 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
25236 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
25237 if test "${ac_cv_func_vfork_works+set}" = set; then
25238 echo $ECHO_N "(cached
) $ECHO_C" >&6
25240 if test "$cross_compiling" = yes; then
25241 ac_cv_func_vfork_works=cross
25243 cat >conftest.$ac_ext <<_ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 /* Thanks to Paul Eggert for this test. */
25250 $ac_includes_default
25251 #include <sys/wait.h>
25253 # include <vfork.h>
25255 /* On some sparc systems, changes by the child to local and incoming
25256 argument registers are propagated back to the parent. The compiler
25257 is told about this with #include <vfork.h>, but some compilers
25258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25259 static variable whose address is put into a register that is
25260 clobbered by the vfork. */
25263 sparc_address_test (int arg)
25265 sparc_address_test (arg) int arg;
25268 static pid_t child;
25286 pid_t parent = getpid ();
25289 sparc_address_test (0);
25294 /* Here is another test for sparc vfork register problems. This
25295 test uses lots of local variables, at least as many local
25296 variables as main has allocated so far including compiler
25297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25299 reuse the register of parent for one of the local variables,
25300 since it will think that parent can't possibly be used any more
25301 in this routine. Assigning to the local variable will thus
25302 munge parent in the parent process. */
25304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25306 /* Convince the compiler that p..p7 are live; otherwise, it might
25307 use the same hardware register for all 8 local variables. */
25308 if (p != p1 || p != p2 || p != p3 || p != p4
25309 || p != p5 || p != p6 || p != p7)
25312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25313 from child file descriptors. If the child closes a descriptor
25314 before it execs or exits, this munges the parent's descriptor
25315 as well. Test for this by closing stdout in the child. */
25316 _exit(close(fileno(stdout)) != 0);
25321 while (wait(&status) != child)
25324 /* Was there some problem with vforking? */
25327 /* Did the child fail? (This shouldn't happen.) */
25330 /* Did the vfork/compiler bug occur? */
25331 || parent != getpid()
25333 /* Did the file descriptor bug occur? */
25334 || fstat(fileno(stdout), &st) != 0
25339 rm -f conftest$ac_exeext
25340 if { (ac_try="$ac_link"
25341 case "(($ac_try" in
25342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343 *) ac_try_echo=$ac_try;;
25345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25346 (eval "$ac_link") 2>&5
25348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25350 { (case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_try") 2>&5
25357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25358 (exit $ac_status); }; }; then
25359 ac_cv_func_vfork_works=yes
25361 echo "$as_me: program exited with status
$ac_status" >&5
25362 echo "$as_me: failed program was
:" >&5
25363 sed 's/^/| /' conftest.$ac_ext >&5
25365 ( exit $ac_status )
25366 ac_cv_func_vfork_works=no
25368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25373 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25374 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25377 if test "x
$ac_cv_func_fork_works" = xcross; then
25378 ac_cv_func_vfork_works=$ac_cv_func_vfork
25379 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25380 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25383 if test "x
$ac_cv_func_vfork_works" = xyes; then
25385 cat >>confdefs.h <<\_ACEOF
25386 #define HAVE_WORKING_VFORK 1
25391 cat >>confdefs.h <<\_ACEOF
25396 if test "x
$ac_cv_func_fork_works" = xyes; then
25398 cat >>confdefs.h <<\_ACEOF
25399 #define HAVE_WORKING_FORK 1
25405 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25406 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
25407 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25408 echo $ECHO_N "(cached
) $ECHO_C" >&6
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 #include <langinfo.h>
25420 char* cs = nl_langinfo(CODESET);
25425 rm -f conftest.$ac_objext conftest$ac_exeext
25426 if { (ac_try="$ac_link"
25427 case "(($ac_try" in
25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25432 (eval "$ac_link") 2>conftest.er1
25434 grep -v '^ *+' conftest.er1 >conftest.err
25436 cat conftest.err >&5
25437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25438 (exit $ac_status); } &&
25439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25440 { (case "(($ac_try" in
25441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25442 *) ac_try_echo=$ac_try;;
25444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25445 (eval "$ac_try") 2>&5
25447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25448 (exit $ac_status); }; } &&
25449 { ac_try='test -s conftest$ac_exeext'
25450 { (case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_try") 2>&5
25457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25458 (exit $ac_status); }; }; then
25459 emacs_cv_langinfo_codeset=yes
25461 echo "$as_me: failed program was
:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 emacs_cv_langinfo_codeset=no
25467 rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
25471 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25472 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
25473 if test $emacs_cv_langinfo_codeset = yes; then
25475 cat >>confdefs.h <<\_ACEOF
25476 #define HAVE_LANGINFO_CODESET 1
25481 { echo "$as_me:$LINENO: checking
for size_t
" >&5
25482 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
25483 if test "${ac_cv_type_size_t+set}" = set; then
25484 echo $ECHO_N "(cached
) $ECHO_C" >&6
25486 cat >conftest.$ac_ext <<_ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25492 $ac_includes_default
25493 typedef size_t ac__type_new_;
25497 if ((ac__type_new_ *) 0)
25499 if (sizeof (ac__type_new_))
25505 rm -f conftest.$ac_objext
25506 if { (ac_try="$ac_compile"
25507 case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25512 (eval "$ac_compile") 2>conftest.er1
25514 grep -v '^ *+' conftest.er1 >conftest.err
25516 cat conftest.err >&5
25517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25518 (exit $ac_status); } &&
25519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25520 { (case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25525 (eval "$ac_try") 2>&5
25527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25528 (exit $ac_status); }; } &&
25529 { ac_try='test -s conftest.$ac_objext'
25530 { (case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25535 (eval "$ac_try") 2>&5
25537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25538 (exit $ac_status); }; }; then
25539 ac_cv_type_size_t=yes
25541 echo "$as_me: failed program was
:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25544 ac_cv_type_size_t=no
25547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25549 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25550 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25551 if test $ac_cv_type_size_t = yes; then
25553 cat >>confdefs.h <<_ACEOF
25554 #define HAVE_SIZE_T 1
25561 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25562 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
25563 if test "${ac_cv_type_mbstate_t+set}" = set; then
25564 echo $ECHO_N "(cached
) $ECHO_C" >&6
25566 cat >conftest.$ac_ext <<_ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25572 $ac_includes_default
25573 # include <wchar.h>
25577 mbstate_t x; return sizeof x;
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_compile") 2>conftest.er1
25591 grep -v '^ *+' conftest.er1 >conftest.err
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25595 (exit $ac_status); } &&
25596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25597 { (case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_try") 2>&5
25604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25605 (exit $ac_status); }; } &&
25606 { ac_try='test -s conftest.$ac_objext'
25607 { (case "(($ac_try" in
25608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25609 *) ac_try_echo=$ac_try;;
25611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25612 (eval "$ac_try") 2>&5
25614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25615 (exit $ac_status); }; }; then
25616 ac_cv_type_mbstate_t=yes
25618 echo "$as_me: failed program was
:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25621 ac_cv_type_mbstate_t=no
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25626 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25627 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
25628 if test $ac_cv_type_mbstate_t = yes; then
25630 cat >>confdefs.h <<\_ACEOF
25631 #define HAVE_MBSTATE_T 1
25636 cat >>confdefs.h <<\_ACEOF
25637 #define mbstate_t int
25642 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25643 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
25644 if test "${emacs_cv_c_restrict+set}" = set; then
25645 echo $ECHO_N "(cached
) $ECHO_C" >&6
25647 cat >conftest.$ac_ext <<_ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h. */
25653 void fred (int *restrict x);
25662 rm -f conftest.$ac_objext
25663 if { (ac_try="$ac_compile"
25664 case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25669 (eval "$ac_compile") 2>conftest.er1
25671 grep -v '^ *+' conftest.er1 >conftest.err
25673 cat conftest.err >&5
25674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25675 (exit $ac_status); } &&
25676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25677 { (case "(($ac_try" in
25678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25679 *) ac_try_echo=$ac_try;;
25681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25682 (eval "$ac_try") 2>&5
25684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25685 (exit $ac_status); }; } &&
25686 { ac_try='test -s conftest.$ac_objext'
25687 { (case "(($ac_try" in
25688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689 *) ac_try_echo=$ac_try;;
25691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25692 (eval "$ac_try") 2>&5
25694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 emacs_cv_c_restrict=yes
25698 echo "$as_me: failed program was
:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25701 cat >conftest.$ac_ext <<_ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 void fred (int *__restrict x);
25716 rm -f conftest.$ac_objext
25717 if { (ac_try="$ac_compile"
25718 case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25723 (eval "$ac_compile") 2>conftest.er1
25725 grep -v '^ *+' conftest.er1 >conftest.err
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25729 (exit $ac_status); } &&
25730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25731 { (case "(($ac_try" in
25732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25736 (eval "$ac_try") 2>&5
25738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest.$ac_objext'
25741 { (case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_try") 2>&5
25748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 emacs_cv_c_restrict=__restrict
25752 echo "$as_me: failed program was
:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25755 emacs_cv_c_restrict=no
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25763 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25764 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
25765 case "$emacs_cv_c_restrict" in
25766 yes) emacs_restrict=restrict;;
25767 no) emacs_restrict="";;
25768 *) emacs_restrict="$emacs_cv_c_restrict";;
25770 if test "$emacs_restrict" != __restrict; then
25772 cat >>confdefs.h <<_ACEOF
25773 #define __restrict $emacs_restrict
25778 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25779 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
25780 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25781 echo $ECHO_N "(cached
) $ECHO_C" >&6
25783 cat >conftest.$ac_ext <<_ACEOF
25786 cat confdefs.h >>conftest.$ac_ext
25787 cat >>conftest.$ac_ext <<_ACEOF
25788 /* end confdefs.h. */
25789 void fred (int x[__restrict]);
25798 rm -f conftest.$ac_objext
25799 if { (ac_try="$ac_compile"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_compile") 2>conftest.er1
25807 grep -v '^ *+' conftest.er1 >conftest.err
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25811 (exit $ac_status); } &&
25812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25813 { (case "(($ac_try" in
25814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815 *) ac_try_echo=$ac_try;;
25817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25818 (eval "$ac_try") 2>&5
25820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25821 (exit $ac_status); }; } &&
25822 { ac_try='test -s conftest.$ac_objext'
25823 { (case "(($ac_try" in
25824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825 *) ac_try_echo=$ac_try;;
25827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25828 (eval "$ac_try") 2>&5
25830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25831 (exit $ac_status); }; }; then
25832 emacs_cv_c_restrict_arr=yes
25834 echo "$as_me: failed program was
:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25837 emacs_cv_c_restrict_arr=no
25840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25843 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
25844 if test "$emacs_cv_c_restrict_arr" = yes; then
25846 cat >>confdefs.h <<\_ACEOF
25847 #define __restrict_arr __restrict
25854 # Set up the CFLAGS for real compilation, so we can substitute it.
25855 CFLAGS="$REAL_CFLAGS"
25856 CPPFLAGS="$REAL_CPPFLAGS"
25858 #### Find out which version of Emacs this is.
25859 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25860 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25861 if test x"${version}" = x; then
25862 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25863 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25864 { (exit 1); exit 1; }; }
25867 ### Specify what sort of things we'll be editing into Makefile and config.h.
25868 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25904 cat >>confdefs.h <<_ACEOF
25905 #define EMACS_CONFIGURATION "${canonical}"
25909 cat >>confdefs.h <<_ACEOF
25910 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25914 cat >>confdefs.h <<_ACEOF
25915 #define config_machfile "${machfile}"
25919 cat >>confdefs.h <<_ACEOF
25920 #define config_opsysfile "${opsysfile}"
25924 cat >>confdefs.h <<_ACEOF
25925 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25929 cat >>confdefs.h <<_ACEOF
25930 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25934 cat >>confdefs.h <<_ACEOF
25935 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25939 cat >>confdefs.h <<_ACEOF
25940 #define UNEXEC_SRC ${UNEXEC_SRC}
25944 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25946 cat >>confdefs.h <<\_ACEOF
25947 #define HAVE_X_WINDOWS 1
25951 if test "${USE_X_TOOLKIT}" != "none
" ; then
25953 cat >>confdefs.h <<\_ACEOF
25954 #define USE_X_TOOLKIT 1
25958 if test "${HAVE_X11}" = "yes" ; then
25960 cat >>confdefs.h <<\_ACEOF
25965 if test "${HAVE_XFREE386}" = "yes" ; then
25967 cat >>confdefs.h <<\_ACEOF
25968 #define HAVE_XFREE386 1
25972 if test "${HAVE_MENUS}" = "yes" ; then
25974 cat >>confdefs.h <<\_ACEOF
25975 #define HAVE_MENUS 1
25979 if test "${GNU_MALLOC}" = "yes" ; then
25981 cat >>confdefs.h <<\_ACEOF
25982 #define GNU_MALLOC 1
25986 if test "${REL_ALLOC}" = "yes" ; then
25988 cat >>confdefs.h <<\_ACEOF
25989 #define REL_ALLOC 1
25998 #### Report on what we decided to do.
25999 #### Report GTK as a toolkit, even if it doesn't use Xt.
26000 #### It makes printing result more understandable as using GTK sets
26001 #### toolkit_scroll_bars to yes by default.
26002 if test "${HAVE_GTK}" = "yes"; then
26007 Configured
for \
`${canonical}'.
26009 Where should the build process find the source code? ${srcdir}
26010 What operating system and machine description files should Emacs use?
26011 \`${opsysfile}' and \`${machfile}'
26012 What compiler should emacs be built with?
${CC} ${CFLAGS}
26013 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
26014 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
26015 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
26016 What window system should Emacs use?
${window_system}
26017 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
26019 if test -n "${x_includes}"; then
26020 echo " Where
do we
find X Windows header files?
${x_includes}"
26022 echo " Where
do we
find X Windows header files? Standard
dirs"
26024 if test -n "${x_libraries}"; then
26025 echo " Where
do we
find X Windows libraries?
${x_libraries}"
26027 echo " Where
do we
find X Windows libraries? Standard
dirs"
26030 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
26031 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
26032 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
26033 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
26034 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
26035 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
26036 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
26039 if test $USE_XASSERTS = yes; then
26040 echo " Compiling with asserts turned on.
"
26041 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26047 # Remove any trailing slashes in these variables.
26048 test "${prefix}" != NONE &&
26049 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26050 test "${exec_prefix}" != NONE &&
26051 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26053 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26054 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26055 ## from Makefile.c can correctly provide the arg `-traditional' to the
26058 cat >conftest.$ac_ext <<_ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26066 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
26067 $EGREP "yes..
yes" >/dev/null 2>&1; then
26068 CPP_NEED_TRADITIONAL=no
26070 CPP_NEED_TRADITIONAL=yes
26075 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
"
26077 ac_config_commands="$ac_config_commands default
"
26079 cat >confcache <<\_ACEOF
26080 # This file is a shell script that caches the results of configure
26081 # tests run on this system so they can be shared between configure
26082 # scripts and configure runs, see configure's option --config-cache.
26083 # It is not useful on other systems. If it contains results you don't
26084 # want to keep, you may remove or edit it.
26086 # config.status only pays attention to the cache file if you give it
26087 # the --recheck option to rerun configure.
26089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26091 # following values.
26095 # The following way of writing the cache mishandles newlines in values,
26096 # but we know of no workaround that is simple, portable, and efficient.
26097 # So, we kill variables containing newlines.
26098 # Ultrix sh set writes to stderr and can't be redirected directly,
26099 # and sets the high bit in the cache file unless we assign to the vars.
26101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26102 eval ac_val=\$$ac_var
26106 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
26107 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
26110 _ | IFS | as_nl) ;; #(
26111 *) $as_unset $ac_var ;;
26117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26118 *${as_nl}ac_space=\ *)
26119 # `set' does not quote correctly, so add quotes (double-quote
26120 # substitution turns \\\\ into \\, and sed turns \\ into \).
26123 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
26126 # `set' quotes correctly as required by POSIX, so do not add quotes.
26127 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26141 if test -w "$cache_file"; then
26142 test "x
$cache_file" != "x
/dev
/null
" &&
26143 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26144 echo "$as_me: updating cache
$cache_file" >&6;}
26145 cat confcache >$cache_file
26147 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26148 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26153 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26154 # Let make expand exec_prefix.
26155 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26157 DEFS=-DHAVE_CONFIG_H
26161 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26162 # 1. Remove the extension, and $U if already installed.
26163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26164 ac_i=`echo "$ac_i" | sed "$ac_script"`
26165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26166 # will be set to the directory where LIBOBJS objects are built.
26167 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26168 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26170 LIBOBJS=$ac_libobjs
26172 LTLIBOBJS=$ac_ltlibobjs
26176 : ${CONFIG_STATUS=./config.status}
26177 ac_clean_files_save=$ac_clean_files
26178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26179 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26180 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26181 cat >$CONFIG_STATUS <<_ACEOF
26183 # Generated by $as_me.
26184 # Run this file to recreate the current configuration.
26185 # Compiler output produced by configure, useful for debugging
26186 # configure, is in config.log if it exists.
26189 ac_cs_recheck=false
26191 SHELL=\${CONFIG_SHELL-$SHELL}
26194 cat >>$CONFIG_STATUS <<\_ACEOF
26195 ## --------------------- ##
26196 ## M4sh Initialization. ##
26197 ## --------------------- ##
26199 # Be Bourne compatible
26200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26203 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26204 # is contrary to our usage. Disable this feature.
26205 alias -g '${1+"$@"}'='"$@
"'
26206 setopt NO_GLOB_SUBST
26208 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26210 BIN_SH=xpg4; export BIN_SH # for Tru64
26211 DUALCASE=1; export DUALCASE # for MKS sh
26215 # Avoid depending upon Character Ranges.
26216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26219 as_cr_digits='0123456789'
26220 as_cr_alnum=$as_cr_Letters$as_cr_digits
26222 # The user is always right.
26223 if test "${PATH_SEPARATOR+set}" != set; then
26224 echo "#! /bin/sh" >conf$$.sh
26225 echo "exit 0" >>conf$$.sh
26227 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26235 # Support unset when possible.
26236 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26244 # We need space, tab and new line, in precisely that order. Quoting is
26245 # there to prevent editors from complaining about space-tab.
26246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26247 # splitting by setting IFS to empty value.)
26252 # Find who we are. Look in the path if we contain no directory separator.
26254 *[\\/]* ) as_myself
=$0 ;;
26255 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26256 for as_dir
in $PATH
26259 test -z "$as_dir" && as_dir
=.
26260 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26266 # We did not find ourselves, most probably we were run as `sh COMMAND'
26267 # in which case we are not to be found in the path.
26268 if test "x$as_myself" = x
; then
26271 if test ! -f "$as_myself"; then
26272 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26273 { (exit 1); exit 1; }
26276 # Work around bugs in pre-3.0 UWIN ksh.
26277 for as_var
in ENV MAIL MAILPATH
26278 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26286 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26287 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26288 LC_TELEPHONE LC_TIME
26290 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26291 eval $as_var=C
; export $as_var
26293 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26297 # Required to use basename.
26298 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26299 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26305 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26306 as_basename
=basename
26312 # Name of the executable.
26313 as_me
=`$as_basename -- "$0" ||
26314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26315 X"$0" : 'X\(//\)$' \| \
26316 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26318 sed '/^.*\/\([^/][^/]*\)\/*$/{
26337 as_lineno_1
=$LINENO
26338 as_lineno_2
=$LINENO
26339 test "x$as_lineno_1" != "x$as_lineno_2" &&
26340 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26342 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26343 # uniformly replaced by the line number. The first 'sed' inserts a
26344 # line-number line after each line using $LINENO; the second 'sed'
26345 # does the real work. The second script uses 'N' to pair each
26346 # line-number line with the line containing $LINENO, and appends
26347 # trailing '-' during substitution so that $LINENO is not a special
26348 # case at line end.
26349 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26350 # scripts with optimization help from Paolo Bonzini. Blame Lee
26351 # E. McMahon (1931-1989) for sed's syntax. :-)
26363 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26366 ' >$as_me.lineno
&&
26367 chmod +x
"$as_me.lineno" ||
26368 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26369 { (exit 1); exit 1; }; }
26371 # Don't try to exec as it changes $[0], causing all sort of problems
26372 # (the dirname of $[0] is not the place where we might find the
26373 # original and so on. Autoconf is especially sensitive to this).
26374 .
"./$as_me.lineno"
26375 # Exit status is that of the last command.
26380 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26386 ECHO_C
= ECHO_N
= ECHO_T
=
26387 case `echo -n x` in
26389 case `echo 'x\c'` in
26390 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26397 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26398 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26404 rm -f conf$$ conf$$.exe conf$$.
file
26405 if test -d conf$$.dir
; then
26406 rm -f conf$$.dir
/conf$$.
file
26412 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26414 # ... but there are two gotchas:
26415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26417 # In both cases, we have to default to `cp -p'.
26418 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26420 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26425 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26426 rmdir conf$$.dir
2>/dev
/null
26428 if mkdir
-p .
2>/dev
/null
; then
26431 test -d .
/-p && rmdir .
/-p
26435 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26436 # systems may use methods other than mode bits to determine executability.
26437 cat >conf$$.
file <<_ASEOF
26441 chmod +x conf$$.
file
26442 if test -x conf$$.
file >/dev
/null
2>&1; then
26443 as_executable_p
="test -x"
26449 # Sed expression to map a string onto a valid CPP name.
26450 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26452 # Sed expression to map a string onto a valid variable name.
26453 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26458 # Save the log message, to keep $[0] and so on meaningful, and to
26459 # report actual input values of CONFIG_FILES etc. instead of their
26460 # values after options handling.
26462 This file was extended by $as_me, which was
26463 generated by GNU Autoconf 2.60. Invocation command line was
26465 CONFIG_FILES = $CONFIG_FILES
26466 CONFIG_HEADERS = $CONFIG_HEADERS
26467 CONFIG_LINKS = $CONFIG_LINKS
26468 CONFIG_COMMANDS = $CONFIG_COMMANDS
26471 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26476 cat >>$CONFIG_STATUS <<_ACEOF
26477 # Files that config.status was made for.
26478 config_files="$ac_config_files"
26479 config_headers="$ac_config_headers"
26480 config_commands="$ac_config_commands"
26484 cat >>$CONFIG_STATUS <<\_ACEOF
26486 \`$as_me' instantiates files from templates according to the
26487 current configuration.
26489 Usage: $0 [OPTIONS] [FILE]...
26491 -h, --help print this help, then exit
26492 -V, --version print version number, then exit
26493 -q, --quiet do not print progress messages
26494 -d, --debug don't remove temporary files
26495 --recheck update $as_me by reconfiguring in the same conditions
26496 --file=FILE[:TEMPLATE]
26497 instantiate the configuration file FILE
26498 --header=FILE[:TEMPLATE]
26499 instantiate the configuration header FILE
26501 Configuration files:
26504 Configuration headers:
26507 Configuration commands:
26510 Report bugs to <bug-autoconf@gnu.org>."
26513 cat >>$CONFIG_STATUS <<_ACEOF
26516 configured by $0, generated by GNU Autoconf 2.60,
26517 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26519 Copyright (C) 2006 Free Software Foundation, Inc.
26520 This config.status script is free software; the Free Software Foundation
26521 gives unlimited permission to copy, distribute and modify it."
26528 cat >>$CONFIG_STATUS <<\_ACEOF
26529 # If no file are specified by the user, then we need to provide default
26530 # value. By we need to know if files were specified by the user.
26536 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26537 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26548 # Handling of the options.
26549 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26551 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26552 echo "$ac_cs_version"; exit ;;
26553 --debug |
--debu |
--deb |
--de |
--d |
-d )
26555 --file |
--fil |
--fi |
--f )
26557 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26558 ac_need_defaults
=false
;;
26559 --header |
--heade |
--head |
--hea )
26561 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26562 ac_need_defaults
=false
;;
26564 # Conflict between --help and --header
26565 { echo "$as_me: error: ambiguous option: $1
26566 Try \`$0 --help' for more information." >&2
26567 { (exit 1); exit 1; }; };;
26568 --help |
--hel |
-h )
26569 echo "$ac_cs_usage"; exit ;;
26570 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26571 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26574 # This is an error.
26575 -*) { echo "$as_me: error: unrecognized option: $1
26576 Try \`$0 --help' for more information." >&2
26577 { (exit 1); exit 1; }; } ;;
26579 *) ac_config_targets
="$ac_config_targets $1"
26580 ac_need_defaults
=false
;;
26586 ac_configure_extra_args
=
26588 if $ac_cs_silent; then
26590 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26594 cat >>$CONFIG_STATUS <<_ACEOF
26595 if \$ac_cs_recheck; then
26596 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26597 CONFIG_SHELL=$SHELL
26598 export CONFIG_SHELL
26599 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26603 cat >>$CONFIG_STATUS <<\_ACEOF
26607 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26608 ## Running $as_me. ##
26614 cat >>$CONFIG_STATUS <<_ACEOF
26618 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
26622 cat >>$CONFIG_STATUS <<\_ACEOF
26624 # Handling of arguments.
26625 for ac_config_target
in $ac_config_targets
26627 case $ac_config_target in
26628 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26629 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26630 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26631 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26632 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
26633 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26634 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26635 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26636 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
26637 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
26638 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26639 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26642 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26643 { (exit 1); exit 1; }; };;
26648 # If the user did not use the arguments to specify the items to instantiate,
26649 # then the envvar interface is used. Set only those that are not.
26650 # We use the long form for the default assignment because of an extremely
26651 # bizarre bug on SunOS 4.1.3.
26652 if $ac_need_defaults; then
26653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26658 # Have a temporary directory for convenience. Make it in the build tree
26659 # simply because there is no reason against having it here, and in addition,
26660 # creating and moving files from /tmp can sometimes cause problems.
26661 # Hook for its removal unless debugging.
26662 # Note that there is a small window in which the directory will not be cleaned:
26663 # after its creation but before its name has been assigned to `$tmp'.
26667 trap 'exit_status=$?
26668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26670 trap '{ (exit 1); exit 1; }' 1 2 13 15
26672 # Create a (secure) tmp directory for tmp files.
26675 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26676 test -n "$tmp" && test -d "$tmp"
26679 tmp
=.
/conf$$
-$RANDOM
26680 (umask 077 && mkdir
"$tmp")
26683 echo "$me: cannot create a temporary directory in ." >&2
26684 { (exit 1); exit 1; }
26688 # Set up the sed scripts for CONFIG_FILES section.
26691 # No need to generate the scripts if there are no CONFIG_FILES.
26692 # This happens for instance when ./config.status config.h
26693 if test -n "$CONFIG_FILES"; then
26700 for ac_last_try
in false false false false false
:; do
26701 cat >conf$
$subs.
sed <<_ACEOF
26702 SHELL!$SHELL$ac_delim
26703 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26704 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26705 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26706 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26707 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26708 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26709 exec_prefix!$exec_prefix$ac_delim
26710 prefix!$prefix$ac_delim
26711 program_transform_name!$program_transform_name$ac_delim
26712 bindir!$bindir$ac_delim
26713 sbindir!$sbindir$ac_delim
26714 libexecdir!$libexecdir$ac_delim
26715 datarootdir!$datarootdir$ac_delim
26716 datadir!$datadir$ac_delim
26717 sysconfdir!$sysconfdir$ac_delim
26718 sharedstatedir!$sharedstatedir$ac_delim
26719 localstatedir!$localstatedir$ac_delim
26720 includedir!$includedir$ac_delim
26721 oldincludedir!$oldincludedir$ac_delim
26722 docdir!$docdir$ac_delim
26723 infodir!$infodir$ac_delim
26724 htmldir!$htmldir$ac_delim
26725 dvidir!$dvidir$ac_delim
26726 pdfdir!$pdfdir$ac_delim
26727 psdir!$psdir$ac_delim
26728 libdir!$libdir$ac_delim
26729 localedir!$localedir$ac_delim
26730 mandir!$mandir$ac_delim
26731 DEFS!$DEFS$ac_delim
26732 ECHO_C!$ECHO_C$ac_delim
26733 ECHO_N!$ECHO_N$ac_delim
26734 ECHO_T!$ECHO_T$ac_delim
26735 LIBS!$LIBS$ac_delim
26736 build_alias!$build_alias$ac_delim
26737 host_alias!$host_alias$ac_delim
26738 target_alias!$target_alias$ac_delim
26739 MAINT!$MAINT$ac_delim
26740 build!$build$ac_delim
26741 build_cpu!$build_cpu$ac_delim
26742 build_vendor!$build_vendor$ac_delim
26743 build_os!$build_os$ac_delim
26744 host!$host$ac_delim
26745 host_cpu!$host_cpu$ac_delim
26746 host_vendor!$host_vendor$ac_delim
26747 host_os!$host_os$ac_delim
26749 CFLAGS!$CFLAGS$ac_delim
26750 LDFLAGS!$LDFLAGS$ac_delim
26751 CPPFLAGS!$CPPFLAGS$ac_delim
26752 ac_ct_CC!$ac_ct_CC$ac_delim
26753 EXEEXT!$EXEEXT$ac_delim
26754 OBJEXT!$OBJEXT$ac_delim
26756 GREP!$GREP$ac_delim
26757 EGREP!$EGREP$ac_delim
26758 LN_S!$LN_S$ac_delim
26759 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26760 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26761 INSTALL_DATA!$INSTALL_DATA$ac_delim
26762 RANLIB!$RANLIB$ac_delim
26763 INSTALL_INFO!$INSTALL_INFO$ac_delim
26764 GZIP_PROG!$GZIP_PROG$ac_delim
26765 LIBSOUND!$LIBSOUND$ac_delim
26766 PKG_CONFIG!$PKG_CONFIG$ac_delim
26767 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
26768 ALSA_LIBS!$ALSA_LIBS$ac_delim
26769 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
26770 SET_MAKE!$SET_MAKE$ac_delim
26771 XMKMF!$XMKMF$ac_delim
26772 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
26773 GTK_LIBS!$GTK_LIBS$ac_delim
26774 ALLOCA!$ALLOCA$ac_delim
26775 liblockfile!$liblockfile$ac_delim
26776 LIBOBJS!$LIBOBJS$ac_delim
26777 NEED_SETGID!$NEED_SETGID$ac_delim
26778 KMEM_GROUP!$KMEM_GROUP$ac_delim
26779 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
26780 GETOPT_H!$GETOPT_H$ac_delim
26781 GETOPTOBJS!$GETOPTOBJS$ac_delim
26782 version!$version$ac_delim
26783 configuration!$configuration$ac_delim
26784 canonical!$canonical$ac_delim
26785 srcdir!$srcdir$ac_delim
26786 lispdir!$lispdir$ac_delim
26787 locallisppath!$locallisppath$ac_delim
26788 lisppath!$lisppath$ac_delim
26789 x_default_search_path!$x_default_search_path$ac_delim
26790 etcdir!$etcdir$ac_delim
26791 archlibdir!$archlibdir$ac_delim
26792 bitmapdir!$bitmapdir$ac_delim
26793 gamedir!$gamedir$ac_delim
26794 gameuser!$gameuser$ac_delim
26795 c_switch_system!$c_switch_system$ac_delim
26796 c_switch_machine!$c_switch_machine$ac_delim
26797 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
26798 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
26801 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26803 elif $ac_last_try; then
26804 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26805 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26806 { (exit 1); exit 1; }; }
26808 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26812 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26813 if test -n "$ac_eof"; then
26814 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26815 ac_eof
=`expr $ac_eof + 1`
26818 cat >>$CONFIG_STATUS <<_ACEOF
26819 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26823 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26824 s/^/s,@/; s/!/@,|#_!!_#|/
26827 s/'"$ac_delim"'$/,g/; t
26829 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26830 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26831 rm -f conf$
$subs.
sed
26832 cat >>$CONFIG_STATUS <<_ACEOF
26838 for ac_last_try
in false false false false false
:; do
26839 cat >conf$
$subs.
sed <<_ACEOF
26840 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
26841 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
26842 machfile!$machfile$ac_delim
26843 opsysfile!$opsysfile$ac_delim
26844 carbon_appdir!$carbon_appdir$ac_delim
26845 LTLIBOBJS!$LTLIBOBJS$ac_delim
26848 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
26850 elif $ac_last_try; then
26851 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26852 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26853 { (exit 1); exit 1; }; }
26855 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26859 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26860 if test -n "$ac_eof"; then
26861 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26862 ac_eof
=`expr $ac_eof + 1`
26865 cat >>$CONFIG_STATUS <<_ACEOF
26866 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26870 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26871 s/^/s,@/; s/!/@,|#_!!_#|/
26874 s/'"$ac_delim"'$/,g/; t
26876 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26877 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26878 rm -f conf$
$subs.
sed
26879 cat >>$CONFIG_STATUS <<_ACEOF
26886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26888 # trailing colons and then remove the whole line if VPATH becomes empty
26889 # (actually we leave an empty line to preserve line numbers).
26890 if test "x$srcdir" = x.
; then
26891 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26892 s/:*\$(srcdir):*/:/
26893 s/:*\${srcdir}:*/:/
26895 s/^\([^=]*=[ ]*\):*/\1/
26901 cat >>$CONFIG_STATUS <<\_ACEOF
26902 fi # test -n "$CONFIG_FILES"
26905 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
26908 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26910 case $ac_mode$ac_tag in
26912 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26913 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26914 { (exit 1); exit 1; }; };;
26915 :[FH
]-) ac_tag
=-:-;;
26916 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26933 -) ac_f
="$tmp/stdin";;
26934 *) # Look for the file first in the build tree, then in the source tree
26935 # (if the path is not absolute). The absolute path cannot be DOS-style,
26936 # because $ac_f cannot contain `:'.
26940 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26942 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26943 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26944 { (exit 1); exit 1; }; };;
26946 ac_file_inputs
="$ac_file_inputs $ac_f"
26949 # Let's still pretend it is `configure' which instantiates (i.e., don't
26950 # use $as_me), people would be surprised to read:
26951 # /* config.h. Generated by config.status. */
26952 configure_input
="Generated from "`IFS=:
26953 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26954 if test x
"$ac_file" != x-
; then
26955 configure_input
="$ac_file. $configure_input"
26956 { echo "$as_me:$LINENO: creating $ac_file" >&5
26957 echo "$as_me: creating $ac_file" >&6;}
26961 *:-:* |
*:-) cat >"$tmp/stdin";;
26966 ac_dir
=`$as_dirname -- "$ac_file" ||
26967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26968 X"$ac_file" : 'X\(//\)[^/]' \| \
26969 X"$ac_file" : 'X\(//\)$' \| \
26970 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26976 /^X\(\/\/\)[^/].*/{
26991 -*) as_dir
=.
/$as_dir;;
26993 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26997 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26998 *) as_qdir
=$as_dir;;
27000 as_dirs
="'$as_qdir' $as_dirs"
27001 as_dir
=`$as_dirname -- "$as_dir" ||
27002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27003 X"$as_dir" : 'X\(//\)[^/]' \| \
27004 X"$as_dir" : 'X\(//\)$' \| \
27005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27011 /^X\(\/\/\)[^/].*/{
27024 test -d "$as_dir" && break
27026 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27027 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27028 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27029 { (exit 1); exit 1; }; }; }
27033 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27035 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27036 # A ".." for each directory in $ac_dir_suffix.
27037 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27038 case $ac_top_builddir_sub in
27039 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27040 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27043 ac_abs_top_builddir
=$ac_pwd
27044 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27045 # for backward compatibility:
27046 ac_top_builddir
=$ac_top_build_prefix
27049 .
) # We are building in place.
27051 ac_top_srcdir
=$ac_top_builddir_sub
27052 ac_abs_top_srcdir
=$ac_pwd ;;
27053 [\\/]* | ?
:[\\/]* ) # Absolute name.
27054 ac_srcdir
=$srcdir$ac_dir_suffix;
27055 ac_top_srcdir
=$srcdir
27056 ac_abs_top_srcdir
=$srcdir ;;
27057 *) # Relative name.
27058 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27059 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27060 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27062 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27072 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27073 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27077 cat >>$CONFIG_STATUS <<\_ACEOF
27078 # If the template does not know about datarootdir, expand it.
27079 # FIXME: This hack should be removed a few years after 2.60.
27080 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27082 case `sed -n '/datarootdir/ {
27091 ' $ac_file_inputs` in
27092 *datarootdir
*) ac_datarootdir_seen
=yes;;
27093 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27094 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27095 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27097 cat >>$CONFIG_STATUS <<_ACEOF
27098 ac_datarootdir_hack='
27099 s&@datadir@&$datadir&g
27100 s&@docdir@&$docdir&g
27101 s&@infodir@&$infodir&g
27102 s&@localedir@&$localedir&g
27103 s&@mandir@&$mandir&g
27104 s&\\\${datarootdir}&$datarootdir&g' ;;
27108 # Neutralize VPATH when `$srcdir' = `.'.
27109 # Shell code in configure.ac might set extrasub.
27110 # FIXME: do we really want to maintain this feature?
27111 cat >>$CONFIG_STATUS <<_ACEOF
27115 cat >>$CONFIG_STATUS <<\_ACEOF
27117 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27118 s
&@configure_input@
&$configure_input&;t t
27119 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27120 s
&@srcdir@
&$ac_srcdir&;t t
27121 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27122 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27123 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27124 s
&@builddir@
&$ac_builddir&;t t
27125 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27126 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27127 s
&@INSTALL@
&$ac_INSTALL&;t t
27128 $ac_datarootdir_hack
27129 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27134 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27135 which seems to be undefined. Please make sure it is defined." >&5
27136 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27137 which seems to be undefined. Please make sure it is defined." >&2;}
27141 -) cat "$tmp/out"; rm -f "$tmp/out";;
27142 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27151 # Transform confdefs.h into a sed script `conftest.defines', that
27152 # substitutes the proper values into config.h.in to produce config.h.
27153 rm -f conftest.defines conftest.
tail
27154 # First, append a space to every undef/define line, to ease matching.
27155 echo 's/$/ /' >conftest.defines
27156 # Then, protect against being on the right side of a sed subst, or in
27157 # an unquoted here document, in config.status. If some macros were
27158 # called several times there might be several #defines for the same
27159 # symbol, which is useless. But do not sort them, since the last
27160 # AC_DEFINE must be honored.
27161 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27162 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27163 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27164 # PARAMS is the parameter list in the macro definition--in most cases, it's
27165 # just an empty string.
27166 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27167 ac_dB
='\\)[ (].*,\\1define\\2'
27175 s/^[ ]*#[ ]*define[ ][ ]*//
27180 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27181 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27182 ' >>conftest.defines
27184 # Remove the space that was appended to ease matching.
27185 # Then replace #undef with comments. This is necessary, for
27186 # example, in the case of _POSIX_SOURCE, which is predefined and required
27187 # on some systems where configure will not decide to define it.
27188 # (The regexp can be short, since the line contains either #define or #undef.)
27190 s,^[ #]*u.*,/* & */,' >>conftest.defines
27192 # Break up conftest.defines:
27193 ac_max_sed_lines
=50
27195 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27196 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27197 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27199 ac_in
='$ac_file_inputs'
27200 ac_out
='"$tmp/out1"'
27201 ac_nxt
='"$tmp/out2"'
27205 # Write a here document:
27206 cat >>$CONFIG_STATUS <<_ACEOF
27207 # First, check the format of the line:
27208 cat >"\$tmp/defines.sed" <<\\CEOF
27209 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27210 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27214 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27216 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27217 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27218 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27219 grep . conftest.
tail >/dev
/null ||
break
27220 rm -f conftest.defines
27221 mv conftest.
tail conftest.defines
27223 rm -f conftest.defines conftest.
tail
27225 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27226 cat >>$CONFIG_STATUS <<\_ACEOF
27227 if test x
"$ac_file" != x-
; then
27228 echo "/* $configure_input */" >"$tmp/config.h"
27229 cat "$ac_result" >>"$tmp/config.h"
27230 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27232 echo "$as_me: $ac_file is unchanged" >&6;}
27235 mv "$tmp/config.h" $ac_file
27238 echo "/* $configure_input */"
27244 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27245 echo "$as_me: executing $ac_file commands" >&6;}
27250 case $ac_file$ac_mode in
27253 ### Make the necessary directories, if they don't exist.
27254 for dir
in etc lisp
; do
27255 test -d ${dir} || mkdir
${dir}
27258 # Build src/Makefile from ${srcdir}/src/Makefile.c
27259 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27260 # This must be done after src/config.h is built, since we rely on that file.
27262 # Now get this: Some word that is part of the ${srcdir} directory name
27263 # or the ${configuration} value might, just might, happen to be an
27264 # identifier like `sun4' or `i386' or something, and be predefined by
27265 # the C preprocessor to some helpful value like 1, or maybe the empty
27266 # string. Needless to say consequent macro substitutions are less
27267 # than conducive to the makefile finding the correct directory.
27268 undefs
="`echo $top_srcdir $configuration $canonical |
27269 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
27270 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
27273 echo creating src
/epaths.h
27274 ${MAKE-make} epaths-force
27276 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27277 # `..' to `. .' unless invoked with -traditional
27279 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27280 CPPFLAGS
="$CPPFLAGS -traditional"
27283 echo creating lib-src
/Makefile
27285 rm -f junk.c junk1.c junk2.c
27286 sed -e '/start of cpp stuff/q' \
27287 < Makefile.c
> junk1.c
27288 sed -e '1,/start of cpp stuff/d'\
27289 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27290 < Makefile.c
> junk.c
27291 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27292 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27293 cat junk1.c junk2.c
> Makefile.new
27294 rm -f junk.c junk1.c junk2.c
27295 chmod 444 Makefile.new
27296 mv -f Makefile.new Makefile
27299 echo creating src
/Makefile
27301 rm -f junk.c junk1.c junk2.c
27302 sed -e '/start of cpp stuff/q' \
27303 < Makefile.c
> junk1.c
27304 sed -e '1,/start of cpp stuff/d'\
27305 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27306 < Makefile.c
> junk.c
27307 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27308 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27309 cat junk1.c junk2.c
> Makefile.new
27310 rm -f junk.c junk1.c junk2.c
27311 chmod 444 Makefile.new
27312 mv -f Makefile.new Makefile
27315 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27316 echo creating src
/.gdbinit
27317 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27320 # This is how we know whether to re-run configure in certain cases.
27321 touch src
/config.stamp
27329 { (exit 0); exit 0; }
27331 chmod +x
$CONFIG_STATUS
27332 ac_clean_files
=$ac_clean_files_save
27335 # configure is writing to config.log, and then calls config.status.
27336 # config.status does its own redirection, appending to config.log.
27337 # Unfortunately, on DOS this fails, as config.log is still kept open
27338 # by configure, so config.status won't be able to write to it; its
27339 # output is simply discarded. So we exec the FD to /dev/null,
27340 # effectively closing config.log, so it can be properly (re)opened and
27341 # appended to by config.status. When coming back to configure, we
27342 # need to make the FD available again.
27343 if test "$no_create" != yes; then
27345 ac_config_status_args
=
27346 test "$silent" = yes &&
27347 ac_config_status_args
="$ac_config_status_args --quiet"
27349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27352 # would make configure fail if this is the last instruction.
27353 $ac_cs_success ||
{ (exit 1); exit 1; }