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
689 x_default_search_path
706 ac_precious_vars
='build_alias
717 # Initialize some variables set by options.
719 ac_init_version
=false
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
729 program_transform_name
=s
,x
,x
,
737 # Installation directory options.
738 # These are left unexpanded so users can "make install exec_prefix=/foo"
739 # and all the variables that are supposed to be based on exec_prefix
740 # by default will actually change.
741 # Use braces instead of parens because sh, perl, etc. also accept them.
742 # (The list follows the same order as the GNU Coding Standards.)
743 bindir
='${exec_prefix}/bin'
744 sbindir
='${exec_prefix}/sbin'
745 libexecdir
='${exec_prefix}/libexec'
746 datarootdir
='${prefix}/share'
747 datadir
='${datarootdir}'
748 sysconfdir
='${prefix}/etc'
749 sharedstatedir
='${prefix}/com'
750 localstatedir
='${prefix}/var'
751 includedir
='${prefix}/include'
752 oldincludedir
='/usr/include'
753 docdir
='${datarootdir}/doc/${PACKAGE}'
754 infodir
='${datarootdir}/info'
759 libdir
='${exec_prefix}/lib'
760 localedir
='${datarootdir}/locale'
761 mandir
='${datarootdir}/man'
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\
$ac_option
775 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 # Accept the important Cygnus configure options, so we can diagnose typos.
781 case $ac_dashdash$ac_option in
785 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
787 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
790 -build |
--build |
--buil |
--bui |
--bu)
791 ac_prev
=build_alias
;;
792 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
793 build_alias
=$ac_optarg ;;
795 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
796 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
797 ac_prev
=cache_file
;;
798 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
799 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
800 cache_file
=$ac_optarg ;;
803 cache_file
=config.cache
;;
805 -datadir |
--datadir |
--datadi |
--datad)
807 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
808 datadir
=$ac_optarg ;;
810 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
811 |
--dataroo |
--dataro |
--datar)
812 ac_prev
=datarootdir
;;
813 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
814 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
815 datarootdir
=$ac_optarg ;;
817 -disable-* |
--disable-*)
818 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822 { (exit 1); exit 1; }; }
823 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
824 eval enable_
$ac_feature=no
;;
826 -docdir |
--docdir |
--docdi |
--doc |
--do)
828 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
831 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
833 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
836 -enable-* |
--enable-*)
837 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
843 eval enable_
$ac_feature=\
$ac_optarg ;;
845 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
846 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
847 |
--exec |
--exe |
--ex)
848 ac_prev
=exec_prefix
;;
849 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
850 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
851 |
--exec=* |
--exe=* |
--ex=*)
852 exec_prefix
=$ac_optarg ;;
854 -gas |
--gas |
--ga |
--g)
855 # Obsolete; use --with-gas.
858 -help |
--help |
--hel |
--he |
-h)
860 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
861 ac_init_help
=recursive
;;
862 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
863 ac_init_help
=short
;;
865 -host |
--host |
--hos |
--ho)
866 ac_prev
=host_alias
;;
867 -host=* |
--host=* |
--hos=* |
--ho=*)
868 host_alias
=$ac_optarg ;;
870 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
872 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
874 htmldir
=$ac_optarg ;;
876 -includedir |
--includedir |
--includedi |
--included |
--include \
877 |
--includ |
--inclu |
--incl |
--inc)
878 ac_prev
=includedir
;;
879 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
880 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
881 includedir
=$ac_optarg ;;
883 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
885 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
886 infodir
=$ac_optarg ;;
888 -libdir |
--libdir |
--libdi |
--libd)
890 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
893 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
894 |
--libexe |
--libex |
--libe)
895 ac_prev
=libexecdir
;;
896 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
897 |
--libexe=* |
--libex=* |
--libe=*)
898 libexecdir
=$ac_optarg ;;
900 -localedir |
--localedir |
--localedi |
--localed |
--locale)
902 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
903 localedir
=$ac_optarg ;;
905 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
906 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
907 ac_prev
=localstatedir
;;
908 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
909 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
910 localstatedir
=$ac_optarg ;;
912 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
914 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
918 # Obsolete; use --without-fp.
921 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
922 |
--no-cr |
--no-c |
-n)
925 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
926 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
929 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
930 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
931 |
--oldin |
--oldi |
--old |
--ol |
--o)
932 ac_prev
=oldincludedir
;;
933 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
934 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
935 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
936 oldincludedir
=$ac_optarg ;;
938 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
940 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
943 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
944 |
--program-pre |
--program-pr |
--program-p)
945 ac_prev
=program_prefix
;;
946 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
947 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
948 program_prefix
=$ac_optarg ;;
950 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
951 |
--program-suf |
--program-su |
--program-s)
952 ac_prev
=program_suffix
;;
953 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
954 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
955 program_suffix
=$ac_optarg ;;
957 -program-transform-name |
--program-transform-name \
958 |
--program-transform-nam |
--program-transform-na \
959 |
--program-transform-n |
--program-transform- \
960 |
--program-transform |
--program-transfor \
961 |
--program-transfo |
--program-transf \
962 |
--program-trans |
--program-tran \
963 |
--progr-tra |
--program-tr |
--program-t)
964 ac_prev
=program_transform_name
;;
965 -program-transform-name=* |
--program-transform-name=* \
966 |
--program-transform-nam=* |
--program-transform-na=* \
967 |
--program-transform-n=* |
--program-transform-=* \
968 |
--program-transform=* |
--program-transfor=* \
969 |
--program-transfo=* |
--program-transf=* \
970 |
--program-trans=* |
--program-tran=* \
971 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
972 program_transform_name
=$ac_optarg ;;
974 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
976 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
979 -psdir |
--psdir |
--psdi |
--psd |
--ps)
981 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
984 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
985 |
-silent |
--silent |
--silen |
--sile |
--sil)
988 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
990 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
992 sbindir
=$ac_optarg ;;
994 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
995 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
996 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
998 ac_prev
=sharedstatedir
;;
999 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1000 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1001 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1003 sharedstatedir
=$ac_optarg ;;
1005 -site |
--site |
--sit)
1007 -site=* |
--site=* |
--sit=*)
1010 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1012 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1013 srcdir
=$ac_optarg ;;
1015 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1016 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1017 ac_prev
=sysconfdir
;;
1018 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1019 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1020 sysconfdir
=$ac_optarg ;;
1022 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1023 ac_prev
=target_alias
;;
1024 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1025 target_alias
=$ac_optarg ;;
1027 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1030 -version |
--version |
--versio |
--versi |
--vers |
-V)
1031 ac_init_version
=: ;;
1034 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1040 eval with_
$ac_package=\
$ac_optarg ;;
1042 -without-* |
--without-*)
1043 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1049 eval with_
$ac_package=no
;;
1052 # Obsolete; use --with-x.
1055 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1056 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1057 ac_prev
=x_includes
;;
1058 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1059 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1060 x_includes
=$ac_optarg ;;
1062 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1063 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1064 ac_prev
=x_libraries
;;
1065 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1066 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1067 x_libraries
=$ac_optarg ;;
1069 -*) { echo "$as_me: error: unrecognized option: $ac_option
1070 Try \`$0 --help' for more information." >&2
1071 { (exit 1); exit 1; }; }
1075 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1079 { (exit 1); exit 1; }; }
1080 eval $ac_envvar=\
$ac_optarg
1081 export $ac_envvar ;;
1084 # FIXME: should be removed in autoconf 3.0.
1085 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1087 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 if test -n "$ac_prev"; then
1095 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1096 { echo "$as_me: error: missing argument to $ac_option" >&2
1097 { (exit 1); exit 1; }; }
1100 # Be sure to have absolute directory names.
1101 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1102 datadir sysconfdir sharedstatedir localstatedir includedir \
1103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1104 libdir localedir mandir
1106 eval ac_val
=\$
$ac_var
1108 [\\/$
]* | ?
:[\\/]* ) continue;;
1109 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1115 # There might be people who depend on the old broken behavior: `$host'
1116 # used to hold the argument of --host etc.
1117 # FIXME: To remove some day.
1120 target
=$target_alias
1122 # FIXME: To remove some day.
1123 if test "x$host_alias" != x
; then
1124 if test "x$build_alias" = x
; then
1125 cross_compiling
=maybe
1126 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1127 If a cross compiler is detected then cross compile mode will be used." >&2
1128 elif test "x$build_alias" != "x$host_alias"; then
1134 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1136 test "$silent" = yes && exec 6>/dev
/null
1139 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1140 ac_ls_di
=`ls -di .` &&
1141 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1142 { echo "$as_me: error: Working directory cannot be determined" >&2
1143 { (exit 1); exit 1; }; }
1144 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 { echo "$as_me: error: pwd does not report name of working directory" >&2
1146 { (exit 1); exit 1; }; }
1149 # Find the source files, if location was not specified.
1150 if test -z "$srcdir"; then
1151 ac_srcdir_defaulted
=yes
1152 # Try the directory containing this script, then the parent directory.
1153 ac_confdir
=`$as_dirname -- "$0" ||
1154 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155 X"$0" : 'X\(//\)[^/]' \| \
1156 X"$0" : 'X\(//\)$' \| \
1157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1181 ac_srcdir_defaulted
=no
1183 if test ! -r "$srcdir/$ac_unique_file"; then
1184 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1185 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1186 { (exit 1); exit 1; }; }
1188 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 # Remove unnecessary trailing slashes from srcdir.
1198 # Double slashes in file names in object file debugging info
1199 # mess up M-x gdb in Emacs.
1201 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 for ac_var
in $ac_precious_vars; do
1204 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1206 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1211 # Report the --help message.
1213 if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1217 \`configure' configures this package to adapt to many kinds of systems.
1219 Usage: $0 [OPTION]... [VAR=VALUE]...
1221 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222 VAR=VALUE. See below for descriptions of some of the useful variables.
1224 Defaults for the options are specified in brackets.
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237 Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 By default, \`make install' will install all the files in
1244 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246 for instance \`--prefix=\$HOME'.
1248 For better control, use the options below.
1250 Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1275 --program-prefix=PREFIX prepend PREFIX to installed program names
1276 --program-suffix=SUFFIX append SUFFIX to installed program names
1277 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1280 --x-includes=DIR X include files are
in DIR
1281 --x-libraries=DIR X library files are
in DIR
1284 --build=BUILD configure
for building on BUILD
[guessed
]
1285 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1289 if test -n "$ac_init_help"; then
1294 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1295 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1296 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1297 specify
install directory
for Emacs.app on Mac OS X
1298 --enable-asserts compile code with asserts enabled
1299 --enable-maintainer-mode enable make rules and dependencies not useful
1300 (and sometimes confusing
) to the casual installer
1301 --enable-locallisppath=PATH
1302 directories Emacs should search
for lisp files
1303 specific to this site
1304 --disable-largefile omit support
for large files
1307 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1308 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1309 --without-gcc don
't use GCC to compile Emacs if GCC is found
1310 --without-pop don't support POP
mail retrieval with movemail
1311 --with-kerberos support Kerberos-authenticated POP
1312 --with-kerberos5 support Kerberos version
5 authenticated POP
1313 --with-hesiod support Hesiod to get the POP server
host
1314 --without-sound don
't compile with sound support
1315 --with-x-toolkit=KIT use an X toolkit
1316 (KIT = yes/lucid/athena/motif/gtk/no)
1317 --with-xpm use -lXpm for displaying XPM images
1318 --with-jpeg use -ljpeg for displaying JPEG images
1319 --with-tiff use -ltiff for displaying TIFF images
1320 --with-gif use -lungif for displaying GIF images
1321 --with-png use -lpng for displaying PNG images
1322 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1323 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1324 --without-toolkit-scroll-bars
1325 don't use Motif or Xaw3d scroll bars
1326 --without-xim don
't use X11 XIM
1327 --without-carbon don't use Carbon GUI on Mac OS X
1328 --with-x use the X Window System
1330 Some influential environment variables
:
1331 CC C compiler
command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1334 nonstandard directory
<lib dir
>
1335 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1336 you have headers
in a nonstandard directory
<include dir
>
1338 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1340 Use these variables to override the choices made by
`configure' or to help
1341 it to find libraries and programs with nonstandard names/locations.
1347 if test "$ac_init_help" = "recursive"; then
1348 # If there are subdirs, report their specific --help.
1349 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1350 test -d "$ac_dir" || continue
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1370 .) # We are building in place.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1404 generated by GNU Autoconf 2.60
1406 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1407 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1413 cat >config.log <<_ACEOF
1414 This file contains any messages produced by compilers while
1415 running configure, to aid debugging if configure makes a mistake.
1417 It was created by $as_me, which was
1418 generated by GNU Autoconf 2.60. Invocation command line was
1430 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1431 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1432 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1433 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1434 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1436 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1437 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1439 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1440 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1441 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1442 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1443 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1444 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1445 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 echo "PATH: $as_dir"
1470 # Keep a trace of the command line.
1471 # Strip out --no-create and --no-recursion so they do not pile up.
1472 # Strip out --silent because we don't want to record it for future runs.
1473 # Also quote any args containing shell meta-characters.
1474 # Make two passes to allow for proper duplicate-argument suppression.
1478 ac_must_keep_next=false
1484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486 | -silent | --silent | --silen | --sile | --sil)
1489 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1492 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1494 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1495 if test $ac_must_keep_next = true; then
1496 ac_must_keep_next=false # Got value, back to normal.
1499 *=* | --config-cache | -C | -disable-* | --disable-* \
1500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1502 | -with-* | --with-* | -without-* | --without-* | --x)
1503 case "$ac_configure_args0 " in
1504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1507 -* ) ac_must_keep_next=true ;;
1510 ac_configure_args="$ac_configure_args '$ac_arg'"
1515 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1516 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1518 # When interrupted or exit'd, cleanup temporary files, and complete
1519 # config.log. We remove comments because anyway the quotes in there
1520 # would cause problems or look ugly.
1521 # WARNING: Use '\'' to represent an apostrophe within the trap.
1522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1523 trap 'exit_status=$?
1524 # Save into config.log some information that might help in debugging.
1529 ## ---------------- ##
1530 ## Cache variables. ##
1531 ## ---------------- ##
1534 # The following way of writing the cache mishandles newlines in values,
1536 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1537 eval ac_val=\$$ac_var
1541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1542 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1545 _ | IFS | as_nl) ;; #(
1546 *) $as_unset $ac_var ;;
1551 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1552 *${as_nl}ac_space=\ *)
1554 "s/'\''/'\''\\\\'\'''\''/g;
1555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1566 ## ----------------- ##
1567 ## Output variables. ##
1568 ## ----------------- ##
1571 for ac_var in $ac_subst_vars
1573 eval ac_val=\$$ac_var
1575 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 echo "$ac_var='\''$ac_val'\''"
1581 if test -n "$ac_subst_files"; then
1583 ## ------------------- ##
1584 ## File substitutions. ##
1585 ## ------------------- ##
1588 for ac_var in $ac_subst_files
1590 eval ac_val=\$$ac_var
1592 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 echo "$ac_var='\''$ac_val'\''"
1599 if test -s confdefs.h; then
1609 test "$ac_signal" != 0 &&
1610 echo "$as_me: caught signal $ac_signal"
1611 echo "$as_me: exit $exit_status"
1613 rm -f core *.core core.conftest.* &&
1614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1617 for ac_signal in 1 2 13 15; do
1618 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1623 rm -f -r conftest* confdefs.h
1625 # Predefined preprocessor variables.
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_NAME "$PACKAGE_NAME"
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1637 cat >>confdefs.h <<_ACEOF
1638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1642 cat >>confdefs.h <<_ACEOF
1643 #define PACKAGE_STRING "$PACKAGE_STRING"
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652 # Let the site file select an alternate cache file if it wants to.
1653 # Prefer explicitly selected file to automatically selected ones.
1654 if test -n "$CONFIG_SITE"; then
1655 set x "$CONFIG_SITE"
1656 elif test "x$prefix" != xNONE; then
1657 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1659 set x "$ac_default_prefix/share/config.site" \
1660 "$ac_default_prefix/etc/config.site"
1665 if test -r "$ac_site_file"; then
1666 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1667 echo "$as_me: loading site script $ac_site_file" >&6;}
1668 sed 's/^/| /' "$ac_site_file" >&5
1673 if test -r "$cache_file"; then
1674 # Some versions of bash will fail to source /dev/null (special
1675 # files actually), so we avoid doing that.
1676 if test -f "$cache_file"; then
1677 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1678 echo "$as_me: loading cache $cache_file" >&6;}
1680 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1681 *) . "./$cache_file";;
1685 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1686 echo "$as_me: creating cache $cache_file" >&6;}
1690 # Check that the precious variables saved in the cache have kept the same
1692 ac_cache_corrupted=false
1693 for ac_var in $ac_precious_vars; do
1694 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1695 eval ac_new_set=\$ac_env_${ac_var}_set
1696 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1697 eval ac_new_val=\$ac_env_${ac_var}_value
1698 case $ac_old_set,$ac_new_set in
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1701 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1704 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1705 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1706 ac_cache_corrupted=: ;;
1709 if test "x$ac_old_val" != "x$ac_new_val"; then
1710 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1711 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1712 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1713 echo "$as_me: former value
: $ac_old_val" >&2;}
1714 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1715 echo "$as_me: current value
: $ac_new_val" >&2;}
1716 ac_cache_corrupted=:
1719 # Pass precious variables to config.status.
1720 if test "$ac_new_set" = set; then
1722 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1723 *) ac_arg=$ac_var=$ac_new_val ;;
1725 case " $ac_configure_args " in
1726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1727 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1731 if $ac_cache_corrupted; then
1732 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1733 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1734 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1735 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1736 { (exit 1); exit 1; }; }
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1762 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1765 test "$program_prefix" != NONE &&
1766 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1767 # Use a double $ so make ignores it.
1768 test "$program_suffix" != NONE &&
1769 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1770 # Double any \ or $. echo might interpret backslashes.
1771 # By default was `s
,x
,x
', remove it if useless.
1772 cat <<\_ACEOF >conftest.sed
1773 s/[\\$]/&&/g;s/;s,x,x,$//
1775 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1779 lispdir='${datadir}/emacs
/${version}/lisp
'
1780 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1781 '${datadir}/emacs
/site-lisp
'
1782 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1783 etcdir='${datadir}/emacs
/${version}/etc
'
1784 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1785 docdir='${datadir}/emacs
/${version}/etc
'
1786 gamedir='${localstatedir}/games
/emacs
'
1791 # Check whether --with-gcc was given.
1792 if test "${with_gcc+set}" = set; then
1797 # Check whether --with-pop was given.
1798 if test "${with_pop+set}" = set; then
1799 withval=$with_pop; if test "$withval" = yes; then
1800 cat >>confdefs.h <<\_ACEOF
1801 #define MAIL_USE_POP 1
1807 cat >>confdefs.h <<\_ACEOF
1808 #define MAIL_USE_POP 1
1815 # Check whether --with-kerberos was given.
1816 if test "${with_kerberos+set}" = set; then
1817 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1825 # Check whether --with-kerberos5 was given.
1826 if test "${with_kerberos5+set}" = set; then
1827 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1828 if test "${with_kerberos+set}" != set; then
1830 cat >>confdefs.h <<\_ACEOF
1837 cat >>confdefs.h <<\_ACEOF
1844 # Check whether --with-hesiod was given.
1845 if test "${with_hesiod+set}" = set; then
1846 withval=$with_hesiod;
1847 cat >>confdefs.h <<\_ACEOF
1855 # Check whether --with-sound was given.
1856 if test "${with_sound+set}" = set; then
1857 withval=$with_sound;
1862 # Check whether --with-x-toolkit was given.
1863 if test "${with_x_toolkit+set}" = set; then
1864 withval=$with_x_toolkit; case "${withval}" in
1865 y | ye | yes ) val=athena ;;
1867 l | lu | luc | luci | lucid ) val=lucid ;;
1868 a | at | ath | athe | athen | athena ) val=athena ;;
1869 m | mo | mot | moti | motif ) val=motif ;;
1870 g | gt | gtk ) val=gtk ;;
1872 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1873 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1874 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1875 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1876 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1877 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1878 { (exit 1); exit 1; }; }
1886 # Check whether --with-xpm was given.
1887 if test "${with_xpm+set}" = set; then
1892 # Check whether --with-jpeg was given.
1893 if test "${with_jpeg+set}" = set; then
1898 # Check whether --with-tiff was given.
1899 if test "${with_tiff+set}" = set; then
1904 # Check whether --with-gif was given.
1905 if test "${with_gif+set}" = set; then
1910 # Check whether --with-png was given.
1911 if test "${with_png+set}" = set; then
1916 # Check whether --with-gtk was given.
1917 if test "${with_gtk+set}" = set; then
1922 # Check whether --with-pkg-config-prog was given.
1923 if test "${with_pkg_config_prog+set}" = set; then
1924 withval=$with_pkg_config_prog;
1928 # Check whether --with-toolkit-scroll-bars was given.
1929 if test "${with_toolkit_scroll_bars+set}" = set; then
1930 withval=$with_toolkit_scroll_bars;
1934 # Check whether --with-xim was given.
1935 if test "${with_xim+set}" = set; then
1940 # Check whether --with-carbon was given.
1941 if test "${with_carbon+set}" = set; then
1942 withval=$with_carbon;
1945 # Check whether --enable-carbon-app was given.
1946 if test "${enable_carbon_app+set}" = set; then
1947 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1951 # Check whether --enable-asserts was given.
1952 if test "${enable_asserts+set}" = set; then
1953 enableval=$enable_asserts; USE_XASSERTS=$enableval
1959 # Check whether --enable-maintainer-mode was given.
1960 if test "${enable_maintainer_mode+set}" = set; then
1961 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1963 USE_MAINTAINER_MODE=no
1966 if test $USE_MAINTAINER_MODE = yes; then
1973 # Check whether --enable-locallisppath was given.
1974 if test "${enable_locallisppath+set}" = set; then
1975 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1977 elif test "${enableval}" != "yes"; then
1978 locallisppath=${enableval}
1983 #### Make srcdir absolute, if it isn't already. It
's important to
1984 #### avoid running the path through pwd unnecessarily, since pwd can
1985 #### give you automounter prefixes, which can go away. We do all this
1986 #### so Emacs can find its files when run uninstalled.
1987 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1992 ## We may be able to use the $PWD environment variable to make this
1993 ## absolute. But sometimes PWD is inaccurate.
1994 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1995 ## but that tested only for a well-formed and valid PWD,
1996 ## it did not object when PWD was well-formed and valid but just wrong.
1997 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2001 srcdir
="`(cd ${srcdir}; pwd)`"
2004 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2007 #### Check if the source directory already has a configured system in it.
2008 if test `pwd` != `(cd ${srcdir} && pwd)` \
2009 && test -f "${srcdir}/src/config.h" ; then
2010 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2011 as a build directory right now; it has been configured in its own
2012 right. To configure in another directory as well, you MUST
2013 use GNU make. If you do not have GNU make, then you must
2014 now do \`make distclean' in ${srcdir},
2015 and then run $0 again." >&5
2016 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2017 as a build directory right now; it has been configured in its own
2018 right. To configure in another directory as well, you MUST
2019 use GNU make. If you do not have GNU make, then you must
2020 now do \`make distclean' in ${srcdir},
2021 and then run $0 again." >&2;}
2024 #### Given the configuration name, set machfile and opsysfile to the
2025 #### names of the m/*.h and s/*.h files we should use.
2027 ### Canonicalize the configuration name.
2030 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2031 if test -f "$ac_dir/install-sh"; then
2033 ac_install_sh
="$ac_aux_dir/install-sh -c"
2035 elif test -f "$ac_dir/install.sh"; then
2037 ac_install_sh
="$ac_aux_dir/install.sh -c"
2039 elif test -f "$ac_dir/shtool"; then
2041 ac_install_sh
="$ac_aux_dir/shtool install -c"
2045 if test -z "$ac_aux_dir"; then
2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2048 { (exit 1); exit 1; }; }
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2066 { echo "$as_me:$LINENO: checking build system type" >&5
2067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 ac_build_alias
=$build_alias
2072 test "x$ac_build_alias" = x
&&
2073 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x
&&
2075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 echo "${ECHO_T}$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2093 ac_save_IFS
=$IFS; IFS
='-'
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2103 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106 { echo "$as_me:$LINENO: checking host system type" >&5
2107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 if test "x$host_alias" = x
; then
2112 ac_cv_host
=$ac_cv_build
2114 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 echo "${ECHO_T}$ac_cv_host" >&6; }
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2130 ac_save_IFS
=$IFS; IFS
='-'
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2140 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2144 configuration
=${host_alias-$host}
2148 ### If you add support for a new configuration, add code to this
2149 ### switch statement to recognize your configuration name and select
2150 ### the appropriate operating system and machine description files.
2152 ### You would hope that you could choose an m/*.h file pretty much
2153 ### based on the machine portion of the configuration name, and an s-
2154 ### file based on the operating system portion. However, it turns out
2155 ### that each m/*.h file is pretty manufacturer-specific - for
2156 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2157 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2158 ### machines. So we basically have to have a special case for each
2159 ### configuration name.
2161 ### As far as handling version numbers on operating systems is
2162 ### concerned, make sure things will fail in a fixable way. If
2163 ### /etc/MACHINES doesn't say anything about version numbers, be
2164 ### prepared to handle anything reasonably. If version numbers
2165 ### matter, be sure /etc/MACHINES says something about it.
2167 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2168 ### "System V Release 4"; he writes, "The old convention encouraged
2169 ### confusion between `system' and `release' levels'."
2171 machine
='' opsys
='' unported
=no
2172 case "${canonical}" in
2177 case "${canonical}" in
2178 alpha
*-*-freebsd*) machine
=alpha
;;
2179 ia64-
*-freebsd*) machine
=ia64
;;
2180 sparc64-
*-freebsd*) machine
=sparc
;;
2181 powerpc-
*-freebsd*) machine
=macppc
;;
2182 i
[3456]86-*-freebsd*) machine
=intel386
;;
2183 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2190 if test -f /usr
/lib
/crti.o
; then
2192 cat >>confdefs.h
<<\_ACEOF
2198 case "${canonical}" in
2199 alpha
*-*-netbsd*) machine
=alpha
;;
2200 i
[3456]86-*-netbsd*) machine
=intel386
;;
2202 # This is somewhat bogus.
2203 machine
=hp9000s300
;;
2204 powerpc-apple-netbsd
*) machine
=macppc
;;
2205 mips-
*-netbsd*) machine
=pmax
;;
2206 mipsel-
*-netbsd*) machine
=pmax
;;
2207 mipseb-
*-netbsd*) machine
=pmax
;;
2208 ns32k-
*-netbsd*) machine
=ns32000
;;
2209 powerpc-
*-netbsd*) machine
=macppc
;;
2210 sparc
*-*-netbsd*) machine
=sparc
;;
2211 vax-
*-netbsd*) machine
=vax
;;
2212 arm-
*-netbsd*) machine
=arm
;;
2219 case "${canonical}" in
2220 alpha
*-*-openbsd*) machine
=alpha
;;
2221 i386-
*-openbsd*) machine
=intel386
;;
2222 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2223 m68k-
*-openbsd*) machine
=hp9000s300
;;
2224 mipsel-
*-openbsd*) machine
=pmax
;;
2225 ns32k-
*-openbsd*) machine
=ns32000
;;
2226 sparc-
*-openbsd*) machine
=sparc
;;
2227 vax-
*-openbsd*) machine
=vax
;;
2234 case "${canonical}" in
2235 i
[3456]86-*-lynxos*) machine
=intel386
;;
2236 powerpc-
*-lynxos*) machine
=powerpc
;;
2241 arm-acorn-riscix1.1
* )
2242 machine
=acorn opsys
=riscix1-1
2244 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2245 ## This name is riscix12 instead of riscix1.2
2246 ## to avoid a file name conflict on MSDOS.
2247 machine
=acorn opsys
=riscix12
2253 case "${canonical}" in
2254 i
[345]86-*-bsdi*) machine
=intel386
;;
2255 sparc-
*-bsdi*) machine
=sparc
;;
2256 powerpc-
*-bsdi*) machine
=macppc
;;
2258 case "${canonical}" in
2259 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2260 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2261 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2262 *-*-bsdi3* ) opsys
=bsdos3
;;
2263 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2268 ## Strictly speaking, we need the version of the alliant operating
2269 ## system to choose the right machine file, but currently the
2270 ## configuration name doesn't tell us enough to choose the right
2271 ## one; we need to give alliants their own operating system name to
2272 ## do this right. When someone cares, they can help us.
2274 machine
=alliant4 opsys
=bsd4-2
2277 machine
=alliant-2800 opsys
=bsd4-3
2280 ## Alpha (DEC) machines.
2282 machine
=alpha opsys
=osf1
2283 # This is needed to find X11R6.1 libraries for certain tests.
2284 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2285 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2286 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2287 # due to non-traditional preprocessing with the current compiler
2288 # defaults. OSF 4 can also have that compiler version, and there
2289 # seems always to have been a usable /usr/bin/cpp.
2290 NON_GNU_CPP
=/usr
/bin
/cpp
2291 case "${canonical}" in
2292 alpha
*-dec-osf[5-9]*)
2297 alpha
*-*-linux-gnu* )
2298 machine
=alpha opsys
=gnu-linux
2302 machine
=arm opsys
=gnu-linux
2307 machine
=altos opsys
=usg5-2
2312 machine
=amdahl opsys
=usg5-2-2
2315 ## Apollo, Domain/OS
2317 machine
=apollo opsys
=bsd4-3
2320 ## AT&T 3b2, 3b5, 3b15, 3b20
2322 machine
=att3b opsys
=usg5-2-2
2325 ## AT&T 3b1 - The Mighty Unix PC!
2327 machine
=7300 opsys
=usg5-2-2
2332 machine
=ibmrs6000 opsys
=aix3-2
2337 machine
=dpx2 opsys
=usg5-3
2342 machine
=sps7 opsys
=usg5-2
2345 ## CCI 5/32, 6/32 -- see "Tahoe".
2348 ## I don't know what configuration name to use for this; config.sub
2349 ## doesn't seem to know anything about it. Hey, Celerity users, get
2350 ## in touch with us!
2351 celerity-celerity-bsd
* )
2352 machine
=celerity opsys
=bsd4-2
2356 ## What operating systems does this chip run that Emacs has been
2360 ## We'll use the catch-all code at the bottom to guess the
2361 ## operating system.
2365 mips-compaq-nonstopux
* )
2366 machine
=nonstopux opsys
=nonstopux
2370 *-convex-bsd* |
*-convex-convexos* )
2371 machine
=convex opsys
=bsd4-3
2372 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2373 NON_GNU_CPP
="cc -E -P"
2377 i
[3456]86-cubix-sysv* )
2378 machine
=intel386 opsys
=usg5-3
2382 cydra
*-cydrome-sysv* )
2383 machine
=cydra5 opsys
=usg5-3
2386 ## Data General AViiON Machines
2387 ## DG changed naming conventions with the release of 5.4.4.10, they
2388 ## dropped the initial 5.4 but left the intervening R. Because of the
2389 ## R this shouldn't conflict with older versions of the OS (which I
2390 ## think were named like dgux4.*). In addition, DG new AViiONs series
2391 ## uses either Motorola M88k or Intel Pentium CPUs.
2392 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2393 machine
=aviion opsys
=dgux4
2395 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2396 ## This name is dgux5-4-3 instead of dgux5-4r3
2397 ## to avoid a file name conflict on MSDOS.
2398 machine
=aviion opsys
=dgux5-4-3
2400 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2401 machine
=aviion opsys
=dgux5-4r2
2404 machine
=aviion opsys
=dgux
2407 ## Data General AViiON Intel (x86) Machines
2408 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2409 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2410 i
[345]86-dg-dguxR4* )
2411 machine
=aviion-intel opsys
=dgux4
2415 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2416 machine
=pmax opsys
=bsd4-2
2418 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2419 machine
=pmax opsys
=bsd4-3
2422 machine
=pmax opsys
=ultrix4-3
2425 machine
=pmax opsys
=osf1
2427 mips-dec-mach_bsd4.3
* )
2428 machine
=pmax opsys
=mach-bsd4-3
2431 ## Motorola Delta machines
2432 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2433 machine
=delta opsys
=usg5-3
2434 if test -z "`type gnucc | grep 'not found'`"
2436 if test -s /etc
/167config
2437 then CC
="gnucc -m68040"
2438 else CC
="gnucc -m68881"
2441 if test -z "`type gcc | grep 'not found'`"
2447 m88k-motorola-sysv4
* )
2448 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2449 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2450 # I hope there are not other 4.0 versions for this machine
2451 # which really need usg5-4 instead.
2452 machine
=delta88k opsys
=usg5-4-2
2454 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2455 machine
=delta88k opsys
=usg5-3
2460 machine
=dual opsys
=usg5-2
2462 m68
*-dual-uniplus* )
2463 machine
=dual opsys
=unipl5-2
2468 machine
=elxsi opsys
=usg5-2
2473 machine
=ns16000 opsys
=umax
2476 ## The GEC 63 - apparently, this port isn't really finished yet.
2477 # I'm sure we finished off the last of the machines, though. -- fx
2479 ## Gould Power Node and NP1
2481 machine
=gould opsys
=bsd4-2
2484 machine
=gould opsys
=bsd4-3
2487 machine
=gould-np1 opsys
=bsd4-3
2490 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2491 ## as far as Emacs is concerned).
2493 # Build needs to be different on 7.0 and later releases
2494 case "`uname -r`" in
2495 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2496 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2498 NON_GNU_CPP
="/lib/cpp"
2500 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2502 machine
=nh3000 opsys
=cxux
2504 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2505 powerpc-harris-powerunix
)
2506 machine
=nh6000 opsys
=powerunix
2507 NON_GNU_CPP
="cc -Xo -E -P"
2509 ## SR2001/SR2201 running HI-UX/MPP
2510 hppa1.1
-hitachi-hiuxmpp* )
2511 machine
=sr2k opsys
=hiuxmpp
2513 hppa1.1
-hitachi-hiuxwe2* )
2514 machine
=sr2k opsys
=hiuxwe2
2517 xps
*-honeywell-sysv* )
2518 machine
=xps100 opsys
=usg5-2
2521 ## HP 9000 series 200 or 300
2523 machine
=hp9000s300 opsys
=bsd4-3
2525 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2527 case "`uname -r`" in
2528 ## Someone's system reports A.B8.05 for this.
2529 ## I wonder what other possibilities there are.
2530 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2531 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2532 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2533 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2534 *) machine
=hp9000s300 opsys
=hpux
;;
2538 ## HP 9000 series 700 and 800, running HP/UX
2540 machine
=hp800 opsys
=hpux
2543 machine
=hp800 opsys
=hpux8
2545 hppa
*-hp-hpux9shr* )
2546 machine
=hp800 opsys
=hpux9shr
2549 machine
=hp800 opsys
=hpux9
2551 hppa
*-hp-hpux10.2
* )
2552 machine
=hp800 opsys
=hpux10-20
2555 machine
=hp800 opsys
=hpux10
2557 hppa
*-hp-hpux1[1-9]* )
2558 machine
=hp800 opsys
=hpux11
2559 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2562 hppa
*-*-linux-gnu* )
2563 machine
=hp800 opsys
=gnu-linux
2566 ## HP 9000 series 700 and 800, running HP/UX
2568 ## Cross-compilation? Nah!
2569 case "`uname -r`" in
2570 ## Someone's system reports A.B8.05 for this.
2571 ## I wonder what other possibilities there are.
2572 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2573 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2574 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2575 *) machine
=hp800 opsys
=hpux10
;;
2579 machine
=hp800 opsys
=nextstep
2584 machine
=orion opsys
=bsd4-2
2586 clipper-orion-bsd
* )
2587 machine
=orion105 opsys
=bsd4-2
2591 i
[3456]86-ibm-aix1.1
* )
2592 machine
=ibmps2-aix opsys
=usg5-2-2
2594 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2595 machine
=ibmps2-aix opsys
=usg5-3
2598 machine
=ibm370aix opsys
=usg5-3
2601 machine
=ibms390 opsys
=gnu-linux
2603 s390x-
*-linux-gnu* )
2604 machine
=ibms390x opsys
=gnu-linux
2606 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2607 machine
=ibmrs6000 opsys
=aix3-1
2609 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2610 machine
=ibmrs6000 opsys
=aix3-2-5
2612 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2613 machine
=ibmrs6000 opsys
=aix4-1
2615 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2616 machine
=ibmrs6000 opsys
=aix4-2
2618 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2619 machine
=ibmrs6000 opsys
=aix4-2
2621 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2622 machine
=ibmrs6000 opsys
=aix4
2624 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2625 machine
=ibmrs6000 opsys
=aix4-1
2627 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2628 machine
=ibmrs6000 opsys
=aix3-2
2631 machine
=ibmrt opsys
=bsd4-3
2634 machine
=ibmrt opsys
=bsd4-2
2637 machine
=ibmrt opsys
=bsd4-3
2640 machine
=ibmrt opsys
=bsd4-2
2643 machine
=ibmrt opsys
=bsd4-3
2646 machine
=ibmrt opsys
=bsd4-3
2649 machine
=ibmrt-aix opsys
=usg5-2-2
2652 ## Integrated Solutions `Optimum V'
2654 machine
=isi-ov opsys
=bsd4-2
2657 machine
=isi-ov opsys
=bsd4-3
2660 ## Intel 386 machines where we do care about the manufacturer
2661 i
[3456]86-intsys-sysv* )
2662 machine
=is386 opsys
=usg5-2-2
2666 i
[3456]86-prime-sysv* )
2667 machine
=i386 opsys
=usg5-3
2670 ## Sequent Symmetry running Dynix
2671 i
[3456]86-sequent-bsd* )
2672 machine
=symmetry opsys
=bsd4-3
2675 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2676 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2677 machine
=sequent-ptx opsys
=ptx4
2678 NON_GNU_CPP
=/lib
/cpp
2681 ## Sequent Symmetry running DYNIX/ptx
2682 ## Use the old cpp rather than the newer ANSI one.
2683 i
[3456]86-sequent-ptx* )
2684 machine
=sequent-ptx opsys
=ptx
2685 NON_GNU_CPP
="/lib/cpp"
2688 ## ncr machine running svr4.3.
2689 i
[3456]86-ncr-sysv4.3
)
2690 machine
=ncr386 opsys
=usg5-4-3
2693 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2694 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2695 i
[3456]86-ncr-sysv* )
2696 machine
=ncr386 opsys
=usg5-4-2
2699 ## Intel Paragon OSF/1
2701 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2706 machine
=i860 opsys
=usg5-4
2707 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2708 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2711 ## Macintosh PowerPC
2712 powerpc
*-*-linux-gnu* )
2713 machine
=macppc opsys
=gnu-linux
2716 ## Masscomp machines
2717 m68
*-masscomp-rtu* )
2718 machine
=masscomp opsys
=rtu
2721 ## Megatest machines
2722 m68
*-megatest-bsd* )
2723 machine
=mega68 opsys
=bsd4-2
2726 ## Workstations sold by MIPS
2727 ## This is not necessarily all workstations using the MIPS processor -
2728 ## Irises are produced by SGI, and DECstations by DEC.
2730 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2731 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2732 ## it gives for choosing between the alternatives seems to be "Use
2733 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2734 ## the BSD world." I'll assume that these are instructions for
2735 ## handling two odd situations, and that every other situation
2736 ## should use mips.h and usg5-2-2, they being listed first.
2739 ## Fall through to the general code at the bottom to decide on the OS.
2741 mips-mips-riscos4
* )
2742 machine
=mips4 opsys
=bsd4-3
2743 NON_GNU_CC
="cc -systype bsd43"
2744 NON_GNU_CPP
="cc -systype bsd43 -E"
2746 mips-mips-riscos5
* )
2747 machine
=mips4 opsys
=riscos5
2748 NON_GNU_CC
="cc -systype bsd43"
2749 NON_GNU_CPP
="cc -systype bsd43 -E"
2752 machine
=mips opsys
=bsd4-3
2755 machine
=mips opsys
=usg5-2-2
2759 m68
*-next-* | m68k-
*-nextstep* )
2760 machine
=m68k opsys
=nextstep
2763 ## The complete machine from National Semiconductor
2765 machine
=ns32000 opsys
=usg5-2
2769 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2770 machine
=tower32 opsys
=usg5-2-2
2772 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2773 machine
=tower32v3 opsys
=usg5-3
2778 machine
=ews4800 opsys
=ux4800
2781 ## Nixdorf Targon 31
2782 m68
*-nixdorf-sysv* )
2783 machine
=targon31 opsys
=usg5-2-2
2788 machine
=nu opsys
=usg5-2
2793 machine
=plexus opsys
=usg5-2
2797 ## I don't really have any idea what sort of processor the Pyramid has,
2798 ## so I'm assuming it is its own architecture.
2799 pyramid-pyramid-bsd
* )
2800 machine
=pyramid opsys
=bsd4-2
2804 ns32k-sequent-bsd4.2
* )
2805 machine
=sequent opsys
=bsd4-2
2807 ns32k-sequent-bsd4.3
* )
2808 machine
=sequent opsys
=bsd4-3
2812 mips-siemens-sysv
* | mips-sni-sysv
*)
2813 machine
=mips-siemens opsys
=usg5-4
2814 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2815 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2818 ## Silicon Graphics machines
2819 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2821 machine
=irist opsys
=iris3-5
2823 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2824 machine
=irist opsys
=iris3-6
2828 machine
=iris4d opsys
=irix3-3
2831 machine
=iris4d opsys
=irix4-0
2834 machine
=iris4d opsys
=irix6-5
2835 # Without defining _LANGUAGE_C, things get masked out in the headers
2836 # so that, for instance, grepping for `free' in stdlib.h fails and
2837 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2838 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2839 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2842 machine
=iris4d opsys
=irix6-0
2843 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2844 # but presumably it does no harm.
2845 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2846 # -32 probably isn't necessary in later v.6s -- anyone know which?
2847 NON_GCC_TEST_OPTIONS
=-32
2849 mips-sgi-irix5.
[01]* )
2850 machine
=iris4d opsys
=irix5-0
2852 mips-sgi-irix5
* | mips-sgi-irix
* )
2853 machine
=iris4d opsys
=irix5-2
2858 machine
=news opsys
=bsd4-2
2861 machine
=news opsys
=bsd4-3
2863 m68
*-sony-newsos3* | m68
*-sony-news3*)
2864 machine
=news opsys
=bsd4-3
2866 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2867 machine
=news-risc opsys
=bsd4-3
2869 mips-sony-newsos6
* )
2870 machine
=news-r6 opsys
=newsos6
2873 machine
=news-risc opsys
=newsos5
2878 machine
=stride opsys
=usg5-2
2882 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2883 machine
=sparc opsys
=gnu-linux
2886 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2887 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2888 | rs6000-
*-solaris2*)
2889 case "${canonical}" in
2890 m68
*-sunos1* ) machine
=sun1
;;
2891 m68
*-sunos2* ) machine
=sun2
;;
2892 m68
* ) machine
=sun3
;;
2893 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2894 i
[3456]86-*-* ) machine
=intel386
;;
2895 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2896 powerpcle
* ) machine
=powerpcle
;;
2897 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2898 sparc
* ) machine
=sparc
;;
2901 case "${canonical}" in
2902 ## The Sun386 didn't get past 4.0.
2903 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2904 *-sunos4.0
* ) opsys
=sunos4-0
;;
2905 *-sunos4.1.
[3-9]*noshare
)
2906 ## This name is sunos413 instead of sunos4-1-3
2907 ## to avoid a file name conflict on MSDOS.
2909 NON_GNU_CPP
=/usr
/lib
/cpp
2910 NON_GCC_TEST_OPTIONS
=-Bstatic
2911 GCC_TEST_OPTIONS
=-static
2913 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2915 NON_GNU_CPP
=/usr
/lib
/cpp
2917 *-sunos4* |
*-sunos )
2919 NON_GCC_TEST_OPTIONS
=-Bstatic
2920 GCC_TEST_OPTIONS
=-static
2922 *-sunos5.3
* |
*-solaris2.3
* )
2924 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2926 *-sunos5.4
* |
*-solaris2.4
* )
2928 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2931 *-sunos5.5
* |
*-solaris2.5
* )
2933 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2936 *-sunos5.6
* |
*-solaris2.6
* )
2938 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2941 *-sunos5* |
*-solaris* )
2943 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2947 ## Watch out for a compiler that we know will not work.
2948 case "${canonical}" in
2949 *-solaris* |
*-sunos5* )
2950 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2951 ## /usr/ucb/cc doesn't work;
2952 ## we should find some other compiler that does work.
2960 machine
=sparc opsys
=nextstep
2964 m68
*-tadpole-sysv* )
2965 machine
=tad68k opsys
=usg5-3
2969 tahoe-tahoe-bsd4.2
* )
2970 machine
=tahoe opsys
=bsd4-2
2972 tahoe-tahoe-bsd4.3
* )
2973 machine
=tahoe opsys
=bsd4-3
2976 ## Tandem Integrity S2
2978 machine
=tandem-s2 opsys
=usg5-3
2982 m88k-tektronix-sysv3
* )
2983 machine
=tekxd88 opsys
=usg5-3
2986 ## Tektronix 16000 box (6130?)
2987 ns16k-tektronix-bsd
* )
2988 machine
=ns16000 opsys
=bsd4-2
2991 ## src/m/tek4300.h hints that this is a m68k machine.
2992 m68
*-tektronix-bsd* )
2993 machine
=tek4300 opsys
=bsd4-3
2997 ## We seem to have lost the machine-description file titan.h!
2999 machine
=titan opsys
=usg5-3
3002 ## Ustation E30 (SS5E)
3003 m68
*-unisys-uniplus* )
3004 machine
=ustation opsystem
=unipl5-2
3010 case "${canonical}" in
3011 *-bsd4.1
* ) opsys
=bsd4-1
;;
3012 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3013 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3014 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3015 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3016 *-vms* ) opsys
=vms
;;
3022 ns16k-whitechapel-
* )
3024 ## We don't know what sort of OS runs on these; we'll let the
3025 ## operating system guessing code below try.
3030 machine
=wicat opsys
=usg5-2
3035 machine
=ia64 opsys
=gnu-linux
3038 ## Intel 386 machines where we don't care about the manufacturer
3041 case "${canonical}" in
3042 *-cygwin ) opsys
=cygwin
;;
3043 *-darwin* ) opsys
=darwin
3044 CPP
="${CC-cc} -E -no-cpp-precomp"
3046 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3047 *-isc2.2
* ) opsys
=isc2-2
;;
3048 *-isc4.0
* ) opsys
=isc4-0
;;
3049 *-isc4.
* ) opsys
=isc4-1
3050 GCC_TEST_OPTIONS
=-posix
3051 NON_GCC_TEST_OPTIONS
=-Xp
3053 *-isc* ) opsys
=isc3-0
;;
3054 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3055 *-esix* ) opsys
=esix
;;
3056 *-xenix* ) opsys
=xenix
;;
3057 *-linux-gnu* ) opsys
=gnu-linux
;;
3058 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3059 *-sco3.2v5
* ) opsys
=sco5
3060 NON_GNU_CPP
=/lib
/cpp
3061 # Prevent -belf from being passed to $CPP.
3062 # /lib/cpp does not accept it.
3063 OVERRIDE_CPPFLAGS
=" "
3065 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3066 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3067 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3068 *-386bsd* ) opsys
=386bsd
;;
3069 *-nextstep* ) opsys
=nextstep
;;
3070 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3074 ## m68k Linux-based GNU system
3076 machine
=m68k opsys
=gnu-linux
3079 ## Mips Linux-based GNU system
3080 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3081 machine
=mips opsys
=gnu-linux
3085 sparc-fujitsu-sysv4
* )
3086 machine
=sparc opsys
=uxpds
3087 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3092 f301-fujitsu-uxpv4.1
)
3093 machine
=f301 opsys
=uxpv
3096 ## Darwin / Mac OS X
3097 powerpc-apple-darwin
* )
3098 machine
=powermac opsys
=darwin
3099 # Define CPP as follows to make autoconf work correctly.
3100 CPP
="${CC-cc} -E -no-cpp-precomp"
3101 # Use fink packages if available.
3102 if test -d /sw
/include
&& test -d /sw
/lib
; then
3103 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3104 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3105 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3109 ## AMD x86-64 Linux-based GNU system
3110 x86_64-
*-linux-gnu* )
3111 machine
=amdx86-64 opsys
=gnu-linux
3119 ### If the code above didn't choose an operating system, just choose
3120 ### an operating system based on the configuration name. You really
3121 ### only want to use this when you have no idea what the right
3122 ### operating system is; if you know what operating systems a machine
3123 ### runs, it's cleaner to make it explicit in the case statement
3125 if test x
"${opsys}" = x
; then
3126 case "${canonical}" in
3127 *-gnu* ) opsys
=gnu
;;
3128 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3129 *-bsd4.2
) opsys
=bsd4-2
;;
3130 *-bsd4.3
) opsys
=bsd4-3
;;
3131 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3132 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3133 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3134 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3135 *-sysv4.2uw
* ) opsys
=unixware
;;
3136 *-sysv5uw* ) opsys
=unixware
;;
3137 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3138 *-sysv4.1
* |
*-sysvr4.1
* )
3139 NON_GNU_CPP
=/usr
/lib
/cpp
3141 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3142 if [ x
$NON_GNU_CPP = x
]; then
3143 if [ -f /usr
/ccs
/lib
/cpp
]; then
3144 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3146 NON_GNU_CPP
=/lib
/cpp
3150 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3159 if test $unported = yes; then
3160 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3161 Check \`etc/MACHINES' for recognized configuration names." >&5
3162 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3163 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3164 { (exit 1); exit 1; }; }
3167 machfile
="m/${machine}.h"
3168 opsysfile
="s/${opsys}.h"
3171 #### Choose a compiler.
3172 test -n "$CC" && cc_specified
=yes
3174 # Save the value of CFLAGS that the user specified.
3175 SPECIFIED_CFLAGS
="$CFLAGS"
3178 "yes" ) CC
="gcc" GCC
=yes ;;
3179 "no" ) : ${CC=cc} ;;
3183 ac_cpp
='$CPP $CPPFLAGS'
3184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3187 if test -n "$ac_tool_prefix"; then
3188 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3189 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_CC+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC
="$CC" # Let the user override the test.
3198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir
=.
3203 for ac_exec_ext
in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$CC"; then
3217 { echo "$as_me:$LINENO: result: $CC" >&5
3218 echo "${ECHO_T}$CC" >&6; }
3220 { echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6; }
3226 if test -z "$ac_cv_prog_CC"; then
3228 # Extract the first word of "gcc", so it can be a program name with args.
3229 set dummy gcc
; ac_word
=$2
3230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 if test -n "$ac_ct_CC"; then
3236 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir
=.
3243 for ac_exec_ext
in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_ac_ct_CC
="gcc"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3256 if test -n "$ac_ct_CC"; then
3257 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3258 echo "${ECHO_T}$ac_ct_CC" >&6; }
3260 { echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6; }
3264 if test "x$ac_ct_CC" = x
; then
3267 case $cross_compiling:$ac_tool_warned in
3269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3270 whose name does not start with the host triplet. If you think this
3271 configuration is useful to you, please write to autoconf@gnu.org." >&5
3272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3273 whose name does not start with the host triplet. If you think this
3274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3275 ac_tool_warned
=yes ;;
3283 if test -z "$CC"; then
3284 if test -n "$ac_tool_prefix"; then
3285 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3286 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC
="$CC" # Let the user override the test.
3295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir
=.
3300 for ac_exec_ext
in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test -n "$CC"; then
3314 { echo "$as_me:$LINENO: result: $CC" >&5
3315 echo "${ECHO_T}$CC" >&6; }
3317 { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3324 if test -z "$CC"; then
3325 # Extract the first word of "cc", so it can be a program name with args.
3326 set dummy cc
; ac_word
=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_CC+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC
="$CC" # Let the user override the test.
3336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir
=.
3341 for ac_exec_ext
in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3344 ac_prog_rejected
=yes
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test $ac_prog_rejected = yes; then
3356 # We found a bogon in the path, so make sure we never use it.
3357 set dummy
$ac_cv_prog_CC
3359 if test $# != 0; then
3360 # We chose a different compiler from the bogus one.
3361 # However, it has the same basename, so the bogon will be chosen
3362 # first if we set CC to just the basename; use the full file name.
3364 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3370 if test -n "$CC"; then
3371 { echo "$as_me:$LINENO: result: $CC" >&5
3372 echo "${ECHO_T}$CC" >&6; }
3374 { echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6; }
3380 if test -z "$CC"; then
3381 if test -n "$ac_tool_prefix"; then
3382 for ac_prog
in cl.exe
3384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3385 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3388 if test "${ac_cv_prog_CC+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC
="$CC" # Let the user override the test.
3394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir
=.
3399 for ac_exec_ext
in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 if test -n "$CC"; then
3413 { echo "$as_me:$LINENO: result: $CC" >&5
3414 echo "${ECHO_T}$CC" >&6; }
3416 { echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6; }
3421 test -n "$CC" && break
3424 if test -z "$CC"; then
3426 for ac_prog
in cl.exe
3428 # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy
$ac_prog; ac_word
=$2
3430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 if test -n "$ac_ct_CC"; then
3436 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir
=.
3443 for ac_exec_ext
in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_CC
="$ac_prog"
3446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3456 if test -n "$ac_ct_CC"; then
3457 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3458 echo "${ECHO_T}$ac_ct_CC" >&6; }
3460 { echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6; }
3465 test -n "$ac_ct_CC" && break
3468 if test "x$ac_ct_CC" = x
; then
3471 case $cross_compiling:$ac_tool_warned in
3473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3474 whose name does not start with the host triplet. If you think this
3475 configuration is useful to you, please write to autoconf@gnu.org." >&5
3476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3477 whose name does not start with the host triplet. If you think this
3478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3479 ac_tool_warned
=yes ;;
3488 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details." >&5
3490 echo "$as_me: error: no acceptable C compiler found in \$PATH
3491 See \`config.log' for more details." >&2;}
3492 { (exit 1); exit 1; }; }
3494 # Provide some information about the compiler.
3495 echo "$as_me:$LINENO: checking for C compiler version" >&5
3496 ac_compiler
=`set X $ac_compile; echo $2`
3497 { (ac_try
="$ac_compiler --version >&5"
3499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compiler --version >&5") 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { (ac_try="$ac_compiler -v >&5"
3509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3510 *) ac_try_echo
=$ac_try;;
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compiler -v >&5") 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }
3517 { (ac_try
="$ac_compiler -V >&5"
3519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compiler -V >&5") 2>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3543 ac_clean_files_save=$ac_clean_files
3544 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3545 # Try to create an executable without -o first, disregard a.out.
3546 # It will help us diagnose broken compilers, and finding out an intuition
3548 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3549 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3550 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3552 # List of possible output files, starting from the most likely.
3553 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3554 # only as a last resort. b.out is created by i960 compilers.
3555 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3557 # The IRIX 6 linker writes into existing files which may not be
3558 # executable, retaining their permissions. Remove them first so a
3559 # subsequent execution test works.
3561 for ac_file in $ac_files
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3565 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3570 if { (ac_try="$ac_link_default"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_link_default") 2>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; then
3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3581 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3582 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3583 # so that the user can short-circuit this test for compilers unknown to
3585 for ac_file
in $ac_files
3587 test -f "$ac_file" ||
continue
3589 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3592 # We found the default executable, but exeext='' is most
3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3598 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 # We set ac_cv_exeext here because the later test for it is not
3601 # safe: cross compilers may not add the suffix if given an `-o'
3602 # argument, so we may need to know it at that point already.
3603 # Even if this section looks crufty: it has the advantage of
3610 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.
$ac_ext >&5
3616 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3617 See \`config.log' for more details." >&5
3618 echo "$as_me: error: C compiler cannot create executables
3619 See \`config.log' for more details." >&2;}
3620 { (exit 77); exit 77; }; }
3623 ac_exeext
=$ac_cv_exeext
3624 { echo "$as_me:$LINENO: result: $ac_file" >&5
3625 echo "${ECHO_T}$ac_file" >&6; }
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3630 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3631 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3632 # If not cross compiling, check that we can run a simple program.
3633 if test "$cross_compiling" != yes; then
3634 if { ac_try
='./$ac_file'
3635 { (case "(($ac_try" in
3636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3646 if test "$cross_compiling" = maybe; then
3649 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3650 If you meant to cross compile, use \`--host'.
3651 See \`config.log' for more details.
" >&5
3652 echo "$as_me: error
: cannot run C compiled programs.
3653 If you meant to cross compile
, use \
`--host'.
3654 See \`config.log
' for more details." >&2;}
3655 { (exit 1); exit 1; }; }
3659 { echo "$as_me:$LINENO: result: yes" >&5
3660 echo "${ECHO_T}yes" >&6; }
3662 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3663 ac_clean_files=$ac_clean_files_save
3664 # Check that the compiler produces executables we can run. If not, either
3665 # the compiler is broken, or we cross compile.
3666 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3667 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3668 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3669 echo "${ECHO_T}$cross_compiling" >&6; }
3671 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3672 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3673 if { (ac_try="$ac_link"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_link") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; then
3683 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3684 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3685 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3687 for ac_file
in conftest.exe conftest conftest.
*; do
3688 test -f "$ac_file" ||
continue
3690 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3691 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." >&5
3699 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3700 See \`config.log' for more details." >&2;}
3701 { (exit 1); exit 1; }; }
3704 rm -f conftest
$ac_cv_exeext
3705 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3706 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3708 rm -f conftest.
$ac_ext
3709 EXEEXT
=$ac_cv_exeext
3711 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3712 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3713 if test "${ac_cv_objext+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 cat >conftest.
$ac_ext <<_ACEOF
3719 cat confdefs.h
>>conftest.
$ac_ext
3720 cat >>conftest.
$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3731 rm -f conftest.o conftest.obj
3732 if { (ac_try
="$ac_compile"
3734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_compile") 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 for ac_file in conftest.o conftest.obj conftest.*; do
3743 test -f "$ac_file" || continue;
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3746 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3755 See \`config.log
' for more details." >&5
3756 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3757 See \`config.log' for more details.
" >&2;}
3758 { (exit 1); exit 1; }; }
3761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3763 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3764 echo "${ECHO_T}$ac_cv_objext" >&6; }
3765 OBJEXT=$ac_cv_objext
3767 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3768 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3769 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3770 echo $ECHO_N "(cached
) $ECHO_C" >&6
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3790 rm -f conftest.$ac_objext
3791 if { (ac_try="$ac_compile"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>conftest.er1
3799 grep -v '^ *+' conftest.er1 >conftest.err
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3805 { (case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_try") 2>&5
3812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
3822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3823 (exit $ac_status); }; }; then
3826 echo "$as_me: failed program was
:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3836 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3837 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3838 GCC=`test $ac_compiler_gnu = yes && echo yes`
3839 ac_test_CFLAGS=${CFLAGS+set}
3840 ac_save_CFLAGS=$CFLAGS
3841 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3842 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3843 if test "${ac_cv_prog_cc_g+set}" = set; then
3844 echo $ECHO_N "(cached
) $ECHO_C" >&6
3846 ac_save_c_werror_flag=$ac_c_werror_flag
3847 ac_c_werror_flag=yes
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3880 { (case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_try") 2>&5
3887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3888 (exit $ac_status); }; } &&
3889 { ac_try='test -s conftest.$ac_objext'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3898 (exit $ac_status); }; }; then
3901 echo "$as_me: failed program was
:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_try") 2>&5
3942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest.$ac_objext'
3945 { (case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_try") 2>&5
3952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3953 (exit $ac_status); }; }; then
3956 echo "$as_me: failed program was
:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 ac_c_werror_flag=$ac_save_c_werror_flag
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3976 rm -f conftest.$ac_objext
3977 if { (ac_try="$ac_compile"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_compile") 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3991 { (case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_try") 2>&5
3998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
4008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4009 (exit $ac_status); }; }; then
4012 echo "$as_me: failed program was
:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4027 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4029 if test "$ac_test_CFLAGS" = set; then
4030 CFLAGS=$ac_save_CFLAGS
4031 elif test $ac_cv_prog_cc_g = yes; then
4032 if test "$GCC" = yes; then
4038 if test "$GCC" = yes; then
4044 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4045 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4046 if test "${ac_cv_prog_cc_c89+set}" = set; then
4047 echo $ECHO_N "(cached
) $ECHO_C" >&6
4049 ac_cv_prog_cc_c89=no
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4059 #include <sys/types.h>
4060 #include <sys/stat.h>
4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4062 struct buf { int x; };
4063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064 static char *e (p, i)
4070 static char *f (char * (*g) (char **, int), char **p, ...)
4075 s = g (p, va_arg (v,int));
4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4081 function prototypes and stuff, but not '\xHH' hex character constants.
4082 These don't provoke an error unfortunately, instead are silently treated
4083 as 'x'. The following induces an error, until -std is added to get
4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4085 array size at least. It's necessary to write '\x00'==0 to get something
4086 that's true only with -std. */
4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090 inside strings and character constants. */
4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094 int test (int i, double x);
4095 struct s1 {int (*f) (int a);};
4096 struct s2 {int (*f) (double a);};
4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111 CC="$ac_save_CC $ac_arg"
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_prog_cc_c89=$ac_arg
4148 echo "$as_me: failed program was
:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4154 rm -f core conftest.err conftest.$ac_objext
4155 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4157 rm -f conftest.$ac_ext
4162 case "x
$ac_cv_prog_cc_c89" in
4164 { echo "$as_me:$LINENO: result
: none needed
" >&5
4165 echo "${ECHO_T}none needed
" >&6; } ;;
4167 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4168 echo "${ECHO_T}unsupported
" >&6; } ;;
4170 CC="$CC $ac_cv_prog_cc_c89"
4171 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4172 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4188 #### Some systems specify a CPP to use unless we are using GCC.
4189 #### Now that we know whether we are using GCC, we can decide whether
4190 #### to use that one.
4191 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4196 #### Some systems specify a CC to use unless we are using GCC.
4197 #### Now that we know whether we are using GCC, we can decide whether
4198 #### to use that one.
4199 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4200 test x$cc_specified != xyes
4205 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4207 CC="$CC $GCC_TEST_OPTIONS"
4210 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4212 CC="$CC $NON_GCC_TEST_OPTIONS"
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4222 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4223 # On Suns, sometimes $CPP names a directory.
4224 if test -n "$CPP" && test -d "$CPP"; then
4227 if test -z "$CPP"; then
4228 if test "${ac_cv_prog_CPP+set}" = set; then
4229 echo $ECHO_N "(cached
) $ECHO_C" >&6
4231 # Double quotes because CPP needs to be expanded
4232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4235 for ac_c_preproc_warn_flag in '' yes
4237 # Use a header file that comes with gcc, so configuring glibc
4238 # with a fresh cross-compiler works.
4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240 # <limits.h> exists even on freestanding compilers.
4241 # On the NeXT, cc -E runs the code through the compiler's parser,
4242 # not just through cpp. "Syntax error
" is here to catch this case.
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4250 # include <limits.h>
4252 # include <assert.h>
4256 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4268 (exit $ac_status); } >/dev/null; then
4269 if test -s conftest.err; then
4270 ac_cpp_err=$ac_c_preproc_warn_flag
4271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4278 if test -z "$ac_cpp_err"; then
4281 echo "$as_me: failed program was
:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 # Broken: fails on valid input.
4288 rm -f conftest.err conftest.$ac_ext
4290 # OK, works on sane cases. Now check whether nonexistent headers
4291 # can be detected and how.
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <ac_nonexistent.h>
4300 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4312 (exit $ac_status); } >/dev/null; then
4313 if test -s conftest.err; then
4314 ac_cpp_err=$ac_c_preproc_warn_flag
4315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322 if test -z "$ac_cpp_err"; then
4323 # Broken: success on invalid input.
4326 echo "$as_me: failed program was
:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 # Passes both tests.
4334 rm -f conftest.err conftest.$ac_ext
4337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4338 rm -f conftest.err conftest.$ac_ext
4339 if $ac_preproc_ok; then
4351 { echo "$as_me:$LINENO: result
: $CPP" >&5
4352 echo "${ECHO_T}$CPP" >&6; }
4354 for ac_c_preproc_warn_flag in '' yes
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error
" is here to catch this case.
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4369 # include <limits.h>
4371 # include <assert.h>
4375 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4387 (exit $ac_status); } >/dev/null; then
4388 if test -s conftest.err; then
4389 ac_cpp_err=$ac_c_preproc_warn_flag
4390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4397 if test -z "$ac_cpp_err"; then
4400 echo "$as_me: failed program was
:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 # Broken: fails on valid input.
4407 rm -f conftest.err conftest.$ac_ext
4409 # OK, works on sane cases. Now check whether nonexistent headers
4410 # can be detected and how.
4411 cat >conftest.$ac_ext <<_ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 #include <ac_nonexistent.h>
4419 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1 >conftest.err
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4431 (exit $ac_status); } >/dev/null; then
4432 if test -s conftest.err; then
4433 ac_cpp_err=$ac_c_preproc_warn_flag
4434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4441 if test -z "$ac_cpp_err"; then
4442 # Broken: success on invalid input.
4445 echo "$as_me: failed program was
:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 # Passes both tests.
4453 rm -f conftest.err conftest.$ac_ext
4456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4457 rm -f conftest.err conftest.$ac_ext
4458 if $ac_preproc_ok; then
4461 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4462 See \
`config.log' for more details." >&5
4463 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4464 See \`config.log
' for more details." >&2;}
4465 { (exit 1); exit 1; }; }
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4471 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4476 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_GREP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 # Extract the first word of "grep ggrep" to use in msg output
4481 if test -z "$GREP"; then
4482 set dummy grep ggrep; ac_prog_name=$2
4483 if test "${ac_cv_path_GREP+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 ac_path_GREP_found=false
4487 # Loop through the user's path and
test for each of PROGNAME-LIST
4488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4489 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4492 test -z "$as_dir" && as_dir
=.
4493 for ac_prog
in grep ggrep
; do
4494 for ac_exec_ext
in '' $ac_executable_extensions; do
4495 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4496 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
4497 # Check for GNU ac_path_GREP and select it if it is found.
4498 # Check for GNU $ac_path_GREP
4499 case `"$ac_path_GREP" --version 2>&1` in
4501 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4504 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4507 cat "conftest.in" "conftest.in" >"conftest.tmp"
4508 mv "conftest.tmp" "conftest.in"
4509 cp "conftest.in" "conftest.nl"
4510 echo 'GREP' >> "conftest.nl"
4511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4512 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4513 ac_count
=`expr $ac_count + 1`
4514 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515 # Best one so far, save it but keep looking for a better one
4516 ac_cv_path_GREP
="$ac_path_GREP"
4517 ac_path_GREP_max
=$ac_count
4519 # 10*(2^10) chars as input seems more than enough
4520 test $ac_count -gt 10 && break
4522 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4526 $ac_path_GREP_found && break 3
4536 GREP
="$ac_cv_path_GREP"
4537 if test -z "$GREP"; then
4538 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4539 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4540 { (exit 1); exit 1; }; }
4544 ac_cv_path_GREP
=$GREP
4549 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4550 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4551 GREP
="$ac_cv_path_GREP"
4554 { echo "$as_me:$LINENO: checking for egrep" >&5
4555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4556 if test "${ac_cv_path_EGREP+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4560 then ac_cv_path_EGREP
="$GREP -E"
4562 # Extract the first word of "egrep" to use in msg output
4563 if test -z "$EGREP"; then
4564 set dummy
egrep; ac_prog_name
=$2
4565 if test "${ac_cv_path_EGREP+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 ac_path_EGREP_found
=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4571 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4574 test -z "$as_dir" && as_dir
=.
4575 for ac_prog
in egrep; do
4576 for ac_exec_ext
in '' $ac_executable_extensions; do
4577 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4578 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
4579 # Check for GNU ac_path_EGREP and select it if it is found.
4580 # Check for GNU $ac_path_EGREP
4581 case `"$ac_path_EGREP" --version 2>&1` in
4583 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4586 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4589 cat "conftest.in" "conftest.in" >"conftest.tmp"
4590 mv "conftest.tmp" "conftest.in"
4591 cp "conftest.in" "conftest.nl"
4592 echo 'EGREP' >> "conftest.nl"
4593 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4594 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4595 ac_count
=`expr $ac_count + 1`
4596 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4597 # Best one so far, save it but keep looking for a better one
4598 ac_cv_path_EGREP
="$ac_path_EGREP"
4599 ac_path_EGREP_max
=$ac_count
4601 # 10*(2^10) chars as input seems more than enough
4602 test $ac_count -gt 10 && break
4604 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4608 $ac_path_EGREP_found && break 3
4618 EGREP
="$ac_cv_path_EGREP"
4619 if test -z "$EGREP"; then
4620 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4621 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4622 { (exit 1); exit 1; }; }
4626 ac_cv_path_EGREP
=$EGREP
4632 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4633 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4634 EGREP
="$ac_cv_path_EGREP"
4638 { echo "$as_me:$LINENO: checking for AIX" >&5
4639 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4640 cat >conftest.
$ac_ext <<_ACEOF
4643 cat confdefs.h
>>conftest.
$ac_ext
4644 cat >>conftest.
$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "yes" >/dev
/null
2>&1; then
4653 { echo "$as_me:$LINENO: result: yes" >&5
4654 echo "${ECHO_T}yes" >&6; }
4655 cat >>confdefs.h
<<\_ACEOF
4656 #define _ALL_SOURCE 1
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4667 cat >>confdefs.h
<<\_ACEOF
4668 #define _GNU_SOURCE 1
4673 ### Use -Wno-pointer-sign if the compiler supports it
4674 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4675 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4676 SAVE_CFLAGS
="$CFLAGS"
4677 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4678 cat >conftest.
$ac_ext <<_ACEOF
4681 cat confdefs.h
>>conftest.
$ac_ext
4682 cat >>conftest.
$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4693 rm -f conftest.
$ac_objext
4694 if { (ac_try
="$ac_compile"
4696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4708 { (case "(($ac_try" in
4709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4710 *) ac_try_echo
=$ac_try;;
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_try") 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try
='test -s conftest.$ac_objext'
4718 { (case "(($ac_try" in
4719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_try") 2>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 if test $has_option = yes; then
4737 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4739 { echo "$as_me:$LINENO: result: $has_option" >&5
4740 echo "${ECHO_T}$has_option" >&6; }
4741 CFLAGS="$SAVE_CFLAGS"
4745 #### Some other nice autoconf tests.
4747 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4748 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4750 if test "$LN_S" = "ln -s"; then
4751 { echo "$as_me:$LINENO: result: yes" >&5
4752 echo "${ECHO_T}yes" >&6; }
4754 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4755 echo "${ECHO_T}no, using $LN_S" >&6; }
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4764 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4765 # On Suns, sometimes $CPP names a directory.
4766 if test -n "$CPP" && test -d "$CPP"; then
4769 if test -z "$CPP"; then
4770 if test "${ac_cv_prog_CPP+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 # Double quotes because CPP needs to be expanded
4774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4777 for ac_c_preproc_warn_flag in '' yes
4779 # Use a header file that comes with gcc, so configuring glibc
4780 # with a fresh cross-compiler works.
4781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4782 # <limits.h> exists even on freestanding compilers.
4783 # On the NeXT, cc -E runs the code through the compiler's parser,
4784 # not just through cpp. "Syntax error" is here to catch this case.
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4792 # include <limits.h>
4794 # include <assert.h>
4798 if { (ac_try="$ac_cpp conftest.$ac_ext"
4800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4801 *) ac_try_echo
=$ac_try;;
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev
/null
; then
4811 if test -s conftest.err
; then
4812 ac_cpp_err
=$ac_c_preproc_warn_flag
4813 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4820 if test -z "$ac_cpp_err"; then
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4826 # Broken: fails on valid input.
4830 rm -f conftest.err conftest.
$ac_ext
4832 # OK, works on sane cases. Now check whether nonexistent headers
4833 # can be detected and how.
4834 cat >conftest.
$ac_ext <<_ACEOF
4837 cat confdefs.h
>>conftest.
$ac_ext
4838 cat >>conftest.
$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 #include <ac_nonexistent.h>
4842 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null; then
4855 if test -s conftest.err; then
4856 ac_cpp_err=$ac_c_preproc_warn_flag
4857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4864 if test -z "$ac_cpp_err"; then
4865 # Broken: success on invalid input.
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 # Passes both tests.
4876 rm -f conftest.err conftest.$ac_ext
4879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4880 rm -f conftest.err conftest.
$ac_ext
4881 if $ac_preproc_ok; then
4893 { echo "$as_me:$LINENO: result: $CPP" >&5
4894 echo "${ECHO_T}$CPP" >&6; }
4896 for ac_c_preproc_warn_flag
in '' yes
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4911 # include <limits.h>
4913 # include <assert.h>
4917 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null; then
4930 if test -s conftest.err; then
4931 ac_cpp_err=$ac_c_preproc_warn_flag
4932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4939 if test -z "$ac_cpp_err"; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 # Broken: fails on valid input.
4949 rm -f conftest.err conftest.$ac_ext
4951 # OK, works on sane cases. Now check whether nonexistent headers
4952 # can be detected and how.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ac_nonexistent.h>
4961 if { (ac_try="$ac_cpp conftest.$ac_ext"
4963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4964 *) ac_try_echo
=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev
/null
; then
4974 if test -s conftest.err
; then
4975 ac_cpp_err
=$ac_c_preproc_warn_flag
4976 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4983 if test -z "$ac_cpp_err"; then
4984 # Broken: success on invalid input.
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.
$ac_ext >&5
4990 # Passes both tests.
4995 rm -f conftest.err conftest.
$ac_ext
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.err conftest.
$ac_ext
5000 if $ac_preproc_ok; then
5003 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5006 See \`config.log' for more details." >&2;}
5007 { (exit 1); exit 1; }; }
5011 ac_cpp
='$CPP $CPPFLAGS'
5012 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5016 # Find a good install program. We prefer a C program (faster),
5017 # so one script is as good as another. But avoid the broken or
5018 # incompatible versions:
5019 # SysV /etc/install, /usr/sbin/install
5020 # SunOS /usr/etc/install
5021 # IRIX /sbin/install
5023 # AmigaOS /C/install, which installs bootblocks on floppy discs
5024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5027 # OS/2's system install, which has a completely different semantic
5028 # ./install, which can be erroneously created by make from ./install.sh.
5029 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5031 if test -z "$INSTALL"; then
5032 if test "${ac_cv_path_install+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir
=.
5040 # Account for people who put trailing slashes in PATH elements.
5042 .
/ | .
// |
/cC
/* | \
5043 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5044 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5047 # OSF1 and SCO ODT 3.0 have their own names for install.
5048 # Don't use installbsd from OSF since it installs stuff as root
5050 for ac_prog
in ginstall scoinst
install; do
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5053 if test $ac_prog = install &&
5054 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5055 # AIX install. It has an incompatible calling convention.
5057 elif test $ac_prog = install &&
5058 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5059 # program-specific install script used by HP pwplus--don't use.
5062 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5075 if test "${ac_cv_path_install+set}" = set; then
5076 INSTALL
=$ac_cv_path_install
5078 # As a last resort, use the slow shell script. Don't cache a
5079 # value for INSTALL within a source directory, because that will
5080 # break other packages using the cache if that directory is
5081 # removed, or if the value is a relative name.
5082 INSTALL
=$ac_install_sh
5085 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5086 echo "${ECHO_T}$INSTALL" >&6; }
5088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5089 # It thinks the first close brace ends the variable substitution.
5090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5094 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5096 if test "x$RANLIB" = x
; then
5097 if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5099 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_prog_RANLIB+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 if test -n "$RANLIB"; then
5106 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 RANLIB
=$ac_cv_prog_RANLIB
5126 if test -n "$RANLIB"; then
5127 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5128 echo "${ECHO_T}$RANLIB" >&6; }
5130 { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5136 if test -z "$ac_cv_prog_RANLIB"; then
5137 ac_ct_RANLIB
=$RANLIB
5138 # Extract the first word of "ranlib", so it can be a program name with args.
5139 set dummy ranlib
; ac_word
=$2
5140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -n "$ac_ct_RANLIB"; then
5146 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5166 if test -n "$ac_ct_RANLIB"; then
5167 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5168 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5170 { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5174 if test "x$ac_ct_RANLIB" = x
; then
5177 case $cross_compiling:$ac_tool_warned in
5179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet. If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&5
5182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet. If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5185 ac_tool_warned
=yes ;;
5187 RANLIB
=$ac_ct_RANLIB
5190 RANLIB
="$ac_cv_prog_RANLIB"
5194 # Extract the first word of "install-info", so it can be a program name with args.
5195 set dummy install-info
; ac_word
=$2
5196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5198 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 case $INSTALL_INFO in
5203 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir
=.
5211 for ac_exec_ext
in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5225 if test -n "$INSTALL_INFO"; then
5226 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5227 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5234 # Extract the first word of "install-info", so it can be a program name with args.
5235 set dummy install-info
; ac_word
=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 case $INSTALL_INFO in
5243 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5247 for as_dir
in /usr
/sbin
5250 test -z "$as_dir" && as_dir
=.
5251 for ac_exec_ext
in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5265 if test -n "$INSTALL_INFO"; then
5266 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5267 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5269 { echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6; }
5274 # Extract the first word of "install-info", so it can be a program name with args.
5275 set dummy install-info
; ac_word
=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 case $INSTALL_INFO in
5283 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir
=.
5291 for ac_exec_ext
in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5305 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5306 if test -n "$INSTALL_INFO"; then
5307 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5308 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5310 { echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6; }
5315 # Extract the first word of "gzip", so it can be a program name with args.
5316 set dummy
gzip; ac_word
=$2
5317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5319 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir
=.
5332 for ac_exec_ext
in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5346 if test -n "$GZIP_PROG"; then
5347 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5348 echo "${ECHO_T}$GZIP_PROG" >&6; }
5350 { echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6; }
5357 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5359 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5362 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5364 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5368 late_LDFLAGS
=$LDFLAGS
5369 if test "$GCC" = yes; then
5370 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5372 LDFLAGS
="$LDFLAGS -znocombreloc"
5375 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5376 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5377 cat >conftest.
$ac_ext <<_ACEOF
5380 rm -f conftest.
$ac_objext conftest
$ac_exeext
5381 if { (ac_try
="$ac_link"
5383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_link") 2>conftest.er1
5389 grep -v '^ *+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5395 { (case "(($ac_try" in
5396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5397 *) ac_try_echo
=$ac_try;;
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_try") 2>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try
='test -s conftest$ac_exeext'
5405 { (case "(($ac_try" in
5406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_try") 2>&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 { echo "$as_me:$LINENO: result: yes" >&5
5415 echo "${ECHO_T}yes" >&6; }
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 LDFLAGS=$late_LDFLAGS
5421 { echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6; }
5425 rm -f core conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
5428 #### Extract some information from the operating system and machine files.
5430 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5431 - which libraries the lib-src programs will want, and
5432 - whether the GNU malloc routines are usable..." >&5
5433 echo "$as_me: checking the machine- and system-dependent files to find out
5434 - which libraries the lib-src programs will want, and
5435 - whether the GNU malloc routines are usable..." >&6;}
5437 ### First figure out CFLAGS (which we use for running the compiler here)
5438 ### and REAL_CFLAGS (which we use for real compilation).
5439 ### The two are the same except on a few systems, where they are made
5440 ### different to work around various lossages. For example,
5441 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5442 ### as implying static linking.
5444 ### If the CFLAGS env var is specified, we use that value
5445 ### instead of the default.
5447 ### It's not important that this name contain the PID; you can't run
5448 ### two configures in the same directory and have anything work
5450 tempcname="conftest.c"
5453 #include "'${srcdir}'/src/'${opsysfile}'"
5454 #include "'${srcdir}'/src/'${machfile}'"
5455 #ifndef LIBS_MACHINE
5456 #define LIBS_MACHINE
5461 #ifndef C_SWITCH_SYSTEM
5462 #define C_SWITCH_SYSTEM
5464 #ifndef C_SWITCH_MACHINE
5465 #define C_SWITCH_MACHINE
5467 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5468 configure___ c_switch_system=C_SWITCH_SYSTEM
5469 configure___ c_switch_machine=C_SWITCH_MACHINE
5472 #define LIB_X11_LIB -lX11
5475 #ifndef LIBX11_MACHINE
5476 #define LIBX11_MACHINE
5479 #ifndef LIBX11_SYSTEM
5480 #define LIBX11_SYSTEM
5482 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5485 configure___ unexec=UNEXEC
5487 configure___ unexec=unexec.o
5490 #ifdef SYSTEM_MALLOC
5491 configure___ system_malloc=yes
5493 configure___ system_malloc=no
5496 #ifdef USE_MMAP_FOR_BUFFERS
5497 configure___ use_mmap_for_buffers=yes
5499 configure___ use_mmap_for_buffers=no
5502 #ifndef C_DEBUG_SWITCH
5503 #define C_DEBUG_SWITCH -g
5506 #ifndef C_OPTIMIZE_SWITCH
5508 #define C_OPTIMIZE_SWITCH -O2
5510 #define C_OPTIMIZE_SWITCH -O
5514 #ifndef C_WARNINGS_SWITCH
5515 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5518 #ifndef LD_SWITCH_MACHINE
5519 #define LD_SWITCH_MACHINE
5522 #ifndef LD_SWITCH_SYSTEM
5523 #define LD_SWITCH_SYSTEM
5526 #ifndef LD_SWITCH_X_SITE_AUX
5527 #define LD_SWITCH_X_SITE_AUX
5530 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5531 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5533 #ifdef THIS_IS_CONFIGURE
5535 /* Get the CFLAGS for tests in configure. */
5537 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5539 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5542 #else /* not THIS_IS_CONFIGURE */
5544 /* Get the CFLAGS for real compilation. */
5546 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5548 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5551 #endif /* not THIS_IS_CONFIGURE */
5554 # The value of CPP is a quoted variable reference, so we need to do this
5555 # to get its actual value...
5556 CPP=`eval "echo $CPP"`
5557 eval `${CPP} -Isrc ${tempcname} \
5558 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5559 if test "x$SPECIFIED_CFLAGS" = x; then
5560 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5561 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5563 REAL_CFLAGS="$CFLAGS"
5567 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5569 ### Make sure subsequent tests use flags consistent with the build flags.
5571 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5572 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5574 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5579 # Check whether --enable-largefile was given.
5580 if test "${enable_largefile+set}" = set; then
5581 enableval=$enable_largefile;
5584 if test "$enable_largefile" != no; then
5586 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5587 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5588 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 ac_cv_sys_largefile_CC=no
5592 if test "$GCC" != yes; then
5595 # IRIX 6.2 and later do not support large files by default,
5596 # so use the C compiler's -n32 option if that helps.
5597 cat >conftest.$ac_ext <<_ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <sys/types.h>
5604 /* Check that off_t can represent 2**63 - 1 correctly.
5605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5606 since some C++ compilers masquerading as C compilers
5607 incorrectly reject 9223372036854775807. */
5608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5610 && LARGE_OFF_T % 2147483647 == 1)
5620 rm -f conftest.$ac_objext
5621 if { (ac_try="$ac_compile"
5623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5624 *) ac_try_echo
=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5629 grep -v '^ *+' conftest.er1
>conftest.err
5631 cat conftest.err
>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5635 { (case "(($ac_try" in
5636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_try") 2>&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest.$ac_objext'
5645 { (case "(($ac_try" in
5646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5647 *) ac_try_echo
=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_try") 2>&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.
$ac_ext >&5
5662 rm -f core conftest.err conftest.
$ac_objext
5664 rm -f conftest.
$ac_objext
5665 if { (ac_try
="$ac_compile"
5667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compile") 2>conftest.er1
5673 grep -v '^ *+' conftest.er1 >conftest.err
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5679 { (case "(($ac_try" in
5680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5681 *) ac_try_echo
=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_try") 2>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try
='test -s conftest.$ac_objext'
5689 { (case "(($ac_try" in
5690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_try") 2>&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_sys_largefile_CC=' -n32'; break
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5706 rm -f core conftest.err conftest.$ac_objext
5710 rm -f conftest.$ac_ext
5713 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5714 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5715 if test "$ac_cv_sys_largefile_CC" != no; then
5716 CC=$CC$ac_cv_sys_largefile_CC
5719 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5720 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5721 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 ac_cv_sys_file_offset_bits=no
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5735 since some C++ compilers masquerading as C compilers
5736 incorrectly reject 9223372036854775807. */
5737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5739 && LARGE_OFF_T % 2147483647 == 1)
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5753 *) ac_try_echo
=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5758 grep -v '^ *+' conftest.er1
>conftest.err
5760 cat conftest.err
>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5764 { (case "(($ac_try" in
5765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_try") 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (case "(($ac_try" in
5775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5776 *) ac_try_echo
=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_try") 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.
$ac_ext >&5
5791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5792 cat >conftest.
$ac_ext <<_ACEOF
5795 cat confdefs.h
>>conftest.
$ac_ext
5796 cat >>conftest.
$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #define _FILE_OFFSET_BITS 64
5799 #include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5816 rm -f conftest.
$ac_objext
5817 if { (ac_try
="$ac_compile"
5819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5833 *) ac_try_echo
=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try
='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_sys_file_offset_bits=64; break
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5863 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5864 if test "$ac_cv_sys_file_offset_bits" != no; then
5866 cat >>confdefs.h <<_ACEOF
5867 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5872 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5873 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5874 if test "${ac_cv_sys_large_files+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_sys_large_files=no
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5906 *) ac_try_echo
=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5917 { (case "(($ac_try" in
5918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_try") 2>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (case "(($ac_try" in
5928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5929 *) ac_try_echo
=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_try") 2>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.
$ac_ext >&5
5944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #define _LARGE_FILES 1
5952 #include <sys/types.h>
5953 /* Check that off_t can represent 2**63 - 1 correctly.
5954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5955 since some C++ compilers masquerading as C compilers
5956 incorrectly reject 9223372036854775807. */
5957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5959 && LARGE_OFF_T % 2147483647 == 1)
5969 rm -f conftest.
$ac_objext
5970 if { (ac_try
="$ac_compile"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5986 *) ac_try_echo
=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try
='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_sys_large_files=1; break
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6016 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6017 if test "$ac_cv_sys_large_files" != no; then
6019 cat >>confdefs.h <<_ACEOF
6020 #define _LARGE_FILES $ac_cv_sys_large_files
6029 ### The standard library on x86-64 GNU/Linux distributions can
6030 ### be located in either /usr/lib64 or /usr/lib.
6031 case "${canonical}" in
6032 x86_64-*-linux-gnu* )
6033 if test -d /usr/lib64; then
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_X86_64_LIB64_DIR 1
6045 if test "${with_sound}" != "no"; then
6046 # Sound support for GNU/Linux and the free BSDs.
6047 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6049 if test "${ac_cv_header_stdc+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6075 *) ac_try_echo
=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1
>conftest.err
6082 cat conftest.err
>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6086 { (case "(($ac_try" in
6087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_try") 2>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest.$ac_objext'
6096 { (case "(($ac_try" in
6097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6098 *) ac_try_echo
=$ac_try;;
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_try") 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_header_stdc
=yes
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.
$ac_ext >&5
6110 ac_cv_header_stdc
=no
6113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6115 if test $ac_cv_header_stdc = yes; then
6116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6117 cat >conftest.
$ac_ext <<_ACEOF
6120 cat confdefs.h
>>conftest.
$ac_ext
6121 cat >>conftest.
$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "memchr" >/dev
/null
2>&1; then
6130 ac_cv_header_stdc
=no
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat >conftest.
$ac_ext <<_ACEOF
6141 cat confdefs.h
>>conftest.
$ac_ext
6142 cat >>conftest.
$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "free" >/dev
/null
2>&1; then
6151 ac_cv_header_stdc
=no
6157 if test $ac_cv_header_stdc = yes; then
6158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6159 if test "$cross_compiling" = yes; then
6162 cat >conftest.
$ac_ext <<_ACEOF
6165 cat confdefs.h
>>conftest.
$ac_ext
6166 cat >>conftest.
$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6170 #if ((' ' & 0x0FF) == 0x020)
6171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6174 # define ISLOWER(c) \
6175 (('a' <= (c) && (c) <= 'i') \
6176 || ('j' <= (c) && (c) <= 'r') \
6177 || ('s' <= (c) && (c) <= 'z'))
6178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6186 for (i = 0; i < 256; i++)
6187 if (XOR (islower (i), ISLOWER (i))
6188 || toupper (i) != TOUPPER (i))
6193 rm -f conftest
$ac_exeext
6194 if { (ac_try
="$ac_link"
6196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_link") 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6204 { (case "(($ac_try" in
6205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6206 *) ac_try_echo
=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_try") 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6215 echo "$as_me: program exited with status $ac_status" >&5
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.
$ac_ext >&5
6220 ac_cv_header_stdc
=no
6222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6228 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6229 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6230 if test $ac_cv_header_stdc = yes; then
6232 cat >>confdefs.h
<<\_ACEOF
6233 #define STDC_HEADERS 1
6238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6248 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6249 inttypes.h stdint.h unistd.h
6251 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6254 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 cat >conftest.
$ac_ext <<_ACEOF
6260 cat confdefs.h
>>conftest.
$ac_ext
6261 cat >>conftest.
$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6265 #include <$ac_header>
6267 rm -f conftest.
$ac_objext
6268 if { (ac_try
="$ac_compile"
6270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_compile") 2>conftest.er1
6276 grep -v '^ *+' conftest.er1 >conftest.err
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6282 { (case "(($ac_try" in
6283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6284 *) ac_try_echo
=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_try") 2>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try
='test -s conftest.$ac_objext'
6292 { (case "(($ac_try" in
6293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297 (eval "$ac_try") 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 eval "$as_ac_Header=yes"
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 eval "$as_ac_Header=no"
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 ac_res=`eval echo '${'$as_ac_Header'}'`
6312 { echo "$as_me:$LINENO: result: $ac_res" >&5
6313 echo "${ECHO_T}$ac_res" >&6; }
6314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6327 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 ac_res=`eval echo '${'$as_ac_Header'}'`
6337 { echo "$as_me:$LINENO: result: $ac_res" >&5
6338 echo "${ECHO_T}$ac_res" >&6; }
6340 # Is the header compilable?
6341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 $ac_includes_default
6350 #include <$ac_header>
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6356 *) ac_try_echo
=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compile") 2>conftest.er1
6361 grep -v '^ *+' conftest.er1
>conftest.err
6363 cat conftest.err
>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
6366 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6367 { (case "(($ac_try" in
6368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_try") 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (case "(($ac_try" in
6378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6379 *) ac_try_echo
=$ac_try;;
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_try") 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_header_compiler
=yes
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.
$ac_ext >&5
6391 ac_header_compiler
=no
6394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6396 echo "${ECHO_T}$ac_header_compiler" >&6; }
6398 # Is the header present?
6399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6401 cat >conftest.
$ac_ext <<_ACEOF
6404 cat confdefs.h
>>conftest.
$ac_ext
6405 cat >>conftest.
$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <$ac_header>
6409 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } >/dev/null; then
6422 if test -s conftest.err; then
6423 ac_cpp_err=$ac_c_preproc_warn_flag
6424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6431 if test -z "$ac_cpp_err"; then
6432 ac_header_preproc=yes
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 ac_header_preproc=no
6440 rm -f conftest.err conftest.$ac_ext
6441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6442 echo "${ECHO_T}$ac_header_preproc" >&6; }
6444 # So? What about this header?
6445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6451 ac_header_preproc=yes
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 eval "$as_ac_Header=\$ac_header_preproc"
6476 ac_res=`eval echo '${'$as_ac_Header'}'`
6477 { echo "$as_me:$LINENO: result: $ac_res" >&5
6478 echo "${ECHO_T}$ac_res" >&6; }
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6490 # Emulation library used on NetBSD.
6491 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6492 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6493 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lossaudio $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6505 /* Override any GCC internal prototype to avoid an error.
6506 Use char because int might match the return type of a GCC
6507 builtin and then its argument prototype would still apply. */
6515 return _oss_ioctl ();
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (ac_try="$ac_link"
6523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6524 *) ac_try_echo
=$ac_try;;
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_link") 2>conftest.er1
6529 grep -v '^ *+' conftest.er1
>conftest.err
6531 cat conftest.err
>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6535 { (case "(($ac_try" in
6536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (case "(($ac_try" in
6546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6547 *) ac_try_echo
=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_try") 2>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 ac_cv_lib_ossaudio__oss_ioctl
=yes
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.
$ac_ext >&5
6559 ac_cv_lib_ossaudio__oss_ioctl
=no
6562 rm -f core conftest.err conftest.
$ac_objext \
6563 conftest
$ac_exeext conftest.
$ac_ext
6564 LIBS
=$ac_check_lib_save_LIBS
6566 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6567 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6568 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6577 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6578 if test "X${with_pkg_config_prog}" != X
; then
6579 PKG_CONFIG
="${with_pkg_config_prog}"
6584 if test -z "$PKG_CONFIG"; then
6585 # Extract the first word of "pkg-config", so it can be a program name with args.
6586 set dummy pkg-config
; ac_word
=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir
=.
6602 for ac_exec_ext
in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6616 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6617 if test -n "$PKG_CONFIG"; then
6618 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6619 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6628 if test "$PKG_CONFIG" = "no" ; then
6631 PKG_CONFIG_MIN_VERSION
=0.9.0
6632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6633 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6634 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6636 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6637 { echo "$as_me:$LINENO: result: yes" >&5
6638 echo "${ECHO_T}yes" >&6; }
6641 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6642 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6643 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6644 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6645 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6647 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6648 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6649 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6650 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6651 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6657 ## If we have a custom action on failure, don't print errors, but
6658 ## do set a variable so people can do so.
6659 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6671 if test $succeeded = yes; then
6677 if test $HAVE_ALSA = yes; then
6678 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6679 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6681 cat >>confdefs.h
<<\_ACEOF
6714 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6715 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6716 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6717 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6720 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6721 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6724 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 ac_res
=`eval echo '${'$as_ac_Header'}'`
6728 { echo "$as_me:$LINENO: result: $ac_res" >&5
6729 echo "${ECHO_T}$ac_res" >&6; }
6731 # Is the header compilable?
6732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6734 cat >conftest.
$ac_ext <<_ACEOF
6737 cat confdefs.h
>>conftest.
$ac_ext
6738 cat >>conftest.
$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 $ac_includes_default
6741 #include <$ac_header>
6743 rm -f conftest.
$ac_objext
6744 if { (ac_try
="$ac_compile"
6746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750 (eval "$ac_compile") 2>conftest.er1
6752 grep -v '^ *+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (case "(($ac_try" in
6759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6760 *) ac_try_echo
=$ac_try;;
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_try") 2>&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try
='test -s conftest.$ac_objext'
6768 { (case "(($ac_try" in
6769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_try") 2>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_header_compiler=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_header_compiler=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 echo "${ECHO_T}$ac_header_compiler" >&6; }
6789 # Is the header present?
6790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <$ac_header>
6800 if { (ac_try="$ac_cpp conftest.$ac_ext"
6802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6803 *) ac_try_echo
=$ac_try;;
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6808 grep -v '^ *+' conftest.er1
>conftest.err
6810 cat conftest.err
>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } >/dev
/null
; then
6813 if test -s conftest.err
; then
6814 ac_cpp_err
=$ac_c_preproc_warn_flag
6815 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6822 if test -z "$ac_cpp_err"; then
6823 ac_header_preproc
=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.
$ac_ext >&5
6828 ac_header_preproc
=no
6831 rm -f conftest.err conftest.
$ac_ext
6832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6833 echo "${ECHO_T}$ac_header_preproc" >&6; }
6835 # So? What about this header?
6836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6842 ac_header_preproc
=yes
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6862 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 eval "$as_ac_Header=\$ac_header_preproc"
6867 ac_res
=`eval echo '${'$as_ac_Header'}'`
6868 { echo "$as_me:$LINENO: result: $ac_res" >&5
6869 echo "${ECHO_T}$ac_res" >&6; }
6872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6873 cat >>confdefs.h
<<_ACEOF
6874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6882 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6883 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6884 cat >conftest.
$ac_ext <<_ACEOF
6887 cat confdefs.h
>>conftest.
$ac_ext
6888 cat >>conftest.
$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <sys/personality.h>
6894 personality (PER_LINUX32)
6899 rm -f conftest.
$ac_objext
6900 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6914 { (case "(($ac_try" in
6915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6916 *) ac_try_echo
=$ac_try;;
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_try") 2>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try
='test -s conftest.$ac_objext'
6924 { (case "(($ac_try" in
6925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6929 (eval "$ac_try") 2>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 emacs_cv_personality_linux32=yes
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 emacs_cv_personality_linux32=no
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6943 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6945 if test $emacs_cv_personality_linux32 = yes; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_PERSONALITY_LINUX32 1
6954 for ac_header in term.h
6956 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 cat >conftest.$ac_ext <<_ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 #include <$ac_header>
6970 if { (ac_try="$ac_cpp conftest.$ac_ext"
6972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6973 *) ac_try_echo
=$ac_try;;
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6978 grep -v '^ *+' conftest.er1
>conftest.err
6980 cat conftest.err
>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev
/null
; then
6983 if test -s conftest.err
; then
6984 ac_cpp_err
=$ac_c_preproc_warn_flag
6985 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6992 if test -z "$ac_cpp_err"; then
6993 eval "$as_ac_Header=yes"
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.
$ac_ext >&5
6998 eval "$as_ac_Header=no"
7001 rm -f conftest.err conftest.
$ac_ext
7003 ac_res
=`eval echo '${'$as_ac_Header'}'`
7004 { echo "$as_me:$LINENO: result: $ac_res" >&5
7005 echo "${ECHO_T}$ac_res" >&6; }
7006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7007 cat >>confdefs.h
<<_ACEOF
7008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7017 if test "${ac_cv_header_stdc+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.
$ac_ext <<_ACEOF
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7039 rm -f conftest.
$ac_objext
7040 if { (ac_try
="$ac_compile"
7042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7048 grep -v '^ *+' conftest.er1 >conftest.err
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7054 { (case "(($ac_try" in
7055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7056 *) ac_try_echo
=$ac_try;;
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_try") 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; } &&
7063 { ac_try
='test -s conftest.$ac_objext'
7064 { (case "(($ac_try" in
7065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_header_stdc=yes
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_cv_header_stdc=no
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 if test $ac_cv_header_stdc = yes; then
7084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "memchr" >/dev/null 2>&1; then
7098 ac_cv_header_stdc=no
7104 if test $ac_cv_header_stdc = yes; then
7105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116 $EGREP "free" >/dev/null 2>&1; then
7119 ac_cv_header_stdc=no
7125 if test $ac_cv_header_stdc = yes; then
7126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7127 if test "$cross_compiling" = yes; then
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7138 #if ((' ' & 0x0FF) == 0x020)
7139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7142 # define ISLOWER(c) \
7143 (('a' <= (c) && (c) <= 'i') \
7144 || ('j' <= (c) && (c) <= 'r') \
7145 || ('s' <= (c) && (c) <= 'z'))
7146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7154 for (i = 0; i < 256; i++)
7155 if (XOR (islower (i), ISLOWER (i))
7156 || toupper (i) != TOUPPER (i))
7161 rm -f conftest$ac_exeext
7162 if { (ac_try="$ac_link"
7164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7165 *) ac_try_echo
=$ac_try;;
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_link") 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7172 { (case "(($ac_try" in
7173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_try") 2>&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7183 echo "$as_me: program exited with status $ac_status" >&5
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7188 ac_cv_header_stdc=no
7190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7196 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7197 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7198 if test $ac_cv_header_stdc = yes; then
7200 cat >>confdefs.h <<\_ACEOF
7201 #define STDC_HEADERS 1
7206 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7207 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7208 if test "${ac_cv_header_time+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <sys/types.h>
7218 #include <sys/time.h>
7224 if ((struct tm *) 0)
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7234 *) ac_try_echo
=$ac_try;;
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7239 grep -v '^ *+' conftest.er1
>conftest.err
7241 cat conftest.err
>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7245 { (case "(($ac_try" in
7246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_try") 2>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest.$ac_objext'
7255 { (case "(($ac_try" in
7256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7257 *) ac_try_echo
=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_try") 2>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_header_time
=yes
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.
$ac_ext >&5
7269 ac_cv_header_time
=no
7272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7274 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7275 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7276 if test $ac_cv_header_time = yes; then
7278 cat >>confdefs.h
<<\_ACEOF
7279 #define TIME_WITH_SYS_TIME 1
7284 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7285 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7286 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 cat >conftest.
$ac_ext <<_ACEOF
7292 cat confdefs.h
>>conftest.
$ac_ext
7293 cat >>conftest.
$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7300 char *p = (char *) sys_siglist;
7308 rm -f conftest.
$ac_objext
7309 if { (ac_try
="$ac_compile"
7311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7323 { (case "(($ac_try" in
7324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7325 *) ac_try_echo
=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_try") 2>&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try
='test -s conftest.$ac_objext'
7333 { (case "(($ac_try" in
7334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_try") 2>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_cv_have_decl_sys_siglist=yes
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_cv_have_decl_sys_siglist=no
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7353 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7354 if test $ac_cv_have_decl_sys_siglist = yes; then
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_DECL_SYS_SIGLIST 1
7362 cat >>confdefs.h <<_ACEOF
7363 #define HAVE_DECL_SYS_SIGLIST 0
7370 if test $ac_cv_have_decl_sys_siglist != yes; then
7371 # For Tru64, at least:
7372 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7373 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7374 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 $ac_includes_default
7387 #ifndef __sys_siglist
7388 char *p = (char *) __sys_siglist;
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7400 *) ac_try_echo
=$ac_try;;
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1
>conftest.err
7407 cat conftest.err
>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7411 { (case "(($ac_try" in
7412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_try") 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest.$ac_objext'
7421 { (case "(($ac_try" in
7422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7423 *) ac_try_echo
=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_try") 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_cv_have_decl___sys_siglist
=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.
$ac_ext >&5
7435 ac_cv_have_decl___sys_siglist
=no
7438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7441 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7442 if test $ac_cv_have_decl___sys_siglist = yes; then
7444 cat >>confdefs.h
<<_ACEOF
7445 #define HAVE_DECL___SYS_SIGLIST 1
7450 cat >>confdefs.h
<<_ACEOF
7451 #define HAVE_DECL___SYS_SIGLIST 0
7458 if test $ac_cv_have_decl___sys_siglist = yes; then
7460 cat >>confdefs.h
<<\_ACEOF
7461 #define sys_siglist __sys_siglist
7466 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7467 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7468 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 cat >conftest.
$ac_ext <<_ACEOF
7474 cat confdefs.h
>>conftest.
$ac_ext
7475 cat >>conftest.
$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 #include <sys/types.h>
7478 #include <sys/wait.h>
7480 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7483 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7496 rm -f conftest.
$ac_objext
7497 if { (ac_try
="$ac_compile"
7499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7511 { (case "(($ac_try" in
7512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7513 *) ac_try_echo
=$ac_try;;
7515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_try") 2>&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try
='test -s conftest.$ac_objext'
7521 { (case "(($ac_try" in
7522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_try") 2>&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_header_sys_wait_h=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_header_sys_wait_h=no
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7541 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7542 if test $ac_cv_header_sys_wait_h = yes; then
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_SYS_WAIT_H 1
7551 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7552 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7553 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 #ifdef TIME_WITH_SYS_TIME
7563 #include <sys/time.h>
7566 #ifdef HAVE_SYS_TIME_H
7567 #include <sys/time.h>
7578 static struct utimbuf x; x.actime = x.modtime;
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7587 *) ac_try_echo
=$ac_try;;
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1
>conftest.err
7594 cat conftest.err
>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (case "(($ac_try" in
7599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_try") 2>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (case "(($ac_try" in
7609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7610 *) ac_try_echo
=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_try") 2>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 emacs_cv_struct_utimbuf
=yes
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.
$ac_ext >&5
7622 emacs_cv_struct_utimbuf
=no
7625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7627 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7628 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7629 if test $emacs_cv_struct_utimbuf = yes; then
7631 cat >>confdefs.h
<<\_ACEOF
7632 #define HAVE_STRUCT_UTIMBUF 1
7637 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7638 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7639 if test "${ac_cv_type_signal+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 cat >conftest.
$ac_ext <<_ACEOF
7645 cat confdefs.h
>>conftest.
$ac_ext
7646 cat >>conftest.
$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <sys/types.h>
7654 return *(signal (0, 0)) (0) == 1;
7659 rm -f conftest.
$ac_objext
7660 if { (ac_try
="$ac_compile"
7662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_compile") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7674 { (case "(($ac_try" in
7675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7676 *) ac_try_echo
=$ac_try;;
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_try") 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try
='test -s conftest.$ac_objext'
7684 { (case "(($ac_try" in
7685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_try") 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 ac_cv_type_signal=int
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 ac_cv_type_signal=void
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7704 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7706 cat >>confdefs.h <<_ACEOF
7707 #define RETSIGTYPE $ac_cv_type_signal
7712 { echo "$as_me:$LINENO: checking for speed_t" >&5
7713 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7714 if test "${emacs_cv_speed_t+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 #include <termios.h>
7732 rm -f conftest.$ac_objext
7733 if { (ac_try="$ac_compile"
7735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7736 *) ac_try_echo
=$ac_try;;
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_compile") 2>conftest.er1
7741 grep -v '^ *+' conftest.er1
>conftest.err
7743 cat conftest.err
>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7747 { (case "(($ac_try" in
7748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_try") 2>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (case "(($ac_try" in
7758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7759 *) ac_try_echo
=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_try") 2>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 emacs_cv_speed_t
=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7776 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7777 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7778 if test $emacs_cv_speed_t = yes; then
7780 cat >>confdefs.h
<<\_ACEOF
7781 #define HAVE_SPEED_T 1
7786 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7787 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7788 if test "${emacs_cv_struct_timeval+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 cat >conftest.
$ac_ext <<_ACEOF
7794 cat confdefs.h
>>conftest.
$ac_ext
7795 cat >>conftest.
$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 #ifdef TIME_WITH_SYS_TIME
7798 #include <sys/time.h>
7801 #ifdef HAVE_SYS_TIME_H
7802 #include <sys/time.h>
7810 static struct timeval x; x.tv_sec = x.tv_usec;
7815 rm -f conftest.
$ac_objext
7816 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830 { (case "(($ac_try" in
7831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7832 *) ac_try_echo
=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_try") 2>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try
='test -s conftest.$ac_objext'
7840 { (case "(($ac_try" in
7841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 emacs_cv_struct_timeval=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 emacs_cv_struct_timeval=no
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7860 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7861 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7862 if test $emacs_cv_struct_timeval = yes; then
7864 cat >>confdefs.h <<\_ACEOF
7865 #define HAVE_TIMEVAL 1
7870 { echo "$as_me:$LINENO: checking for struct exception" >&5
7871 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7872 if test "${emacs_cv_struct_exception+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 cat >conftest.$ac_ext <<_ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7885 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7894 *) ac_try_echo
=$ac_try;;
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_compile") 2>conftest.er1
7899 grep -v '^ *+' conftest.er1
>conftest.err
7901 cat conftest.err
>&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7905 { (case "(($ac_try" in
7906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_try") 2>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (case "(($ac_try" in
7916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7917 *) ac_try_echo
=$ac_try;;
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_try") 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 emacs_cv_struct_exception
=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.
$ac_ext >&5
7929 emacs_cv_struct_exception
=no
7932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7934 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7935 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7936 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7937 if test $emacs_cv_struct_exception != yes; then
7939 cat >>confdefs.h
<<\_ACEOF
7940 #define NO_MATHERR 1
7946 for ac_header
in sys
/socket.h
7948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7949 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7952 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 ac_res
=`eval echo '${'$as_ac_Header'}'`
7956 { echo "$as_me:$LINENO: result: $ac_res" >&5
7957 echo "${ECHO_T}$ac_res" >&6; }
7959 # Is the header compilable?
7960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7962 cat >conftest.
$ac_ext <<_ACEOF
7965 cat confdefs.h
>>conftest.
$ac_ext
7966 cat >>conftest.
$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #include <$ac_header>
7971 rm -f conftest.
$ac_objext
7972 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7988 *) ac_try_echo
=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try
='test -s conftest.$ac_objext'
7996 { (case "(($ac_try" in
7997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_try") 2>&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 ac_header_compiler=yes
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 ac_header_compiler=no
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8015 echo "${ECHO_T}$ac_header_compiler" >&6; }
8017 # Is the header present?
8018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <$ac_header>
8028 if { (ac_try="$ac_cpp conftest.$ac_ext"
8030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8031 *) ac_try_echo
=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8036 grep -v '^ *+' conftest.er1
>conftest.err
8038 cat conftest.err
>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } >/dev
/null
; then
8041 if test -s conftest.err
; then
8042 ac_cpp_err
=$ac_c_preproc_warn_flag
8043 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8050 if test -z "$ac_cpp_err"; then
8051 ac_header_preproc
=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.
$ac_ext >&5
8056 ac_header_preproc
=no
8059 rm -f conftest.err conftest.
$ac_ext
8060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8061 echo "${ECHO_T}$ac_header_preproc" >&6; }
8063 # So? What about this header?
8064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8070 ac_header_preproc
=yes
8073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8090 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 eval "$as_ac_Header=\$ac_header_preproc"
8095 ac_res
=`eval echo '${'$as_ac_Header'}'`
8096 { echo "$as_me:$LINENO: result: $ac_res" >&5
8097 echo "${ECHO_T}$ac_res" >&6; }
8100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8101 cat >>confdefs.h
<<_ACEOF
8102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8110 for ac_header
in net
/if.h
8112 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8115 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.
$ac_ext <<_ACEOF
8121 cat confdefs.h
>>conftest.
$ac_ext
8122 cat >>conftest.
$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8125 #if HAVE_SYS_SOCKET_H
8126 #include <sys/socket.h>
8129 #include <$ac_header>
8131 rm -f conftest.
$ac_objext
8132 if { (ac_try
="$ac_compile"
8134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8146 { (case "(($ac_try" in
8147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8148 *) ac_try_echo
=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_try") 2>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try
='test -s conftest.$ac_objext'
8156 { (case "(($ac_try" in
8157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_try") 2>&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 eval "$as_ac_Header=yes"
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 eval "$as_ac_Header=no"
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 ac_res=`eval echo '${'$as_ac_Header'}'`
8176 { echo "$as_me:$LINENO: result: $ac_res" >&5
8177 echo "${ECHO_T}$ac_res" >&6; }
8178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8179 cat >>confdefs.h <<_ACEOF
8180 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8188 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8189 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
8190 if test "${ac_cv_struct_tm+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 #include <sys/types.h>
8205 struct tm *tp; tp->tm_sec;
8210 rm -f conftest.$ac_objext
8211 if { (ac_try="$ac_compile"
8213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8214 *) ac_try_echo
=$ac_try;;
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_compile") 2>conftest.er1
8219 grep -v '^ *+' conftest.er1
>conftest.err
8221 cat conftest.err
>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (case "(($ac_try" in
8226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (case "(($ac_try" in
8236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8237 *) ac_try_echo
=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_try") 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_struct_tm
=time.h
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.
$ac_ext >&5
8249 ac_cv_struct_tm
=sys
/time.h
8252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8254 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8255 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8256 if test $ac_cv_struct_tm = sys
/time.h
; then
8258 cat >>confdefs.h
<<\_ACEOF
8259 #define TM_IN_SYS_TIME 1
8264 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8265 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
8266 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.
$ac_ext <<_ACEOF
8272 cat confdefs.h
>>conftest.
$ac_ext
8273 cat >>conftest.
$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <sys/types.h>
8276 #include <$ac_cv_struct_tm>
8282 static struct tm ac_aggr;
8283 if (ac_aggr.tm_zone)
8289 rm -f conftest.
$ac_objext
8290 if { (ac_try
="$ac_compile"
8292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8306 *) ac_try_echo
=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try
='test -s conftest.$ac_objext'
8314 { (case "(($ac_try" in
8315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_member_struct_tm_tm_zone=yes
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 #include <sys/types.h>
8335 #include <$ac_cv_struct_tm>
8341 static struct tm ac_aggr;
8342 if (sizeof ac_aggr.tm_zone)
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8352 *) ac_try_echo
=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1
>conftest.err
8359 cat conftest.err
>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363 { (case "(($ac_try" in
8364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (case "(($ac_try" in
8374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8375 *) ac_try_echo
=$ac_try;;
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_try") 2>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_member_struct_tm_tm_zone
=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.
$ac_ext >&5
8387 ac_cv_member_struct_tm_tm_zone
=no
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8395 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8396 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8397 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8399 cat >>confdefs.h
<<_ACEOF
8400 #define HAVE_STRUCT_TM_TM_ZONE 1
8406 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8408 cat >>confdefs.h
<<\_ACEOF
8409 #define HAVE_TM_ZONE 1
8413 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8414 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8415 if test "${ac_cv_have_decl_tzname+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 cat >conftest.
$ac_ext <<_ACEOF
8421 cat confdefs.h
>>conftest.
$ac_ext
8422 cat >>conftest.
$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8430 char *p = (char *) tzname;
8438 rm -f conftest.
$ac_objext
8439 if { (ac_try
="$ac_compile"
8441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8455 *) ac_try_echo
=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try
='test -s conftest.$ac_objext'
8463 { (case "(($ac_try" in
8464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_try") 2>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_have_decl_tzname=yes
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 ac_cv_have_decl_tzname=no
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8483 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8484 if test $ac_cv_have_decl_tzname = yes; then
8486 cat >>confdefs.h <<_ACEOF
8487 #define HAVE_DECL_TZNAME 1
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_DECL_TZNAME 0
8500 { echo "$as_me:$LINENO: checking for tzname" >&5
8501 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8502 if test "${ac_cv_var_tzname+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8512 #if !HAVE_DECL_TZNAME
8513 extern char *tzname[];
8519 return tzname[0][0];
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8528 *) ac_try_echo
=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1
>conftest.err
8535 cat conftest.err
>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539 { (case "(($ac_try" in
8540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (case "(($ac_try" in
8550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8551 *) ac_try_echo
=$ac_try;;
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_try") 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_var_tzname
=yes
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.
$ac_ext >&5
8566 rm -f core conftest.err conftest.
$ac_objext \
8567 conftest
$ac_exeext conftest.
$ac_ext
8569 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8570 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8571 if test $ac_cv_var_tzname = yes; then
8573 cat >>confdefs.h
<<\_ACEOF
8574 #define HAVE_TZNAME 1
8580 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8581 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8582 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 cat >conftest.
$ac_ext <<_ACEOF
8588 cat confdefs.h
>>conftest.
$ac_ext
8589 cat >>conftest.
$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8596 static struct tm ac_aggr;
8597 if (ac_aggr.tm_gmtoff)
8603 rm -f conftest.
$ac_objext
8604 if { (ac_try
="$ac_compile"
8606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8620 *) ac_try_echo
=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try
='test -s conftest.$ac_objext'
8628 { (case "(($ac_try" in
8629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_member_struct_tm_tm_gmtoff=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8653 static struct tm ac_aggr;
8654 if (sizeof ac_aggr.tm_gmtoff)
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8664 *) ac_try_echo
=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1
>conftest.err
8671 cat conftest.err
>&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (case "(($ac_try" in
8676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_try") 2>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest.$ac_objext'
8685 { (case "(($ac_try" in
8686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8687 *) ac_try_echo
=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_try") 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_cv_member_struct_tm_tm_gmtoff
=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.
$ac_ext >&5
8699 ac_cv_member_struct_tm_tm_gmtoff
=no
8702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8708 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8709 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8711 cat >>confdefs.h
<<\_ACEOF
8712 #define HAVE_TM_GMTOFF 1
8717 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8718 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8719 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 cat >conftest.
$ac_ext <<_ACEOF
8725 cat confdefs.h
>>conftest.
$ac_ext
8726 cat >>conftest.
$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 $ac_includes_default
8729 #if HAVE_SYS_SOCKET_H
8730 #include <sys/socket.h>
8739 static struct ifreq ac_aggr;
8740 if (ac_aggr.ifr_flags)
8746 rm -f conftest.
$ac_objext
8747 if { (ac_try
="$ac_compile"
8749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8770 { ac_try
='test -s conftest.$ac_objext'
8771 { (case "(($ac_try" in
8772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_member_struct_ifreq_ifr_flags=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8792 #if HAVE_SYS_SOCKET_H
8793 #include <sys/socket.h>
8802 static struct ifreq ac_aggr;
8803 if (sizeof ac_aggr.ifr_flags)
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8813 *) ac_try_echo
=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8818 grep -v '^ *+' conftest.er1
>conftest.err
8820 cat conftest.err
>&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8824 { (case "(($ac_try" in
8825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_try") 2>&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest.$ac_objext'
8834 { (case "(($ac_try" in
8835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8836 *) ac_try_echo
=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_try") 2>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_member_struct_ifreq_ifr_flags
=yes
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.
$ac_ext >&5
8848 ac_cv_member_struct_ifreq_ifr_flags
=no
8851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8856 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8857 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8858 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8860 cat >>confdefs.h
<<_ACEOF
8861 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8866 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8867 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8868 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 cat >conftest.
$ac_ext <<_ACEOF
8874 cat confdefs.h
>>conftest.
$ac_ext
8875 cat >>conftest.
$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 $ac_includes_default
8878 #if HAVE_SYS_SOCKET_H
8879 #include <sys/socket.h>
8888 static struct ifreq ac_aggr;
8889 if (ac_aggr.ifr_hwaddr)
8895 rm -f conftest.
$ac_objext
8896 if { (ac_try
="$ac_compile"
8898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8912 *) ac_try_echo
=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try
='test -s conftest.$ac_objext'
8920 { (case "(($ac_try" in
8921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_try") 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940 $ac_includes_default
8941 #if HAVE_SYS_SOCKET_H
8942 #include <sys/socket.h>
8951 static struct ifreq ac_aggr;
8952 if (sizeof ac_aggr.ifr_hwaddr)
8958 rm -f conftest.$ac_objext
8959 if { (ac_try="$ac_compile"
8961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8962 *) ac_try_echo
=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_compile") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1
>conftest.err
8969 cat conftest.err
>&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8985 *) ac_try_echo
=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.
$ac_ext >&5
8997 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
9000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
9006 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
9007 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
9009 cat >>confdefs.h
<<_ACEOF
9010 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9015 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
9016 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
9017 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 cat >conftest.
$ac_ext <<_ACEOF
9023 cat confdefs.h
>>conftest.
$ac_ext
9024 cat >>conftest.
$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9027 #if HAVE_SYS_SOCKET_H
9028 #include <sys/socket.h>
9037 static struct ifreq ac_aggr;
9038 if (ac_aggr.ifr_netmask)
9044 rm -f conftest.
$ac_objext
9045 if { (ac_try
="$ac_compile"
9047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9061 *) ac_try_echo
=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try
='test -s conftest.$ac_objext'
9069 { (case "(($ac_try" in
9070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_try") 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_member_struct_ifreq_ifr_netmask=yes
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 cat >conftest.$ac_ext <<_ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089 $ac_includes_default
9090 #if HAVE_SYS_SOCKET_H
9091 #include <sys/socket.h>
9100 static struct ifreq ac_aggr;
9101 if (sizeof ac_aggr.ifr_netmask)
9107 rm -f conftest.$ac_objext
9108 if { (ac_try="$ac_compile"
9110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9111 *) ac_try_echo
=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_compile") 2>conftest.er1
9116 grep -v '^ *+' conftest.er1
>conftest.err
9118 cat conftest.err
>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (case "(($ac_try" in
9123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9134 *) ac_try_echo
=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_cv_member_struct_ifreq_ifr_netmask
=yes
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.
$ac_ext >&5
9146 ac_cv_member_struct_ifreq_ifr_netmask
=no
9149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9154 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
9155 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
9156 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
9158 cat >>confdefs.h
<<_ACEOF
9159 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9164 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
9165 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
9166 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 cat >conftest.
$ac_ext <<_ACEOF
9172 cat confdefs.h
>>conftest.
$ac_ext
9173 cat >>conftest.
$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 #if HAVE_SYS_SOCKET_H
9177 #include <sys/socket.h>
9186 static struct ifreq ac_aggr;
9187 if (ac_aggr.ifr_broadaddr)
9193 rm -f conftest.
$ac_objext
9194 if { (ac_try
="$ac_compile"
9196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_compile") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9208 { (case "(($ac_try" in
9209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9210 *) ac_try_echo
=$ac_try;;
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_try") 2>&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try
='test -s conftest.$ac_objext'
9218 { (case "(($ac_try" in
9219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 $ac_includes_default
9239 #if HAVE_SYS_SOCKET_H
9240 #include <sys/socket.h>
9249 static struct ifreq ac_aggr;
9250 if (sizeof ac_aggr.ifr_broadaddr)
9256 rm -f conftest.$ac_objext
9257 if { (ac_try="$ac_compile"
9259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9260 *) ac_try_echo
=$ac_try;;
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263 (eval "$ac_compile") 2>conftest.er1
9265 grep -v '^ *+' conftest.er1
>conftest.err
9267 cat conftest.err
>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (case "(($ac_try" in
9272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_try") 2>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest.$ac_objext'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9283 *) ac_try_echo
=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.
$ac_ext >&5
9295 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9303 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9304 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9305 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9307 cat >>confdefs.h
<<_ACEOF
9308 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9313 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9314 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
9315 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 cat >conftest.
$ac_ext <<_ACEOF
9321 cat confdefs.h
>>conftest.
$ac_ext
9322 cat >>conftest.
$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 $ac_includes_default
9325 #if HAVE_SYS_SOCKET_H
9326 #include <sys/socket.h>
9335 static struct ifreq ac_aggr;
9336 if (ac_aggr.ifr_addr)
9342 rm -f conftest.
$ac_objext
9343 if { (ac_try
="$ac_compile"
9345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_compile") 2>conftest.er1
9351 grep -v '^ *+' conftest.er1 >conftest.err
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9357 { (case "(($ac_try" in
9358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9359 *) ac_try_echo
=$ac_try;;
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_try") 2>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try
='test -s conftest.$ac_objext'
9367 { (case "(($ac_try" in
9368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_try") 2>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_cv_member_struct_ifreq_ifr_addr=yes
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 cat >conftest.$ac_ext <<_ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 $ac_includes_default
9388 #if HAVE_SYS_SOCKET_H
9389 #include <sys/socket.h>
9398 static struct ifreq ac_aggr;
9399 if (sizeof ac_aggr.ifr_addr)
9405 rm -f conftest.$ac_objext
9406 if { (ac_try="$ac_compile"
9408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9409 *) ac_try_echo
=$ac_try;;
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_compile") 2>conftest.er1
9414 grep -v '^ *+' conftest.er1
>conftest.err
9416 cat conftest.err
>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (case "(($ac_try" in
9421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest.$ac_objext'
9430 { (case "(($ac_try" in
9431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9432 *) ac_try_echo
=$ac_try;;
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_try") 2>&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_member_struct_ifreq_ifr_addr
=yes
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.
$ac_ext >&5
9444 ac_cv_member_struct_ifreq_ifr_addr
=no
9447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9453 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9454 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9465 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9466 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9467 if test "$ac_cv_prog_cc_c89" != no
; then
9468 { echo "$as_me:$LINENO: result: yes" >&5
9469 echo "${ECHO_T}yes" >&6; }
9471 cat >>confdefs.h
<<\_ACEOF
9472 #define PROTOTYPES 1
9476 cat >>confdefs.h
<<\_ACEOF
9477 #define __PROTOTYPES 1
9481 { echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6; }
9485 { echo "$as_me:$LINENO: checking for working volatile" >&5
9486 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9487 if test "${ac_cv_c_volatile+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.
$ac_ext <<_ACEOF
9493 cat confdefs.h
>>conftest.
$ac_ext
9494 cat >>conftest.
$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9502 int * volatile y = (int *) 0;
9508 rm -f conftest.
$ac_objext
9509 if { (ac_try
="$ac_compile"
9511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_compile") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9523 { (case "(($ac_try" in
9524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9525 *) ac_try_echo
=$ac_try;;
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_try") 2>&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; } &&
9532 { ac_try
='test -s conftest.$ac_objext'
9533 { (case "(($ac_try" in
9534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_try") 2>&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_c_volatile=yes
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9553 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9554 if test $ac_cv_c_volatile = no; then
9556 cat >>confdefs.h <<\_ACEOF
9562 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9563 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9564 if test "${ac_cv_c_const+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9577 /* FIXME: Include the comments suggested by Paul. */
9579 /* Ultrix mips cc rejects this. */
9580 typedef int charset[2];
9582 /* SunOS 4.1.1 cc rejects this. */
9583 char const *const *ccp;
9585 /* NEC SVR4.0.2 mips cc rejects this. */
9586 struct point {int x, y;};
9587 static struct point const zero = {0,0};
9588 /* AIX XL C 1.02.0.0 rejects this.
9589 It does not let you subtract one const X* pointer from another in
9590 an arm of an if-expression whose if-part is not a constant
9592 const char *g = "string";
9593 ccp = &g + (g ? g-g : 0);
9594 /* HPUX 7.0 cc rejects these. */
9597 ccp = (char const *const *) p;
9598 { /* SCO 3.2v4 cc rejects this. */
9600 char const *s = 0 ? (char *) 0 : (char const *) 0;
9605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9607 const int *foo = &x[0];
9610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9611 typedef const int *iptr;
9615 { /* AIX XL C 1.02.0.0 rejects this saying
9616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9617 struct s { int j; const int *ap[3]; };
9618 struct s *b; b->j = 5;
9620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9624 return !x[0] && !zero.x;
9631 rm -f conftest.$ac_objext
9632 if { (ac_try="$ac_compile"
9634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9635 *) ac_try_echo
=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_compile") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1
>conftest.err
9642 cat conftest.err
>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646 { (case "(($ac_try" in
9647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_try") 2>&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.
$ac_ext >&5
9673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9675 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9676 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9677 if test $ac_cv_c_const = no
; then
9679 cat >>confdefs.h
<<\_ACEOF
9685 { echo "$as_me:$LINENO: checking for void * support" >&5
9686 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9687 if test "${emacs_cv_void_star+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 cat >conftest.
$ac_ext <<_ACEOF
9693 cat confdefs.h
>>conftest.
$ac_ext
9694 cat >>conftest.
$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9705 rm -f conftest.
$ac_objext
9706 if { (ac_try
="$ac_compile"
9708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (case "(($ac_try" in
9721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9722 *) ac_try_echo
=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_try") 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try
='test -s conftest.$ac_objext'
9730 { (case "(($ac_try" in
9731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_try") 2>&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 emacs_cv_void_star=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 emacs_cv_void_star=no
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9750 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9751 if test $emacs_cv_void_star = yes; then
9752 cat >>confdefs.h <<\_ACEOF
9753 #define POINTER_TYPE void
9757 cat >>confdefs.h <<\_ACEOF
9758 #define POINTER_TYPE char
9767 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9769 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9770 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 cat >conftest.make <<\_ACEOF
9776 @echo '@@@%%%=$(MAKE)=@@@%%%'
9778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9779 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9781 eval ac_cv_prog_make_${ac_make}_set=yes;;
9783 eval ac_cv_prog_make_${ac_make}_set=no;;
9787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9788 { echo "$as_me:$LINENO: result: yes" >&5
9789 echo "${ECHO_T}yes" >&6; }
9792 { echo "$as_me:$LINENO: result: no" >&5
9793 echo "${ECHO_T}no" >&6; }
9794 SET_MAKE="MAKE=${MAKE-make}"
9798 { echo "$as_me:$LINENO: checking for long file names" >&5
9799 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9800 if test "${ac_cv_sys_long_file_names+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 ac_cv_sys_long_file_names=yes
9804 # Test for long file names in all the places we know might matter:
9805 # . the current directory, where building will happen
9806 # $prefix/lib where we will be installing things
9807 # $exec_prefix/lib likewise
9808 # $TMPDIR if set, where it might want to write temporary files
9809 # /tmp where it might want to write temporary files
9812 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9813 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9814 # in the usual case where exec_prefix is '${prefix}'.
9816 . | /* | ?:[\\/]*) ;; #(
9819 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9820 ac_xdir=$ac_dir/cf$$
9821 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9822 ac_tf1=$ac_xdir/conftest9012345
9823 ac_tf2=$ac_xdir/conftest9012346
9824 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9825 ac_cv_sys_long_file_names=no
9826 rm -f -r "$ac_xdir" 2>/dev/null
9827 test $ac_cv_sys_long_file_names = no && break
9830 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9831 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9832 if test $ac_cv_sys_long_file_names = yes; then
9834 cat >>confdefs.h <<\_ACEOF
9835 #define HAVE_LONG_FILE_NAMES 1
9841 #### Choose a window system.
9843 { echo "$as_me:$LINENO: checking for X" >&5
9844 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9847 # Check whether --with-x was given.
9848 if test "${with_x+set}" = set; then
9852 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9853 if test "x$with_x" = xno; then
9854 # The user explicitly disabled X.
9857 case $x_includes,$x_libraries in #(
9858 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9859 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9860 { (exit 1); exit 1; }; };; #(
9861 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 # One or both of the vars are not set, and there is no cached value.
9865 ac_x_includes=no ac_x_libraries=no
9866 rm -f -r conftest.dir
9867 if mkdir conftest.dir; then
9869 cat >Imakefile <<'_ACEOF'
9871 @echo incroot='${INCROOT}'
9873 @echo usrlibdir='${USRLIBDIR}'
9875 @echo libdir='${LIBDIR}'
9877 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9879 for ac_var in incroot usrlibdir libdir; do
9880 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9882 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9883 for ac_extension in a so sl; do
9884 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9885 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9886 ac_im_usrlibdir=$ac_im_libdir; break
9889 # Screen out bogus values from the imake configuration. They are
9890 # bogus both because they are the default anyway, and because
9891 # using them would break gcc on systems where it needs fixed includes.
9892 case $ac_im_incroot in
9893 /usr/include) ac_x_includes= ;;
9894 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9896 case $ac_im_usrlibdir in
9898 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9902 rm -f -r conftest.dir
9905 # Standard set of common directories for X headers.
9906 # Check X11 before X11Rn because it is often a symlink to the current release.
9918 /usr/local/X11/include
9919 /usr/local/X11R6/include
9920 /usr/local/X11R5/include
9921 /usr/local/X11R4/include
9923 /usr/local/include/X11
9924 /usr/local/include/X11R6
9925 /usr/local/include/X11R5
9926 /usr/local/include/X11R4
9930 /usr/XFree86/include/X11
9934 /usr/unsupported/include
9936 /usr/local/x11r5/include
9937 /usr/lpp/Xamples/include
9939 /usr/openwin/include
9940 /usr/openwin/share/include'
9942 if test "$ac_x_includes" = no; then
9943 # Guess where to find include files, by looking for Xlib.h.
9944 # First, try using that file with no special directory specified.
9945 cat >conftest.$ac_ext <<_ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 #include <X11/Xlib.h>
9953 if { (ac_try="$ac_cpp conftest.$ac_ext"
9955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9956 *) ac_try_echo
=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1
>conftest.err
9963 cat conftest.err
>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } >/dev
/null
; then
9966 if test -s conftest.err
; then
9967 ac_cpp_err
=$ac_c_preproc_warn_flag
9968 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9975 if test -z "$ac_cpp_err"; then
9976 # We can compile using X headers with no special include directory.
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.
$ac_ext >&5
9982 for ac_dir
in $ac_x_header_dirs; do
9983 if test -r "$ac_dir/X11/Xlib.h"; then
9984 ac_x_includes
=$ac_dir
9990 rm -f conftest.err conftest.
$ac_ext
9991 fi # $ac_x_includes = no
9993 if test "$ac_x_libraries" = no
; then
9994 # Check for the libraries.
9995 # See if we find them without any special options.
9996 # Don't add to $LIBS permanently.
9999 cat >conftest.
$ac_ext <<_ACEOF
10002 cat confdefs.h
>>conftest.
$ac_ext
10003 cat >>conftest.
$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 #include <X11/Xlib.h>
10014 rm -f conftest.
$ac_objext conftest
$ac_exeext
10015 if { (ac_try
="$ac_link"
10016 case "(($ac_try" in
10017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10031 *) ac_try_echo
=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try
='test -s conftest$ac_exeext'
10039 { (case "(($ac_try" in
10040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_try") 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10049 # We can link X programs with no special library path.
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10056 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
10058 # Don't even attempt the hair of trying to link an X program!
10059 for ac_extension in a so sl; do
10060 if test -r "$ac_dir/libXt.$ac_extension"; then
10061 ac_x_libraries=$ac_dir
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 fi # $ac_x_libraries = no
10072 case $ac_x_includes,$ac_x_libraries in #(
10073 no,* | *,no | *\'*)
10074 # Didn't find X, or a directory has "'" in its name.
10075 ac_cv_have_x="have_x=no";; #(
10077 # Record where we found X for the cache.
10078 ac_cv_have_x="have_x=yes\
10079 ac_x_includes='$ac_x_includes'\
10080 ac_x_libraries='$ac_x_libraries'"
10086 eval "$ac_cv_have_x"
10089 if test "$have_x" != yes; then
10090 { echo "$as_me:$LINENO: result: $have_x" >&5
10091 echo "${ECHO_T}$have_x" >&6; }
10094 # If each of the values was on the command line, it overrides each guess.
10095 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10096 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10097 # Update the cache value to reflect the command line values.
10098 ac_cv_have_x="have_x=yes\
10099 ac_x_includes='$x_includes'\
10100 ac_x_libraries='$x_libraries'"
10101 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10102 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10105 if test "$no_x" = yes; then
10111 if test "${x_libraries}" != NONE; then
10112 if test -n "${x_libraries}"; then
10113 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
10114 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
10116 x_default_search_path=""
10117 x_search_path=${x_libraries}
10118 if test -z "${x_search_path}"; then
10119 x_search_path=/usr/lib
10121 for x_library in `echo ${x_search_path}: | \
10122 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
10124 ${x_library}/X11/%L/%T/%N%C%S:\
10125 ${x_library}/X11/%l/%T/%N%C%S:\
10126 ${x_library}/X11/%T/%N%C%S:\
10127 ${x_library}/X11/%L/%T/%N%S:\
10128 ${x_library}/X11/%l/%T/%N%S:\
10129 ${x_library}/X11/%T/%N%S"
10130 if test x"${x_default_search_path}" = x; then
10131 x_default_search_path=${x_search_path}
10133 x_default_search_path="${x_search_path}:${x_default_search_path}"
10137 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10138 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
10141 if test x"${x_includes}" = x; then
10142 bitmapdir=/usr/include/X11/bitmaps
10144 # accumulate include directories that have X11 bitmap subdirectories
10146 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
10147 if test -d "${bmd}/X11/bitmaps"; then
10148 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10150 if test -d "${bmd}/bitmaps"; then
10151 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10154 if test ${bmd_acc} != "dummyval"; then
10155 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
10160 if test "${with_carbon}" != no; then
10161 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10162 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10163 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10164 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10168 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10170 # Is the header compilable?
10171 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10172 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 $ac_includes_default
10180 #include <Carbon/Carbon.h>
10182 rm -f conftest.$ac_objext
10183 if { (ac_try="$ac_compile"
10184 case "(($ac_try" in
10185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10186 *) ac_try_echo
=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_compile") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1
>conftest.err
10193 cat conftest.err
>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (case "(($ac_try" in
10198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest.$ac_objext'
10207 { (case "(($ac_try" in
10208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10209 *) ac_try_echo
=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_try") 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 ac_header_compiler
=yes
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.
$ac_ext >&5
10221 ac_header_compiler
=no
10224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10226 echo "${ECHO_T}$ac_header_compiler" >&6; }
10228 # Is the header present?
10229 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10230 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
10231 cat >conftest.
$ac_ext <<_ACEOF
10234 cat confdefs.h
>>conftest.
$ac_ext
10235 cat >>conftest.
$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #include <Carbon/Carbon.h>
10239 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10240 case "(($ac_try" in
10241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null; then
10252 if test -s conftest.err; then
10253 ac_cpp_err=$ac_c_preproc_warn_flag
10254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10261 if test -z "$ac_cpp_err"; then
10262 ac_header_preproc=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_header_preproc=no
10270 rm -f conftest.err conftest.$ac_ext
10271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10272 echo "${ECHO_T}$ac_header_preproc" >&6; }
10274 # So? What about this header?
10275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10277 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10278 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10280 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10281 ac_header_preproc=yes
10284 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10285 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10287 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
10289 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
10291 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10293 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
10295 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10299 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10300 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10301 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10306 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10307 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10310 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10316 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
10317 if test "${with_carbon+set}" != set \
10318 && test "${carbon_appdir_x+set}" != set; then
10319 for var in with_x with_x_toolkit with_gtk with_xim \
10320 with_xpm with_jpeg with_tiff with_gif with_png; do
10321 if eval test \"\${$var+set}\" = set; then
10328 if test "${HAVE_CARBON}" = yes; then
10332 case "${window_system}" in
10336 case "${with_x_toolkit}" in
10337 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10338 motif ) USE_X_TOOLKIT=MOTIF ;;
10340 USE_X_TOOLKIT=none ;;
10341 no ) USE_X_TOOLKIT=none ;;
10342 * ) USE_X_TOOLKIT=maybe ;;
10352 ### If we're using X11, we should use the X menu package.
10354 case ${HAVE_X11} in
10355 yes ) HAVE_MENUS=yes ;;
10358 if test "${opsys}" = "hpux9"; then
10359 case "${x_libraries}" in
10361 opsysfile="s/hpux9-x11r4.h"
10366 if test "${opsys}" = "hpux9shr"; then
10367 case "${x_libraries}" in
10369 opsysfile="s/hpux9shxr4.h"
10374 ### Compute the unexec source name from the object name.
10375 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
10377 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10378 # Assume not, until told otherwise.
10380 doug_lea_malloc=yes
10381 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10382 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
10383 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 cat >conftest.$ac_ext <<_ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10394 #define malloc_get_state innocuous_malloc_get_state
10396 /* System header to define __stub macros and hopefully few prototypes,
10397 which can conflict with char malloc_get_state (); below.
10398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10399 <limits.h> exists even on freestanding compilers. */
10402 # include <limits.h>
10404 # include <assert.h>
10407 #undef malloc_get_state
10409 /* Override any GCC internal prototype to avoid an error.
10410 Use char because int might match the return type of a GCC
10411 builtin and then its argument prototype would still apply. */
10415 char malloc_get_state ();
10416 /* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10426 return malloc_get_state ();
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10435 *) ac_try_echo
=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10440 grep -v '^ *+' conftest.er1
>conftest.err
10442 cat conftest.err
>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (case "(($ac_try" in
10447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_try") 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest$ac_exeext'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10458 *) ac_try_echo
=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_cv_func_malloc_get_state
=yes
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.
$ac_ext >&5
10470 ac_cv_func_malloc_get_state
=no
10473 rm -f core conftest.err conftest.
$ac_objext \
10474 conftest
$ac_exeext conftest.
$ac_ext
10476 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10477 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
10478 if test $ac_cv_func_malloc_get_state = yes; then
10484 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10485 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
10486 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 cat >conftest.
$ac_ext <<_ACEOF
10492 cat confdefs.h
>>conftest.
$ac_ext
10493 cat >>conftest.
$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10497 #define malloc_set_state innocuous_malloc_set_state
10499 /* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char malloc_set_state (); below.
10501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10502 <limits.h> exists even on freestanding compilers. */
10505 # include <limits.h>
10507 # include <assert.h>
10510 #undef malloc_set_state
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10518 char malloc_set_state ();
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10529 return malloc_set_state ();
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (ac_try
="$ac_link"
10536 case "(($ac_try" in
10537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10551 *) ac_try_echo
=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try
='test -s conftest$ac_exeext'
10559 { (case "(($ac_try" in
10560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_func_malloc_set_state=yes
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_cv_func_malloc_set_state=no
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10579 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10580 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
10581 if test $ac_cv_func_malloc_set_state = yes; then
10587 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10588 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
10589 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 cat >conftest.$ac_ext <<_ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 extern void (* __after_morecore_hook)();
10602 __after_morecore_hook = 0
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10611 *) ac_try_echo
=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10616 grep -v '^ *+' conftest.er1
>conftest.err
10618 cat conftest.err
>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
10621 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10622 { (case "(($ac_try" in
10623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_try") 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest$ac_exeext'
10632 { (case "(($ac_try" in
10633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10634 *) ac_try_echo
=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_try") 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 emacs_cv_var___after_morecore_hook
=yes
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.
$ac_ext >&5
10646 emacs_cv_var___after_morecore_hook
=no
10649 rm -f core conftest.err conftest.
$ac_objext \
10650 conftest
$ac_exeext conftest.
$ac_ext
10652 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10653 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10654 if test $emacs_cv_var___after_morecore_hook = no
; then
10657 if test "${system_malloc}" = "yes"; then
10659 GNU_MALLOC_reason
="
10660 (The GNU allocators don't work with this system configuration.)"
10662 if test "$doug_lea_malloc" = "yes" ; then
10663 if test "$GNU_MALLOC" = yes ; then
10664 GNU_MALLOC_reason
="
10665 (Using Doug Lea's new malloc from the GNU C Library.)"
10668 cat >>confdefs.h
<<\_ACEOF
10669 #define DOUG_LEA_MALLOC 1
10674 if test x
"${REL_ALLOC}" = x
; then
10675 REL_ALLOC
=${GNU_MALLOC}
10681 for ac_header
in stdlib.h unistd.h
10683 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10684 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 ac_res
=`eval echo '${'$as_ac_Header'}'`
10691 { echo "$as_me:$LINENO: result: $ac_res" >&5
10692 echo "${ECHO_T}$ac_res" >&6; }
10694 # Is the header compilable?
10695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10697 cat >conftest.
$ac_ext <<_ACEOF
10700 cat confdefs.h
>>conftest.
$ac_ext
10701 cat >>conftest.
$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 #include <$ac_header>
10706 rm -f conftest.
$ac_objext
10707 if { (ac_try
="$ac_compile"
10708 case "(($ac_try" in
10709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10723 *) ac_try_echo
=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try
='test -s conftest.$ac_objext'
10731 { (case "(($ac_try" in
10732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10766 *) ac_try_echo
=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1
>conftest.err
10773 cat conftest.err
>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev
/null
; then
10776 if test -s conftest.err
; then
10777 ac_cpp_err
=$ac_c_preproc_warn_flag
10778 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10785 if test -z "$ac_cpp_err"; then
10786 ac_header_preproc
=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.
$ac_ext >&5
10791 ac_header_preproc
=no
10794 rm -f conftest.err conftest.
$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796 echo "${ECHO_T}$ac_header_preproc" >&6; }
10798 # So? What about this header?
10799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10805 ac_header_preproc
=yes
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 eval "$as_ac_Header=\$ac_header_preproc"
10830 ac_res
=`eval echo '${'$as_ac_Header'}'`
10831 { echo "$as_me:$LINENO: result: $ac_res" >&5
10832 echo "${ECHO_T}$ac_res" >&6; }
10835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10836 cat >>confdefs.h
<<_ACEOF
10837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845 for ac_func
in getpagesize
10847 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10850 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 cat >conftest.
$ac_ext <<_ACEOF
10856 cat confdefs.h
>>conftest.
$ac_ext
10857 cat >>conftest.
$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10861 #define $ac_func innocuous_$ac_func
10863 /* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char $ac_func (); below.
10865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10866 <limits.h> exists even on freestanding compilers. */
10869 # include <limits.h>
10871 # include <assert.h>
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10883 /* The GNU C library defines this for functions which it implements
10884 to always fail with ENOSYS. Some functions are actually named
10885 something starting with __ and the normal name is an alias. */
10886 #if defined __stub_$ac_func || defined __stub___$ac_func
10893 return $ac_func ();
10898 rm -f conftest.
$ac_objext conftest
$ac_exeext
10899 if { (ac_try
="$ac_link"
10900 case "(($ac_try" in
10901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_link") 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10913 { (case "(($ac_try" in
10914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10915 *) ac_try_echo
=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; } &&
10922 { ac_try
='test -s conftest$ac_exeext'
10923 { (case "(($ac_try" in
10924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 eval "$as_ac_var=yes"
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 eval "$as_ac_var=no"
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10943 ac_res=`eval echo '${'$as_ac_var'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10946 if test `eval echo '${'$as_ac_var'}'` = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10954 { echo "$as_me:$LINENO: checking for working mmap" >&5
10955 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10956 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 if test "$cross_compiling" = yes; then
10960 ac_cv_func_mmap_fixed_mapped=no
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10969 /* malloc might have been renamed as rpl_malloc. */
10972 /* Thanks to Mike Haertel and Jim Avera for this test.
10973 Here is a matrix of mmap possibilities:
10974 mmap private not fixed
10975 mmap private fixed at somewhere currently unmapped
10976 mmap private fixed at somewhere already mapped
10977 mmap shared not fixed
10978 mmap shared fixed at somewhere currently unmapped
10979 mmap shared fixed at somewhere already mapped
10980 For private mappings, we should verify that changes cannot be read()
10981 back from the file, nor mmap's back from the file at a different
10982 address. (There have been systems where private was not correctly
10983 implemented like the infamous i386 svr4.0, and systems where the
10984 VM page cache was not coherent with the file system buffer cache
10985 like early versions of FreeBSD and possibly contemporary NetBSD.)
10986 For shared mappings, we should conversely verify that changes get
10987 propagated back to all the places they're supposed to be.
10989 Grep wants private fixed already mapped.
10990 The main things grep needs to know about mmap are:
10991 * does it exist and is it safe to write into the mmap'd area
10992 * how to use it (BSD variants) */
10995 #include <sys/mman.h>
10997 #if !STDC_HEADERS && !HAVE_STDLIB_H
11001 /* This mess was copied from the GNU getpagesize.h. */
11002 #if !HAVE_GETPAGESIZE
11003 /* Assume that all systems that can run configure have sys/param.h. */
11004 # if !HAVE_SYS_PARAM_H
11005 # define HAVE_SYS_PARAM_H 1
11008 # ifdef _SC_PAGESIZE
11009 # define getpagesize() sysconf(_SC_PAGESIZE)
11010 # else /* no _SC_PAGESIZE */
11011 # if HAVE_SYS_PARAM_H
11012 # include <sys/param.h>
11013 # ifdef EXEC_PAGESIZE
11014 # define getpagesize() EXEC_PAGESIZE
11015 # else /* no EXEC_PAGESIZE */
11017 # define getpagesize() NBPG * CLSIZE
11020 # endif /* no CLSIZE */
11021 # else /* no NBPG */
11023 # define getpagesize() NBPC
11024 # else /* no NBPC */
11026 # define getpagesize() PAGESIZE
11027 # endif /* PAGESIZE */
11028 # endif /* no NBPC */
11029 # endif /* no NBPG */
11030 # endif /* no EXEC_PAGESIZE */
11031 # else /* no HAVE_SYS_PARAM_H */
11032 # define getpagesize() 8192 /* punt totally */
11033 # endif /* no HAVE_SYS_PARAM_H */
11034 # endif /* no _SC_PAGESIZE */
11036 #endif /* no HAVE_GETPAGESIZE */
11041 char *data, *data2, *data3;
11045 pagesize = getpagesize ();
11047 /* First, make a file with some known garbage in it. */
11048 data = (char *) malloc (pagesize);
11051 for (i = 0; i < pagesize; ++i)
11052 *(data + i) = rand ();
11054 fd = creat ("conftest.mmap", 0600);
11057 if (write (fd, data, pagesize) != pagesize)
11061 /* Next, try to mmap the file at a fixed address which already has
11062 something else allocated at it. If we can, also make sure that
11063 we see the same garbage. */
11064 fd = open ("conftest.mmap", O_RDWR);
11067 data2 = (char *) malloc (2 * pagesize);
11070 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11071 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11072 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11074 for (i = 0; i < pagesize; ++i)
11075 if (*(data + i) != *(data2 + i))
11078 /* Finally, make sure that changes to the mapped area do not
11079 percolate back to the file as seen by read(). (This is a bug on
11080 some variants of i386 svr4.0.) */
11081 for (i = 0; i < pagesize; ++i)
11082 *(data2 + i) = *(data2 + i) + 1;
11083 data3 = (char *) malloc (pagesize);
11086 if (read (fd, data3, pagesize) != pagesize)
11088 for (i = 0; i < pagesize; ++i)
11089 if (*(data + i) != *(data3 + i))
11095 rm -f conftest$ac_exeext
11096 if { (ac_try="$ac_link"
11097 case "(($ac_try" in
11098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11099 *) ac_try_echo
=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_link") 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11106 { (case "(($ac_try" in
11107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_func_mmap_fixed_mapped=yes
11117 echo "$as_me: program exited with status $ac_status" >&5
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ( exit $ac_status )
11122 ac_cv_func_mmap_fixed_mapped=no
11124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11129 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11130 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11131 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11133 cat >>confdefs.h <<\_ACEOF
11134 #define HAVE_MMAP 1
11138 rm -f conftest.mmap
11140 if test $use_mmap_for_buffers = yes; then
11144 LIBS="$libsrc_libs $LIBS"
11147 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11148 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
11149 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 ac_check_lib_save_LIBS=$LIBS
11153 LIBS="-ldnet $LIBS"
11154 cat >conftest.$ac_ext <<_ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11171 return dnet_ntoa ();
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (ac_try="$ac_link"
11178 case "(($ac_try" in
11179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11180 *) ac_try_echo
=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1
>conftest.err
11187 cat conftest.err
>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (case "(($ac_try" in
11192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest$ac_exeext'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11203 *) ac_try_echo
=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_lib_dnet_dnet_ntoa
=yes
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.
$ac_ext >&5
11215 ac_cv_lib_dnet_dnet_ntoa
=no
11218 rm -f core conftest.err conftest.
$ac_objext \
11219 conftest
$ac_exeext conftest.
$ac_ext
11220 LIBS
=$ac_check_lib_save_LIBS
11222 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11223 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11224 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11225 cat >>confdefs.h
<<_ACEOF
11226 #define HAVE_LIBDNET 1
11229 LIBS
="-ldnet $LIBS"
11234 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11235 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
11236 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_check_lib_save_LIBS
=$LIBS
11240 LIBS
="-lXbsd $LIBS"
11241 cat >conftest.
$ac_ext <<_ACEOF
11244 cat confdefs.h
>>conftest.
$ac_ext
11245 cat >>conftest.
$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11257 rm -f conftest.
$ac_objext conftest
$ac_exeext
11258 if { (ac_try
="$ac_link"
11259 case "(($ac_try" in
11260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_link") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11274 *) ac_try_echo
=$ac_try;;
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_try") 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try
='test -s conftest$ac_exeext'
11282 { (case "(($ac_try" in
11283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_lib_Xbsd_main=yes
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_cv_lib_Xbsd_main=no
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11303 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11304 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
11305 if test $ac_cv_lib_Xbsd_main = yes; then
11306 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11311 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11312 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
11313 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-lpthreads $LIBS"
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11335 return cma_open ();
11340 rm -f conftest.$ac_objext conftest$ac_exeext
11341 if { (ac_try="$ac_link"
11342 case "(($ac_try" in
11343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11344 *) ac_try_echo
=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_link") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1
>conftest.err
11351 cat conftest.err
>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11355 { (case "(($ac_try" in
11356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; } &&
11364 { ac_try='test -s conftest$ac_exeext'
11365 { (case "(($ac_try" in
11366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11367 *) ac_try_echo
=$ac_try;;
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_try") 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_lib_pthreads_cma_open
=yes
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.
$ac_ext >&5
11379 ac_cv_lib_pthreads_cma_open
=no
11382 rm -f core conftest.err conftest.
$ac_objext \
11383 conftest
$ac_exeext conftest.
$ac_ext
11384 LIBS
=$ac_check_lib_save_LIBS
11386 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11387 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
11388 if test $ac_cv_lib_pthreads_cma_open = yes; then
11389 cat >>confdefs.h
<<_ACEOF
11390 #define HAVE_LIBPTHREADS 1
11393 LIBS
="-lpthreads $LIBS"
11398 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
11399 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
11400 if test -d /usr
/X386
/include
; then
11402 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
11406 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
11407 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
11412 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11413 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
11414 if test "${gdb_cv_bigtoc+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11420 *) gdb_cv_bigtoc
=-bbigtoc ;;
11423 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11424 cat >conftest.
$ac_ext <<_ACEOF
11427 cat confdefs.h
>>conftest.
$ac_ext
11428 cat >>conftest.
$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11439 rm -f conftest.
$ac_objext conftest
$ac_exeext
11440 if { (ac_try
="$ac_link"
11441 case "(($ac_try" in
11442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11456 *) ac_try_echo
=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try
='test -s conftest$ac_exeext'
11464 { (case "(($ac_try" in
11465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_try") 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11485 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11486 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
11490 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11491 # used for the tests that follow. We set them back to REAL_CFLAGS and
11492 # REAL_CPPFLAGS later on.
11494 REAL_CPPFLAGS="$CPPFLAGS"
11496 if test "${HAVE_X11}" = "yes"; then
11497 DEFS="$C_SWITCH_X_SITE $DEFS"
11498 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11500 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11501 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11503 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11504 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11505 # but it's more convenient here to set LD_RUN_PATH
11506 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11507 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11508 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11512 if test "${opsys}" = "gnu-linux"; then
11513 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11514 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
11515 cat >conftest.$ac_ext <<_ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11525 XOpenDisplay ("foo");
11530 rm -f conftest.$ac_objext conftest$ac_exeext
11531 if { (ac_try="$ac_link"
11532 case "(($ac_try" in
11533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11534 *) ac_try_echo
=$ac_try;;
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_link") 2>conftest.er1
11539 grep -v '^ *+' conftest.er1
>conftest.err
11541 cat conftest.err
>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11545 { (case "(($ac_try" in
11546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; } &&
11554 { ac_try='test -s conftest$ac_exeext'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11557 *) ac_try_echo
=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 xlinux_first_failure
=no
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.
$ac_ext >&5
11569 xlinux_first_failure
=yes
11572 rm -f core conftest.err conftest.
$ac_objext \
11573 conftest
$ac_exeext conftest.
$ac_ext
11574 if test "${xlinux_first_failure}" = "yes"; then
11575 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11576 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11577 OLD_CPPFLAGS
="$CPPFLAGS"
11579 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11580 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11581 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11582 LIBS
="$LIBS -b i486-linuxaout"
11583 cat >conftest.
$ac_ext <<_ACEOF
11586 cat confdefs.h
>>conftest.
$ac_ext
11587 cat >>conftest.
$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11593 XOpenDisplay ("foo");
11598 rm -f conftest.
$ac_objext conftest
$ac_exeext
11599 if { (ac_try
="$ac_link"
11600 case "(($ac_try" in
11601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_link") 2>conftest.er1
11607 grep -v '^ *+' conftest.er1 >conftest.err
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11615 *) ac_try_echo
=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try
='test -s conftest$ac_exeext'
11623 { (case "(($ac_try" in
11624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 xlinux_second_failure=no
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 xlinux_second_failure=yes
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 if test "${xlinux_second_failure}" = "yes"; then
11643 # If we get the same failure with -b, there is no use adding -b.
11644 # So take it out. This plays safe.
11645 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11646 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11647 CPPFLAGS="$OLD_CPPFLAGS"
11649 { echo "$as_me:$LINENO: result: no" >&5
11650 echo "${ECHO_T}no" >&6; }
11652 { echo "$as_me:$LINENO: result: yes" >&5
11653 echo "${ECHO_T}yes" >&6; }
11656 { echo "$as_me:$LINENO: result: no" >&5
11657 echo "${ECHO_T}no" >&6; }
11661 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11662 # header files included from there.
11663 { echo "$as_me:$LINENO: checking for Xkb" >&5
11664 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <X11/Xlib.h>
11672 #include <X11/XKBlib.h>
11676 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11685 *) ac_try_echo
=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1
>conftest.err
11692 cat conftest.err
>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (case "(($ac_try" in
11697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11708 *) ac_try_echo
=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.
$ac_ext >&5
11723 rm -f core conftest.err conftest.
$ac_objext \
11724 conftest
$ac_exeext conftest.
$ac_ext
11725 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11726 echo "${ECHO_T}$emacs_xkb" >&6; }
11727 if test $emacs_xkb = yes; then
11729 cat >>confdefs.h
<<\_ACEOF
11730 #define HAVE_XKBGETKEYBOARD 1
11739 for ac_func
in XrmSetDatabase XScreenResourceString \
11740 XScreenNumberOfScreen XSetWMProtocols
11742 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11745 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.
$ac_ext <<_ACEOF
11751 cat confdefs.h
>>conftest.
$ac_ext
11752 cat >>conftest.
$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11756 #define $ac_func innocuous_$ac_func
11758 /* System header to define __stub macros and hopefully few prototypes,
11759 which can conflict with char $ac_func (); below.
11760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11761 <limits.h> exists even on freestanding compilers. */
11764 # include <limits.h>
11766 # include <assert.h>
11771 /* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply. */
11778 /* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
11781 #if defined __stub_$ac_func || defined __stub___$ac_func
11788 return $ac_func ();
11793 rm -f conftest.
$ac_objext conftest
$ac_exeext
11794 if { (ac_try
="$ac_link"
11795 case "(($ac_try" in
11796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11810 *) ac_try_echo
=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try
='test -s conftest$ac_exeext'
11818 { (case "(($ac_try" in
11819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 eval "$as_ac_var=yes"
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 eval "$as_ac_var=no"
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11838 ac_res=`eval echo '${'$as_ac_var'}'`
11839 { echo "$as_me:$LINENO: result: $ac_res" >&5
11840 echo "${ECHO_T}$ac_res" >&6; }
11841 if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11851 if test "${window_system}" = "x11"; then
11852 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11853 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11854 if test "${emacs_cv_x11_version_6+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 #include <X11/Xlib.h>
11867 #if XlibSpecificationRelease < 6
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (ac_try="$ac_link"
11877 case "(($ac_try" in
11878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11879 *) ac_try_echo
=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_link") 2>conftest.er1
11884 grep -v '^ *+' conftest.er1
>conftest.err
11886 cat conftest.err
>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11890 { (case "(($ac_try" in
11891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_try") 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (case "(($ac_try" in
11901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11902 *) ac_try_echo
=$ac_try;;
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_try") 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 emacs_cv_x11_version_6
=yes
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.
$ac_ext >&5
11914 emacs_cv_x11_version_6
=no
11917 rm -f core conftest.err conftest.
$ac_objext \
11918 conftest
$ac_exeext conftest.
$ac_ext
11921 if test $emacs_cv_x11_version_6 = yes; then
11922 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11923 echo "${ECHO_T}6 or newer" >&6; }
11925 cat >>confdefs.h
<<\_ACEOF
11926 #define HAVE_X11R6 1
11930 { echo "$as_me:$LINENO: result: before 6" >&5
11931 echo "${ECHO_T}before 6" >&6; }
11935 if test "${window_system}" = "x11"; then
11936 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11937 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11938 if test "${emacs_cv_x11_version_5+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.
$ac_ext <<_ACEOF
11944 cat confdefs.h
>>conftest.
$ac_ext
11945 cat >>conftest.
$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 #include <X11/Xlib.h>
11951 #if XlibSpecificationRelease < 5
11959 rm -f conftest.
$ac_objext conftest
$ac_exeext
11960 if { (ac_try
="$ac_link"
11961 case "(($ac_try" in
11962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11976 *) ac_try_echo
=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try
='test -s conftest$ac_exeext'
11984 { (case "(($ac_try" in
11985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 emacs_cv_x11_version_5=yes
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 emacs_cv_x11_version_5=no
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12005 if test $emacs_cv_x11_version_5 = yes; then
12006 { echo "$as_me:$LINENO: result: 5 or newer" >&5
12007 echo "${ECHO_T}5 or newer" >&6; }
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_X11R5 1
12016 { echo "$as_me:$LINENO: result: before 5" >&5
12017 echo "${ECHO_T}before 5" >&6; }
12022 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
12025 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
12026 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
12027 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
12028 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
12029 { (exit 1); exit 1; }; };
12033 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
12035 if test "X${with_pkg_config_prog}" != X; then
12036 PKG_CONFIG="${with_pkg_config_prog}"
12041 if test -z "$PKG_CONFIG"; then
12042 # Extract the first word of "pkg-config", so it can be a program name with args.
12043 set dummy pkg-config; ac_word=$2
12044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12046 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 case $PKG_CONFIG in
12051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12073 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12074 if test -n "$PKG_CONFIG"; then
12075 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12076 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12078 { echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6; }
12085 if test "$PKG_CONFIG" = "no" ; then
12086 { { echo "$as_me:$LINENO: error:
12087 *** 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
12088 echo "$as_me: error:
12089 *** 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;}
12090 { (exit 1); exit 1; }; }
12092 PKG_CONFIG_MIN_VERSION=0.9.0
12093 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12094 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
12095 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
12097 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
12098 { echo "$as_me:$LINENO: result: yes" >&5
12099 echo "${ECHO_T}yes" >&6; }
12102 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12103 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
12104 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
12105 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12106 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
12108 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12109 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
12110 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
12111 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12112 echo "${ECHO_T}$GTK_LIBS" >&6; }
12114 { echo "$as_me:$LINENO: result: no" >&5
12115 echo "${ECHO_T}no" >&6; }
12118 ## If we have a custom action on failure, don't print errors, but
12119 ## do set a variable so people can do so.
12120 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
12121 echo $GTK_PKG_ERRORS
12127 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12128 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12132 if test $succeeded = yes; then
12135 { { 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
12136 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;}
12137 { (exit 1); exit 1; }; }
12142 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
12143 CFLAGS="$CFLAGS $GTK_CFLAGS"
12144 LIBS="$GTK_LIBS $LIBS"
12147 for ac_func in gtk_main
12149 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163 #define $ac_func innocuous_$ac_func
12165 /* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12171 # include <limits.h>
12173 # include <assert.h>
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12185 /* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188 #if defined __stub_$ac_func || defined __stub___$ac_func
12195 return $ac_func ();
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12204 *) ac_try_echo
=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1
>conftest.err
12211 cat conftest.err
>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12227 *) ac_try_echo
=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_var=yes"
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.
$ac_ext >&5
12239 eval "$as_ac_var=no"
12242 rm -f core conftest.err conftest.
$ac_objext \
12243 conftest
$ac_exeext conftest.
$ac_ext
12245 ac_res
=`eval echo '${'$as_ac_var'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12248 if test `eval echo '${'$as_ac_var'}'` = yes; then
12249 cat >>confdefs.h
<<_ACEOF
12250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12256 if test "${GTK_COMPILES}" != "yes"; then
12257 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12258 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12259 { (exit 1); exit 1; }; };
12264 cat >>confdefs.h
<<\_ACEOF
12270 if test "$with_toolkit_scroll_bars" != no
; then
12271 with_toolkit_scroll_bars
=yes
12274 HAVE_GTK_MULTIDISPLAY
=no
12276 for ac_func
in gdk_display_open
12278 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12281 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12292 #define $ac_func innocuous_$ac_func
12294 /* System header to define __stub macros and hopefully few prototypes,
12295 which can conflict with char $ac_func (); below.
12296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 <limits.h> exists even on freestanding compilers. */
12300 # include <limits.h>
12302 # include <assert.h>
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12314 /* The GNU C library defines this for functions which it implements
12315 to always fail with ENOSYS. Some functions are actually named
12316 something starting with __ and the normal name is an alias. */
12317 #if defined __stub_$ac_func || defined __stub___$ac_func
12324 return $ac_func ();
12329 rm -f conftest.
$ac_objext conftest
$ac_exeext
12330 if { (ac_try
="$ac_link"
12331 case "(($ac_try" in
12332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_link") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12344 { (case "(($ac_try" in
12345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12346 *) ac_try_echo
=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_try") 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try
='test -s conftest$ac_exeext'
12354 { (case "(($ac_try" in
12355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 eval "$as_ac_var=yes"
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 eval "$as_ac_var=no"
12371 rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12374 ac_res=`eval echo '${'$as_ac_var'}'`
12375 { echo "$as_me:$LINENO: result: $ac_res" >&5
12376 echo "${ECHO_T}$ac_res" >&6; }
12377 if test `eval echo '${'$as_ac_var'}'` = yes; then
12378 cat >>confdefs.h <<_ACEOF
12379 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12381 HAVE_GTK_MULTIDISPLAY=yes
12385 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12387 cat >>confdefs.h <<\_ACEOF
12388 #define HAVE_GTK_MULTIDISPLAY 1
12392 HAVE_GTK_FILE_SELECTION=no
12394 for ac_func in gtk_file_selection_new
12396 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12410 #define $ac_func innocuous_$ac_func
12412 /* System header to define __stub macros and hopefully few prototypes,
12413 which can conflict with char $ac_func (); below.
12414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415 <limits.h> exists even on freestanding compilers. */
12418 # include <limits.h>
12420 # include <assert.h>
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12432 /* The GNU C library defines this for functions which it implements
12433 to always fail with ENOSYS. Some functions are actually named
12434 something starting with __ and the normal name is an alias. */
12435 #if defined __stub_$ac_func || defined __stub___$ac_func
12442 return $ac_func ();
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (ac_try="$ac_link"
12449 case "(($ac_try" in
12450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12451 *) ac_try_echo
=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1
>conftest.err
12458 cat conftest.err
>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12462 { (case "(($ac_try" in
12463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12474 *) ac_try_echo
=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 eval "$as_ac_var=yes"
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.
$ac_ext >&5
12486 eval "$as_ac_var=no"
12489 rm -f core conftest.err conftest.
$ac_objext \
12490 conftest
$ac_exeext conftest.
$ac_ext
12492 ac_res
=`eval echo '${'$as_ac_var'}'`
12493 { echo "$as_me:$LINENO: result: $ac_res" >&5
12494 echo "${ECHO_T}$ac_res" >&6; }
12495 if test `eval echo '${'$as_ac_var'}'` = yes; then
12496 cat >>confdefs.h
<<_ACEOF
12497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12499 HAVE_GTK_FILE_SELECTION
=yes
12504 HAVE_GTK_FILE_CHOOSER
=no
12506 for ac_func
in gtk_file_chooser_dialog_new
12508 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12511 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 cat >conftest.
$ac_ext <<_ACEOF
12517 cat confdefs.h
>>conftest.
$ac_ext
12518 cat >>conftest.
$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12522 #define $ac_func innocuous_$ac_func
12524 /* System header to define __stub macros and hopefully few prototypes,
12525 which can conflict with char $ac_func (); below.
12526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12527 <limits.h> exists even on freestanding compilers. */
12530 # include <limits.h>
12532 # include <assert.h>
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12544 /* The GNU C library defines this for functions which it implements
12545 to always fail with ENOSYS. Some functions are actually named
12546 something starting with __ and the normal name is an alias. */
12547 #if defined __stub_$ac_func || defined __stub___$ac_func
12554 return $ac_func ();
12559 rm -f conftest.
$ac_objext conftest
$ac_exeext
12560 if { (ac_try
="$ac_link"
12561 case "(($ac_try" in
12562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_link") 2>conftest.er1
12568 grep -v '^ *+' conftest.er1 >conftest.err
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12576 *) ac_try_echo
=$ac_try;;
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; } &&
12583 { ac_try
='test -s conftest$ac_exeext'
12584 { (case "(($ac_try" in
12585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 eval "$as_ac_var=yes"
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 eval "$as_ac_var=no"
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12604 ac_res=`eval echo '${'$as_ac_var'}'`
12605 { echo "$as_me:$LINENO: result: $ac_res" >&5
12606 echo "${ECHO_T}$ac_res" >&6; }
12607 if test `eval echo '${'$as_ac_var'}'` = yes; then
12608 cat >>confdefs.h <<_ACEOF
12609 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12611 HAVE_GTK_FILE_CHOOSER=yes
12616 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12617 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_GTK_FILE_BOTH 1
12625 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12626 HAVE_GTK_AND_PTHREAD=no
12628 for ac_header in pthread.h
12630 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 ac_res=`eval echo '${'$as_ac_Header'}'`
12638 { echo "$as_me:$LINENO: result: $ac_res" >&5
12639 echo "${ECHO_T}$ac_res" >&6; }
12641 # Is the header compilable?
12642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12644 cat >conftest.$ac_ext <<_ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650 $ac_includes_default
12651 #include <$ac_header>
12653 rm -f conftest.$ac_objext
12654 if { (ac_try="$ac_compile"
12655 case "(($ac_try" in
12656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12657 *) ac_try_echo
=$ac_try;;
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_compile") 2>conftest.er1
12662 grep -v '^ *+' conftest.er1
>conftest.err
12664 cat conftest.err
>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12668 { (case "(($ac_try" in
12669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_try") 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (case "(($ac_try" in
12679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12680 *) ac_try_echo
=$ac_try;;
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_try") 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_header_compiler
=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.
$ac_ext >&5
12692 ac_header_compiler
=no
12695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12697 echo "${ECHO_T}$ac_header_compiler" >&6; }
12699 # Is the header present?
12700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12702 cat >conftest.
$ac_ext <<_ACEOF
12705 cat confdefs.h
>>conftest.
$ac_ext
12706 cat >>conftest.
$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 #include <$ac_header>
12710 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12711 case "(($ac_try" in
12712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12718 grep -v '^ *+' conftest.er1 >conftest.err
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } >/dev/null; then
12723 if test -s conftest.err; then
12724 ac_cpp_err=$ac_c_preproc_warn_flag
12725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12732 if test -z "$ac_cpp_err"; then
12733 ac_header_preproc=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 ac_header_preproc=no
12741 rm -f conftest.err conftest.$ac_ext
12742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12743 echo "${ECHO_T}$ac_header_preproc" >&6; }
12745 # So? What about this header?
12746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12752 ac_header_preproc=yes
12755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 eval "$as_ac_Header=\$ac_header_preproc"
12777 ac_res=`eval echo '${'$as_ac_Header'}'`
12778 { echo "$as_me:$LINENO: result: $ac_res" >&5
12779 echo "${ECHO_T}$ac_res" >&6; }
12782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12783 cat >>confdefs.h <<_ACEOF
12784 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12791 if test "$ac_cv_header_pthread_h"; then
12792 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12793 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
12794 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 ac_check_lib_save_LIBS=$LIBS
12798 LIBS="-lpthread $LIBS"
12799 cat >conftest.$ac_ext <<_ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12812 char pthread_self ();
12816 return pthread_self ();
12821 rm -f conftest.$ac_objext conftest$ac_exeext
12822 if { (ac_try="$ac_link"
12823 case "(($ac_try" in
12824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12825 *) ac_try_echo
=$ac_try;;
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 (eval "$ac_link") 2>conftest.er1
12830 grep -v '^ *+' conftest.er1
>conftest.err
12832 cat conftest.err
>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12836 { (case "(($ac_try" in
12837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_try") 2>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; } &&
12845 { ac_try='test -s conftest$ac_exeext'
12846 { (case "(($ac_try" in
12847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12848 *) ac_try_echo
=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_try") 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_lib_pthread_pthread_self
=yes
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.
$ac_ext >&5
12860 ac_cv_lib_pthread_pthread_self
=no
12863 rm -f core conftest.err conftest.
$ac_objext \
12864 conftest
$ac_exeext conftest.
$ac_ext
12865 LIBS
=$ac_check_lib_save_LIBS
12867 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12868 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12869 if test $ac_cv_lib_pthread_pthread_self = yes; then
12870 HAVE_GTK_AND_PTHREAD
=yes
12874 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12875 GTK_LIBS
="$GTK_LIBS -lpthread"
12877 cat >>confdefs.h
<<\_ACEOF
12878 #define HAVE_GTK_AND_PTHREAD 1
12885 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
12886 if test x
"${HAVE_X11R5}" = xyes
; then
12887 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12888 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12889 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 cat >conftest.
$ac_ext <<_ACEOF
12895 cat confdefs.h
>>conftest.
$ac_ext
12896 cat >>conftest.
$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12899 #include <X11/Intrinsic.h>
12900 #include <X11/Xaw/Simple.h>
12909 rm -f conftest.
$ac_objext conftest
$ac_exeext
12910 if { (ac_try
="$ac_link"
12911 case "(($ac_try" in
12912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_link") 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12924 { (case "(($ac_try" in
12925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12926 *) ac_try_echo
=$ac_try;;
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_try") 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try
='test -s conftest$ac_exeext'
12934 { (case "(($ac_try" in
12935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_try") 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 emacs_cv_x11_version_5_with_xaw=yes
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12948 emacs_cv_x11_version_5_with_xaw=no
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12955 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12956 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12957 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12958 USE_X_TOOLKIT=LUCID
12960 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12961 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12969 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12971 if test "${USE_X_TOOLKIT}" != "none"; then
12972 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12973 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12974 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 #include <X11/Intrinsic.h>
12987 #if XtSpecificationRelease < 6
12995 rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (ac_try="$ac_link"
12997 case "(($ac_try" in
12998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12999 *) ac_try_echo
=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_link") 2>conftest.er1
13004 grep -v '^ *+' conftest.er1
>conftest.err
13006 cat conftest.err
>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010 { (case "(($ac_try" in
13011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest$ac_exeext'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13022 *) ac_try_echo
=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 emacs_cv_x11_toolkit_version_6
=yes
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.
$ac_ext >&5
13034 emacs_cv_x11_toolkit_version_6
=no
13037 rm -f core conftest.err conftest.
$ac_objext \
13038 conftest
$ac_exeext conftest.
$ac_ext
13041 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13042 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13043 { echo "$as_me:$LINENO: result: 6 or newer" >&5
13044 echo "${ECHO_T}6 or newer" >&6; }
13046 cat >>confdefs.h
<<\_ACEOF
13047 #define HAVE_X11XTR6 1
13051 { echo "$as_me:$LINENO: result: before 6" >&5
13052 echo "${ECHO_T}before 6" >&6; }
13056 if test x
$HAVE_X11XTR6 = xyes
; then
13057 LIBS
="-lXt -lSM -lICE $LIBS"
13062 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13063 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
13064 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 ac_check_lib_save_LIBS
=$LIBS
13069 cat >conftest.
$ac_ext <<_ACEOF
13072 cat confdefs.h
>>conftest.
$ac_ext
13073 cat >>conftest.
$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13082 char XmuConvertStandardSelection ();
13086 return XmuConvertStandardSelection ();
13091 rm -f conftest.
$ac_objext conftest
$ac_exeext
13092 if { (ac_try
="$ac_link"
13093 case "(($ac_try" in
13094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_link") 2>conftest.er1
13100 grep -v '^ *+' conftest.er1 >conftest.err
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13108 *) ac_try_echo
=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try
='test -s conftest$ac_exeext'
13116 { (case "(($ac_try" in
13117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13130 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13133 rm -f core conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13135 LIBS=$ac_check_lib_save_LIBS
13137 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13138 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13139 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13140 cat >>confdefs.h <<_ACEOF
13141 #define HAVE_LIBXMU 1
13148 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13151 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13152 if test "${HAVE_X11}" = "yes"; then
13153 if test "${USE_X_TOOLKIT}" != "none"; then
13155 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13156 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
13157 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-lXext $LIBS"
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13169 /* Override any GCC internal prototype to avoid an error.
13170 Use char because int might match the return type of a GCC
13171 builtin and then its argument prototype would still apply. */
13175 char XShapeQueryExtension ();
13179 return XShapeQueryExtension ();
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (ac_try="$ac_link"
13186 case "(($ac_try" in
13187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13188 *) ac_try_echo
=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_link") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1
>conftest.err
13195 cat conftest.err
>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13199 { (case "(($ac_try" in
13200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (case "(($ac_try" in
13210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13211 *) ac_try_echo
=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.
$ac_ext >&5
13223 ac_cv_lib_Xext_XShapeQueryExtension
=no
13226 rm -f core conftest.err conftest.
$ac_objext \
13227 conftest
$ac_exeext conftest.
$ac_ext
13228 LIBS
=$ac_check_lib_save_LIBS
13230 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13231 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13232 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13233 cat >>confdefs.h
<<_ACEOF
13234 #define HAVE_LIBXEXT 1
13237 LIBS
="-lXext $LIBS"
13244 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13245 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13246 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
13247 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 cat >conftest.
$ac_ext <<_ACEOF
13253 cat confdefs.h
>>conftest.
$ac_ext
13254 cat >>conftest.
$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13260 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13263 Motif version prior to 2.1.
13269 rm -f conftest.
$ac_objext
13270 if { (ac_try
="$ac_compile"
13271 case "(($ac_try" in
13272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13278 grep -v '^ *+' conftest.er1 >conftest.err
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13284 { (case "(($ac_try" in
13285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13286 *) ac_try_echo
=$ac_try;;
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_try") 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } &&
13293 { ac_try
='test -s conftest.$ac_objext'
13294 { (case "(($ac_try" in
13295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_try") 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 emacs_cv_motif_version_2_1=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 emacs_cv_motif_version_2_1=no
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13314 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
13315 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13316 if test $emacs_cv_motif_version_2_1 = yes; then
13319 cat >>confdefs.h <<\_ACEOF
13320 #define HAVE_MOTIF_2_1 1
13323 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13324 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
13325 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 ac_check_lib_save_LIBS=$LIBS
13330 cat >conftest.$ac_ext <<_ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13337 /* Override any GCC internal prototype to avoid an error.
13338 Use char because int might match the return type of a GCC
13339 builtin and then its argument prototype would still apply. */
13343 char XpCreateContext ();
13347 return XpCreateContext ();
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (ac_try="$ac_link"
13354 case "(($ac_try" in
13355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13356 *) ac_try_echo
=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_link") 2>conftest.er1
13361 grep -v '^ *+' conftest.er1
>conftest.err
13363 cat conftest.err
>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13367 { (case "(($ac_try" in
13368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13379 *) ac_try_echo
=$ac_try;;
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_lib_Xp_XpCreateContext
=yes
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.
$ac_ext >&5
13391 ac_cv_lib_Xp_XpCreateContext
=no
13394 rm -f core conftest.err conftest.
$ac_objext \
13395 conftest
$ac_exeext conftest.
$ac_ext
13396 LIBS
=$ac_check_lib_save_LIBS
13398 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13399 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
13400 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13404 if test ${HAVE_LIBXP} = yes; then
13406 cat >>confdefs.h
<<\_ACEOF
13407 #define HAVE_LIBXP 1
13412 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13413 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
13414 if test "${emacs_cv_lesstif+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 # We put this in CFLAGS temporarily to precede other -I options
13418 # that might be in CFLAGS temporarily.
13419 # We put this in CPPFLAGS where it precedes the other -I options.
13420 OLD_CPPFLAGS
=$CPPFLAGS
13422 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13423 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13424 cat >conftest.
$ac_ext <<_ACEOF
13427 cat confdefs.h
>>conftest.
$ac_ext
13428 cat >>conftest.
$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13439 rm -f conftest.
$ac_objext
13440 if { (ac_try
="$ac_compile"
13441 case "(($ac_try" in
13442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_compile") 2>conftest.er1
13448 grep -v '^ *+' conftest.er1 >conftest.err
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13456 *) ac_try_echo
=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try
='test -s conftest.$ac_objext'
13464 { (case "(($ac_try" in
13465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_try") 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 emacs_cv_lesstif=yes
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 emacs_cv_lesstif=no
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13484 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
13485 if test $emacs_cv_lesstif = yes; then
13486 # Make sure this -I option remains in CPPFLAGS after it is set
13487 # back to REAL_CPPFLAGS.
13488 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13489 # have those other -I options anyway. Ultimately, having this
13490 # directory ultimately in CPPFLAGS will be enough.
13491 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13492 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13495 CPPFLAGS=$OLD_CPPFLAGS
13500 ### Is -lXaw3d available?
13502 if test "${HAVE_X11}" = "yes"; then
13503 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
13504 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
13505 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
13506 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 cat >conftest.$ac_ext <<_ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <X11/Xaw3d/Scrollbar.h>
13517 if { (ac_try="$ac_cpp conftest.$ac_ext"
13518 case "(($ac_try" in
13519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13520 *) ac_try_echo
=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13525 grep -v '^ *+' conftest.er1
>conftest.err
13527 cat conftest.err
>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } >/dev
/null
; then
13530 if test -s conftest.err
; then
13531 ac_cpp_err
=$ac_c_preproc_warn_flag
13532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13539 if test -z "$ac_cpp_err"; then
13540 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.
$ac_ext >&5
13545 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
13548 rm -f conftest.err conftest.
$ac_ext
13550 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
13551 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
13552 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
13553 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
13554 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
13555 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 ac_check_lib_save_LIBS
=$LIBS
13559 LIBS
="-lXaw3d $LIBS"
13560 cat >conftest.
$ac_ext <<_ACEOF
13563 cat confdefs.h
>>conftest.
$ac_ext
13564 cat >>conftest.
$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13567 /* Override any GCC internal prototype to avoid an error.
13568 Use char because int might match the return type of a GCC
13569 builtin and then its argument prototype would still apply. */
13573 char XawScrollbarSetThumb ();
13577 return XawScrollbarSetThumb ();
13582 rm -f conftest.
$ac_objext conftest
$ac_exeext
13583 if { (ac_try
="$ac_link"
13584 case "(($ac_try" in
13585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_link") 2>conftest.er1
13591 grep -v '^ *+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13606 { ac_try
='test -s conftest$ac_exeext'
13607 { (case "(($ac_try" in
13608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13628 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
13629 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
13630 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
13637 if test "${HAVE_XAW3D}" = "yes"; then
13639 cat >>confdefs.h <<\_ACEOF
13640 #define HAVE_XAW3D 1
13649 USE_TOOLKIT_SCROLL_BARS=no
13650 if test "${with_toolkit_scroll_bars}" != "no"; then
13651 if test "${USE_X_TOOLKIT}" != "none"; then
13652 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13653 cat >>confdefs.h <<\_ACEOF
13654 #define USE_TOOLKIT_SCROLL_BARS 1
13658 USE_TOOLKIT_SCROLL_BARS=yes
13659 elif test "${HAVE_XAW3D}" = "yes"; then
13660 cat >>confdefs.h <<\_ACEOF
13661 #define USE_TOOLKIT_SCROLL_BARS 1
13664 USE_TOOLKIT_SCROLL_BARS=yes
13666 elif test "${HAVE_GTK}" = "yes"; then
13667 cat >>confdefs.h <<\_ACEOF
13668 #define USE_TOOLKIT_SCROLL_BARS 1
13671 USE_TOOLKIT_SCROLL_BARS=yes
13672 elif test "${HAVE_CARBON}" = "yes"; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define USE_TOOLKIT_SCROLL_BARS 1
13677 USE_TOOLKIT_SCROLL_BARS=yes
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13688 #include <X11/Xlib.h>
13689 #include <X11/Xresource.h>
13698 rm -f conftest.$ac_objext
13699 if { (ac_try="$ac_compile"
13700 case "(($ac_try" in
13701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13702 *) ac_try_echo
=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
13707 grep -v '^ *+' conftest.er1
>conftest.err
13709 cat conftest.err
>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13713 { (case "(($ac_try" in
13714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_try") 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; } &&
13722 { ac_try='test -s conftest.$ac_objext'
13723 { (case "(($ac_try" in
13724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13725 *) ac_try_echo
=$ac_try;;
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_try") 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13734 cat >>confdefs.h
<<\_ACEOF
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.
$ac_ext >&5
13745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13748 if test "${with_xim}" != "no"; then
13750 cat >>confdefs.h
<<\_ACEOF
13757 if test "${HAVE_XIM}" != "no"; then
13758 late_CFLAGS
=$CFLAGS
13759 if test "$GCC" = yes; then
13760 CFLAGS
="$CFLAGS --pedantic-errors"
13762 cat >conftest.
$ac_ext <<_ACEOF
13765 cat confdefs.h
>>conftest.
$ac_ext
13766 cat >>conftest.
$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13769 #include <X11/Xlib.h>
13770 #include <X11/Xresource.h>
13779 XPointer *client_data;
13781 /* If we're not using GCC, it's probably not XFree86, and this is
13782 probably right, but we can't use something like --pedantic-errors. */
13783 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13784 char*, XIMProc, XPointer*);
13786 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13792 rm -f conftest.
$ac_objext
13793 if { (ac_try
="$ac_compile"
13794 case "(($ac_try" in
13795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_compile") 2>conftest.er1
13801 grep -v '^ *+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13807 { (case "(($ac_try" in
13808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13809 *) ac_try_echo
=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_try") 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try
='test -s conftest.$ac_objext'
13817 { (case "(($ac_try" in
13818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 emacs_cv_arg6_star=yes
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 if test "$emacs_cv_arg6_star" = yes; then
13837 cat >>confdefs.h <<\_ACEOF
13838 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13842 cat >>confdefs.h <<\_ACEOF
13843 #define XRegisterIMInstantiateCallback_arg6 XPointer
13847 CFLAGS=$late_CFLAGS
13850 ### Use -lXpm if available, unless `--with-xpm=no
'.
13852 if test "${HAVE_X11}" = "yes"; then
13853 if test "${with_xpm}" != "no"; then
13854 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13855 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13856 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13857 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13861 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13863 # Is the header compilable?
13864 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13865 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 $ac_includes_default
13873 #include <X11/xpm.h>
13875 rm -f conftest.$ac_objext
13876 if { (ac_try="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13884 grep -v '^
*+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
13890 { (case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_try") 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest.
$ac_objext'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_header_compiler=yes
13911 echo "$as_me: failed program was:" >&5
13912 sed 's
/^
/|
/' conftest.$ac_ext >&5
13914 ac_header_compiler=no
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919 echo "${ECHO_T}$ac_header_compiler" >&6; }
13921 # Is the header present?
13922 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13923 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <X11/xpm.h>
13932 if { (ac_try="$ac_cpp conftest.$ac_ext"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13940 grep -v '^
*+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null; then
13945 if test -s conftest.err; then
13946 ac_cpp_err=$ac_c_preproc_warn_flag
13947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13954 if test -z "$ac_cpp_err"; then
13955 ac_header_preproc=yes
13957 echo "$as_me: failed program was:" >&5
13958 sed 's
/^
/|
/' conftest.$ac_ext >&5
13960 ac_header_preproc=no
13963 rm -f conftest.err conftest.$ac_ext
13964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13965 echo "${ECHO_T}$ac_header_preproc" >&6; }
13967 # So? What about this header?
13968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13970 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13971 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13973 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13974 ac_header_preproc=yes
13977 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13978 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13980 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13982 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13984 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13986 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13988 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13992 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13993 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13994 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 ac_cv_header_X11_xpm_h=$ac_header_preproc
13999 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14000 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
14003 if test $ac_cv_header_X11_xpm_h = yes; then
14004 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14005 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
14006 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-lXpm -lX11 $LIBS"
14011 cat >conftest.$ac_ext <<_ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14024 char XpmReadFileToPixmap ();
14028 return XpmReadFileToPixmap ();
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (ac_try="$ac_link"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_link") 2>conftest.er1
14042 grep -v '^
*+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest
$ac_exeext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14069 echo "$as_me: failed program was:" >&5
14070 sed 's
/^
/|
/' conftest.$ac_ext >&5
14072 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14075 rm -f core conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077 LIBS=$ac_check_lib_save_LIBS
14079 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14080 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14081 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14088 if test "${HAVE_XPM}" = "yes"; then
14089 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14090 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include "X11/xpm.h"
14098 #ifndef XpmReturnAllocPixels
14099 no_return_alloc_pixels
14103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14104 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14112 if test "${HAVE_XPM}" = "yes"; then
14113 { echo "$as_me:$LINENO: result: yes" >&5
14114 echo "${ECHO_T}yes" >&6; }
14116 { echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6; }
14122 if test "${HAVE_XPM}" = "yes"; then
14124 cat >>confdefs.h <<\_ACEOF
14131 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14133 if test "${HAVE_X11}" = "yes"; then
14134 if test "${with_jpeg}" != "no"; then
14135 if test "${ac_cv_header_jerror_h+set}" = set; then
14136 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14137 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14138 if test "${ac_cv_header_jerror_h+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14142 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14144 # Is the header compilable?
14145 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
14146 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
14147 cat >conftest.
$ac_ext <<_ACEOF
14150 cat confdefs.h
>>conftest.
$ac_ext
14151 cat >>conftest.
$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 $ac_includes_default
14154 #include <jerror.h>
14156 rm -f conftest.
$ac_objext
14157 if { (ac_try
="$ac_compile"
14158 case "(($ac_try" in
14159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_compile") 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14173 *) ac_try_echo
=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
14190 ac_header_compiler=yes
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 ac_header_compiler=no
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14200 echo "${ECHO_T}$ac_header_compiler" >&6; }
14202 # Is the header present?
14203 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
14204 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 #include <jerror.h>
14213 if { (ac_try="$ac_cpp conftest.$ac_ext"
14214 case "(($ac_try" in
14215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14216 *) ac_try_echo
=$ac_try;;
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14221 grep -v '^ *+' conftest.er1
>conftest.err
14223 cat conftest.err
>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev
/null
; then
14226 if test -s conftest.err
; then
14227 ac_cpp_err
=$ac_c_preproc_warn_flag
14228 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14235 if test -z "$ac_cpp_err"; then
14236 ac_header_preproc
=yes
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.
$ac_ext >&5
14241 ac_header_preproc
=no
14244 rm -f conftest.err conftest.
$ac_ext
14245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14246 echo "${ECHO_T}$ac_header_preproc" >&6; }
14248 # So? What about this header?
14249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14251 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14252 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14254 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14255 ac_header_preproc
=yes
14258 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14259 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14261 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14263 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14265 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14267 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14269 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14273 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14274 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14275 if test "${ac_cv_header_jerror_h+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 ac_cv_header_jerror_h
=$ac_header_preproc
14280 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14281 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14284 if test $ac_cv_header_jerror_h = yes; then
14285 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14286 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
14287 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 ac_check_lib_save_LIBS
=$LIBS
14291 LIBS
="-ljpeg $LIBS"
14292 cat >conftest.
$ac_ext <<_ACEOF
14295 cat confdefs.h
>>conftest.
$ac_ext
14296 cat >>conftest.
$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14305 char jpeg_destroy_compress ();
14309 return jpeg_destroy_compress ();
14314 rm -f conftest.
$ac_objext conftest
$ac_exeext
14315 if { (ac_try
="$ac_link"
14316 case "(($ac_try" in
14317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_link") 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14331 *) ac_try_echo
=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try
='test -s conftest$ac_exeext'
14339 { (case "(($ac_try" in
14340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_try") 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LIBS=$ac_check_lib_save_LIBS
14360 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14361 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14362 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14372 if test "${HAVE_JPEG}" = "yes"; then
14373 cat >>confdefs.h <<\_ACEOF
14374 #define HAVE_JPEG 1
14377 cat >conftest.$ac_ext <<_ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 #include <jpeglib.h>
14384 version=JPEG_LIB_VERSION
14387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14388 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14389 cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_JPEG 1
14394 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14395 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14403 ### Use -lpng if available, unless `--with-png=no
'.
14405 if test "${HAVE_X11}" = "yes"; then
14406 if test "${with_png}" != "no"; then
14407 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14408 # in /usr/include/libpng.
14411 for ac_header in png.h libpng/png.h
14413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 ac_res=`eval echo '${'$as_ac_Header'}'`
14421 { echo "$as_me:$LINENO: result: $ac_res" >&5
14422 echo "${ECHO_T}$ac_res" >&6; }
14424 # Is the header compilable?
14425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14427 cat >conftest.$ac_ext <<_ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 $ac_includes_default
14434 #include <$ac_header>
14436 rm -f conftest.$ac_objext
14437 if { (ac_try="$ac_compile"
14438 case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_compile") 2>conftest.er1
14445 grep -v '^
*+' conftest.er1 >conftest.err
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } &&
14460 { ac_try='test -s conftest.
$ac_objext'
14461 { (case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_try") 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_header_compiler=yes
14472 echo "$as_me: failed program was:" >&5
14473 sed 's
/^
/|
/' conftest.$ac_ext >&5
14475 ac_header_compiler=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6; }
14482 # Is the header present?
14483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <$ac_header>
14493 if { (ac_try="$ac_cpp conftest.$ac_ext"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14501 grep -v '^
*+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } >/dev/null; then
14506 if test -s conftest.err; then
14507 ac_cpp_err=$ac_c_preproc_warn_flag
14508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14515 if test -z "$ac_cpp_err"; then
14516 ac_header_preproc=yes
14518 echo "$as_me: failed program was:" >&5
14519 sed 's
/^
/|
/' conftest.$ac_ext >&5
14521 ac_header_preproc=no
14524 rm -f conftest.err conftest.$ac_ext
14525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526 echo "${ECHO_T}$ac_header_preproc" >&6; }
14528 # So? What about this header?
14529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14534 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14535 ac_header_preproc=yes
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14547 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 eval "$as_ac_Header=\$ac_header_preproc"
14560 ac_res=`eval echo '${'$as_ac_Header'}'`
14561 { echo "$as_me:$LINENO: result: $ac_res" >&5
14562 echo "${ECHO_T}$ac_res" >&6; }
14565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566 cat >>confdefs.h <<_ACEOF
14567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14574 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14575 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14576 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14577 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 ac_check_lib_save_LIBS=$LIBS
14581 LIBS="-lpng -lz -lm $LIBS"
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14589 /* Override any GCC internal prototype to avoid an error.
14590 Use char because int might match the return type of a GCC
14591 builtin and then its argument prototype would still apply. */
14595 char png_get_channels ();
14599 return png_get_channels ();
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (ac_try="$ac_link"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14613 grep -v '^
*+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest
$ac_exeext'
14629 { (case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_lib_png_png_get_channels=yes
14640 echo "$as_me: failed program was:" >&5
14641 sed 's
/^
/|
/' conftest.$ac_ext >&5
14643 ac_cv_lib_png_png_get_channels=no
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14648 LIBS=$ac_check_lib_save_LIBS
14650 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14651 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14652 if test $ac_cv_lib_png_png_get_channels = yes; then
14659 if test "${HAVE_PNG}" = "yes"; then
14661 cat >>confdefs.h <<\_ACEOF
14668 ### Use -ltiff if available, unless `--with-tiff=no'.
14670 if test "${HAVE_X11}" = "yes"; then
14671 if test "${with_tiff}" != "no"; then
14672 if test "${ac_cv_header_tiffio_h+set}" = set; then
14673 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14674 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14675 if test "${ac_cv_header_tiffio_h+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14679 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14681 # Is the header compilable?
14682 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14683 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14684 cat >conftest.
$ac_ext <<_ACEOF
14687 cat confdefs.h
>>conftest.
$ac_ext
14688 cat >>conftest.
$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 $ac_includes_default
14691 #include <tiffio.h>
14693 rm -f conftest.
$ac_objext
14694 if { (ac_try
="$ac_compile"
14695 case "(($ac_try" in
14696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14710 *) ac_try_echo
=$ac_try;;
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try
='test -s conftest.$ac_objext'
14718 { (case "(($ac_try" in
14719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_header_compiler=yes
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_header_compiler=no
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737 echo "${ECHO_T}$ac_header_compiler" >&6; }
14739 # Is the header present?
14740 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14741 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <tiffio.h>
14750 if { (ac_try="$ac_cpp conftest.$ac_ext"
14751 case "(($ac_try" in
14752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14753 *) ac_try_echo
=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1
>conftest.err
14760 cat conftest.err
>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } >/dev
/null
; then
14763 if test -s conftest.err
; then
14764 ac_cpp_err
=$ac_c_preproc_warn_flag
14765 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14772 if test -z "$ac_cpp_err"; then
14773 ac_header_preproc
=yes
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.
$ac_ext >&5
14778 ac_header_preproc
=no
14781 rm -f conftest.err conftest.
$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6; }
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc
=yes
14795 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14810 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14811 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14812 if test "${ac_cv_header_tiffio_h+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 ac_cv_header_tiffio_h
=$ac_header_preproc
14817 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14818 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14821 if test $ac_cv_header_tiffio_h = yes; then
14823 # At least one tiff package requires the jpeg library.
14824 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14825 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14826 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14827 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 ac_check_lib_save_LIBS
=$LIBS
14831 LIBS
="-ltiff $tifflibs $LIBS"
14832 cat >conftest.
$ac_ext <<_ACEOF
14835 cat confdefs.h
>>conftest.
$ac_ext
14836 cat >>conftest.
$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14839 /* Override any GCC internal prototype to avoid an error.
14840 Use char because int might match the return type of a GCC
14841 builtin and then its argument prototype would still apply. */
14845 char TIFFGetVersion ();
14849 return TIFFGetVersion ();
14854 rm -f conftest.
$ac_objext conftest
$ac_exeext
14855 if { (ac_try
="$ac_link"
14856 case "(($ac_try" in
14857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_link") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14871 *) ac_try_echo
=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try
='test -s conftest$ac_exeext'
14879 { (case "(($ac_try" in
14880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_lib_tiff_TIFFGetVersion=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_lib_tiff_TIFFGetVersion=no
14896 rm -f core conftest.err conftest.$ac_objext \
14897 conftest$ac_exeext conftest.$ac_ext
14898 LIBS=$ac_check_lib_save_LIBS
14900 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14901 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14902 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14911 if test "${HAVE_TIFF}" = "yes"; then
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_TIFF 1
14920 ### Use -lgif if available, unless `--with-gif=no
'.
14922 if test "${HAVE_X11}" = "yes"; then
14923 if test "${with_gif}" != "no"; then
14924 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14925 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14926 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14927 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14931 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14933 # Is the header compilable?
14934 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14935 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 $ac_includes_default
14943 #include <gif_lib.h>
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14954 grep -v '^
*+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14960 { (case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_try") 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest.
$ac_objext'
14970 { (case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_try") 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
14979 ac_header_compiler=yes
14981 echo "$as_me: failed program was:" >&5
14982 sed 's
/^
/|
/' conftest.$ac_ext >&5
14984 ac_header_compiler=no
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14989 echo "${ECHO_T}$ac_header_compiler" >&6; }
14991 # Is the header present?
14992 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14993 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <gif_lib.h>
15002 if { (ac_try="$ac_cpp conftest.$ac_ext"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15010 grep -v '^
*+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } >/dev/null; then
15015 if test -s conftest.err; then
15016 ac_cpp_err=$ac_c_preproc_warn_flag
15017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15024 if test -z "$ac_cpp_err"; then
15025 ac_header_preproc=yes
15027 echo "$as_me: failed program was:" >&5
15028 sed 's
/^
/|
/' conftest.$ac_ext >&5
15030 ac_header_preproc=no
15033 rm -f conftest.err conftest.$ac_ext
15034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15035 echo "${ECHO_T}$ac_header_preproc" >&6; }
15037 # So? What about this header?
15038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15040 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15041 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15043 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15044 ac_header_preproc=yes
15047 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15048 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15050 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15052 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15054 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15056 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15058 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15062 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15063 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
15064 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 ac_cv_header_gif_lib_h=$ac_header_preproc
15069 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15070 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
15073 if test $ac_cv_header_gif_lib_h = yes; then
15074 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15075 # Earlier versions can crash Emacs.
15076 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15077 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
15078 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lungif $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15090 /* Override any GCC internal prototype to avoid an error.
15091 Use char because int might match the return type of a GCC
15092 builtin and then its argument prototype would still apply. */
15096 char EGifPutExtensionLast ();
15100 return EGifPutExtensionLast ();
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15114 grep -v '^
*+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest
$ac_exeext'
15130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15141 echo "$as_me: failed program was:" >&5
15142 sed 's
/^
/|
/' conftest.$ac_ext >&5
15144 ac_cv_lib_ungif_EGifPutExtensionLast=no
15147 rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
15149 LIBS=$ac_check_lib_save_LIBS
15151 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15152 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15153 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15162 if test "${HAVE_GIF}" = "yes"; then
15164 cat >>confdefs.h <<\_ACEOF
15171 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15172 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15173 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15174 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15178 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15180 # Is the header compilable?
15181 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15182 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 $ac_includes_default
15190 #include <malloc/malloc.h>
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_compile") 2>conftest.er1
15201 grep -v '^
*+' conftest.er1 >conftest.err
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; } &&
15216 { ac_try='test -s conftest.
$ac_objext'
15217 { (case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_try") 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_header_compiler=yes
15228 echo "$as_me: failed program was:" >&5
15229 sed 's
/^
/|
/' conftest.$ac_ext >&5
15231 ac_header_compiler=no
15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15236 echo "${ECHO_T}$ac_header_compiler" >&6; }
15238 # Is the header present?
15239 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15240 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 #include <malloc/malloc.h>
15249 if { (ac_try="$ac_cpp conftest.$ac_ext"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15257 grep -v '^
*+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } >/dev/null; then
15262 if test -s conftest.err; then
15263 ac_cpp_err=$ac_c_preproc_warn_flag
15264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15271 if test -z "$ac_cpp_err"; then
15272 ac_header_preproc=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's
/^
/|
/' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15287 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
15290 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
15291 ac_header_preproc=yes
15294 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
15303 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15309 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15310 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15311 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15316 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15317 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15320 if test $ac_cv_header_malloc_malloc_h = yes; then
15322 cat >>confdefs.h <<\_ACEOF
15323 #define HAVE_MALLOC_MALLOC_H 1
15330 ### Use Mac OS X Carbon API to implement GUI.
15331 if test "${HAVE_CARBON}" = "yes"; then
15333 cat >>confdefs.h <<\_ACEOF
15334 #define HAVE_CARBON 1
15337 ## Specify the install directory
15339 if test "${carbon_appdir_x}" != ""; then
15340 case ${carbon_appdir_x} in
15341 y | ye | yes) carbon_appdir=/Applications ;;
15342 * ) carbon_appdir=${carbon_appdir_x} ;;
15345 # We also have mouse menus.
15349 ### Use session management (-lSM -lICE) if available
15351 if test "${HAVE_X11}" = "yes"; then
15352 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15353 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15354 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15355 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15359 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15361 # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15363 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 $ac_includes_default
15371 #include <X11/SM/SMlib.h>
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15382 grep -v '^
*+' conftest.er1 >conftest.err
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.
$ac_objext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_header_compiler=yes
15409 echo "$as_me: failed program was:" >&5
15410 sed 's
/^
/|
/' conftest.$ac_ext >&5
15412 ac_header_compiler=no
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 echo "${ECHO_T}$ac_header_compiler" >&6; }
15419 # Is the header present?
15420 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15421 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <X11/SM/SMlib.h>
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15438 grep -v '^
*+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } >/dev/null; then
15443 if test -s conftest.err; then
15444 ac_cpp_err=$ac_c_preproc_warn_flag
15445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15452 if test -z "$ac_cpp_err"; then
15453 ac_header_preproc=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's
/^
/|
/' conftest.$ac_ext >&5
15458 ac_header_preproc=no
15461 rm -f conftest.err conftest.$ac_ext
15462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6; }
15465 # So? What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
15471 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
15472 ac_header_preproc=yes
15475 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
15484 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15490 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15491 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15492 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15497 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15498 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15501 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15502 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15503 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15504 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 ac_check_lib_save_LIBS=$LIBS
15508 LIBS="-lSM -lICE $LIBS"
15509 cat >conftest.$ac_ext <<_ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15516 /* Override any GCC internal prototype to avoid an error.
15517 Use char because int might match the return type of a GCC
15518 builtin and then its argument prototype would still apply. */
15522 char SmcOpenConnection ();
15526 return SmcOpenConnection ();
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (ac_try="$ac_link"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_link") 2>conftest.er1
15540 grep -v '^
*+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest
$ac_exeext'
15556 { (case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_try") 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_lib_SM_SmcOpenConnection=yes
15567 echo "$as_me: failed program was:" >&5
15568 sed 's
/^
/|
/' conftest.$ac_ext >&5
15570 ac_cv_lib_SM_SmcOpenConnection=no
15573 rm -f core conftest.err conftest.$ac_objext \
15574 conftest$ac_exeext conftest.$ac_ext
15575 LIBS=$ac_check_lib_save_LIBS
15577 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15578 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15579 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15587 if test "${HAVE_X_SM}" = "yes"; then
15589 cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_X_SM 1
15595 *) LIBS="-lSM -lICE $LIBS" ;;
15600 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
15601 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15602 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15603 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 cat >conftest.
$ac_ext <<_ACEOF
15609 cat confdefs.h
>>conftest.
$ac_ext
15610 cat >>conftest.
$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15621 rm -f conftest.
$ac_objext conftest
$ac_exeext
15622 if { (ac_try
="$ac_link"
15623 case "(($ac_try" in
15624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_link") 2>conftest.er1
15630 grep -v '^ *+' conftest.er1 >conftest.err
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15638 *) ac_try_echo
=$ac_try;;
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try
='test -s conftest$ac_exeext'
15646 { (case "(($ac_try" in
15647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15648 *) ac_try_echo=$ac_try;;
15650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651 (eval "$ac_try") 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 emacs_cv_netdb_declares_h_errno=yes
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 emacs_cv_netdb_declares_h_errno=no
15663 rm -f core conftest.err conftest.$ac_objext \
15664 conftest$ac_exeext conftest.$ac_ext
15666 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15667 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15668 if test $emacs_cv_netdb_declares_h_errno = yes; then
15670 cat >>confdefs.h <<\_ACEOF
15671 #define HAVE_H_ERRNO 1
15676 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15677 # for constant arguments. Useless!
15678 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15679 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15680 if test "${ac_cv_working_alloca_h+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 #include <alloca.h>
15693 char *p = (char *) alloca (2 * sizeof (int));
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15703 *) ac_try_echo
=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1
>conftest.err
15710 cat conftest.err
>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15714 { (case "(($ac_try" in
15715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_try") 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest$ac_exeext'
15724 { (case "(($ac_try" in
15725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15726 *) ac_try_echo
=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_try") 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733 ac_cv_working_alloca_h
=yes
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.
$ac_ext >&5
15738 ac_cv_working_alloca_h
=no
15741 rm -f core conftest.err conftest.
$ac_objext \
15742 conftest
$ac_exeext conftest.
$ac_ext
15744 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15746 if test $ac_cv_working_alloca_h = yes; then
15748 cat >>confdefs.h
<<\_ACEOF
15749 #define HAVE_ALLOCA_H 1
15754 { echo "$as_me:$LINENO: checking for alloca" >&5
15755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15756 if test "${ac_cv_func_alloca_works+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15759 cat >conftest.
$ac_ext <<_ACEOF
15762 cat confdefs.h
>>conftest.
$ac_ext
15763 cat >>conftest.
$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15766 # define alloca __builtin_alloca
15769 # include <malloc.h>
15770 # define alloca _alloca
15773 # include <alloca.h>
15778 # ifndef alloca /* predefined by HP cc +Olibcalls */
15789 char *p = (char *) alloca (1);
15795 rm -f conftest.
$ac_objext conftest
$ac_exeext
15796 if { (ac_try
="$ac_link"
15797 case "(($ac_try" in
15798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_link") 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15810 { (case "(($ac_try" in
15811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15812 *) ac_try_echo
=$ac_try;;
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_try") 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try
='test -s conftest$ac_exeext'
15820 { (case "(($ac_try" in
15821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_try") 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_cv_func_alloca_works=yes
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_cv_func_alloca_works=no
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15840 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15841 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15843 if test $ac_cv_func_alloca_works = yes; then
15845 cat >>confdefs.h <<\_ACEOF
15846 #define HAVE_ALLOCA 1
15850 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15851 # that cause trouble. Some versions do not even contain alloca or
15852 # contain a buggy version. If you still want to use their alloca,
15853 # use ar to extract alloca.o from them instead of compiling alloca.c.
15855 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15857 cat >>confdefs.h <<\_ACEOF
15862 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15863 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15864 if test "${ac_cv_os_cray+set}" = set; then
15865 echo $ECHO_N "(cached
) $ECHO_C" >&6
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #if defined CRAY && ! defined CRAY2
15880 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15881 $EGREP "webecray
" >/dev/null 2>&1; then
15889 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15890 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15891 if test $ac_cv_os_cray = yes; then
15892 for ac_func in _getb67 GETB67 getb67; do
15893 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15894 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15895 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15896 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15897 echo $ECHO_N "(cached
) $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15907 #define $ac_func innocuous_$ac_func
15909 /* System header to define __stub macros and hopefully few prototypes,
15910 which can conflict with char $ac_func (); below.
15911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15912 <limits.h> exists even on freestanding compilers. */
15915 # include <limits.h>
15917 # include <assert.h>
15922 /* Override any GCC internal prototype to avoid an error.
15923 Use char because int might match the return type of a GCC
15924 builtin and then its argument prototype would still apply. */
15929 /* The GNU C library defines this for functions which it implements
15930 to always fail with ENOSYS. Some functions are actually named
15931 something starting with __ and the normal name is an alias. */
15932 #if defined __stub_$ac_func || defined __stub___$ac_func
15939 return $ac_func ();
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest$ac_exeext'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 eval "$as_ac_var=yes"
15980 echo "$as_me: failed program was
:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 eval "$as_ac_var=no
"
15986 rm -f core conftest.err conftest.$ac_objext \
15987 conftest$ac_exeext conftest.$ac_ext
15989 ac_res=`eval echo '${'$as_ac_var'}'`
15990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992 if test `eval echo '${'$as_ac_var'}'` = yes; then
15994 cat >>confdefs.h <<_ACEOF
15995 #define CRAY_STACKSEG_END $ac_func
16004 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16005 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
16006 if test "${ac_cv_c_stack_direction+set}" = set; then
16007 echo $ECHO_N "(cached
) $ECHO_C" >&6
16009 if test "$cross_compiling" = yes; then
16010 ac_cv_c_stack_direction=0
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16020 find_stack_direction ()
16022 static char *addr = 0;
16027 return find_stack_direction ();
16030 return (&dummy > addr) ? 1 : -1;
16036 return find_stack_direction () < 0;
16039 rm -f conftest$ac_exeext
16040 if { (ac_try="$ac_link"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_link") 2>&5
16048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16050 { (case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_try") 2>&5
16057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_cv_c_stack_direction=1
16061 echo "$as_me: program exited with status
$ac_status" >&5
16062 echo "$as_me: failed program was
:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 ( exit $ac_status )
16066 ac_cv_c_stack_direction=-1
16068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16074 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16076 cat >>confdefs.h <<_ACEOF
16077 #define STACK_DIRECTION $ac_cv_c_stack_direction
16084 # fmod, logb, and frexp are found in -lm on most systems.
16085 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16087 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16088 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
16089 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16090 echo $ECHO_N "(cached
) $ECHO_C" >&6
16092 ac_check_lib_save_LIBS=$LIBS
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16101 /* Override any GCC internal prototype to avoid an error.
16102 Use char because int might match the return type of a GCC
16103 builtin and then its argument prototype would still apply. */
16116 rm -f conftest.$ac_objext conftest$ac_exeext
16117 if { (ac_try="$ac_link"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_link") 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16131 { (case "(($ac_try" in
16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_try") 2>&5
16138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest$ac_exeext'
16141 { (case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_try") 2>&5
16148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_cv_lib_m_sqrt=yes
16152 echo "$as_me: failed program was
:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_cv_lib_m_sqrt=no
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16162 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16163 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
16164 if test $ac_cv_lib_m_sqrt = yes; then
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_LIBM 1
16174 # Check for mail-locking functions in a "mail" library. Probably this should
16175 # have the same check as for liblockfile below.
16177 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16178 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
16179 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16180 echo $ECHO_N "(cached
) $ECHO_C" >&6
16182 ac_check_lib_save_LIBS=$LIBS
16183 LIBS="-lmail $LIBS"
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16191 /* Override any GCC internal prototype to avoid an error.
16192 Use char because int might match the return type of a GCC
16193 builtin and then its argument prototype would still apply. */
16201 return maillock ();
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (ac_try="$ac_link"
16208 case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_link") 2>conftest.er1
16215 grep -v '^ *+' conftest.er1 >conftest.err
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16221 { (case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_try") 2>&5
16228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest$ac_exeext'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_lib_mail_maillock=yes
16242 echo "$as_me: failed program was
:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ac_cv_lib_mail_maillock=no
16248 rm -f core conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 LIBS=$ac_check_lib_save_LIBS
16252 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16253 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
16254 if test $ac_cv_lib_mail_maillock = yes; then
16255 cat >>confdefs.h <<_ACEOF
16256 #define HAVE_LIBMAIL 1
16259 LIBS="-lmail $LIBS"
16264 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16265 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
16266 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16267 echo $ECHO_N "(cached
) $ECHO_C" >&6
16269 ac_check_lib_save_LIBS=$LIBS
16270 LIBS="-llockfile $LIBS"
16271 cat >conftest.$ac_ext <<_ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16278 /* Override any GCC internal prototype to avoid an error.
16279 Use char because int might match the return type of a GCC
16280 builtin and then its argument prototype would still apply. */
16288 return maillock ();
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_link") 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest$ac_exeext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_lib_lockfile_maillock=yes
16329 echo "$as_me: failed program was
:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ac_cv_lib_lockfile_maillock=no
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 LIBS=$ac_check_lib_save_LIBS
16339 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16340 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16341 if test $ac_cv_lib_lockfile_maillock = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343 #define HAVE_LIBLOCKFILE 1
16346 LIBS="-llockfile $LIBS"
16350 # If we have the shared liblockfile, assume we must use it for mail
16351 # locking (e.g. Debian). If we couldn't link against liblockfile
16352 # (no liblockfile.a installed), ensure that we don't need to.
16353 if test "$ac_cv_lib_lockfile_maillock" = no; then
16354 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16355 set dummy liblockfile.so; ac_word=$2
16356 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
16357 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
16358 if test "${ac_cv_prog_liblockfile+set}" = set; then
16359 echo $ECHO_N "(cached
) $ECHO_C" >&6
16361 if test -n "$liblockfile"; then
16362 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16365 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16366 for as_dir in $as_dummy
16369 test -z "$as_dir" && as_dir=.
16370 for ac_exec_ext in '' $ac_executable_extensions; do
16371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16372 ac_cv_prog_liblockfile="yes"
16373 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16380 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16383 liblockfile=$ac_cv_prog_liblockfile
16384 if test -n "$liblockfile"; then
16385 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
16386 echo "${ECHO_T}$liblockfile" >&6; }
16388 { echo "$as_me:$LINENO: result
: no
" >&5
16389 echo "${ECHO_T}no
" >&6; }
16393 if test $ac_cv_prog_liblockfile = yes; then
16394 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16395 This probably means that movemail could lose mail.
16396 There may be a \`development' package to
install containing liblockfile.
" >&5
16397 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16398 This probably means that movemail could lose mail.
16399 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16400 { (exit 1); exit 1; }; }
16405 for ac_func in touchlock
16407 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16408 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16409 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16410 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16411 echo $ECHO_N "(cached
) $ECHO_C" >&6
16413 cat >conftest.$ac_ext <<_ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16421 #define $ac_func innocuous_$ac_func
16423 /* System header to define __stub macros and hopefully few prototypes,
16424 which can conflict with char $ac_func (); below.
16425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16426 <limits.h> exists even on freestanding compilers. */
16429 # include <limits.h>
16431 # include <assert.h>
16436 /* Override any GCC internal prototype to avoid an error.
16437 Use char because int might match the return type of a GCC
16438 builtin and then its argument prototype would still apply. */
16443 /* The GNU C library defines this for functions which it implements
16444 to always fail with ENOSYS. Some functions are actually named
16445 something starting with __ and the normal name is an alias. */
16446 #if defined __stub_$ac_func || defined __stub___$ac_func
16453 return $ac_func ();
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (ac_try="$ac_link"
16460 case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_link") 2>conftest.er1
16467 grep -v '^ *+' conftest.er1 >conftest.err
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
16480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16481 (exit $ac_status); }; } &&
16482 { ac_try='test -s conftest$ac_exeext'
16483 { (case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_try") 2>&5
16490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 eval "$as_ac_var=yes"
16494 echo "$as_me: failed program was
:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 eval "$as_ac_var=no
"
16500 rm -f core conftest.err conftest.$ac_objext \
16501 conftest$ac_exeext conftest.$ac_ext
16503 ac_res=`eval echo '${'$as_ac_var'}'`
16504 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16506 if test `eval echo '${'$as_ac_var'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16515 for ac_header in maillock.h
16517 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16519 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16520 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16522 echo $ECHO_N "(cached
) $ECHO_C" >&6
16524 ac_res=`eval echo '${'$as_ac_Header'}'`
16525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16526 echo "${ECHO_T}$ac_res" >&6; }
16528 # Is the header compilable?
16529 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16530 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16531 cat >conftest.$ac_ext <<_ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 $ac_includes_default
16538 #include <$ac_header>
16540 rm -f conftest.$ac_objext
16541 if { (ac_try="$ac_compile"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_compile") 2>conftest.er1
16549 grep -v '^ *+' conftest.er1 >conftest.err
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16555 { (case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_try") 2>&5
16562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try='test -s conftest.$ac_objext'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
16572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_header_compiler=yes
16576 echo "$as_me: failed program was
:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ac_header_compiler=no
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16584 echo "${ECHO_T}$ac_header_compiler" >&6; }
16586 # Is the header present?
16587 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16588 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16589 cat >conftest.$ac_ext <<_ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 #include <$ac_header>
16597 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16598 case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16605 grep -v '^ *+' conftest.er1 >conftest.err
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16609 (exit $ac_status); } >/dev/null; then
16610 if test -s conftest.err; then
16611 ac_cpp_err=$ac_c_preproc_warn_flag
16612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16619 if test -z "$ac_cpp_err"; then
16620 ac_header_preproc=yes
16622 echo "$as_me: failed program was
:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ac_header_preproc=no
16628 rm -f conftest.err conftest.$ac_ext
16629 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16630 echo "${ECHO_T}$ac_header_preproc" >&6; }
16632 # So? What about this header?
16633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16635 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16636 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16637 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16639 ac_header_preproc=yes
16642 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16643 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16644 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16645 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16646 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16647 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16648 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16649 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16650 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16652 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16653 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16657 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16658 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16659 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16660 echo $ECHO_N "(cached
) $ECHO_C" >&6
16662 eval "$as_ac_Header=\
$ac_header_preproc"
16664 ac_res=`eval echo '${'$as_ac_Header'}'`
16665 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16666 echo "${ECHO_T}$ac_res" >&6; }
16669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16670 cat >>confdefs.h <<_ACEOF
16671 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16748 for ac_func in gethostname getdomainname dup2 \
16749 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16750 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
16751 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16752 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16753 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16754 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16755 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16756 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16758 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16759 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16760 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16761 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16762 echo $ECHO_N "(cached
) $ECHO_C" >&6
16764 cat >conftest.$ac_ext <<_ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16772 #define $ac_func innocuous_$ac_func
16774 /* System header to define __stub macros and hopefully few prototypes,
16775 which can conflict with char $ac_func (); below.
16776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16777 <limits.h> exists even on freestanding compilers. */
16780 # include <limits.h>
16782 # include <assert.h>
16787 /* Override any GCC internal prototype to avoid an error.
16788 Use char because int might match the return type of a GCC
16789 builtin and then its argument prototype would still apply. */
16794 /* The GNU C library defines this for functions which it implements
16795 to always fail with ENOSYS. Some functions are actually named
16796 something starting with __ and the normal name is an alias. */
16797 #if defined __stub_$ac_func || defined __stub___$ac_func
16804 return $ac_func ();
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_var=yes"
16845 echo "$as_me: failed program was
:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 eval "$as_ac_var=no
"
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16854 ac_res=`eval echo '${'$as_ac_var'}'`
16855 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 if test `eval echo '${'$as_ac_var'}'` = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16867 for ac_header in sys/un.h
16869 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16870 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16871 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16872 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16873 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16874 echo $ECHO_N "(cached
) $ECHO_C" >&6
16876 ac_res=`eval echo '${'$as_ac_Header'}'`
16877 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16878 echo "${ECHO_T}$ac_res" >&6; }
16880 # Is the header compilable?
16881 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16882 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16883 cat >conftest.$ac_ext <<_ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 $ac_includes_default
16890 #include <$ac_header>
16892 rm -f conftest.$ac_objext
16893 if { (ac_try="$ac_compile"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_compile") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest.$ac_objext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_header_compiler=yes
16928 echo "$as_me: failed program was
:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 ac_header_compiler=no
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16936 echo "${ECHO_T}$ac_header_compiler" >&6; }
16938 # Is the header present?
16939 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16940 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 #include <$ac_header>
16949 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16961 (exit $ac_status); } >/dev/null; then
16962 if test -s conftest.err; then
16963 ac_cpp_err=$ac_c_preproc_warn_flag
16964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16971 if test -z "$ac_cpp_err"; then
16972 ac_header_preproc=yes
16974 echo "$as_me: failed program was
:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16977 ac_header_preproc=no
16980 rm -f conftest.err conftest.$ac_ext
16981 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16982 echo "${ECHO_T}$ac_header_preproc" >&6; }
16984 # So? What about this header?
16985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16987 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16988 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16989 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16991 ac_header_preproc=yes
16994 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16995 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16996 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16997 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16998 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16999 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17000 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17001 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17002 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17004 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17005 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17009 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17010 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17012 echo $ECHO_N "(cached
) $ECHO_C" >&6
17014 eval "$as_ac_Header=\
$ac_header_preproc"
17016 ac_res=`eval echo '${'$as_ac_Header'}'`
17017 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17018 echo "${ECHO_T}$ac_res" >&6; }
17021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17022 cat >>confdefs.h <<_ACEOF
17023 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17034 for ac_header in stdlib.h sys/time.h unistd.h
17036 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17037 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17038 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17039 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17040 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17041 echo $ECHO_N "(cached
) $ECHO_C" >&6
17043 ac_res=`eval echo '${'$as_ac_Header'}'`
17044 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17045 echo "${ECHO_T}$ac_res" >&6; }
17047 # Is the header compilable?
17048 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17049 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 $ac_includes_default
17057 #include <$ac_header>
17059 rm -f conftest.$ac_objext
17060 if { (ac_try="$ac_compile"
17061 case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_compile") 2>conftest.er1
17068 grep -v '^ *+' conftest.er1 >conftest.err
17070 cat conftest.err >&5
17071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17074 { (case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest.$ac_objext'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 ac_header_compiler=yes
17095 echo "$as_me: failed program was
:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 ac_header_compiler=no
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17103 echo "${ECHO_T}$ac_header_compiler" >&6; }
17105 # Is the header present?
17106 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17107 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17108 cat >conftest.$ac_ext <<_ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 #include <$ac_header>
17116 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17124 grep -v '^ *+' conftest.er1 >conftest.err
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17128 (exit $ac_status); } >/dev/null; then
17129 if test -s conftest.err; then
17130 ac_cpp_err=$ac_c_preproc_warn_flag
17131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17138 if test -z "$ac_cpp_err"; then
17139 ac_header_preproc=yes
17141 echo "$as_me: failed program was
:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_header_preproc=no
17147 rm -f conftest.err conftest.$ac_ext
17148 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17149 echo "${ECHO_T}$ac_header_preproc" >&6; }
17151 # So? What about this header?
17152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17154 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17155 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17156 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17158 ac_header_preproc=yes
17161 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17162 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17163 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17164 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17165 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17166 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17167 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17168 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17169 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17171 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17172 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17176 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17177 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17178 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17179 echo $ECHO_N "(cached
) $ECHO_C" >&6
17181 eval "$as_ac_Header=\
$ac_header_preproc"
17183 ac_res=`eval echo '${'$as_ac_Header'}'`
17184 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17185 echo "${ECHO_T}$ac_res" >&6; }
17188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17189 cat >>confdefs.h <<_ACEOF
17190 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17198 for ac_func in alarm
17200 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17201 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17202 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17203 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17204 echo $ECHO_N "(cached
) $ECHO_C" >&6
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17214 #define $ac_func innocuous_$ac_func
17216 /* System header to define __stub macros and hopefully few prototypes,
17217 which can conflict with char $ac_func (); below.
17218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219 <limits.h> exists even on freestanding compilers. */
17222 # include <limits.h>
17224 # include <assert.h>
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17236 /* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
17239 #if defined __stub_$ac_func || defined __stub___$ac_func
17246 return $ac_func ();
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_link") 2>conftest.er1
17260 grep -v '^ *+' conftest.er1 >conftest.err
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 eval "$as_ac_var=yes"
17287 echo "$as_me: failed program was
:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17290 eval "$as_ac_var=no
"
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17296 ac_res=`eval echo '${'$as_ac_var'}'`
17297 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17298 echo "${ECHO_T}$ac_res" >&6; }
17299 if test `eval echo '${'$as_ac_var'}'` = yes; then
17300 cat >>confdefs.h <<_ACEOF
17301 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17307 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
17308 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
17309 if test "${ac_cv_func_working_mktime+set}" = set; then
17310 echo $ECHO_N "(cached
) $ECHO_C" >&6
17312 if test "$cross_compiling" = yes; then
17313 ac_cv_func_working_mktime=no
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 /* Test program from Paul Eggert and Tony Leneis. */
17322 #if TIME_WITH_SYS_TIME
17323 # include <sys/time.h>
17326 # if HAVE_SYS_TIME_H
17327 # include <sys/time.h>
17334 # include <stdlib.h>
17338 # include <unistd.h>
17342 # define alarm(X) /* empty */
17345 /* Work around redefinition to rpl_putenv by other config tests. */
17348 static time_t time_t_max;
17349 static time_t time_t_min;
17351 /* Values we'll use to set the TZ environment variable. */
17352 static char *tz_strings[] = {
17353 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17354 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17356 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17358 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17359 Based on a problem report from Andreas Jaeger. */
17361 spring_forward_gap ()
17363 /* glibc (up to about 1998-10-07) failed this test. */
17366 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17367 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17368 on systems that don't support the Olson extension, or don't have the
17369 full zoneinfo tables installed. */
17370 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17379 return mktime (&tm) != (time_t) -1;
17387 return ! (lt = localtime (&now)) || mktime (lt) == now;
17394 return (mktime_test1 (now)
17395 && mktime_test1 ((time_t) (time_t_max - now))
17396 && mktime_test1 ((time_t) (time_t_min + now)));
17402 /* Based on code from Ariel Faigon. */
17412 return tm.tm_mon == 2 && tm.tm_mday == 31;
17421 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17422 now = mktime (&tm);
17423 if (now != (time_t) -1)
17425 struct tm *lt = localtime (&now);
17427 && lt->tm_year == tm.tm_year
17428 && lt->tm_mon == tm.tm_mon
17429 && lt->tm_mday == tm.tm_mday
17430 && lt->tm_hour == tm.tm_hour
17431 && lt->tm_min == tm.tm_min
17432 && lt->tm_sec == tm.tm_sec
17433 && lt->tm_yday == tm.tm_yday
17434 && lt->tm_wday == tm.tm_wday
17435 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17436 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17448 /* This test makes some buggy mktime implementations loop.
17449 Give up after 60 seconds; a mktime slower than that
17450 isn't worth using anyway. */
17453 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17456 if ((time_t) -1 < 0)
17457 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17459 delta = time_t_max / 997; /* a suitable prime number */
17460 for (i = 0; i < N_STRINGS; i++)
17463 putenv (tz_strings[i]);
17465 for (t = 0; t <= time_t_max - delta; t += delta)
17466 if (! mktime_test (t))
17468 if (! (mktime_test ((time_t) 1)
17469 && mktime_test ((time_t) (60 * 60))
17470 && mktime_test ((time_t) (60 * 60 * 24))))
17473 for (j = 1; 0 < j; j *= 2)
17474 if (! bigtime_test (j))
17476 if (! bigtime_test (j - 1))
17479 return ! (irix_6_4_bug () && spring_forward_gap ());
17482 rm -f conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>&5
17491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17493 { (case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_try") 2>&5
17500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_func_working_mktime=yes
17504 echo "$as_me: program exited with status
$ac_status" >&5
17505 echo "$as_me: failed program was
:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ( exit $ac_status )
17509 ac_cv_func_working_mktime=no
17511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17516 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17517 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17518 if test $ac_cv_func_working_mktime = no; then
17519 case " $LIBOBJS " in
17520 *" mktime.
$ac_objext "* ) ;;
17521 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17527 if test "$ac_cv_func_working_mktime" = no; then
17529 cat >>confdefs.h <<\_ACEOF
17530 #define BROKEN_MKTIME 1
17535 ac_have_func=no # yes means we've found a way to get the load average.
17537 # Make sure getloadavg.c is where it belongs, at configure-time.
17538 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17539 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17540 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17541 { (exit 1); exit 1; }; }
17545 # Check for getloadavg, but be sure not to touch the cache variable.
17546 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17547 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17548 if test "${ac_cv_func_getloadavg+set}" = set; then
17549 echo $ECHO_N "(cached
) $ECHO_C" >&6
17551 cat >conftest.$ac_ext <<_ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17559 #define getloadavg innocuous_getloadavg
17561 /* System header to define __stub macros and hopefully few prototypes,
17562 which can conflict with char getloadavg (); below.
17563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17564 <limits.h> exists even on freestanding compilers. */
17567 # include <limits.h>
17569 # include <assert.h>
17574 /* Override any GCC internal prototype to avoid an error.
17575 Use char because int might match the return type of a GCC
17576 builtin and then its argument prototype would still apply. */
17580 char getloadavg ();
17581 /* The GNU C library defines this for functions which it implements
17582 to always fail with ENOSYS. Some functions are actually named
17583 something starting with __ and the normal name is an alias. */
17584 #if defined __stub_getloadavg || defined __stub___getloadavg
17591 return getloadavg ();
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_link") 2>conftest.er1
17605 grep -v '^ *+' conftest.er1 >conftest.err
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest$ac_exeext'
17621 { (case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_try") 2>&5
17628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_func_getloadavg=yes
17632 echo "$as_me: failed program was
:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17635 ac_cv_func_getloadavg=no
17638 rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17641 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17642 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17643 if test $ac_cv_func_getloadavg = yes; then
17648 ) && ac_have_func=yes
17650 # On HPUX9, an unprivileged user can get load averages through this function.
17652 for ac_func in pstat_getdynamic
17654 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17655 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17656 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17657 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached
) $ECHO_C" >&6
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17668 #define $ac_func innocuous_$ac_func
17670 /* System header to define __stub macros and hopefully few prototypes,
17671 which can conflict with char $ac_func (); below.
17672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17673 <limits.h> exists even on freestanding compilers. */
17676 # include <limits.h>
17678 # include <assert.h>
17683 /* Override any GCC internal prototype to avoid an error.
17684 Use char because int might match the return type of a GCC
17685 builtin and then its argument prototype would still apply. */
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined __stub_$ac_func || defined __stub___$ac_func
17700 return $ac_func ();
17705 rm -f conftest.$ac_objext conftest$ac_exeext
17706 if { (ac_try="$ac_link"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_link") 2>conftest.er1
17714 grep -v '^ *+' conftest.er1 >conftest.err
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try='test -s conftest$ac_exeext'
17730 { (case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_try") 2>&5
17737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 eval "$as_ac_var=yes"
17741 echo "$as_me: failed program was
:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 eval "$as_ac_var=no
"
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17750 ac_res=`eval echo '${'$as_ac_var'}'`
17751 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17752 echo "${ECHO_T}$ac_res" >&6; }
17753 if test `eval echo '${'$as_ac_var'}'` = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17762 # Solaris has libkstat which does not require root.
17764 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17765 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17766 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17767 echo $ECHO_N "(cached
) $ECHO_C" >&6
17769 ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-lkstat $LIBS"
17771 cat >conftest.$ac_ext <<_ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17778 /* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17784 char kstat_open ();
17788 return kstat_open ();
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (ac_try="$ac_link"
17795 case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_link") 2>conftest.er1
17802 grep -v '^ *+' conftest.er1 >conftest.err
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17808 { (case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_try") 2>&5
17815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest$ac_exeext'
17818 { (case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_try") 2>&5
17825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_cv_lib_kstat_kstat_open=yes
17829 echo "$as_me: failed program was
:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_cv_lib_kstat_kstat_open=no
17835 rm -f core conftest.err conftest.$ac_objext \
17836 conftest$ac_exeext conftest.$ac_ext
17837 LIBS=$ac_check_lib_save_LIBS
17839 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17840 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17841 if test $ac_cv_lib_kstat_kstat_open = yes; then
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_LIBKSTAT 1
17846 LIBS="-lkstat $LIBS"
17850 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17852 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17853 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17854 # to get the right answer into the cache.
17855 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17856 if test $ac_have_func = no; then
17857 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17858 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17859 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17860 echo $ECHO_N "(cached
) $ECHO_C" >&6
17862 ac_check_lib_save_LIBS=$LIBS
17864 cat >conftest.$ac_ext <<_ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17881 return elf_begin ();
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (ac_try="$ac_link"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_link") 2>conftest.er1
17895 grep -v '^ *+' conftest.er1 >conftest.err
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest$ac_exeext'
17911 { (case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_try") 2>&5
17918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_lib_elf_elf_begin=yes
17922 echo "$as_me: failed program was
:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 ac_cv_lib_elf_elf_begin=no
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930 LIBS=$ac_check_lib_save_LIBS
17932 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17933 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17934 if test $ac_cv_lib_elf_elf_begin = yes; then
17939 if test $ac_have_func = no; then
17940 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17941 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17942 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17943 echo $ECHO_N "(cached
) $ECHO_C" >&6
17945 ac_check_lib_save_LIBS=$LIBS
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17964 return kvm_open ();
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (ac_try="$ac_link"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_link") 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984 { (case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_try") 2>&5
17991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest$ac_exeext'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_cv_lib_kvm_kvm_open=yes
18005 echo "$as_me: failed program was
:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 ac_cv_lib_kvm_kvm_open=no
18011 rm -f core conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18013 LIBS=$ac_check_lib_save_LIBS
18015 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18016 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
18017 if test $ac_cv_lib_kvm_kvm_open = yes; then
18021 # Check for the 4.4BSD definition of getloadavg.
18022 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18023 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
18024 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18025 echo $ECHO_N "(cached
) $ECHO_C" >&6
18027 ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lutil $LIBS"
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18042 char getloadavg ();
18046 return getloadavg ();
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_cv_lib_util_getloadavg=yes
18087 echo "$as_me: failed program was
:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_cv_lib_util_getloadavg=no
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18097 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18098 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
18099 if test $ac_cv_lib_util_getloadavg = yes; then
18100 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18105 if test $ac_have_func = no; then
18106 # There is a commonly available library for RS/6000 AIX.
18107 # Since it is not a standard part of AIX, it might be installed locally.
18108 ac_getloadavg_LIBS=$LIBS
18109 LIBS="-L/usr
/local
/lib
$LIBS"
18110 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18111 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
18112 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18113 echo $ECHO_N "(cached
) $ECHO_C" >&6
18115 ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lgetloadavg $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18130 char getloadavg ();
18134 return getloadavg ();
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18148 grep -v '^ *+' conftest.er1 >conftest.err
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 ac_cv_lib_getloadavg_getloadavg=yes
18175 echo "$as_me: failed program was
:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 ac_cv_lib_getloadavg_getloadavg=no
18181 rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18183 LIBS=$ac_check_lib_save_LIBS
18185 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18186 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
18187 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18188 LIBS="-lgetloadavg $LIBS"
18190 LIBS=$ac_getloadavg_LIBS
18195 # Make sure it is really in the library, if we think we found it,
18196 # otherwise set up the replacement function.
18198 for ac_func in getloadavg
18200 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18201 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18202 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18203 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18204 echo $ECHO_N "(cached
) $ECHO_C" >&6
18206 cat >conftest.$ac_ext <<_ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18214 #define $ac_func innocuous_$ac_func
18216 /* System header to define __stub macros and hopefully few prototypes,
18217 which can conflict with char $ac_func (); below.
18218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18219 <limits.h> exists even on freestanding compilers. */
18222 # include <limits.h>
18224 # include <assert.h>
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18236 /* The GNU C library defines this for functions which it implements
18237 to always fail with ENOSYS. Some functions are actually named
18238 something starting with __ and the normal name is an alias. */
18239 #if defined __stub_$ac_func || defined __stub___$ac_func
18246 return $ac_func ();
18251 rm -f conftest.$ac_objext conftest$ac_exeext
18252 if { (ac_try="$ac_link"
18253 case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_link") 2>conftest.er1
18260 grep -v '^ *+' conftest.er1 >conftest.err
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18264 (exit $ac_status); } &&
18265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18266 { (case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_try") 2>&5
18273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18284 (exit $ac_status); }; }; then
18285 eval "$as_ac_var=yes"
18287 echo "$as_me: failed program was
:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 eval "$as_ac_var=no
"
18293 rm -f core conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18296 ac_res=`eval echo '${'$as_ac_var'}'`
18297 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18298 echo "${ECHO_T}$ac_res" >&6; }
18299 if test `eval echo '${'$as_ac_var'}'` = yes; then
18300 cat >>confdefs.h <<_ACEOF
18301 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18305 case " $LIBOBJS " in
18306 *" getloadavg.
$ac_objext "* ) ;;
18307 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18312 cat >>confdefs.h <<\_ACEOF
18313 #define C_GETLOADAVG 1
18316 # Figure out what our getloadavg.c needs.
18318 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18319 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18320 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
18321 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18322 echo $ECHO_N "(cached
) $ECHO_C" >&6
18324 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18325 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18327 # Is the header compilable?
18328 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18329 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336 $ac_includes_default
18337 #include <sys/dg_sys_info.h>
18339 rm -f conftest.$ac_objext
18340 if { (ac_try="$ac_compile"
18341 case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_compile") 2>conftest.er1
18348 grep -v '^ *+' conftest.er1 >conftest.err
18350 cat conftest.err >&5
18351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18352 (exit $ac_status); } &&
18353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try='test -s conftest.$ac_objext'
18364 { (case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_try") 2>&5
18371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_header_compiler=yes
18375 echo "$as_me: failed program was
:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18378 ac_header_compiler=no
18381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18383 echo "${ECHO_T}$ac_header_compiler" >&6; }
18385 # Is the header present?
18386 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18387 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
18388 cat >conftest.$ac_ext <<_ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18394 #include <sys/dg_sys_info.h>
18396 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18397 case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18404 grep -v '^ *+' conftest.er1 >conftest.err
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18408 (exit $ac_status); } >/dev/null; then
18409 if test -s conftest.err; then
18410 ac_cpp_err=$ac_c_preproc_warn_flag
18411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18418 if test -z "$ac_cpp_err"; then
18419 ac_header_preproc=yes
18421 echo "$as_me: failed program was
:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 ac_header_preproc=no
18427 rm -f conftest.err conftest.$ac_ext
18428 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18429 echo "${ECHO_T}$ac_header_preproc" >&6; }
18431 # So? What about this header?
18432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18434 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18435 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18436 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18437 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18438 ac_header_preproc=yes
18441 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18442 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18443 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18444 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18445 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18446 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18447 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18448 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18449 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18450 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18451 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18452 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18456 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18457 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
18458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18459 echo $ECHO_N "(cached
) $ECHO_C" >&6
18461 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18463 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18464 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18467 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18470 cat >>confdefs.h <<\_ACEOF
18475 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18476 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
18477 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18478 echo $ECHO_N "(cached
) $ECHO_C" >&6
18480 ac_check_lib_save_LIBS=$LIBS
18482 cat >conftest.$ac_ext <<_ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18495 char dg_sys_info ();
18499 return dg_sys_info ();
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (ac_try="$ac_link"
18506 case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_link") 2>conftest.er1
18513 grep -v '^ *+' conftest.er1 >conftest.err
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18517 (exit $ac_status); } &&
18518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_cv_lib_dgc_dg_sys_info=yes
18540 echo "$as_me: failed program was
:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_cv_lib_dgc_dg_sys_info=no
18546 rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18550 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18551 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18552 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18553 cat >>confdefs.h <<_ACEOF
18554 #define HAVE_LIBDGC 1
18565 if test "${ac_cv_header_locale_h+set}" = set; then
18566 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18567 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18568 if test "${ac_cv_header_locale_h+set}" = set; then
18569 echo $ECHO_N "(cached
) $ECHO_C" >&6
18571 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18572 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18574 # Is the header compilable?
18575 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18576 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 $ac_includes_default
18584 #include <locale.h>
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_compile") 2>conftest.er1
18595 grep -v '^ *+' conftest.er1 >conftest.err
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest.$ac_objext'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 ac_header_compiler=yes
18622 echo "$as_me: failed program was
:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18625 ac_header_compiler=no
18628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18630 echo "${ECHO_T}$ac_header_compiler" >&6; }
18632 # Is the header present?
18633 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18634 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18635 cat >conftest.$ac_ext <<_ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 #include <locale.h>
18643 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18651 grep -v '^ *+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18655 (exit $ac_status); } >/dev/null; then
18656 if test -s conftest.err; then
18657 ac_cpp_err=$ac_c_preproc_warn_flag
18658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18665 if test -z "$ac_cpp_err"; then
18666 ac_header_preproc=yes
18668 echo "$as_me: failed program was
:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ac_header_preproc=no
18674 rm -f conftest.err conftest.$ac_ext
18675 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18676 echo "${ECHO_T}$ac_header_preproc" >&6; }
18678 # So? What about this header?
18679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18681 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18682 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18683 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18684 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18685 ac_header_preproc=yes
18688 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18689 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18690 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18691 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18692 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18693 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18694 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18695 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18696 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18697 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18698 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18699 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18703 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18704 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18705 if test "${ac_cv_header_locale_h+set}" = set; then
18706 echo $ECHO_N "(cached
) $ECHO_C" >&6
18708 ac_cv_header_locale_h=$ac_header_preproc
18710 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18711 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18717 for ac_func in setlocale
18719 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18720 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18721 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18722 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18723 echo $ECHO_N "(cached
) $ECHO_C" >&6
18725 cat >conftest.$ac_ext <<_ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18733 #define $ac_func innocuous_$ac_func
18735 /* System header to define __stub macros and hopefully few prototypes,
18736 which can conflict with char $ac_func (); below.
18737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18738 <limits.h> exists even on freestanding compilers. */
18741 # include <limits.h>
18743 # include <assert.h>
18748 /* Override any GCC internal prototype to avoid an error.
18749 Use char because int might match the return type of a GCC
18750 builtin and then its argument prototype would still apply. */
18755 /* The GNU C library defines this for functions which it implements
18756 to always fail with ENOSYS. Some functions are actually named
18757 something starting with __ and the normal name is an alias. */
18758 #if defined __stub_$ac_func || defined __stub___$ac_func
18765 return $ac_func ();
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_link") 2>conftest.er1
18779 grep -v '^ *+' conftest.er1 >conftest.err
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 eval "$as_ac_var=yes"
18806 echo "$as_me: failed program was
:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 eval "$as_ac_var=no
"
18812 rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
18815 ac_res=`eval echo '${'$as_ac_var'}'`
18816 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18817 echo "${ECHO_T}$ac_res" >&6; }
18818 if test `eval echo '${'$as_ac_var'}'` = yes; then
18819 cat >>confdefs.h <<_ACEOF
18820 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18827 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18828 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18829 # Irix 4.0.5F has the header but not the library.
18830 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18833 cat >>confdefs.h <<\_ACEOF
18839 if test $ac_have_func = no; then
18840 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18841 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18842 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18843 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18844 echo $ECHO_N "(cached
) $ECHO_C" >&6
18846 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18847 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18849 # Is the header compilable?
18850 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18851 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18852 cat >conftest.$ac_ext <<_ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 $ac_includes_default
18859 #include <inq_stats/cpustats.h>
18861 rm -f conftest.$ac_objext
18862 if { (ac_try="$ac_compile"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_compile") 2>conftest.er1
18870 grep -v '^ *+' conftest.er1 >conftest.err
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18874 (exit $ac_status); } &&
18875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18876 { (case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_try") 2>&5
18883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 ac_header_compiler=yes
18897 echo "$as_me: failed program was
:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18900 ac_header_compiler=no
18903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18904 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18905 echo "${ECHO_T}$ac_header_compiler" >&6; }
18907 # Is the header present?
18908 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18909 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18910 cat >conftest.$ac_ext <<_ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18916 #include <inq_stats/cpustats.h>
18918 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18926 grep -v '^ *+' conftest.er1 >conftest.err
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18930 (exit $ac_status); } >/dev/null; then
18931 if test -s conftest.err; then
18932 ac_cpp_err=$ac_c_preproc_warn_flag
18933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18940 if test -z "$ac_cpp_err"; then
18941 ac_header_preproc=yes
18943 echo "$as_me: failed program was
:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_header_preproc=no
18949 rm -f conftest.err conftest.$ac_ext
18950 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18951 echo "${ECHO_T}$ac_header_preproc" >&6; }
18953 # So? What about this header?
18954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18956 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18957 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18958 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18959 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18960 ac_header_preproc=yes
18963 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18964 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18965 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18966 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18967 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18968 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18969 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18970 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18971 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18972 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18973 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18974 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18978 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18979 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18980 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18981 echo $ECHO_N "(cached
) $ECHO_C" >&6
18983 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18985 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18986 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18989 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18992 cat >>confdefs.h <<\_ACEOF
18997 cat >>confdefs.h <<\_ACEOF
19006 if test $ac_have_func = no; then
19007 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19008 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19009 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
19010 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19011 echo $ECHO_N "(cached
) $ECHO_C" >&6
19013 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19014 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19016 # Is the header compilable?
19017 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19018 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19025 $ac_includes_default
19026 #include <sys/cpustats.h>
19028 rm -f conftest.$ac_objext
19029 if { (ac_try="$ac_compile"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_compile") 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest.$ac_objext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_header_compiler=yes
19064 echo "$as_me: failed program was
:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_header_compiler=no
19070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19071 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19072 echo "${ECHO_T}$ac_header_compiler" >&6; }
19074 # Is the header present?
19075 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19076 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
19077 cat >conftest.$ac_ext <<_ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 #include <sys/cpustats.h>
19085 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19093 grep -v '^ *+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19097 (exit $ac_status); } >/dev/null; then
19098 if test -s conftest.err; then
19099 ac_cpp_err=$ac_c_preproc_warn_flag
19100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19107 if test -z "$ac_cpp_err"; then
19108 ac_header_preproc=yes
19110 echo "$as_me: failed program was
:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19113 ac_header_preproc=no
19116 rm -f conftest.err conftest.$ac_ext
19117 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19118 echo "${ECHO_T}$ac_header_preproc" >&6; }
19120 # So? What about this header?
19121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19123 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19124 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19125 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19126 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19127 ac_header_preproc=yes
19130 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19131 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19132 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19133 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19134 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19135 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19136 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19137 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19138 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19139 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19140 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19141 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19145 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19146 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
19147 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19148 echo $ECHO_N "(cached
) $ECHO_C" >&6
19150 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19152 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19153 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19156 if test $ac_cv_header_sys_cpustats_h = yes; then
19157 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19166 if test $ac_have_func = no; then
19168 for ac_header in mach/mach.h
19170 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19171 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19172 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19173 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19174 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19175 echo $ECHO_N "(cached
) $ECHO_C" >&6
19177 ac_res=`eval echo '${'$as_ac_Header'}'`
19178 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19179 echo "${ECHO_T}$ac_res" >&6; }
19181 # Is the header compilable?
19182 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19183 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19184 cat >conftest.$ac_ext <<_ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 $ac_includes_default
19191 #include <$ac_header>
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_compile") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_header_compiler=yes
19229 echo "$as_me: failed program was
:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_header_compiler=no
19235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19236 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19237 echo "${ECHO_T}$ac_header_compiler" >&6; }
19239 # Is the header present?
19240 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19241 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <$ac_header>
19250 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19258 grep -v '^ *+' conftest.er1 >conftest.err
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19262 (exit $ac_status); } >/dev/null; then
19263 if test -s conftest.err; then
19264 ac_cpp_err=$ac_c_preproc_warn_flag
19265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19272 if test -z "$ac_cpp_err"; then
19273 ac_header_preproc=yes
19275 echo "$as_me: failed program was
:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ac_header_preproc=no
19281 rm -f conftest.err conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19283 echo "${ECHO_T}$ac_header_preproc" >&6; }
19285 # So? What about this header?
19286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19288 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19289 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19290 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19292 ac_header_preproc=yes
19295 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19296 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19297 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19298 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19299 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19300 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19301 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19302 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19303 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19305 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19306 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19310 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19311 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19312 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19313 echo $ECHO_N "(cached
) $ECHO_C" >&6
19315 eval "$as_ac_Header=\
$ac_header_preproc"
19317 ac_res=`eval echo '${'$as_ac_Header'}'`
19318 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19319 echo "${ECHO_T}$ac_res" >&6; }
19322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19334 for ac_header in nlist.h
19336 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19337 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19338 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19339 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19340 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19341 echo $ECHO_N "(cached
) $ECHO_C" >&6
19343 ac_res=`eval echo '${'$as_ac_Header'}'`
19344 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19345 echo "${ECHO_T}$ac_res" >&6; }
19347 # Is the header compilable?
19348 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19349 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 $ac_includes_default
19357 #include <$ac_header>
19359 rm -f conftest.$ac_objext
19360 if { (ac_try="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374 { (case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_try") 2>&5
19381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_header_compiler=yes
19395 echo "$as_me: failed program was
:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_header_compiler=no
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19403 echo "${ECHO_T}$ac_header_compiler" >&6; }
19405 # Is the header present?
19406 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19407 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <$ac_header>
19416 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19428 (exit $ac_status); } >/dev/null; then
19429 if test -s conftest.err; then
19430 ac_cpp_err=$ac_c_preproc_warn_flag
19431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19438 if test -z "$ac_cpp_err"; then
19439 ac_header_preproc=yes
19441 echo "$as_me: failed program was
:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 ac_header_preproc=no
19447 rm -f conftest.err conftest.$ac_ext
19448 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19449 echo "${ECHO_T}$ac_header_preproc" >&6; }
19451 # So? What about this header?
19452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19454 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19455 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19456 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19458 ac_header_preproc=yes
19461 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19462 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19463 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19464 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19465 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19466 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19467 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19468 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19469 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19471 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19472 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19476 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19477 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19478 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19479 echo $ECHO_N "(cached
) $ECHO_C" >&6
19481 eval "$as_ac_Header=\
$ac_header_preproc"
19483 ac_res=`eval echo '${'$as_ac_Header'}'`
19484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19485 echo "${ECHO_T}$ac_res" >&6; }
19488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19489 cat >>confdefs.h <<_ACEOF
19490 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19492 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19493 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
19494 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19495 echo $ECHO_N "(cached
) $ECHO_C" >&6
19497 cat >conftest.$ac_ext <<_ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19508 static struct nlist ac_aggr;
19509 if (ac_aggr.n_un.n_name)
19515 rm -f conftest.$ac_objext
19516 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19524 grep -v '^ *+' conftest.er1 >conftest.err
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_member_struct_nlist_n_un_n_name=yes
19551 echo "$as_me: failed program was
:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19565 static struct nlist ac_aggr;
19566 if (sizeof ac_aggr.n_un.n_name)
19572 rm -f conftest.$ac_objext
19573 if { (ac_try="$ac_compile"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_compile") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19587 { (case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_try") 2>&5
19594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19595 (exit $ac_status); }; } &&
19596 { ac_try='test -s conftest.$ac_objext'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_cv_member_struct_nlist_n_un_n_name=yes
19608 echo "$as_me: failed program was
:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_cv_member_struct_nlist_n_un_n_name=no
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19620 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19621 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19623 cat >>confdefs.h <<_ACEOF
19624 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19628 cat >>confdefs.h <<\_ACEOF
19629 #define NLIST_NAME_UNION 1
19643 # Some definitions of getloadavg require that the program be installed setgid.
19644 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19645 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
19646 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19647 echo $ECHO_N "(cached
) $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19656 #ifdef LDAV_PRIVILEGED
19657 Yowza Am I SETGID yet
19660 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19661 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19662 ac_cv_func_getloadavg_setgid=yes
19664 ac_cv_func_getloadavg_setgid=no
19669 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19670 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
19671 if test $ac_cv_func_getloadavg_setgid = yes; then
19674 cat >>confdefs.h <<\_ACEOF
19675 #define GETLOADAVG_PRIVILEGED 1
19682 if test $ac_cv_func_getloadavg_setgid = yes; then
19683 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19684 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
19685 if test "${ac_cv_group_kmem+set}" = set; then
19686 echo $ECHO_N "(cached
) $ECHO_C" >&6
19688 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19689 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19690 # If we got an error (system does not support symlinks), try without -L.
19691 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19692 ac_cv_group_kmem=`echo $ac_ls_output \
19693 | sed -ne 's/[ ][ ]*/ /g;
19694 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19698 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19699 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
19700 KMEM_GROUP=$ac_cv_group_kmem
19702 if test "x
$ac_save_LIBS" = x; then
19703 GETLOADAVG_LIBS=$LIBS
19705 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
19711 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19712 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
19713 if test "${ac_cv_sys_largefile_source+set}" = set; then
19714 echo $ECHO_N "(cached
) $ECHO_C" >&6
19717 ac_cv_sys_largefile_source=no
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19733 rm -f conftest.$ac_objext
19734 if { (ac_try="$ac_compile"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_compile") 2>conftest.er1
19742 grep -v '^ *+' conftest.er1 >conftest.err
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19748 { (case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_try") 2>&5
19755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_try") 2>&5
19765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19766 (exit $ac_status); }; }; then
19769 echo "$as_me: failed program was
:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 #define _LARGEFILE_SOURCE 1
19792 rm -f conftest.$ac_objext
19793 if { (ac_try="$ac_compile"
19794 case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_compile") 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_sys_largefile_source=1; break
19828 echo "$as_me: failed program was
:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19839 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19840 if test "$ac_cv_sys_largefile_source" != no; then
19842 cat >>confdefs.h <<_ACEOF
19843 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19849 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19850 # in glibc 2.1.3, but that breaks too many other things.
19851 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19852 { echo "$as_me:$LINENO: checking
for fseeko
" >&5
19853 echo $ECHO_N "checking
for fseeko...
$ECHO_C" >&6; }
19854 if test "${ac_cv_func_fseeko+set}" = set; then
19855 echo $ECHO_N "(cached
) $ECHO_C" >&6
19857 cat >conftest.$ac_ext <<_ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19867 return fseeko && fseeko (stdin, 0, 0);
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (ac_try="$ac_link"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_link") 2>conftest.er1
19881 grep -v '^ *+' conftest.er1 >conftest.err
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_func_fseeko=yes
19908 echo "$as_me: failed program was
:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_cv_func_fseeko=no
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result
: $ac_cv_func_fseeko" >&5
19918 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
19919 if test $ac_cv_func_fseeko = yes; then
19921 cat >>confdefs.h <<\_ACEOF
19922 #define HAVE_FSEEKO 1
19928 # Configure getopt.
19929 # getopt.m4 serial 10
19931 # The getopt module assume you want GNU getopt, with getopt_long etc,
19932 # rather than vanilla POSIX getopt. This means your your code should
19933 # always include <getopt.h> for the getopt prototypes.
19945 # Prerequisites of lib/getopt*.
19952 for ac_header in getopt.h
19954 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19955 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19956 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19957 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19959 echo $ECHO_N "(cached
) $ECHO_C" >&6
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19965 # Is the header compilable?
19966 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19967 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <$ac_header>
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_try") 2>&5
20009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 ac_header_compiler=yes
20013 echo "$as_me: failed program was
:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_header_compiler=no
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6; }
20023 # Is the header present?
20024 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20025 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <$ac_header>
20034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20042 grep -v '^ *+' conftest.er1 >conftest.err
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20046 (exit $ac_status); } >/dev/null; then
20047 if test -s conftest.err; then
20048 ac_cpp_err=$ac_c_preproc_warn_flag
20049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20056 if test -z "$ac_cpp_err"; then
20057 ac_header_preproc=yes
20059 echo "$as_me: failed program was
:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_header_preproc=no
20065 rm -f conftest.err conftest.$ac_ext
20066 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20067 echo "${ECHO_T}$ac_header_preproc" >&6; }
20069 # So? What about this header?
20070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20073 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20074 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20076 ac_header_preproc=yes
20079 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20080 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20081 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20082 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20083 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20084 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20085 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20086 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20087 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20089 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20090 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20094 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20095 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20097 echo $ECHO_N "(cached
) $ECHO_C" >&6
20099 eval "$as_ac_Header=\
$ac_header_preproc"
20101 ac_res=`eval echo '${'$as_ac_Header'}'`
20102 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20103 echo "${ECHO_T}$ac_res" >&6; }
20106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107 cat >>confdefs.h <<_ACEOF
20108 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20117 if test -z "$GETOPT_H"; then
20119 for ac_func in getopt_long_only
20121 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20122 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20123 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20124 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20125 echo $ECHO_N "(cached
) $ECHO_C" >&6
20127 cat >conftest.$ac_ext <<_ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20135 #define $ac_func innocuous_$ac_func
20137 /* System header to define __stub macros and hopefully few prototypes,
20138 which can conflict with char $ac_func (); below.
20139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20140 <limits.h> exists even on freestanding compilers. */
20143 # include <limits.h>
20145 # include <assert.h>
20150 /* Override any GCC internal prototype to avoid an error.
20151 Use char because int might match the return type of a GCC
20152 builtin and then its argument prototype would still apply. */
20157 /* The GNU C library defines this for functions which it implements
20158 to always fail with ENOSYS. Some functions are actually named
20159 something starting with __ and the normal name is an alias. */
20160 #if defined __stub_$ac_func || defined __stub___$ac_func
20167 return $ac_func ();
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20185 (exit $ac_status); } &&
20186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest$ac_exeext'
20197 { (case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_try") 2>&5
20204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 eval "$as_ac_var=yes"
20208 echo "$as_me: failed program was
:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 eval "$as_ac_var=no
"
20214 rm -f core conftest.err conftest.$ac_objext \
20215 conftest$ac_exeext conftest.$ac_ext
20217 ac_res=`eval echo '${'$as_ac_var'}'`
20218 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20219 echo "${ECHO_T}$ac_res" >&6; }
20220 if test `eval echo '${'$as_ac_var'}'` = yes; then
20221 cat >>confdefs.h <<_ACEOF
20222 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20232 if test -z "$GETOPT_H"; then
20233 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20234 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
20235 if test "${ac_cv_have_decl_optreset+set}" = set; then
20236 echo $ECHO_N "(cached
) $ECHO_C" >&6
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 #include <getopt.h>
20250 char *p = (char *) optreset;
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_compile") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_cv_have_decl_optreset=yes
20294 echo "$as_me: failed program was
:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_have_decl_optreset=no
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20303 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
20304 if test $ac_cv_have_decl_optreset = yes; then
20310 if test -z "$GETOPT_H"; then
20311 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20312 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
20313 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20314 echo $ECHO_N "(cached
) $ECHO_C" >&6
20316 if test "$cross_compiling" = yes; then
20317 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20318 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
20319 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20320 echo $ECHO_N "(cached
) $ECHO_C" >&6
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <getopt.h>
20333 #ifndef getopt_clip
20334 char *p = (char *) getopt_clip;
20342 rm -f conftest.$ac_objext
20343 if { (ac_try="$ac_compile"
20344 case "(($ac_try" in
20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346 *) ac_try_echo=$ac_try;;
20348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20349 (eval "$ac_compile") 2>conftest.er1
20351 grep -v '^ *+' conftest.er1 >conftest.err
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20365 (exit $ac_status); }; } &&
20366 { ac_try='test -s conftest.$ac_objext'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 ac_cv_have_decl_getopt_clip=yes
20378 echo "$as_me: failed program was
:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 ac_cv_have_decl_getopt_clip=no
20384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20386 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20387 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
20388 if test $ac_cv_have_decl_getopt_clip = yes; then
20389 gl_cv_func_gnu_getopt=no
20391 gl_cv_func_gnu_getopt=yes
20395 cat >conftest.$ac_ext <<_ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 #include <getopt.h>
20407 myargv[0] = "conftest
";
20410 return getopt (2, myargv, "+a
") != '?';
20416 rm -f conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>&5
20425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_try") 2>&5
20434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 gl_cv_func_gnu_getopt=yes
20438 echo "$as_me: program exited with status
$ac_status" >&5
20439 echo "$as_me: failed program was
:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ( exit $ac_status )
20443 gl_cv_func_gnu_getopt=no
20445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20450 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20451 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
20452 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20459 if test -n "$GETOPT_H"; then
20464 cat >>confdefs.h <<\_ACEOF
20465 #define __GETOPT_PREFIX rpl_
20471 GETOPTOBJS='getopt.o getopt1.o'
20478 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20479 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
20480 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20481 echo $ECHO_N "(cached
) $ECHO_C" >&6
20483 # Use it with a single arg.
20484 cat >conftest.$ac_ext <<_ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 $ac_includes_default
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20512 (exit $ac_status); } &&
20513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20514 { (case "(($ac_try" in
20515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_try") 2>&5
20521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20522 (exit $ac_status); }; } &&
20523 { ac_try='test -s conftest.$ac_objext'
20524 { (case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_try") 2>&5
20531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 ac_cv_func_getpgrp_void=no
20535 echo "$as_me: failed program was
:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ac_cv_func_getpgrp_void=yes
20541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20545 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20546 if test $ac_cv_func_getpgrp_void = yes; then
20548 cat >>confdefs.h <<\_ACEOF
20549 #define GETPGRP_VOID 1
20556 for ac_func in strftime
20558 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20559 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20560 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20561 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20562 echo $ECHO_N "(cached
) $ECHO_C" >&6
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20572 #define $ac_func innocuous_$ac_func
20574 /* System header to define __stub macros and hopefully few prototypes,
20575 which can conflict with char $ac_func (); below.
20576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20577 <limits.h> exists even on freestanding compilers. */
20580 # include <limits.h>
20582 # include <assert.h>
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20594 /* The GNU C library defines this for functions which it implements
20595 to always fail with ENOSYS. Some functions are actually named
20596 something starting with __ and the normal name is an alias. */
20597 #if defined __stub_$ac_func || defined __stub___$ac_func
20604 return $ac_func ();
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (ac_try="$ac_link"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_link") 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 eval "$as_ac_var=yes"
20645 echo "$as_me: failed program was
:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 eval "$as_ac_var=no
"
20651 rm -f core conftest.err conftest.$ac_objext \
20652 conftest$ac_exeext conftest.$ac_ext
20654 ac_res=`eval echo '${'$as_ac_var'}'`
20655 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20656 echo "${ECHO_T}$ac_res" >&6; }
20657 if test `eval echo '${'$as_ac_var'}'` = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20663 # strftime is in -lintl on SCO UNIX.
20664 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20665 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
20666 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20667 echo $ECHO_N "(cached
) $ECHO_C" >&6
20669 ac_check_lib_save_LIBS=$LIBS
20670 LIBS="-lintl $LIBS"
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20678 /* Override any GCC internal prototype to avoid an error.
20679 Use char because int might match the return type of a GCC
20680 builtin and then its argument prototype would still apply. */
20688 return strftime ();
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_link") 2>conftest.er1
20702 grep -v '^ *+' conftest.er1 >conftest.err
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20708 { (case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_try") 2>&5
20715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20716 (exit $ac_status); }; } &&
20717 { ac_try='test -s conftest$ac_exeext'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_cv_lib_intl_strftime=yes
20729 echo "$as_me: failed program was
:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_cv_lib_intl_strftime=no
20735 rm -f core conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
20737 LIBS=$ac_check_lib_save_LIBS
20739 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20740 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20741 if test $ac_cv_lib_intl_strftime = yes; then
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_STRFTIME 1
20746 LIBS="-lintl $LIBS"
20755 for ac_func in grantpt
20757 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20758 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20759 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20760 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20761 echo $ECHO_N "(cached
) $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20771 #define $ac_func innocuous_$ac_func
20773 /* System header to define __stub macros and hopefully few prototypes,
20774 which can conflict with char $ac_func (); below.
20775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776 <limits.h> exists even on freestanding compilers. */
20779 # include <limits.h>
20781 # include <assert.h>
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20793 /* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796 #if defined __stub_$ac_func || defined __stub___$ac_func
20803 return $ac_func ();
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20817 grep -v '^ *+' conftest.er1 >conftest.err
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20821 (exit $ac_status); } &&
20822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 eval "$as_ac_var=yes"
20844 echo "$as_me: failed program was
:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 eval "$as_ac_var=no
"
20850 rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20853 ac_res=`eval echo '${'$as_ac_var'}'`
20854 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20855 echo "${ECHO_T}$ac_res" >&6; }
20856 if test `eval echo '${'$as_ac_var'}'` = yes; then
20857 cat >>confdefs.h <<_ACEOF
20858 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20865 # PTY-related GNU extensions.
20867 for ac_func in getpt
20869 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20870 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20871 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20872 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20873 echo $ECHO_N "(cached
) $ECHO_C" >&6
20875 cat >conftest.$ac_ext <<_ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20883 #define $ac_func innocuous_$ac_func
20885 /* System header to define __stub macros and hopefully few prototypes,
20886 which can conflict with char $ac_func (); below.
20887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20888 <limits.h> exists even on freestanding compilers. */
20891 # include <limits.h>
20893 # include <assert.h>
20898 /* Override any GCC internal prototype to avoid an error.
20899 Use char because int might match the return type of a GCC
20900 builtin and then its argument prototype would still apply. */
20905 /* The GNU C library defines this for functions which it implements
20906 to always fail with ENOSYS. Some functions are actually named
20907 something starting with __ and the normal name is an alias. */
20908 #if defined __stub_$ac_func || defined __stub___$ac_func
20915 return $ac_func ();
20920 rm -f conftest.$ac_objext conftest$ac_exeext
20921 if { (ac_try="$ac_link"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_link") 2>conftest.er1
20929 grep -v '^ *+' conftest.er1 >conftest.err
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20935 { (case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_try") 2>&5
20942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest$ac_exeext'
20945 { (case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_try") 2>&5
20952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20953 (exit $ac_status); }; }; then
20954 eval "$as_ac_var=yes"
20956 echo "$as_me: failed program was
:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 eval "$as_ac_var=no
"
20962 rm -f core conftest.err conftest.$ac_objext \
20963 conftest$ac_exeext conftest.$ac_ext
20965 ac_res=`eval echo '${'$as_ac_var'}'`
20966 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20967 echo "${ECHO_T}$ac_res" >&6; }
20968 if test `eval echo '${'$as_ac_var'}'` = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20977 # Check this now, so that we will NOT find the above functions in ncurses.
20978 # That is because we have not set up to link ncurses in lib-src.
20979 # It's better to believe a function is not available
20980 # than to expect to find it in ncurses.
20982 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20983 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
20984 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20985 echo $ECHO_N "(cached
) $ECHO_C" >&6
20987 ac_check_lib_save_LIBS=$LIBS
20988 LIBS="-lncurses $LIBS"
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20996 /* Override any GCC internal prototype to avoid an error.
20997 Use char because int might match the return type of a GCC
20998 builtin and then its argument prototype would still apply. */
21011 rm -f conftest.$ac_objext conftest$ac_exeext
21012 if { (ac_try="$ac_link"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_link") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try='test -s conftest$ac_exeext'
21036 { (case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_try") 2>&5
21043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_lib_ncurses_tparm=yes
21047 echo "$as_me: failed program was
:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_lib_ncurses_tparm=no
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21057 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
21058 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
21059 if test $ac_cv_lib_ncurses_tparm = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define HAVE_LIBNCURSES 1
21064 LIBS="-lncurses $LIBS"
21069 # Do we need the Hesiod library to provide the support routines?
21070 if test "$with_hesiod" = yes ; then
21071 # Don't set $LIBS here -- see comments above.
21073 { echo "$as_me:$LINENO: checking
for res_send
" >&5
21074 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
21075 if test "${ac_cv_func_res_send+set}" = set; then
21076 echo $ECHO_N "(cached
) $ECHO_C" >&6
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21086 #define res_send innocuous_res_send
21088 /* System header to define __stub macros and hopefully few prototypes,
21089 which can conflict with char res_send (); below.
21090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21091 <limits.h> exists even on freestanding compilers. */
21094 # include <limits.h>
21096 # include <assert.h>
21101 /* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
21108 /* The GNU C library defines this for functions which it implements
21109 to always fail with ENOSYS. Some functions are actually named
21110 something starting with __ and the normal name is an alias. */
21111 #if defined __stub_res_send || defined __stub___res_send
21118 return res_send ();
21123 rm -f conftest.$ac_objext conftest$ac_exeext
21124 if { (ac_try="$ac_link"
21125 case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_link") 2>conftest.er1
21132 grep -v '^ *+' conftest.er1 >conftest.err
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21138 { (case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_try") 2>&5
21145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_try") 2>&5
21155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_func_res_send=yes
21159 echo "$as_me: failed program was
:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_cv_func_res_send=no
21165 rm -f core conftest.err conftest.$ac_objext \
21166 conftest$ac_exeext conftest.$ac_ext
21168 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21169 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
21170 if test $ac_cv_func_res_send = yes; then
21173 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
21174 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
21175 if test "${ac_cv_func___res_send+set}" = set; then
21176 echo $ECHO_N "(cached
) $ECHO_C" >&6
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21186 #define __res_send innocuous___res_send
21188 /* System header to define __stub macros and hopefully few prototypes,
21189 which can conflict with char __res_send (); below.
21190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21191 <limits.h> exists even on freestanding compilers. */
21194 # include <limits.h>
21196 # include <assert.h>
21201 /* Override any GCC internal prototype to avoid an error.
21202 Use char because int might match the return type of a GCC
21203 builtin and then its argument prototype would still apply. */
21207 char __res_send ();
21208 /* The GNU C library defines this for functions which it implements
21209 to always fail with ENOSYS. Some functions are actually named
21210 something starting with __ and the normal name is an alias. */
21211 #if defined __stub___res_send || defined __stub_____res_send
21218 return __res_send ();
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_link") 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest$ac_exeext'
21248 { (case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_try") 2>&5
21255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_cv_func___res_send=yes
21259 echo "$as_me: failed program was
:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ac_cv_func___res_send=no
21265 rm -f core conftest.err conftest.$ac_objext \
21266 conftest$ac_exeext conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21269 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
21270 if test $ac_cv_func___res_send = yes; then
21273 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21274 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
21275 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21276 echo $ECHO_N "(cached
) $ECHO_C" >&6
21278 ac_check_lib_save_LIBS=$LIBS
21279 LIBS="-lresolv $LIBS"
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21287 /* Override any GCC internal prototype to avoid an error.
21288 Use char because int might match the return type of a GCC
21289 builtin and then its argument prototype would still apply. */
21297 return res_send ();
21302 rm -f conftest.$ac_objext conftest$ac_exeext
21303 if { (ac_try="$ac_link"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_link") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21315 (exit $ac_status); } &&
21316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21317 { (case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21322 (eval "$ac_try") 2>&5
21324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest$ac_exeext'
21327 { (case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_try") 2>&5
21334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 ac_cv_lib_resolv_res_send=yes
21338 echo "$as_me: failed program was
:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21341 ac_cv_lib_resolv_res_send=no
21344 rm -f core conftest.err conftest.$ac_objext \
21345 conftest$ac_exeext conftest.$ac_ext
21346 LIBS=$ac_check_lib_save_LIBS
21348 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21349 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
21350 if test $ac_cv_lib_resolv_res_send = yes; then
21353 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21354 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
21355 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21356 echo $ECHO_N "(cached
) $ECHO_C" >&6
21358 ac_check_lib_save_LIBS=$LIBS
21359 LIBS="-lresolv $LIBS"
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21373 char __res_send ();
21377 return __res_send ();
21382 rm -f conftest.$ac_objext conftest$ac_exeext
21383 if { (ac_try="$ac_link"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_link") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21395 (exit $ac_status); } &&
21396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21397 { (case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_try") 2>&5
21404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest$ac_exeext'
21407 { (case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_try") 2>&5
21414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 ac_cv_lib_resolv___res_send=yes
21418 echo "$as_me: failed program was
:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_cv_lib_resolv___res_send=no
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21426 LIBS=$ac_check_lib_save_LIBS
21428 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21429 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
21430 if test $ac_cv_lib_resolv___res_send = yes; then
21440 if test "$resolv" = yes ; then
21443 cat >>confdefs.h <<\_ACEOF
21444 #define HAVE_LIBRESOLV 1
21450 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21451 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
21452 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21453 echo $ECHO_N "(cached
) $ECHO_C" >&6
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21463 #define hes_getmailhost innocuous_hes_getmailhost
21465 /* System header to define __stub macros and hopefully few prototypes,
21466 which can conflict with char hes_getmailhost (); below.
21467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21468 <limits.h> exists even on freestanding compilers. */
21471 # include <limits.h>
21473 # include <assert.h>
21476 #undef hes_getmailhost
21478 /* Override any GCC internal prototype to avoid an error.
21479 Use char because int might match the return type of a GCC
21480 builtin and then its argument prototype would still apply. */
21484 char hes_getmailhost ();
21485 /* The GNU C library defines this for functions which it implements
21486 to always fail with ENOSYS. Some functions are actually named
21487 something starting with __ and the normal name is an alias. */
21488 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21495 return hes_getmailhost ();
21500 rm -f conftest.$ac_objext conftest$ac_exeext
21501 if { (ac_try="$ac_link"
21502 case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_link") 2>conftest.er1
21509 grep -v '^ *+' conftest.er1 >conftest.err
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21513 (exit $ac_status); } &&
21514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21515 { (case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_try") 2>&5
21522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest$ac_exeext'
21525 { (case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_try") 2>&5
21532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21533 (exit $ac_status); }; }; then
21534 ac_cv_func_hes_getmailhost=yes
21536 echo "$as_me: failed program was
:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 ac_cv_func_hes_getmailhost=no
21542 rm -f core conftest.err conftest.$ac_objext \
21543 conftest$ac_exeext conftest.$ac_ext
21545 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21546 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
21547 if test $ac_cv_func_hes_getmailhost = yes; then
21550 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21551 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
21552 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21553 echo $ECHO_N "(cached
) $ECHO_C" >&6
21555 ac_check_lib_save_LIBS=$LIBS
21556 LIBS="-lhesiod $RESOLVLIB $LIBS"
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21570 char hes_getmailhost ();
21574 return hes_getmailhost ();
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (ac_try="$ac_link"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_link") 2>conftest.er1
21588 grep -v '^ *+' conftest.er1 >conftest.err
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21592 (exit $ac_status); } &&
21593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21594 { (case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_try") 2>&5
21601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest$ac_exeext'
21604 { (case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_try") 2>&5
21611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ac_cv_lib_hesiod_hes_getmailhost=yes
21615 echo "$as_me: failed program was
:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_cv_lib_hesiod_hes_getmailhost=no
21621 rm -f core conftest.err conftest.$ac_objext \
21622 conftest$ac_exeext conftest.$ac_ext
21623 LIBS=$ac_check_lib_save_LIBS
21625 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21626 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21627 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21629 cat >>confdefs.h <<\_ACEOF
21630 #define HAVE_LIBHESIOD 1
21641 # These tell us which Kerberos-related libraries to use.
21642 if test "${with_kerberos+set}" = set; then
21644 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21645 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
21646 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21647 echo $ECHO_N "(cached
) $ECHO_C" >&6
21649 ac_check_lib_save_LIBS=$LIBS
21650 LIBS="-lcom_err $LIBS"
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21673 rm -f conftest.$ac_objext conftest$ac_exeext
21674 if { (ac_try="$ac_link"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_link") 2>conftest.er1
21682 grep -v '^ *+' conftest.er1 >conftest.err
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21688 { (case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_try") 2>&5
21695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 ac_cv_lib_com_err_com_err=yes
21709 echo "$as_me: failed program was
:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 ac_cv_lib_com_err_com_err=no
21715 rm -f core conftest.err conftest.$ac_objext \
21716 conftest$ac_exeext conftest.$ac_ext
21717 LIBS=$ac_check_lib_save_LIBS
21719 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21720 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
21721 if test $ac_cv_lib_com_err_com_err = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_LIBCOM_ERR 1
21726 LIBS="-lcom_err $LIBS"
21731 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21732 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
21733 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21734 echo $ECHO_N "(cached
) $ECHO_C" >&6
21736 ac_check_lib_save_LIBS=$LIBS
21737 LIBS="-lk5crypto $LIBS"
21738 cat >conftest.$ac_ext <<_ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21745 /* Override any GCC internal prototype to avoid an error.
21746 Use char because int might match the return type of a GCC
21747 builtin and then its argument prototype would still apply. */
21751 char mit_des_cbc_encrypt ();
21755 return mit_des_cbc_encrypt ();
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (ac_try="$ac_link"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_link") 2>conftest.er1
21769 grep -v '^ *+' conftest.er1 >conftest.err
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21775 { (case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_try") 2>&5
21782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try='test -s conftest$ac_exeext'
21785 { (case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_try") 2>&5
21792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21796 echo "$as_me: failed program was
:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21806 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21807 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21808 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_LIBK5CRYPTO 1
21813 LIBS="-lk5crypto $LIBS"
21818 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21819 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
21820 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21821 echo $ECHO_N "(cached
) $ECHO_C" >&6
21823 ac_check_lib_save_LIBS=$LIBS
21824 LIBS="-lcrypto $LIBS"
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21832 /* Override any GCC internal prototype to avoid an error.
21833 Use char because int might match the return type of a GCC
21834 builtin and then its argument prototype would still apply. */
21838 char mit_des_cbc_encrypt ();
21842 return mit_des_cbc_encrypt ();
21847 rm -f conftest.$ac_objext conftest$ac_exeext
21848 if { (ac_try="$ac_link"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_link") 2>conftest.er1
21856 grep -v '^ *+' conftest.er1 >conftest.err
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21862 { (case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_try") 2>&5
21869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest$ac_exeext'
21872 { (case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_try") 2>&5
21879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21883 echo "$as_me: failed program was
:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21889 rm -f core conftest.err conftest.$ac_objext \
21890 conftest$ac_exeext conftest.$ac_ext
21891 LIBS=$ac_check_lib_save_LIBS
21893 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21894 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21895 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21896 cat >>confdefs.h <<_ACEOF
21897 #define HAVE_LIBCRYPTO 1
21900 LIBS="-lcrypto $LIBS"
21905 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
21906 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
21907 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21908 echo $ECHO_N "(cached
) $ECHO_C" >&6
21910 ac_check_lib_save_LIBS=$LIBS
21911 LIBS="-lkrb5 $LIBS"
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21919 /* Override any GCC internal prototype to avoid an error.
21920 Use char because int might match the return type of a GCC
21921 builtin and then its argument prototype would still apply. */
21925 char krb5_init_context ();
21929 return krb5_init_context ();
21934 rm -f conftest.$ac_objext conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_link") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21947 (exit $ac_status); } &&
21948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21949 { (case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_try") 2>&5
21956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest$ac_exeext'
21959 { (case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_try") 2>&5
21966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21967 (exit $ac_status); }; }; then
21968 ac_cv_lib_krb5_krb5_init_context=yes
21970 echo "$as_me: failed program was
:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21973 ac_cv_lib_krb5_krb5_init_context=no
21976 rm -f core conftest.err conftest.$ac_objext \
21977 conftest$ac_exeext conftest.$ac_ext
21978 LIBS=$ac_check_lib_save_LIBS
21980 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
21981 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
21982 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21983 cat >>confdefs.h <<_ACEOF
21984 #define HAVE_LIBKRB5 1
21987 LIBS="-lkrb5 $LIBS"
21991 if test "${with_kerberos5+set}" != set; then
21993 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
21994 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
21995 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21996 echo $ECHO_N "(cached
) $ECHO_C" >&6
21998 ac_check_lib_save_LIBS=$LIBS
21999 LIBS="-ldes425 $LIBS"
22000 cat >conftest.$ac_ext <<_ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22007 /* Override any GCC internal prototype to avoid an error.
22008 Use char because int might match the return type of a GCC
22009 builtin and then its argument prototype would still apply. */
22013 char des_cbc_encrypt ();
22017 return des_cbc_encrypt ();
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (ac_try="$ac_link"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>conftest.er1
22031 grep -v '^ *+' conftest.er1 >conftest.err
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22035 (exit $ac_status); } &&
22036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22037 { (case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_try") 2>&5
22044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest$ac_exeext'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22055 (exit $ac_status); }; }; then
22056 ac_cv_lib_des425_des_cbc_encrypt=yes
22058 echo "$as_me: failed program was
:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_cv_lib_des425_des_cbc_encrypt=no
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 LIBS=$ac_check_lib_save_LIBS
22068 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22069 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22070 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22071 cat >>confdefs.h <<_ACEOF
22072 #define HAVE_LIBDES425 1
22075 LIBS="-ldes425 $LIBS"
22079 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22080 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
22081 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22082 echo $ECHO_N "(cached
) $ECHO_C" >&6
22084 ac_check_lib_save_LIBS=$LIBS
22086 cat >conftest.$ac_ext <<_ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22093 /* Override any GCC internal prototype to avoid an error.
22094 Use char because int might match the return type of a GCC
22095 builtin and then its argument prototype would still apply. */
22099 char des_cbc_encrypt ();
22103 return des_cbc_encrypt ();
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_link") 2>conftest.er1
22117 grep -v '^ *+' conftest.er1 >conftest.err
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22121 (exit $ac_status); } &&
22122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22131 (exit $ac_status); }; } &&
22132 { ac_try='test -s conftest$ac_exeext'
22133 { (case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_try") 2>&5
22140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142 ac_cv_lib_des_des_cbc_encrypt=yes
22144 echo "$as_me: failed program was
:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_cv_lib_des_des_cbc_encrypt=no
22150 rm -f core conftest.err conftest.$ac_objext \
22151 conftest$ac_exeext conftest.$ac_ext
22152 LIBS=$ac_check_lib_save_LIBS
22154 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22155 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22156 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22157 cat >>confdefs.h <<_ACEOF
22158 #define HAVE_LIBDES 1
22168 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22169 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
22170 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22171 echo $ECHO_N "(cached
) $ECHO_C" >&6
22173 ac_check_lib_save_LIBS=$LIBS
22174 LIBS="-lkrb4 $LIBS"
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22182 /* Override any GCC internal prototype to avoid an error.
22183 Use char because int might match the return type of a GCC
22184 builtin and then its argument prototype would still apply. */
22188 char krb_get_cred ();
22192 return krb_get_cred ();
22197 rm -f conftest.$ac_objext conftest$ac_exeext
22198 if { (ac_try="$ac_link"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_link") 2>conftest.er1
22206 grep -v '^ *+' conftest.er1 >conftest.err
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22210 (exit $ac_status); } &&
22211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22212 { (case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_try") 2>&5
22219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22220 (exit $ac_status); }; } &&
22221 { ac_try='test -s conftest$ac_exeext'
22222 { (case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_try") 2>&5
22229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ac_cv_lib_krb4_krb_get_cred=yes
22233 echo "$as_me: failed program was
:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 ac_cv_lib_krb4_krb_get_cred=no
22239 rm -f core conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext conftest.$ac_ext
22241 LIBS=$ac_check_lib_save_LIBS
22243 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22244 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
22245 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22246 cat >>confdefs.h <<_ACEOF
22247 #define HAVE_LIBKRB4 1
22250 LIBS="-lkrb4 $LIBS"
22254 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22255 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
22256 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22257 echo $ECHO_N "(cached
) $ECHO_C" >&6
22259 ac_check_lib_save_LIBS=$LIBS
22261 cat >conftest.$ac_ext <<_ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22268 /* Override any GCC internal prototype to avoid an error.
22269 Use char because int might match the return type of a GCC
22270 builtin and then its argument prototype would still apply. */
22274 char krb_get_cred ();
22278 return krb_get_cred ();
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_link") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22296 (exit $ac_status); } &&
22297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22298 { (case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22303 (eval "$ac_try") 2>&5
22305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22306 (exit $ac_status); }; } &&
22307 { ac_try='test -s conftest$ac_exeext'
22308 { (case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_try") 2>&5
22315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 ac_cv_lib_krb_krb_get_cred=yes
22319 echo "$as_me: failed program was
:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22322 ac_cv_lib_krb_krb_get_cred=no
22325 rm -f core conftest.err conftest.$ac_objext \
22326 conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22329 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22330 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
22331 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22332 cat >>confdefs.h <<_ACEOF
22333 #define HAVE_LIBKRB 1
22344 if test "${with_kerberos5+set}" = set; then
22346 for ac_header in krb5.h
22348 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22349 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22350 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22351 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22352 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22353 echo $ECHO_N "(cached
) $ECHO_C" >&6
22355 ac_res=`eval echo '${'$as_ac_Header'}'`
22356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22357 echo "${ECHO_T}$ac_res" >&6; }
22359 # Is the header compilable?
22360 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22361 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 $ac_includes_default
22369 #include <$ac_header>
22371 rm -f conftest.$ac_objext
22372 if { (ac_try="$ac_compile"
22373 case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22378 (eval "$ac_compile") 2>conftest.er1
22380 grep -v '^ *+' conftest.er1 >conftest.err
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22384 (exit $ac_status); } &&
22385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22386 { (case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_try") 2>&5
22393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22394 (exit $ac_status); }; } &&
22395 { ac_try='test -s conftest.$ac_objext'
22396 { (case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_try") 2>&5
22403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_header_compiler=yes
22407 echo "$as_me: failed program was
:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ac_header_compiler=no
22413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22415 echo "${ECHO_T}$ac_header_compiler" >&6; }
22417 # Is the header present?
22418 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22419 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22420 cat >conftest.$ac_ext <<_ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #include <$ac_header>
22428 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22429 case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22440 (exit $ac_status); } >/dev/null; then
22441 if test -s conftest.err; then
22442 ac_cpp_err=$ac_c_preproc_warn_flag
22443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22450 if test -z "$ac_cpp_err"; then
22451 ac_header_preproc=yes
22453 echo "$as_me: failed program was
:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_header_preproc=no
22459 rm -f conftest.err conftest.$ac_ext
22460 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22461 echo "${ECHO_T}$ac_header_preproc" >&6; }
22463 # So? What about this header?
22464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22466 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22467 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22468 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22470 ac_header_preproc=yes
22473 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22474 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22475 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22476 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22477 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22478 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22479 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22480 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22481 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22483 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22484 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22488 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22489 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22490 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22491 echo $ECHO_N "(cached
) $ECHO_C" >&6
22493 eval "$as_ac_Header=\
$ac_header_preproc"
22495 ac_res=`eval echo '${'$as_ac_Header'}'`
22496 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22497 echo "${ECHO_T}$ac_res" >&6; }
22500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22501 cat >>confdefs.h <<_ACEOF
22502 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22511 for ac_header in des.h
22513 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22515 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22516 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22517 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22518 echo $ECHO_N "(cached
) $ECHO_C" >&6
22520 ac_res=`eval echo '${'$as_ac_Header'}'`
22521 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22522 echo "${ECHO_T}$ac_res" >&6; }
22524 # Is the header compilable?
22525 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22526 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 $ac_includes_default
22534 #include <$ac_header>
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_compile") 2>conftest.er1
22545 grep -v '^ *+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22549 (exit $ac_status); } &&
22550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22551 { (case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_try") 2>&5
22558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22559 (exit $ac_status); }; } &&
22560 { ac_try='test -s conftest.$ac_objext'
22561 { (case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_try") 2>&5
22568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 ac_header_compiler=yes
22572 echo "$as_me: failed program was
:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 ac_header_compiler=no
22578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22580 echo "${ECHO_T}$ac_header_compiler" >&6; }
22582 # Is the header present?
22583 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22584 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 #include <$ac_header>
22593 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22601 grep -v '^ *+' conftest.er1 >conftest.err
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22605 (exit $ac_status); } >/dev/null; then
22606 if test -s conftest.err; then
22607 ac_cpp_err=$ac_c_preproc_warn_flag
22608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22615 if test -z "$ac_cpp_err"; then
22616 ac_header_preproc=yes
22618 echo "$as_me: failed program was
:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 ac_header_preproc=no
22624 rm -f conftest.err conftest.$ac_ext
22625 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22626 echo "${ECHO_T}$ac_header_preproc" >&6; }
22628 # So? What about this header?
22629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22631 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22632 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22633 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22635 ac_header_preproc=yes
22638 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22639 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22640 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22641 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22642 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22643 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22644 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22645 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22646 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22648 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22649 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22653 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22654 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22656 echo $ECHO_N "(cached
) $ECHO_C" >&6
22658 eval "$as_ac_Header=\
$ac_header_preproc"
22660 ac_res=`eval echo '${'$as_ac_Header'}'`
22661 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22662 echo "${ECHO_T}$ac_res" >&6; }
22665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22666 cat >>confdefs.h <<_ACEOF
22667 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22672 for ac_header in kerberosIV/des.h
22674 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22676 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22677 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22679 echo $ECHO_N "(cached
) $ECHO_C" >&6
22681 ac_res=`eval echo '${'$as_ac_Header'}'`
22682 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22683 echo "${ECHO_T}$ac_res" >&6; }
22685 # Is the header compilable?
22686 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22687 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22688 cat >conftest.$ac_ext <<_ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22694 $ac_includes_default
22695 #include <$ac_header>
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22706 grep -v '^ *+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22710 (exit $ac_status); } &&
22711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22712 { (case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_try") 2>&5
22719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22720 (exit $ac_status); }; } &&
22721 { ac_try='test -s conftest.$ac_objext'
22722 { (case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_try") 2>&5
22729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22730 (exit $ac_status); }; }; then
22731 ac_header_compiler=yes
22733 echo "$as_me: failed program was
:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22736 ac_header_compiler=no
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22741 echo "${ECHO_T}$ac_header_compiler" >&6; }
22743 # Is the header present?
22744 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22745 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 #include <$ac_header>
22754 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22755 case "(($ac_try" in
22756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757 *) ac_try_echo=$ac_try;;
22759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22762 grep -v '^ *+' conftest.er1 >conftest.err
22764 cat conftest.err >&5
22765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22766 (exit $ac_status); } >/dev/null; then
22767 if test -s conftest.err; then
22768 ac_cpp_err=$ac_c_preproc_warn_flag
22769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22776 if test -z "$ac_cpp_err"; then
22777 ac_header_preproc=yes
22779 echo "$as_me: failed program was
:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22782 ac_header_preproc=no
22785 rm -f conftest.err conftest.$ac_ext
22786 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22787 echo "${ECHO_T}$ac_header_preproc" >&6; }
22789 # So? What about this header?
22790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22792 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22793 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22794 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22796 ac_header_preproc=yes
22799 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22800 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22801 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22802 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22803 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22804 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22805 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22806 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22807 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22809 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22810 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22814 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22815 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22817 echo $ECHO_N "(cached
) $ECHO_C" >&6
22819 eval "$as_ac_Header=\
$ac_header_preproc"
22821 ac_res=`eval echo '${'$as_ac_Header'}'`
22822 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22823 echo "${ECHO_T}$ac_res" >&6; }
22826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22827 cat >>confdefs.h <<_ACEOF
22828 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22833 for ac_header in kerberos/des.h
22835 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22836 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22837 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22838 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22840 echo $ECHO_N "(cached
) $ECHO_C" >&6
22842 ac_res=`eval echo '${'$as_ac_Header'}'`
22843 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22844 echo "${ECHO_T}$ac_res" >&6; }
22846 # Is the header compilable?
22847 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22848 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 $ac_includes_default
22856 #include <$ac_header>
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_compile") 2>conftest.er1
22867 grep -v '^ *+' conftest.er1 >conftest.err
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22871 (exit $ac_status); } &&
22872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22873 { (case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_try") 2>&5
22880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22881 (exit $ac_status); }; } &&
22882 { ac_try='test -s conftest.$ac_objext'
22883 { (case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_try") 2>&5
22890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22891 (exit $ac_status); }; }; then
22892 ac_header_compiler=yes
22894 echo "$as_me: failed program was
:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ac_header_compiler=no
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22902 echo "${ECHO_T}$ac_header_compiler" >&6; }
22904 # Is the header present?
22905 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22906 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 #include <$ac_header>
22915 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22916 case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22921 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22923 grep -v '^ *+' conftest.er1 >conftest.err
22925 cat conftest.err >&5
22926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22927 (exit $ac_status); } >/dev/null; then
22928 if test -s conftest.err; then
22929 ac_cpp_err=$ac_c_preproc_warn_flag
22930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22937 if test -z "$ac_cpp_err"; then
22938 ac_header_preproc=yes
22940 echo "$as_me: failed program was
:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22943 ac_header_preproc=no
22946 rm -f conftest.err conftest.$ac_ext
22947 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22948 echo "${ECHO_T}$ac_header_preproc" >&6; }
22950 # So? What about this header?
22951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22953 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22954 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22955 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22957 ac_header_preproc=yes
22960 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22961 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22962 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22963 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22964 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22965 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22966 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22967 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22968 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22970 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22971 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22975 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22976 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22977 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22978 echo $ECHO_N "(cached
) $ECHO_C" >&6
22980 eval "$as_ac_Header=\
$ac_header_preproc"
22982 ac_res=`eval echo '${'$as_ac_Header'}'`
22983 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22984 echo "${ECHO_T}$ac_res" >&6; }
22987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22988 cat >>confdefs.h <<_ACEOF
22989 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23005 for ac_header in krb.h
23007 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23008 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23009 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23010 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23012 echo $ECHO_N "(cached
) $ECHO_C" >&6
23014 ac_res=`eval echo '${'$as_ac_Header'}'`
23015 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23016 echo "${ECHO_T}$ac_res" >&6; }
23018 # Is the header compilable?
23019 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23020 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23028 #include <$ac_header>
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23037 (eval "$ac_compile") 2>conftest.er1
23039 grep -v '^ *+' conftest.er1 >conftest.err
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23043 (exit $ac_status); } &&
23044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23045 { (case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_try") 2>&5
23052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23053 (exit $ac_status); }; } &&
23054 { ac_try='test -s conftest.$ac_objext'
23055 { (case "(($ac_try" in
23056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057 *) ac_try_echo=$ac_try;;
23059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23060 (eval "$ac_try") 2>&5
23062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_header_compiler=yes
23066 echo "$as_me: failed program was
:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_header_compiler=no
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23074 echo "${ECHO_T}$ac_header_compiler" >&6; }
23076 # Is the header present?
23077 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23078 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 #include <$ac_header>
23087 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23088 case "(($ac_try" in
23089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090 *) ac_try_echo=$ac_try;;
23092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23095 grep -v '^ *+' conftest.er1 >conftest.err
23097 cat conftest.err >&5
23098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23099 (exit $ac_status); } >/dev/null; then
23100 if test -s conftest.err; then
23101 ac_cpp_err=$ac_c_preproc_warn_flag
23102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23109 if test -z "$ac_cpp_err"; then
23110 ac_header_preproc=yes
23112 echo "$as_me: failed program was
:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 ac_header_preproc=no
23118 rm -f conftest.err conftest.$ac_ext
23119 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23120 echo "${ECHO_T}$ac_header_preproc" >&6; }
23122 # So? What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23125 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23126 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23127 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23129 ac_header_preproc=yes
23132 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23133 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23134 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23135 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23136 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23137 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23138 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23139 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23140 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23142 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23143 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23147 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23148 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23150 echo $ECHO_N "(cached
) $ECHO_C" >&6
23152 eval "$as_ac_Header=\
$ac_header_preproc"
23154 ac_res=`eval echo '${'$as_ac_Header'}'`
23155 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23166 for ac_header in kerberosIV/krb.h
23168 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23169 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23170 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23171 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23172 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23173 echo $ECHO_N "(cached
) $ECHO_C" >&6
23175 ac_res=`eval echo '${'$as_ac_Header'}'`
23176 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23177 echo "${ECHO_T}$ac_res" >&6; }
23179 # Is the header compilable?
23180 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23181 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 $ac_includes_default
23189 #include <$ac_header>
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195 *) ac_try_echo=$ac_try;;
23197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23198 (eval "$ac_compile") 2>conftest.er1
23200 grep -v '^ *+' conftest.er1 >conftest.err
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23204 (exit $ac_status); } &&
23205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23206 { (case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_try") 2>&5
23213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_try") 2>&5
23223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225 ac_header_compiler=yes
23227 echo "$as_me: failed program was
:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ac_header_compiler=no
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23235 echo "${ECHO_T}$ac_header_compiler" >&6; }
23237 # Is the header present?
23238 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23239 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23240 cat >conftest.$ac_ext <<_ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23246 #include <$ac_header>
23248 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23260 (exit $ac_status); } >/dev/null; then
23261 if test -s conftest.err; then
23262 ac_cpp_err=$ac_c_preproc_warn_flag
23263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23270 if test -z "$ac_cpp_err"; then
23271 ac_header_preproc=yes
23273 echo "$as_me: failed program was
:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23276 ac_header_preproc=no
23279 rm -f conftest.err conftest.$ac_ext
23280 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23281 echo "${ECHO_T}$ac_header_preproc" >&6; }
23283 # So? What about this header?
23284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23286 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23287 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23288 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23290 ac_header_preproc=yes
23293 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23294 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23295 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23296 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23297 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23298 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23299 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23300 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23301 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23303 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23304 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23308 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23309 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23310 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23311 echo $ECHO_N "(cached
) $ECHO_C" >&6
23313 eval "$as_ac_Header=\
$ac_header_preproc"
23315 ac_res=`eval echo '${'$as_ac_Header'}'`
23316 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23317 echo "${ECHO_T}$ac_res" >&6; }
23320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23321 cat >>confdefs.h <<_ACEOF
23322 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23327 for ac_header in kerberos/krb.h
23329 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23330 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23331 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23332 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23333 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23334 echo $ECHO_N "(cached
) $ECHO_C" >&6
23336 ac_res=`eval echo '${'$as_ac_Header'}'`
23337 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23338 echo "${ECHO_T}$ac_res" >&6; }
23340 # Is the header compilable?
23341 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23342 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23343 cat >conftest.$ac_ext <<_ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 $ac_includes_default
23350 #include <$ac_header>
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23359 (eval "$ac_compile") 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23365 (exit $ac_status); } &&
23366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23367 { (case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_try") 2>&5
23374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23375 (exit $ac_status); }; } &&
23376 { ac_try='test -s conftest.$ac_objext'
23377 { (case "(($ac_try" in
23378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379 *) ac_try_echo=$ac_try;;
23381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23382 (eval "$ac_try") 2>&5
23384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23385 (exit $ac_status); }; }; then
23386 ac_header_compiler=yes
23388 echo "$as_me: failed program was
:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ac_header_compiler=no
23394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23395 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23396 echo "${ECHO_T}$ac_header_compiler" >&6; }
23398 # Is the header present?
23399 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23400 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 #include <$ac_header>
23409 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23410 case "(($ac_try" in
23411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412 *) ac_try_echo=$ac_try;;
23414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23415 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23417 grep -v '^ *+' conftest.er1 >conftest.err
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23421 (exit $ac_status); } >/dev/null; then
23422 if test -s conftest.err; then
23423 ac_cpp_err=$ac_c_preproc_warn_flag
23424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23431 if test -z "$ac_cpp_err"; then
23432 ac_header_preproc=yes
23434 echo "$as_me: failed program was
:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ac_header_preproc=no
23440 rm -f conftest.err conftest.$ac_ext
23441 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23442 echo "${ECHO_T}$ac_header_preproc" >&6; }
23444 # So? What about this header?
23445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23447 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23448 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23449 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23451 ac_header_preproc=yes
23454 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23455 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23456 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23457 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23458 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23459 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23460 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23461 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23462 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23464 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23465 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23469 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23470 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23471 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23472 echo $ECHO_N "(cached
) $ECHO_C" >&6
23474 eval "$as_ac_Header=\
$ac_header_preproc"
23476 ac_res=`eval echo '${'$as_ac_Header'}'`
23477 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23478 echo "${ECHO_T}$ac_res" >&6; }
23481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23482 cat >>confdefs.h <<_ACEOF
23483 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23500 for ac_header in com_err.h
23502 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23503 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23504 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23505 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23506 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23507 echo $ECHO_N "(cached
) $ECHO_C" >&6
23509 ac_res=`eval echo '${'$as_ac_Header'}'`
23510 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23511 echo "${ECHO_T}$ac_res" >&6; }
23513 # Is the header compilable?
23514 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23515 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 $ac_includes_default
23523 #include <$ac_header>
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529 *) ac_try_echo=$ac_try;;
23531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23532 (eval "$ac_compile") 2>conftest.er1
23534 grep -v '^ *+' conftest.er1 >conftest.err
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23538 (exit $ac_status); } &&
23539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23540 { (case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_try") 2>&5
23547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23548 (exit $ac_status); }; } &&
23549 { ac_try='test -s conftest.$ac_objext'
23550 { (case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_try") 2>&5
23557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23558 (exit $ac_status); }; }; then
23559 ac_header_compiler=yes
23561 echo "$as_me: failed program was
:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_header_compiler=no
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23568 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23569 echo "${ECHO_T}$ac_header_compiler" >&6; }
23571 # Is the header present?
23572 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23573 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #include <$ac_header>
23582 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23583 case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23588 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23594 (exit $ac_status); } >/dev/null; then
23595 if test -s conftest.err; then
23596 ac_cpp_err=$ac_c_preproc_warn_flag
23597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23604 if test -z "$ac_cpp_err"; then
23605 ac_header_preproc=yes
23607 echo "$as_me: failed program was
:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ac_header_preproc=no
23613 rm -f conftest.err conftest.$ac_ext
23614 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23615 echo "${ECHO_T}$ac_header_preproc" >&6; }
23617 # So? What about this header?
23618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23620 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23621 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23622 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23624 ac_header_preproc=yes
23627 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23628 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23629 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23630 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23631 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23632 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23633 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23634 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23635 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23637 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23638 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23642 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23643 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23644 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23645 echo $ECHO_N "(cached
) $ECHO_C" >&6
23647 eval "$as_ac_Header=\
$ac_header_preproc"
23649 ac_res=`eval echo '${'$as_ac_Header'}'`
23650 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23651 echo "${ECHO_T}$ac_res" >&6; }
23654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23655 cat >>confdefs.h <<_ACEOF
23656 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23665 # Solaris requires -lintl if you want strerror (which calls dgettext)
23666 # to return localized messages.
23668 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23669 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
23670 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23671 echo $ECHO_N "(cached
) $ECHO_C" >&6
23673 ac_check_lib_save_LIBS=$LIBS
23674 LIBS="-lintl $LIBS"
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23682 /* Override any GCC internal prototype to avoid an error.
23683 Use char because int might match the return type of a GCC
23684 builtin and then its argument prototype would still apply. */
23692 return dgettext ();
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_link") 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23710 (exit $ac_status); } &&
23711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23712 { (case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23717 (eval "$ac_try") 2>&5
23719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest$ac_exeext'
23722 { (case "(($ac_try" in
23723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724 *) ac_try_echo=$ac_try;;
23726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23727 (eval "$ac_try") 2>&5
23729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ac_cv_lib_intl_dgettext=yes
23733 echo "$as_me: failed program was
:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ac_cv_lib_intl_dgettext=no
23739 rm -f core conftest.err conftest.$ac_objext \
23740 conftest$ac_exeext conftest.$ac_ext
23741 LIBS=$ac_check_lib_save_LIBS
23743 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23744 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23745 if test $ac_cv_lib_intl_dgettext = yes; then
23746 cat >>confdefs.h <<_ACEOF
23747 #define HAVE_LIBINTL 1
23750 LIBS="-lintl $LIBS"
23755 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23756 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
23757 if test "${emacs_cv_localtime_cache+set}" = set; then
23758 echo $ECHO_N "(cached
) $ECHO_C" >&6
23760 if test x$ac_cv_func_tzset = xyes; then
23761 if test "$cross_compiling" = yes; then
23762 # If we have tzset, assume the worst when cross-compiling.
23763 emacs_cv_localtime_cache=yes
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23772 extern char **environ;
23776 for (to = from = environ; (*to = *from); from++)
23777 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23780 char TZ_GMT0[] = "TZ
=GMT0
";
23781 char TZ_PST8[] = "TZ
=PST8
";
23784 time_t now = time ((time_t *) 0);
23785 int hour_GMT0, hour_unset;
23786 if (putenv (TZ_GMT0) != 0)
23788 hour_GMT0 = localtime (&now)->tm_hour;
23790 hour_unset = localtime (&now)->tm_hour;
23791 if (putenv (TZ_PST8) != 0)
23793 if (localtime (&now)->tm_hour == hour_GMT0)
23796 if (localtime (&now)->tm_hour != hour_unset)
23801 rm -f conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_link") 2>&5
23810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23812 { (case "(($ac_try" in
23813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814 *) ac_try_echo=$ac_try;;
23816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_try") 2>&5
23819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 emacs_cv_localtime_cache=no
23823 echo "$as_me: program exited with status
$ac_status" >&5
23824 echo "$as_me: failed program was
:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ( exit $ac_status )
23828 emacs_cv_localtime_cache=yes
23830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23835 # If we lack tzset, report that localtime does not cache TZ,
23836 # since we can't invalidate the cache if we don't have tzset.
23837 emacs_cv_localtime_cache=no
23840 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
23841 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
23842 if test $emacs_cv_localtime_cache = yes; then
23844 cat >>confdefs.h <<\_ACEOF
23845 #define LOCALTIME_CACHE 1
23850 if test "x
$HAVE_TIMEVAL" = xyes; then
23852 for ac_func in gettimeofday
23854 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23855 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23856 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23857 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23858 echo $ECHO_N "(cached
) $ECHO_C" >&6
23860 cat >conftest.$ac_ext <<_ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23868 #define $ac_func innocuous_$ac_func
23870 /* System header to define __stub macros and hopefully few prototypes,
23871 which can conflict with char $ac_func (); below.
23872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23873 <limits.h> exists even on freestanding compilers. */
23876 # include <limits.h>
23878 # include <assert.h>
23883 /* Override any GCC internal prototype to avoid an error.
23884 Use char because int might match the return type of a GCC
23885 builtin and then its argument prototype would still apply. */
23890 /* The GNU C library defines this for functions which it implements
23891 to always fail with ENOSYS. Some functions are actually named
23892 something starting with __ and the normal name is an alias. */
23893 #if defined __stub_$ac_func || defined __stub___$ac_func
23900 return $ac_func ();
23905 rm -f conftest.$ac_objext conftest$ac_exeext
23906 if { (ac_try="$ac_link"
23907 case "(($ac_try" in
23908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909 *) ac_try_echo=$ac_try;;
23911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23912 (eval "$ac_link") 2>conftest.er1
23914 grep -v '^ *+' conftest.er1 >conftest.err
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23918 (exit $ac_status); } &&
23919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23920 { (case "(($ac_try" in
23921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23922 *) ac_try_echo=$ac_try;;
23924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23925 (eval "$ac_try") 2>&5
23927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23928 (exit $ac_status); }; } &&
23929 { ac_try='test -s conftest$ac_exeext'
23930 { (case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_try") 2>&5
23937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23938 (exit $ac_status); }; }; then
23939 eval "$as_ac_var=yes"
23941 echo "$as_me: failed program was
:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23944 eval "$as_ac_var=no
"
23947 rm -f core conftest.err conftest.$ac_objext \
23948 conftest$ac_exeext conftest.$ac_ext
23950 ac_res=`eval echo '${'$as_ac_var'}'`
23951 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23952 echo "${ECHO_T}$ac_res" >&6; }
23953 if test `eval echo '${'$as_ac_var'}'` = yes; then
23954 cat >>confdefs.h <<_ACEOF
23955 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23961 if test $ac_cv_func_gettimeofday = yes; then
23962 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
23963 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
23964 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23965 echo $ECHO_N "(cached
) $ECHO_C" >&6
23967 cat >conftest.$ac_ext <<_ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23974 #ifdef TIME_WITH_SYS_TIME
23975 #include <sys/time.h>
23978 #ifdef HAVE_SYS_TIME_H
23979 #include <sys/time.h>
23987 struct timeval time;
23988 gettimeofday (&time, 0);
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24002 grep -v '^ *+' conftest.er1 >conftest.err
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24006 (exit $ac_status); } &&
24007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24008 { (case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_try") 2>&5
24015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
24018 { (case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_try") 2>&5
24025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24026 (exit $ac_status); }; }; then
24027 emacs_cv_gettimeofday_two_arguments=yes
24029 echo "$as_me: failed program was
:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 emacs_cv_gettimeofday_two_arguments=no
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24037 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24038 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
24039 if test $emacs_cv_gettimeofday_two_arguments = no; then
24041 cat >>confdefs.h <<\_ACEOF
24042 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24050 { echo "$as_me:$LINENO: checking
for socket
" >&5
24051 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
24052 if test "${ac_cv_func_socket+set}" = set; then
24053 echo $ECHO_N "(cached
) $ECHO_C" >&6
24055 cat >conftest.$ac_ext <<_ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24063 #define socket innocuous_socket
24065 /* System header to define __stub macros and hopefully few prototypes,
24066 which can conflict with char socket (); below.
24067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068 <limits.h> exists even on freestanding compilers. */
24071 # include <limits.h>
24073 # include <assert.h>
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24085 /* The GNU C library defines this for functions which it implements
24086 to always fail with ENOSYS. Some functions are actually named
24087 something starting with __ and the normal name is an alias. */
24088 #if defined __stub_socket || defined __stub___socket
24100 rm -f conftest.$ac_objext conftest$ac_exeext
24101 if { (ac_try="$ac_link"
24102 case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_link") 2>conftest.er1
24109 grep -v '^ *+' conftest.er1 >conftest.err
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24113 (exit $ac_status); } &&
24114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24115 { (case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24120 (eval "$ac_try") 2>&5
24122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24123 (exit $ac_status); }; } &&
24124 { ac_try='test -s conftest$ac_exeext'
24125 { (case "(($ac_try" in
24126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24127 *) ac_try_echo=$ac_try;;
24129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24130 (eval "$ac_try") 2>&5
24132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ac_cv_func_socket=yes
24136 echo "$as_me: failed program was
:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 ac_cv_func_socket=no
24142 rm -f core conftest.err conftest.$ac_objext \
24143 conftest$ac_exeext conftest.$ac_ext
24145 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24146 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
24147 if test $ac_cv_func_socket = yes; then
24153 if test $ok_so_far = yes; then
24154 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24155 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24156 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
24157 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24158 echo $ECHO_N "(cached
) $ECHO_C" >&6
24160 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24161 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24163 # Is the header compilable?
24164 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24165 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
24166 cat >conftest.$ac_ext <<_ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 $ac_includes_default
24173 #include <netinet/in.h>
24175 rm -f conftest.$ac_objext
24176 if { (ac_try="$ac_compile"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_compile") 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24188 (exit $ac_status); } &&
24189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24190 { (case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24195 (eval "$ac_try") 2>&5
24197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24198 (exit $ac_status); }; } &&
24199 { ac_try='test -s conftest.$ac_objext'
24200 { (case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_try") 2>&5
24207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24208 (exit $ac_status); }; }; then
24209 ac_header_compiler=yes
24211 echo "$as_me: failed program was
:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24214 ac_header_compiler=no
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24219 echo "${ECHO_T}$ac_header_compiler" >&6; }
24221 # Is the header present?
24222 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24223 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
24224 cat >conftest.$ac_ext <<_ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h. */
24230 #include <netinet/in.h>
24232 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24233 case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24240 grep -v '^ *+' conftest.er1 >conftest.err
24242 cat conftest.err >&5
24243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24244 (exit $ac_status); } >/dev/null; then
24245 if test -s conftest.err; then
24246 ac_cpp_err=$ac_c_preproc_warn_flag
24247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24254 if test -z "$ac_cpp_err"; then
24255 ac_header_preproc=yes
24257 echo "$as_me: failed program was
:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24260 ac_header_preproc=no
24263 rm -f conftest.err conftest.$ac_ext
24264 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24265 echo "${ECHO_T}$ac_header_preproc" >&6; }
24267 # So? What about this header?
24268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24270 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24271 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24272 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24273 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24274 ac_header_preproc=yes
24277 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24278 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24279 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24280 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24281 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24282 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24283 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24284 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24285 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24286 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24287 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24288 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24292 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24293 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
24294 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24295 echo $ECHO_N "(cached
) $ECHO_C" >&6
24297 ac_cv_header_netinet_in_h=$ac_header_preproc
24299 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24300 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24303 if test $ac_cv_header_netinet_in_h = yes; then
24311 if test $ok_so_far = yes; then
24312 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24313 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24314 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
24315 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24316 echo $ECHO_N "(cached
) $ECHO_C" >&6
24318 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24319 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24321 # Is the header compilable?
24322 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24323 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
24324 cat >conftest.$ac_ext <<_ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h. */
24330 $ac_includes_default
24331 #include <arpa/inet.h>
24333 rm -f conftest.$ac_objext
24334 if { (ac_try="$ac_compile"
24335 case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24340 (eval "$ac_compile") 2>conftest.er1
24342 grep -v '^ *+' conftest.er1 >conftest.err
24344 cat conftest.err >&5
24345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24346 (exit $ac_status); } &&
24347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24348 { (case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_try") 2>&5
24355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24356 (exit $ac_status); }; } &&
24357 { ac_try='test -s conftest.$ac_objext'
24358 { (case "(($ac_try" in
24359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360 *) ac_try_echo=$ac_try;;
24362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_try") 2>&5
24365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24366 (exit $ac_status); }; }; then
24367 ac_header_compiler=yes
24369 echo "$as_me: failed program was
:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24372 ac_header_compiler=no
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24377 echo "${ECHO_T}$ac_header_compiler" >&6; }
24379 # Is the header present?
24380 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24381 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
24382 cat >conftest.$ac_ext <<_ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24388 #include <arpa/inet.h>
24390 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24398 grep -v '^ *+' conftest.er1 >conftest.err
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24402 (exit $ac_status); } >/dev/null; then
24403 if test -s conftest.err; then
24404 ac_cpp_err=$ac_c_preproc_warn_flag
24405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24412 if test -z "$ac_cpp_err"; then
24413 ac_header_preproc=yes
24415 echo "$as_me: failed program was
:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ac_header_preproc=no
24421 rm -f conftest.err conftest.$ac_ext
24422 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24423 echo "${ECHO_T}$ac_header_preproc" >&6; }
24425 # So? What about this header?
24426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24428 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24429 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24430 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24431 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24432 ac_header_preproc=yes
24435 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24436 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24437 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24438 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24439 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24440 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24441 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24442 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24443 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24444 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24445 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24446 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24450 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24451 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
24452 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24453 echo $ECHO_N "(cached
) $ECHO_C" >&6
24455 ac_cv_header_arpa_inet_h=$ac_header_preproc
24457 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24458 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24461 if test $ac_cv_header_arpa_inet_h = yes; then
24469 if test $ok_so_far = yes; then
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_INET_SOCKETS 1
24478 for ac_header in sys/ioctl.h
24480 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24481 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24482 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24483 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24484 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24485 echo $ECHO_N "(cached
) $ECHO_C" >&6
24487 ac_res=`eval echo '${'$as_ac_Header'}'`
24488 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24489 echo "${ECHO_T}$ac_res" >&6; }
24491 # Is the header compilable?
24492 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24493 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <$ac_header>
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24516 (exit $ac_status); } &&
24517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24518 { (case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_try") 2>&5
24525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24526 (exit $ac_status); }; } &&
24527 { ac_try='test -s conftest.$ac_objext'
24528 { (case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24533 (eval "$ac_try") 2>&5
24535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 ac_header_compiler=yes
24539 echo "$as_me: failed program was
:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 ac_header_compiler=no
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24547 echo "${ECHO_T}$ac_header_compiler" >&6; }
24549 # Is the header present?
24550 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24551 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 #include <$ac_header>
24560 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24568 grep -v '^ *+' conftest.er1 >conftest.err
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24572 (exit $ac_status); } >/dev/null; then
24573 if test -s conftest.err; then
24574 ac_cpp_err=$ac_c_preproc_warn_flag
24575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24582 if test -z "$ac_cpp_err"; then
24583 ac_header_preproc=yes
24585 echo "$as_me: failed program was
:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 ac_header_preproc=no
24591 rm -f conftest.err conftest.$ac_ext
24592 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24593 echo "${ECHO_T}$ac_header_preproc" >&6; }
24595 # So? What about this header?
24596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24598 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24599 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24600 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24602 ac_header_preproc=yes
24605 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24606 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24607 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24608 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24609 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24610 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24611 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24612 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24613 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24615 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24616 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24620 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24621 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24622 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24623 echo $ECHO_N "(cached
) $ECHO_C" >&6
24625 eval "$as_ac_Header=\
$ac_header_preproc"
24627 ac_res=`eval echo '${'$as_ac_Header'}'`
24628 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24629 echo "${ECHO_T}$ac_res" >&6; }
24632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24633 cat >>confdefs.h <<_ACEOF
24634 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24642 if test -f /usr/lpp/X11/bin/smt.exp; then
24644 cat >>confdefs.h <<\_ACEOF
24645 #define HAVE_AIX_SMT_EXP 1
24650 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24651 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
24652 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24653 { echo "$as_me:$LINENO: result
: yes" >&5
24654 echo "${ECHO_T}yes" >&6; }
24656 cat >>confdefs.h <<\_ACEOF
24657 #define HAVE_DEV_PTMX 1
24661 { echo "$as_me:$LINENO: result
: no
" >&5
24662 echo "${ECHO_T}no
" >&6; }
24665 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
24666 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
24667 if test "${ac_cv_type_pid_t+set}" = set; then
24668 echo $ECHO_N "(cached
) $ECHO_C" >&6
24670 cat >conftest.$ac_ext <<_ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24676 $ac_includes_default
24677 typedef pid_t ac__type_new_;
24681 if ((ac__type_new_ *) 0)
24683 if (sizeof (ac__type_new_))
24689 rm -f conftest.$ac_objext
24690 if { (ac_try="$ac_compile"
24691 case "(($ac_try" in
24692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693 *) ac_try_echo=$ac_try;;
24695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24696 (eval "$ac_compile") 2>conftest.er1
24698 grep -v '^ *+' conftest.er1 >conftest.err
24700 cat conftest.err >&5
24701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24702 (exit $ac_status); } &&
24703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24704 { (case "(($ac_try" in
24705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24706 *) ac_try_echo=$ac_try;;
24708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24709 (eval "$ac_try") 2>&5
24711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24712 (exit $ac_status); }; } &&
24713 { ac_try='test -s conftest.$ac_objext'
24714 { (case "(($ac_try" in
24715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_try") 2>&5
24721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 ac_cv_type_pid_t=yes
24725 echo "$as_me: failed program was
:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24728 ac_cv_type_pid_t=no
24731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24734 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24735 if test $ac_cv_type_pid_t = yes; then
24739 cat >>confdefs.h <<_ACEOF
24746 for ac_header in vfork.h
24748 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24749 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24750 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24751 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24753 echo $ECHO_N "(cached
) $ECHO_C" >&6
24755 ac_res=`eval echo '${'$as_ac_Header'}'`
24756 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24757 echo "${ECHO_T}$ac_res" >&6; }
24759 # Is the header compilable?
24760 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24761 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
24762 cat >conftest.$ac_ext <<_ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 $ac_includes_default
24769 #include <$ac_header>
24771 rm -f conftest.$ac_objext
24772 if { (ac_try="$ac_compile"
24773 case "(($ac_try" in
24774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775 *) ac_try_echo=$ac_try;;
24777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24778 (eval "$ac_compile") 2>conftest.er1
24780 grep -v '^ *+' conftest.er1 >conftest.err
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24784 (exit $ac_status); } &&
24785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24786 { (case "(($ac_try" in
24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788 *) ac_try_echo=$ac_try;;
24790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24791 (eval "$ac_try") 2>&5
24793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24794 (exit $ac_status); }; } &&
24795 { ac_try='test -s conftest.$ac_objext'
24796 { (case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_try") 2>&5
24803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24804 (exit $ac_status); }; }; then
24805 ac_header_compiler=yes
24807 echo "$as_me: failed program was
:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24810 ac_header_compiler=no
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24815 echo "${ECHO_T}$ac_header_compiler" >&6; }
24817 # Is the header present?
24818 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24819 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
24820 cat >conftest.$ac_ext <<_ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24826 #include <$ac_header>
24828 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24829 case "(($ac_try" in
24830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24831 *) ac_try_echo=$ac_try;;
24833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24834 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24836 grep -v '^ *+' conftest.er1 >conftest.err
24838 cat conftest.err >&5
24839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24840 (exit $ac_status); } >/dev/null; then
24841 if test -s conftest.err; then
24842 ac_cpp_err=$ac_c_preproc_warn_flag
24843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24850 if test -z "$ac_cpp_err"; then
24851 ac_header_preproc=yes
24853 echo "$as_me: failed program was
:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24856 ac_header_preproc=no
24859 rm -f conftest.err conftest.$ac_ext
24860 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24861 echo "${ECHO_T}$ac_header_preproc" >&6; }
24863 # So? What about this header?
24864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24866 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24867 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24868 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24870 ac_header_preproc=yes
24873 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24874 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24875 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24876 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24877 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24878 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24879 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24880 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24881 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24883 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24884 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24888 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
24889 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
24890 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24891 echo $ECHO_N "(cached
) $ECHO_C" >&6
24893 eval "$as_ac_Header=\
$ac_header_preproc"
24895 ac_res=`eval echo '${'$as_ac_Header'}'`
24896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
24897 echo "${ECHO_T}$ac_res" >&6; }
24900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24901 cat >>confdefs.h <<_ACEOF
24902 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24911 for ac_func in fork vfork
24913 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24914 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
24915 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
24916 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24917 echo $ECHO_N "(cached
) $ECHO_C" >&6
24919 cat >conftest.$ac_ext <<_ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24927 #define $ac_func innocuous_$ac_func
24929 /* System header to define __stub macros and hopefully few prototypes,
24930 which can conflict with char $ac_func (); below.
24931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24932 <limits.h> exists even on freestanding compilers. */
24935 # include <limits.h>
24937 # include <assert.h>
24942 /* Override any GCC internal prototype to avoid an error.
24943 Use char because int might match the return type of a GCC
24944 builtin and then its argument prototype would still apply. */
24949 /* The GNU C library defines this for functions which it implements
24950 to always fail with ENOSYS. Some functions are actually named
24951 something starting with __ and the normal name is an alias. */
24952 #if defined __stub_$ac_func || defined __stub___$ac_func
24959 return $ac_func ();
24964 rm -f conftest.$ac_objext conftest$ac_exeext
24965 if { (ac_try="$ac_link"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_link") 2>conftest.er1
24973 grep -v '^ *+' conftest.er1 >conftest.err
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24977 (exit $ac_status); } &&
24978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24979 { (case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_try") 2>&5
24986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24987 (exit $ac_status); }; } &&
24988 { ac_try='test -s conftest$ac_exeext'
24989 { (case "(($ac_try" in
24990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24991 *) ac_try_echo=$ac_try;;
24993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24994 (eval "$ac_try") 2>&5
24996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24997 (exit $ac_status); }; }; then
24998 eval "$as_ac_var=yes"
25000 echo "$as_me: failed program was
:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 eval "$as_ac_var=no
"
25006 rm -f core conftest.err conftest.$ac_objext \
25007 conftest$ac_exeext conftest.$ac_ext
25009 ac_res=`eval echo '${'$as_ac_var'}'`
25010 { echo "$as_me:$LINENO: result
: $ac_res" >&5
25011 echo "${ECHO_T}$ac_res" >&6; }
25012 if test `eval echo '${'$as_ac_var'}'` = yes; then
25013 cat >>confdefs.h <<_ACEOF
25014 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25020 if test "x
$ac_cv_func_fork" = xyes; then
25021 { echo "$as_me:$LINENO: checking
for working fork
" >&5
25022 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
25023 if test "${ac_cv_func_fork_works+set}" = set; then
25024 echo $ECHO_N "(cached
) $ECHO_C" >&6
25026 if test "$cross_compiling" = yes; then
25027 ac_cv_func_fork_works=cross
25029 cat >conftest.$ac_ext <<_ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 $ac_includes_default
25040 /* By Ruediger Kuhlmann. */
25041 return fork () < 0;
25047 rm -f conftest$ac_exeext
25048 if { (ac_try="$ac_link"
25049 case "(($ac_try" in
25050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051 *) ac_try_echo=$ac_try;;
25053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25054 (eval "$ac_link") 2>&5
25056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25058 { (case "(($ac_try" in
25059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060 *) ac_try_echo=$ac_try;;
25062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25063 (eval "$ac_try") 2>&5
25065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25066 (exit $ac_status); }; }; then
25067 ac_cv_func_fork_works=yes
25069 echo "$as_me: program exited with status
$ac_status" >&5
25070 echo "$as_me: failed program was
:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25073 ( exit $ac_status )
25074 ac_cv_func_fork_works=no
25076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25081 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25082 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25085 ac_cv_func_fork_works=$ac_cv_func_fork
25087 if test "x
$ac_cv_func_fork_works" = xcross; then
25089 *-*-amigaos* | *-*-msdosdjgpp*)
25090 # Override, as these systems have only a dummy fork() stub
25091 ac_cv_func_fork_works=no
25094 ac_cv_func_fork_works=yes
25097 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25098 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25100 ac_cv_func_vfork_works=$ac_cv_func_vfork
25101 if test "x
$ac_cv_func_vfork" = xyes; then
25102 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
25103 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
25104 if test "${ac_cv_func_vfork_works+set}" = set; then
25105 echo $ECHO_N "(cached
) $ECHO_C" >&6
25107 if test "$cross_compiling" = yes; then
25108 ac_cv_func_vfork_works=cross
25110 cat >conftest.$ac_ext <<_ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 /* Thanks to Paul Eggert for this test. */
25117 $ac_includes_default
25118 #include <sys/wait.h>
25120 # include <vfork.h>
25122 /* On some sparc systems, changes by the child to local and incoming
25123 argument registers are propagated back to the parent. The compiler
25124 is told about this with #include <vfork.h>, but some compilers
25125 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25126 static variable whose address is put into a register that is
25127 clobbered by the vfork. */
25130 sparc_address_test (int arg)
25132 sparc_address_test (arg) int arg;
25135 static pid_t child;
25153 pid_t parent = getpid ();
25156 sparc_address_test (0);
25161 /* Here is another test for sparc vfork register problems. This
25162 test uses lots of local variables, at least as many local
25163 variables as main has allocated so far including compiler
25164 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25165 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25166 reuse the register of parent for one of the local variables,
25167 since it will think that parent can't possibly be used any more
25168 in this routine. Assigning to the local variable will thus
25169 munge parent in the parent process. */
25171 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25172 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25173 /* Convince the compiler that p..p7 are live; otherwise, it might
25174 use the same hardware register for all 8 local variables. */
25175 if (p != p1 || p != p2 || p != p3 || p != p4
25176 || p != p5 || p != p6 || p != p7)
25179 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25180 from child file descriptors. If the child closes a descriptor
25181 before it execs or exits, this munges the parent's descriptor
25182 as well. Test for this by closing stdout in the child. */
25183 _exit(close(fileno(stdout)) != 0);
25188 while (wait(&status) != child)
25191 /* Was there some problem with vforking? */
25194 /* Did the child fail? (This shouldn't happen.) */
25197 /* Did the vfork/compiler bug occur? */
25198 || parent != getpid()
25200 /* Did the file descriptor bug occur? */
25201 || fstat(fileno(stdout), &st) != 0
25206 rm -f conftest$ac_exeext
25207 if { (ac_try="$ac_link"
25208 case "(($ac_try" in
25209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210 *) ac_try_echo=$ac_try;;
25212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25213 (eval "$ac_link") 2>&5
25215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217 { (case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25222 (eval "$ac_try") 2>&5
25224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_func_vfork_works=yes
25228 echo "$as_me: program exited with status
$ac_status" >&5
25229 echo "$as_me: failed program was
:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25232 ( exit $ac_status )
25233 ac_cv_func_vfork_works=no
25235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25240 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25241 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25244 if test "x
$ac_cv_func_fork_works" = xcross; then
25245 ac_cv_func_vfork_works=$ac_cv_func_vfork
25246 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25247 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25250 if test "x
$ac_cv_func_vfork_works" = xyes; then
25252 cat >>confdefs.h <<\_ACEOF
25253 #define HAVE_WORKING_VFORK 1
25258 cat >>confdefs.h <<\_ACEOF
25263 if test "x
$ac_cv_func_fork_works" = xyes; then
25265 cat >>confdefs.h <<\_ACEOF
25266 #define HAVE_WORKING_FORK 1
25272 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25273 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
25274 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25275 echo $ECHO_N "(cached
) $ECHO_C" >&6
25277 cat >conftest.$ac_ext <<_ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25283 #include <langinfo.h>
25287 char* cs = nl_langinfo(CODESET);
25292 rm -f conftest.$ac_objext conftest$ac_exeext
25293 if { (ac_try="$ac_link"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_link") 2>conftest.er1
25301 grep -v '^ *+' conftest.er1 >conftest.err
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25305 (exit $ac_status); } &&
25306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25307 { (case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_try") 2>&5
25314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25315 (exit $ac_status); }; } &&
25316 { ac_try='test -s conftest$ac_exeext'
25317 { (case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_try") 2>&5
25324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25325 (exit $ac_status); }; }; then
25326 emacs_cv_langinfo_codeset=yes
25328 echo "$as_me: failed program was
:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25331 emacs_cv_langinfo_codeset=no
25334 rm -f core conftest.err conftest.$ac_objext \
25335 conftest$ac_exeext conftest.$ac_ext
25338 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25339 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
25340 if test $emacs_cv_langinfo_codeset = yes; then
25342 cat >>confdefs.h <<\_ACEOF
25343 #define HAVE_LANGINFO_CODESET 1
25348 { echo "$as_me:$LINENO: checking
for size_t
" >&5
25349 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
25350 if test "${ac_cv_type_size_t+set}" = set; then
25351 echo $ECHO_N "(cached
) $ECHO_C" >&6
25353 cat >conftest.$ac_ext <<_ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h. */
25359 $ac_includes_default
25360 typedef size_t ac__type_new_;
25364 if ((ac__type_new_ *) 0)
25366 if (sizeof (ac__type_new_))
25372 rm -f conftest.$ac_objext
25373 if { (ac_try="$ac_compile"
25374 case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_compile") 2>conftest.er1
25381 grep -v '^ *+' conftest.er1 >conftest.err
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25385 (exit $ac_status); } &&
25386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25387 { (case "(($ac_try" in
25388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389 *) ac_try_echo=$ac_try;;
25391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25392 (eval "$ac_try") 2>&5
25394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25395 (exit $ac_status); }; } &&
25396 { ac_try='test -s conftest.$ac_objext'
25397 { (case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25402 (eval "$ac_try") 2>&5
25404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25405 (exit $ac_status); }; }; then
25406 ac_cv_type_size_t=yes
25408 echo "$as_me: failed program was
:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25411 ac_cv_type_size_t=no
25414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25417 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25418 if test $ac_cv_type_size_t = yes; then
25420 cat >>confdefs.h <<_ACEOF
25421 #define HAVE_SIZE_T 1
25428 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25429 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
25430 if test "${ac_cv_type_mbstate_t+set}" = set; then
25431 echo $ECHO_N "(cached
) $ECHO_C" >&6
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25440 # include <wchar.h>
25444 mbstate_t x; return sizeof x;
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_compile") 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25464 { (case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25469 (eval "$ac_try") 2>&5
25471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25472 (exit $ac_status); }; } &&
25473 { ac_try='test -s conftest.$ac_objext'
25474 { (case "(($ac_try" in
25475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25476 *) ac_try_echo=$ac_try;;
25478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25479 (eval "$ac_try") 2>&5
25481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25482 (exit $ac_status); }; }; then
25483 ac_cv_type_mbstate_t=yes
25485 echo "$as_me: failed program was
:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25488 ac_cv_type_mbstate_t=no
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25494 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
25495 if test $ac_cv_type_mbstate_t = yes; then
25497 cat >>confdefs.h <<\_ACEOF
25498 #define HAVE_MBSTATE_T 1
25503 cat >>confdefs.h <<\_ACEOF
25504 #define mbstate_t int
25509 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25510 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
25511 if test "${emacs_cv_c_restrict+set}" = set; then
25512 echo $ECHO_N "(cached
) $ECHO_C" >&6
25514 cat >conftest.$ac_ext <<_ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h. */
25520 void fred (int *restrict x);
25529 rm -f conftest.$ac_objext
25530 if { (ac_try="$ac_compile"
25531 case "(($ac_try" in
25532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533 *) ac_try_echo=$ac_try;;
25535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25536 (eval "$ac_compile") 2>conftest.er1
25538 grep -v '^ *+' conftest.er1 >conftest.err
25540 cat conftest.err >&5
25541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25542 (exit $ac_status); } &&
25543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25544 { (case "(($ac_try" in
25545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546 *) ac_try_echo=$ac_try;;
25548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25549 (eval "$ac_try") 2>&5
25551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25552 (exit $ac_status); }; } &&
25553 { ac_try='test -s conftest.$ac_objext'
25554 { (case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_try") 2>&5
25561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25562 (exit $ac_status); }; }; then
25563 emacs_cv_c_restrict=yes
25565 echo "$as_me: failed program was
:" >&5
25566 sed 's/^/| /' conftest.$ac_ext >&5
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 void fred (int *__restrict x);
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587 *) ac_try_echo=$ac_try;;
25589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25590 (eval "$ac_compile") 2>conftest.er1
25592 grep -v '^ *+' conftest.er1 >conftest.err
25594 cat conftest.err >&5
25595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25596 (exit $ac_status); } &&
25597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25598 { (case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25603 (eval "$ac_try") 2>&5
25605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25606 (exit $ac_status); }; } &&
25607 { ac_try='test -s conftest.$ac_objext'
25608 { (case "(($ac_try" in
25609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610 *) ac_try_echo=$ac_try;;
25612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25613 (eval "$ac_try") 2>&5
25615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25616 (exit $ac_status); }; }; then
25617 emacs_cv_c_restrict=__restrict
25619 echo "$as_me: failed program was
:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25622 emacs_cv_c_restrict=no
25625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25631 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
25632 case "$emacs_cv_c_restrict" in
25633 yes) emacs_restrict=restrict;;
25634 no) emacs_restrict="";;
25635 *) emacs_restrict="$emacs_cv_c_restrict";;
25637 if test "$emacs_restrict" != __restrict; then
25639 cat >>confdefs.h <<_ACEOF
25640 #define __restrict $emacs_restrict
25645 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25646 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
25647 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25648 echo $ECHO_N "(cached
) $ECHO_C" >&6
25650 cat >conftest.$ac_ext <<_ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 void fred (int x[__restrict]);
25665 rm -f conftest.$ac_objext
25666 if { (ac_try="$ac_compile"
25667 case "(($ac_try" in
25668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669 *) ac_try_echo=$ac_try;;
25671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25672 (eval "$ac_compile") 2>conftest.er1
25674 grep -v '^ *+' conftest.er1 >conftest.err
25676 cat conftest.err >&5
25677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25678 (exit $ac_status); } &&
25679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25680 { (case "(($ac_try" in
25681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682 *) ac_try_echo=$ac_try;;
25684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25685 (eval "$ac_try") 2>&5
25687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25688 (exit $ac_status); }; } &&
25689 { ac_try='test -s conftest.$ac_objext'
25690 { (case "(($ac_try" in
25691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692 *) ac_try_echo=$ac_try;;
25694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25695 (eval "$ac_try") 2>&5
25697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25698 (exit $ac_status); }; }; then
25699 emacs_cv_c_restrict_arr=yes
25701 echo "$as_me: failed program was
:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25704 emacs_cv_c_restrict_arr=no
25707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25710 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
25711 if test "$emacs_cv_c_restrict_arr" = yes; then
25713 cat >>confdefs.h <<\_ACEOF
25714 #define __restrict_arr __restrict
25721 # Set up the CFLAGS for real compilation, so we can substitute it.
25722 CFLAGS="$REAL_CFLAGS"
25723 CPPFLAGS="$REAL_CPPFLAGS"
25725 #### Find out which version of Emacs this is.
25726 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25727 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25728 if test x"${version}" = x; then
25729 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25730 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25731 { (exit 1); exit 1; }; }
25734 ### Specify what sort of things we'll be editing into Makefile and config.h.
25735 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25771 cat >>confdefs.h <<_ACEOF
25772 #define EMACS_CONFIGURATION "${canonical}"
25776 cat >>confdefs.h <<_ACEOF
25777 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25781 cat >>confdefs.h <<_ACEOF
25782 #define config_machfile "${machfile}"
25786 cat >>confdefs.h <<_ACEOF
25787 #define config_opsysfile "${opsysfile}"
25791 cat >>confdefs.h <<_ACEOF
25792 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25796 cat >>confdefs.h <<_ACEOF
25797 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25801 cat >>confdefs.h <<_ACEOF
25802 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25806 cat >>confdefs.h <<_ACEOF
25807 #define UNEXEC_SRC ${UNEXEC_SRC}
25811 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25813 cat >>confdefs.h <<\_ACEOF
25814 #define HAVE_X_WINDOWS 1
25818 if test "${USE_X_TOOLKIT}" != "none
" ; then
25820 cat >>confdefs.h <<\_ACEOF
25821 #define USE_X_TOOLKIT 1
25825 if test "${HAVE_X11}" = "yes" ; then
25827 cat >>confdefs.h <<\_ACEOF
25832 if test "${HAVE_XFREE386}" = "yes" ; then
25834 cat >>confdefs.h <<\_ACEOF
25835 #define HAVE_XFREE386 1
25839 if test "${HAVE_MENUS}" = "yes" ; then
25841 cat >>confdefs.h <<\_ACEOF
25842 #define HAVE_MENUS 1
25846 if test "${GNU_MALLOC}" = "yes" ; then
25848 cat >>confdefs.h <<\_ACEOF
25849 #define GNU_MALLOC 1
25853 if test "${REL_ALLOC}" = "yes" ; then
25855 cat >>confdefs.h <<\_ACEOF
25856 #define REL_ALLOC 1
25865 #### Report on what we decided to do.
25866 #### Report GTK as a toolkit, even if it doesn't use Xt.
25867 #### It makes printing result more understandable as using GTK sets
25868 #### toolkit_scroll_bars to yes by default.
25869 if test "${HAVE_GTK}" = "yes"; then
25874 Configured
for \
`${canonical}'.
25876 Where should the build process find the source code? ${srcdir}
25877 What operating system and machine description files should Emacs use?
25878 \`${opsysfile}' and \`${machfile}'
25879 What compiler should emacs be built with?
${CC} ${CFLAGS}
25880 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
25881 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
25882 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
25883 What window system should Emacs use?
${window_system}
25884 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
25886 if test -n "${x_includes}"; then
25887 echo " Where
do we
find X Windows header files?
${x_includes}"
25889 echo " Where
do we
find X Windows header files? Standard
dirs"
25891 if test -n "${x_libraries}"; then
25892 echo " Where
do we
find X Windows libraries?
${x_libraries}"
25894 echo " Where
do we
find X Windows libraries? Standard
dirs"
25897 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
25898 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
25899 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
25900 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
25901 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
25902 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
25903 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
25906 if test $USE_XASSERTS = yes; then
25907 echo " Compiling with asserts turned on.
"
25908 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25914 # Remove any trailing slashes in these variables.
25915 test "${prefix}" != NONE &&
25916 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25917 test "${exec_prefix}" != NONE &&
25918 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25920 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25921 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25922 ## from Makefile.c can correctly provide the arg `-traditional' to the
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25933 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25934 $EGREP "yes..
yes" >/dev/null 2>&1; then
25935 CPP_NEED_TRADITIONAL=no
25937 CPP_NEED_TRADITIONAL=yes
25942 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
"
25944 ac_config_commands="$ac_config_commands default
"
25946 cat >confcache <<\_ACEOF
25947 # This file is a shell script that caches the results of configure
25948 # tests run on this system so they can be shared between configure
25949 # scripts and configure runs, see configure's option --config-cache.
25950 # It is not useful on other systems. If it contains results you don't
25951 # want to keep, you may remove or edit it.
25953 # config.status only pays attention to the cache file if you give it
25954 # the --recheck option to rerun configure.
25956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25958 # following values.
25962 # The following way of writing the cache mishandles newlines in values,
25963 # but we know of no workaround that is simple, portable, and efficient.
25964 # So, we kill variables containing newlines.
25965 # Ultrix sh set writes to stderr and can't be redirected directly,
25966 # and sets the high bit in the cache file unless we assign to the vars.
25968 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25969 eval ac_val=\$$ac_var
25973 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
25974 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
25977 _ | IFS | as_nl) ;; #(
25978 *) $as_unset $ac_var ;;
25984 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25985 *${as_nl}ac_space=\ *)
25986 # `set' does not quote correctly, so add quotes (double-quote
25987 # substitution turns \\\\ into \\, and sed turns \\ into \).
25990 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
25993 # `set' quotes correctly as required by POSIX, so do not add quotes.
25994 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26003 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26008 if test -w "$cache_file"; then
26009 test "x
$cache_file" != "x
/dev
/null
" &&
26010 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26011 echo "$as_me: updating cache
$cache_file" >&6;}
26012 cat confcache >$cache_file
26014 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26015 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26020 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26021 # Let make expand exec_prefix.
26022 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26024 DEFS=-DHAVE_CONFIG_H
26028 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26029 # 1. Remove the extension, and $U if already installed.
26030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26031 ac_i=`echo "$ac_i" | sed "$ac_script"`
26032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26033 # will be set to the directory where LIBOBJS objects are built.
26034 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26035 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26037 LIBOBJS=$ac_libobjs
26039 LTLIBOBJS=$ac_ltlibobjs
26043 : ${CONFIG_STATUS=./config.status}
26044 ac_clean_files_save=$ac_clean_files
26045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26046 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26047 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26048 cat >$CONFIG_STATUS <<_ACEOF
26050 # Generated by $as_me.
26051 # Run this file to recreate the current configuration.
26052 # Compiler output produced by configure, useful for debugging
26053 # configure, is in config.log if it exists.
26056 ac_cs_recheck=false
26058 SHELL=\${CONFIG_SHELL-$SHELL}
26061 cat >>$CONFIG_STATUS <<\_ACEOF
26062 ## --------------------- ##
26063 ## M4sh Initialization. ##
26064 ## --------------------- ##
26066 # Be Bourne compatible
26067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26070 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26071 # is contrary to our usage. Disable this feature.
26072 alias -g '${1+"$@"}'='"$@
"'
26073 setopt NO_GLOB_SUBST
26075 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26077 BIN_SH=xpg4; export BIN_SH # for Tru64
26078 DUALCASE=1; export DUALCASE # for MKS sh
26082 # Avoid depending upon Character Ranges.
26083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26086 as_cr_digits='0123456789'
26087 as_cr_alnum=$as_cr_Letters$as_cr_digits
26089 # The user is always right.
26090 if test "${PATH_SEPARATOR+set}" != set; then
26091 echo "#! /bin/sh" >conf$$.sh
26092 echo "exit 0" >>conf$$.sh
26094 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26102 # Support unset when possible.
26103 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26111 # We need space, tab and new line, in precisely that order. Quoting is
26112 # there to prevent editors from complaining about space-tab.
26113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26114 # splitting by setting IFS to empty value.)
26119 # Find who we are. Look in the path if we contain no directory separator.
26121 *[\\/]* ) as_myself
=$0 ;;
26122 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26123 for as_dir
in $PATH
26126 test -z "$as_dir" && as_dir
=.
26127 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26133 # We did not find ourselves, most probably we were run as `sh COMMAND'
26134 # in which case we are not to be found in the path.
26135 if test "x$as_myself" = x
; then
26138 if test ! -f "$as_myself"; then
26139 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26140 { (exit 1); exit 1; }
26143 # Work around bugs in pre-3.0 UWIN ksh.
26144 for as_var
in ENV MAIL MAILPATH
26145 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26153 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26154 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26155 LC_TELEPHONE LC_TIME
26157 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26158 eval $as_var=C
; export $as_var
26160 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26164 # Required to use basename.
26165 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26166 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26172 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26173 as_basename
=basename
26179 # Name of the executable.
26180 as_me
=`$as_basename -- "$0" ||
26181 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26182 X"$0" : 'X\(//\)$' \| \
26183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26185 sed '/^.*\/\([^/][^/]*\)\/*$/{
26204 as_lineno_1
=$LINENO
26205 as_lineno_2
=$LINENO
26206 test "x$as_lineno_1" != "x$as_lineno_2" &&
26207 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26209 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26210 # uniformly replaced by the line number. The first 'sed' inserts a
26211 # line-number line after each line using $LINENO; the second 'sed'
26212 # does the real work. The second script uses 'N' to pair each
26213 # line-number line with the line containing $LINENO, and appends
26214 # trailing '-' during substitution so that $LINENO is not a special
26215 # case at line end.
26216 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26217 # scripts with optimization help from Paolo Bonzini. Blame Lee
26218 # E. McMahon (1931-1989) for sed's syntax. :-)
26230 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26233 ' >$as_me.lineno
&&
26234 chmod +x
"$as_me.lineno" ||
26235 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26236 { (exit 1); exit 1; }; }
26238 # Don't try to exec as it changes $[0], causing all sort of problems
26239 # (the dirname of $[0] is not the place where we might find the
26240 # original and so on. Autoconf is especially sensitive to this).
26241 .
"./$as_me.lineno"
26242 # Exit status is that of the last command.
26247 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26253 ECHO_C
= ECHO_N
= ECHO_T
=
26254 case `echo -n x` in
26256 case `echo 'x\c'` in
26257 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26264 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26265 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26271 rm -f conf$$ conf$$.exe conf$$.
file
26272 if test -d conf$$.dir
; then
26273 rm -f conf$$.dir
/conf$$.
file
26279 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26281 # ... but there are two gotchas:
26282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26284 # In both cases, we have to default to `cp -p'.
26285 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26287 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26292 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26293 rmdir conf$$.dir
2>/dev
/null
26295 if mkdir
-p .
2>/dev
/null
; then
26298 test -d .
/-p && rmdir .
/-p
26302 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26303 # systems may use methods other than mode bits to determine executability.
26304 cat >conf$$.
file <<_ASEOF
26308 chmod +x conf$$.
file
26309 if test -x conf$$.
file >/dev
/null
2>&1; then
26310 as_executable_p
="test -x"
26316 # Sed expression to map a string onto a valid CPP name.
26317 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26319 # Sed expression to map a string onto a valid variable name.
26320 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26325 # Save the log message, to keep $[0] and so on meaningful, and to
26326 # report actual input values of CONFIG_FILES etc. instead of their
26327 # values after options handling.
26329 This file was extended by $as_me, which was
26330 generated by GNU Autoconf 2.60. Invocation command line was
26332 CONFIG_FILES = $CONFIG_FILES
26333 CONFIG_HEADERS = $CONFIG_HEADERS
26334 CONFIG_LINKS = $CONFIG_LINKS
26335 CONFIG_COMMANDS = $CONFIG_COMMANDS
26338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26343 cat >>$CONFIG_STATUS <<_ACEOF
26344 # Files that config.status was made for.
26345 config_files="$ac_config_files"
26346 config_headers="$ac_config_headers"
26347 config_commands="$ac_config_commands"
26351 cat >>$CONFIG_STATUS <<\_ACEOF
26353 \`$as_me' instantiates files from templates according to the
26354 current configuration.
26356 Usage: $0 [OPTIONS] [FILE]...
26358 -h, --help print this help, then exit
26359 -V, --version print version number, then exit
26360 -q, --quiet do not print progress messages
26361 -d, --debug don't remove temporary files
26362 --recheck update $as_me by reconfiguring in the same conditions
26363 --file=FILE[:TEMPLATE]
26364 instantiate the configuration file FILE
26365 --header=FILE[:TEMPLATE]
26366 instantiate the configuration header FILE
26368 Configuration files:
26371 Configuration headers:
26374 Configuration commands:
26377 Report bugs to <bug-autoconf@gnu.org>."
26380 cat >>$CONFIG_STATUS <<_ACEOF
26383 configured by $0, generated by GNU Autoconf 2.60,
26384 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26386 Copyright (C) 2006 Free Software Foundation, Inc.
26387 This config.status script is free software; the Free Software Foundation
26388 gives unlimited permission to copy, distribute and modify it."
26395 cat >>$CONFIG_STATUS <<\_ACEOF
26396 # If no file are specified by the user, then we need to provide default
26397 # value. By we need to know if files were specified by the user.
26403 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26404 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26415 # Handling of the options.
26416 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26418 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26419 echo "$ac_cs_version"; exit ;;
26420 --debug |
--debu |
--deb |
--de |
--d |
-d )
26422 --file |
--fil |
--fi |
--f )
26424 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26425 ac_need_defaults
=false
;;
26426 --header |
--heade |
--head |
--hea )
26428 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26429 ac_need_defaults
=false
;;
26431 # Conflict between --help and --header
26432 { echo "$as_me: error: ambiguous option: $1
26433 Try \`$0 --help' for more information." >&2
26434 { (exit 1); exit 1; }; };;
26435 --help |
--hel |
-h )
26436 echo "$ac_cs_usage"; exit ;;
26437 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26438 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26441 # This is an error.
26442 -*) { echo "$as_me: error: unrecognized option: $1
26443 Try \`$0 --help' for more information." >&2
26444 { (exit 1); exit 1; }; } ;;
26446 *) ac_config_targets
="$ac_config_targets $1"
26447 ac_need_defaults
=false
;;
26453 ac_configure_extra_args
=
26455 if $ac_cs_silent; then
26457 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26461 cat >>$CONFIG_STATUS <<_ACEOF
26462 if \$ac_cs_recheck; then
26463 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26464 CONFIG_SHELL=$SHELL
26465 export CONFIG_SHELL
26466 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26470 cat >>$CONFIG_STATUS <<\_ACEOF
26474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26475 ## Running $as_me. ##
26481 cat >>$CONFIG_STATUS <<_ACEOF
26485 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
26489 cat >>$CONFIG_STATUS <<\_ACEOF
26491 # Handling of arguments.
26492 for ac_config_target
in $ac_config_targets
26494 case $ac_config_target in
26495 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26496 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26497 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26498 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26499 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
26500 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26501 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26502 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26503 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
26504 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
26505 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26506 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26508 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26510 { (exit 1); exit 1; }; };;
26515 # If the user did not use the arguments to specify the items to instantiate,
26516 # then the envvar interface is used. Set only those that are not.
26517 # We use the long form for the default assignment because of an extremely
26518 # bizarre bug on SunOS 4.1.3.
26519 if $ac_need_defaults; then
26520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26525 # Have a temporary directory for convenience. Make it in the build tree
26526 # simply because there is no reason against having it here, and in addition,
26527 # creating and moving files from /tmp can sometimes cause problems.
26528 # Hook for its removal unless debugging.
26529 # Note that there is a small window in which the directory will not be cleaned:
26530 # after its creation but before its name has been assigned to `$tmp'.
26534 trap 'exit_status=$?
26535 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26537 trap '{ (exit 1); exit 1; }' 1 2 13 15
26539 # Create a (secure) tmp directory for tmp files.
26542 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26543 test -n "$tmp" && test -d "$tmp"
26546 tmp
=.
/conf$$
-$RANDOM
26547 (umask 077 && mkdir
"$tmp")
26550 echo "$me: cannot create a temporary directory in ." >&2
26551 { (exit 1); exit 1; }
26555 # Set up the sed scripts for CONFIG_FILES section.
26558 # No need to generate the scripts if there are no CONFIG_FILES.
26559 # This happens for instance when ./config.status config.h
26560 if test -n "$CONFIG_FILES"; then
26567 for ac_last_try
in false false false false false
:; do
26568 cat >conf$
$subs.
sed <<_ACEOF
26569 SHELL!$SHELL$ac_delim
26570 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26571 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26572 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26573 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26574 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26575 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26576 exec_prefix!$exec_prefix$ac_delim
26577 prefix!$prefix$ac_delim
26578 program_transform_name!$program_transform_name$ac_delim
26579 bindir!$bindir$ac_delim
26580 sbindir!$sbindir$ac_delim
26581 libexecdir!$libexecdir$ac_delim
26582 datarootdir!$datarootdir$ac_delim
26583 datadir!$datadir$ac_delim
26584 sysconfdir!$sysconfdir$ac_delim
26585 sharedstatedir!$sharedstatedir$ac_delim
26586 localstatedir!$localstatedir$ac_delim
26587 includedir!$includedir$ac_delim
26588 oldincludedir!$oldincludedir$ac_delim
26589 docdir!$docdir$ac_delim
26590 infodir!$infodir$ac_delim
26591 htmldir!$htmldir$ac_delim
26592 dvidir!$dvidir$ac_delim
26593 pdfdir!$pdfdir$ac_delim
26594 psdir!$psdir$ac_delim
26595 libdir!$libdir$ac_delim
26596 localedir!$localedir$ac_delim
26597 mandir!$mandir$ac_delim
26598 DEFS!$DEFS$ac_delim
26599 ECHO_C!$ECHO_C$ac_delim
26600 ECHO_N!$ECHO_N$ac_delim
26601 ECHO_T!$ECHO_T$ac_delim
26602 LIBS!$LIBS$ac_delim
26603 build_alias!$build_alias$ac_delim
26604 host_alias!$host_alias$ac_delim
26605 target_alias!$target_alias$ac_delim
26606 MAINT!$MAINT$ac_delim
26607 build!$build$ac_delim
26608 build_cpu!$build_cpu$ac_delim
26609 build_vendor!$build_vendor$ac_delim
26610 build_os!$build_os$ac_delim
26611 host!$host$ac_delim
26612 host_cpu!$host_cpu$ac_delim
26613 host_vendor!$host_vendor$ac_delim
26614 host_os!$host_os$ac_delim
26616 CFLAGS!$CFLAGS$ac_delim
26617 LDFLAGS!$LDFLAGS$ac_delim
26618 CPPFLAGS!$CPPFLAGS$ac_delim
26619 ac_ct_CC!$ac_ct_CC$ac_delim
26620 EXEEXT!$EXEEXT$ac_delim
26621 OBJEXT!$OBJEXT$ac_delim
26623 GREP!$GREP$ac_delim
26624 EGREP!$EGREP$ac_delim
26625 LN_S!$LN_S$ac_delim
26626 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26627 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26628 INSTALL_DATA!$INSTALL_DATA$ac_delim
26629 RANLIB!$RANLIB$ac_delim
26630 INSTALL_INFO!$INSTALL_INFO$ac_delim
26631 GZIP_PROG!$GZIP_PROG$ac_delim
26632 LIBSOUND!$LIBSOUND$ac_delim
26633 PKG_CONFIG!$PKG_CONFIG$ac_delim
26634 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
26635 ALSA_LIBS!$ALSA_LIBS$ac_delim
26636 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
26637 SET_MAKE!$SET_MAKE$ac_delim
26638 XMKMF!$XMKMF$ac_delim
26639 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
26640 GTK_LIBS!$GTK_LIBS$ac_delim
26641 ALLOCA!$ALLOCA$ac_delim
26642 liblockfile!$liblockfile$ac_delim
26643 LIBOBJS!$LIBOBJS$ac_delim
26644 NEED_SETGID!$NEED_SETGID$ac_delim
26645 KMEM_GROUP!$KMEM_GROUP$ac_delim
26646 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
26647 GETOPT_H!$GETOPT_H$ac_delim
26648 GETOPTOBJS!$GETOPTOBJS$ac_delim
26649 version!$version$ac_delim
26650 configuration!$configuration$ac_delim
26651 canonical!$canonical$ac_delim
26652 srcdir!$srcdir$ac_delim
26653 lispdir!$lispdir$ac_delim
26654 locallisppath!$locallisppath$ac_delim
26655 lisppath!$lisppath$ac_delim
26656 x_default_search_path!$x_default_search_path$ac_delim
26657 etcdir!$etcdir$ac_delim
26658 archlibdir!$archlibdir$ac_delim
26659 bitmapdir!$bitmapdir$ac_delim
26660 gamedir!$gamedir$ac_delim
26661 gameuser!$gameuser$ac_delim
26662 c_switch_system!$c_switch_system$ac_delim
26663 c_switch_machine!$c_switch_machine$ac_delim
26664 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
26665 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
26668 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26670 elif $ac_last_try; then
26671 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26672 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26673 { (exit 1); exit 1; }; }
26675 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26679 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26680 if test -n "$ac_eof"; then
26681 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26682 ac_eof
=`expr $ac_eof + 1`
26685 cat >>$CONFIG_STATUS <<_ACEOF
26686 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26690 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26691 s/^/s,@/; s/!/@,|#_!!_#|/
26694 s/'"$ac_delim"'$/,g/; t
26696 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26697 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26698 rm -f conf$
$subs.
sed
26699 cat >>$CONFIG_STATUS <<_ACEOF
26705 for ac_last_try
in false false false false false
:; do
26706 cat >conf$
$subs.
sed <<_ACEOF
26707 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
26708 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
26709 machfile!$machfile$ac_delim
26710 opsysfile!$opsysfile$ac_delim
26711 carbon_appdir!$carbon_appdir$ac_delim
26712 LTLIBOBJS!$LTLIBOBJS$ac_delim
26715 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
26717 elif $ac_last_try; then
26718 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26720 { (exit 1); exit 1; }; }
26722 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26726 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26727 if test -n "$ac_eof"; then
26728 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26729 ac_eof
=`expr $ac_eof + 1`
26732 cat >>$CONFIG_STATUS <<_ACEOF
26733 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26738 s/^/s,@/; s/!/@,|#_!!_#|/
26741 s/'"$ac_delim"'$/,g/; t
26743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26744 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26745 rm -f conf$
$subs.
sed
26746 cat >>$CONFIG_STATUS <<_ACEOF
26753 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26754 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26755 # trailing colons and then remove the whole line if VPATH becomes empty
26756 # (actually we leave an empty line to preserve line numbers).
26757 if test "x$srcdir" = x.
; then
26758 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26759 s/:*\$(srcdir):*/:/
26760 s/:*\${srcdir}:*/:/
26762 s/^\([^=]*=[ ]*\):*/\1/
26768 cat >>$CONFIG_STATUS <<\_ACEOF
26769 fi # test -n "$CONFIG_FILES"
26772 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
26775 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26777 case $ac_mode$ac_tag in
26779 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26780 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26781 { (exit 1); exit 1; }; };;
26782 :[FH
]-) ac_tag
=-:-;;
26783 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26800 -) ac_f
="$tmp/stdin";;
26801 *) # Look for the file first in the build tree, then in the source tree
26802 # (if the path is not absolute). The absolute path cannot be DOS-style,
26803 # because $ac_f cannot contain `:'.
26807 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26809 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26810 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26811 { (exit 1); exit 1; }; };;
26813 ac_file_inputs
="$ac_file_inputs $ac_f"
26816 # Let's still pretend it is `configure' which instantiates (i.e., don't
26817 # use $as_me), people would be surprised to read:
26818 # /* config.h. Generated by config.status. */
26819 configure_input
="Generated from "`IFS=:
26820 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26821 if test x
"$ac_file" != x-
; then
26822 configure_input
="$ac_file. $configure_input"
26823 { echo "$as_me:$LINENO: creating $ac_file" >&5
26824 echo "$as_me: creating $ac_file" >&6;}
26828 *:-:* |
*:-) cat >"$tmp/stdin";;
26833 ac_dir
=`$as_dirname -- "$ac_file" ||
26834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26835 X"$ac_file" : 'X\(//\)[^/]' \| \
26836 X"$ac_file" : 'X\(//\)$' \| \
26837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26843 /^X\(\/\/\)[^/].*/{
26858 -*) as_dir
=.
/$as_dir;;
26860 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26864 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26865 *) as_qdir
=$as_dir;;
26867 as_dirs
="'$as_qdir' $as_dirs"
26868 as_dir
=`$as_dirname -- "$as_dir" ||
26869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26870 X"$as_dir" : 'X\(//\)[^/]' \| \
26871 X"$as_dir" : 'X\(//\)$' \| \
26872 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26878 /^X\(\/\/\)[^/].*/{
26891 test -d "$as_dir" && break
26893 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26894 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26895 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26896 { (exit 1); exit 1; }; }; }
26900 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26902 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26903 # A ".." for each directory in $ac_dir_suffix.
26904 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26905 case $ac_top_builddir_sub in
26906 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26907 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26910 ac_abs_top_builddir
=$ac_pwd
26911 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26912 # for backward compatibility:
26913 ac_top_builddir
=$ac_top_build_prefix
26916 .
) # We are building in place.
26918 ac_top_srcdir
=$ac_top_builddir_sub
26919 ac_abs_top_srcdir
=$ac_pwd ;;
26920 [\\/]* | ?
:[\\/]* ) # Absolute name.
26921 ac_srcdir
=$srcdir$ac_dir_suffix;
26922 ac_top_srcdir
=$srcdir
26923 ac_abs_top_srcdir
=$srcdir ;;
26924 *) # Relative name.
26925 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26926 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26927 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26929 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26939 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26940 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26944 cat >>$CONFIG_STATUS <<\_ACEOF
26945 # If the template does not know about datarootdir, expand it.
26946 # FIXME: This hack should be removed a few years after 2.60.
26947 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26949 case `sed -n '/datarootdir/ {
26958 ' $ac_file_inputs` in
26959 *datarootdir
*) ac_datarootdir_seen
=yes;;
26960 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26961 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26962 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26964 cat >>$CONFIG_STATUS <<_ACEOF
26965 ac_datarootdir_hack='
26966 s&@datadir@&$datadir&g
26967 s&@docdir@&$docdir&g
26968 s&@infodir@&$infodir&g
26969 s&@localedir@&$localedir&g
26970 s&@mandir@&$mandir&g
26971 s&\\\${datarootdir}&$datarootdir&g' ;;
26975 # Neutralize VPATH when `$srcdir' = `.'.
26976 # Shell code in configure.ac might set extrasub.
26977 # FIXME: do we really want to maintain this feature?
26978 cat >>$CONFIG_STATUS <<_ACEOF
26982 cat >>$CONFIG_STATUS <<\_ACEOF
26984 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26985 s
&@configure_input@
&$configure_input&;t t
26986 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26987 s
&@srcdir@
&$ac_srcdir&;t t
26988 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26989 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26990 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26991 s
&@builddir@
&$ac_builddir&;t t
26992 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26993 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26994 s
&@INSTALL@
&$ac_INSTALL&;t t
26995 $ac_datarootdir_hack
26996 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26999 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27000 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27001 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27002 which seems to be undefined. Please make sure it is defined." >&5
27003 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27004 which seems to be undefined. Please make sure it is defined." >&2;}
27008 -) cat "$tmp/out"; rm -f "$tmp/out";;
27009 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27018 # Transform confdefs.h into a sed script `conftest.defines', that
27019 # substitutes the proper values into config.h.in to produce config.h.
27020 rm -f conftest.defines conftest.
tail
27021 # First, append a space to every undef/define line, to ease matching.
27022 echo 's/$/ /' >conftest.defines
27023 # Then, protect against being on the right side of a sed subst, or in
27024 # an unquoted here document, in config.status. If some macros were
27025 # called several times there might be several #defines for the same
27026 # symbol, which is useless. But do not sort them, since the last
27027 # AC_DEFINE must be honored.
27028 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27029 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27030 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27031 # PARAMS is the parameter list in the macro definition--in most cases, it's
27032 # just an empty string.
27033 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27034 ac_dB
='\\)[ (].*,\\1define\\2'
27042 s/^[ ]*#[ ]*define[ ][ ]*//
27047 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27048 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27049 ' >>conftest.defines
27051 # Remove the space that was appended to ease matching.
27052 # Then replace #undef with comments. This is necessary, for
27053 # example, in the case of _POSIX_SOURCE, which is predefined and required
27054 # on some systems where configure will not decide to define it.
27055 # (The regexp can be short, since the line contains either #define or #undef.)
27057 s,^[ #]*u.*,/* & */,' >>conftest.defines
27059 # Break up conftest.defines:
27060 ac_max_sed_lines
=50
27062 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27063 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27064 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27066 ac_in
='$ac_file_inputs'
27067 ac_out
='"$tmp/out1"'
27068 ac_nxt
='"$tmp/out2"'
27072 # Write a here document:
27073 cat >>$CONFIG_STATUS <<_ACEOF
27074 # First, check the format of the line:
27075 cat >"\$tmp/defines.sed" <<\\CEOF
27076 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27077 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27081 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27083 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27084 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27085 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27086 grep . conftest.
tail >/dev
/null ||
break
27087 rm -f conftest.defines
27088 mv conftest.
tail conftest.defines
27090 rm -f conftest.defines conftest.
tail
27092 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27093 cat >>$CONFIG_STATUS <<\_ACEOF
27094 if test x
"$ac_file" != x-
; then
27095 echo "/* $configure_input */" >"$tmp/config.h"
27096 cat "$ac_result" >>"$tmp/config.h"
27097 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27098 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27099 echo "$as_me: $ac_file is unchanged" >&6;}
27102 mv "$tmp/config.h" $ac_file
27105 echo "/* $configure_input */"
27111 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27112 echo "$as_me: executing $ac_file commands" >&6;}
27117 case $ac_file$ac_mode in
27120 ### Make the necessary directories, if they don't exist.
27121 for dir
in etc lisp
; do
27122 test -d ${dir} || mkdir
${dir}
27125 # Build src/Makefile from ${srcdir}/src/Makefile.c
27126 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27127 # This must be done after src/config.h is built, since we rely on that file.
27129 # Now get this: Some word that is part of the ${srcdir} directory name
27130 # or the ${configuration} value might, just might, happen to be an
27131 # identifier like `sun4' or `i386' or something, and be predefined by
27132 # the C preprocessor to some helpful value like 1, or maybe the empty
27133 # string. Needless to say consequent macro substitutions are less
27134 # than conducive to the makefile finding the correct directory.
27135 undefs
="`echo $top_srcdir $configuration $canonical |
27136 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
27137 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
27140 echo creating src
/epaths.h
27141 ${MAKE-make} epaths-force
27143 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27144 # `..' to `. .' unless invoked with -traditional
27146 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27147 CPPFLAGS
="$CPPFLAGS -traditional"
27150 echo creating lib-src
/Makefile
27152 rm -f junk.c junk1.c junk2.c
27153 sed -e '/start of cpp stuff/q' \
27154 < Makefile.c
> junk1.c
27155 sed -e '1,/start of cpp stuff/d'\
27156 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27157 < Makefile.c
> junk.c
27158 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27159 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27160 cat junk1.c junk2.c
> Makefile.new
27161 rm -f junk.c junk1.c junk2.c
27162 chmod 444 Makefile.new
27163 mv -f Makefile.new Makefile
27166 echo creating src
/Makefile
27168 rm -f junk.c junk1.c junk2.c
27169 sed -e '/start of cpp stuff/q' \
27170 < Makefile.c
> junk1.c
27171 sed -e '1,/start of cpp stuff/d'\
27172 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27173 < Makefile.c
> junk.c
27174 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27175 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27176 cat junk1.c junk2.c
> Makefile.new
27177 rm -f junk.c junk1.c junk2.c
27178 chmod 444 Makefile.new
27179 mv -f Makefile.new Makefile
27182 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27183 echo creating src
/.gdbinit
27184 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27187 # This is how we know whether to re-run configure in certain cases.
27188 touch src
/config.stamp
27196 { (exit 0); exit 0; }
27198 chmod +x
$CONFIG_STATUS
27199 ac_clean_files
=$ac_clean_files_save
27202 # configure is writing to config.log, and then calls config.status.
27203 # config.status does its own redirection, appending to config.log.
27204 # Unfortunately, on DOS this fails, as config.log is still kept open
27205 # by configure, so config.status won't be able to write to it; its
27206 # output is simply discarded. So we exec the FD to /dev/null,
27207 # effectively closing config.log, so it can be properly (re)opened and
27208 # appended to by config.status. When coming back to configure, we
27209 # need to make the FD available again.
27210 if test "$no_create" != yes; then
27212 ac_config_status_args
=
27213 test "$silent" = yes &&
27214 ac_config_status_args
="$ac_config_status_args --quiet"
27216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27219 # would make configure fail if this is the last instruction.
27220 $ac_cs_success ||
{ (exit 1); exit 1; }